7.5 KiB
@slide(layout=chapter-slide)
@number 12
@title Reference management
@slide(layout=preview-only)
@preview
{.large .thin-padding}
@slide(layout=preview-only)
@preview
{.large .thin-padding}
@slide(layout=content-only)
@title What do we need?
@content
- a bibliography file (hereafter
.bibfile) for storing references - Biber/BibLaTeX as an interface between the references and LaTeX
::: {.box .warning} Preparing TeXstudio:
- Bibliography > set type to
BibLaTeX - Options > Configure TeXstudio > Generate > set standard for bibliography to
Biber:::
@slide(layout=wide-content)
@title
What is this mysterious .bib file?
@content
- collection of references in BibTeX format¹
- example content:
@article{turing1990, % the type of the document and an identifier for the \cite command
title={The chemical basis of morphogenesis}, % information
author={Turing, Alan Mathison}, % about
journal={Bulletin of mathematical biology}, % the
volume={52}, % literature
pages={153--197}, % work
date={1990}, % follows
publisher={Springer} % …
}
[1] Note: Even though we are working with BibLaTeX, our bibliography file adheres to the conventions of BibTeX, which is an alternative program. The name has been established for all kinds of things related to LaTeX citations. This is similar to the way we refer to online search by the name of one popular search engine.
@slide(layout=content-only)
@title BibLaTeX
@content
- Package for creating and designing bibliographies
- Uses biber as a backend
You want the references to look professional?
Trust BibLaTeX’s default citation styles!
This conversely means: Avoid fiddling around with styles manually.
@slide(layout=content-only)
@title What you need
@content
- Include the
BibLaTeXpackage in the preamble:
\usepackage[style=<citation-style>,
backend=biber]{biblatex}
- Include the
.bib-file in the preamble:
\addbibresource{<bib-file>}
- Generate the bibliography:
\printbibliography
@slide(layout=content-only)
@title Changing the citation style
@content
- Built-in styles for direct use (z.B.
authoryear,numeric,alphabetic) - additionally options for configurations and other styles (z.B.
apa,ieee,chicago-authordate)
\usepackage[style=numeric, citestyle=ieee,
backend=biber]{biblatex}
Two things are infinite: the universe and the assortment of citation styles.Unknown
@slide(layout=content-only)
@title Sorting entries
@content
\usepackage[style=numeric, citestyle=ieee,
sorting=nty, backend=biber]{biblatex}
| Code | Description |
|---|---|
| nty | Name, Title, Year |
| nyt | Name, Year, Title |
| nyvt | Name, Year, Volume, Title |
| ydtn | Year (descending), Title, Name |
@slide(layout=content-only)
@title How is it used?
@content
BibLaTeX adds some citation commands to LaTeX. In addition, we need the natbib package.
| Code | Description |
|---|---|
| `\parencite{turing1990}` | [Turing, 1990] |
| `\textcite{turing1990}` | Turing (1990) |
| `\textcite[p. 159]` `{turing1990}` |
Turing (1990, p. 159) |
++ Citing with additional text:\cite[<prefix>][<suffix>]{<source>}
@slide(layout=content-and-preview)
@title An example
@content
\usepackage[style=authoryear,
maxnames=3,
minnames=1,
nohashothers=true,
dashed=false,
url=false,
backend=biber]{biblatex}
An exemplary reference in the citation style above:
… in parentheses \parencite{thatcher2002}
or simply as \textcite{thatcher2002} …
@slide(layout=preview-only)
@slide(layout=preview-only)
@slide(layout=preview-only)
@slide(layout=preview-only)
@slide(layout=wide-task)
@task-number 12
@title
Creating and inserting references
@content
- Create a new BibTeX file called
literature.bibin theexercises/literaturefolder. - Use Google Scholar or dblp.org to retrieve BibTeX references for the following
\LaTeXhandbooks:- Dilip Datta (2017):
\LaTeXin 24 Hours. A Practical Guide for Scientific Writing. - Frank Mittelbach / Michel Goossens (2010): Der $\LaTeX$-Begleiter.
- Dilip Datta (2017):
- Add the BibTeX entries to the BibTeX file.
- Assign unique and meaningful BibTeX keys.
- Add the bibliography file to the project's preamble.
- Make use of the
alphabeticbibliography style. - Cite the two handbooks in the file
exercises/literature/literature.tex. - Ensure that the bibliography is listed.
:::{.box .warning}
Not: If the compilation fails, it may be helpful to remove all temporary files (….aux/bbl/blg/loc/out/pdf/soc/toc) and to compile again.
:::
@slide(layout=extra-content-only)
@title The University Library recommends …
@content
- reference management software (esp. Zotero) help to build a literature database, store quotations, and organize one's own notes
- ++ support available from the library's own reference management team: literaturverwaltung.ub@uni-bamberg.de
- ++ in Zotero: activate the plugin "Better BibTeX" (applies also if you are using
biblatex)
:::{.box .warning .fragment} 💡 Further information
There are plenty of resources about the setup available online. :::
@slide(layout=extra-content-only)
@title Setup for Zotero with Better BibTeX
@content
- Zotero:
- install "Better BibTeX"
- Tools > Plugins > enable
Better BibTeX for Zotero - export your library from Zotero, set
Better BibLaTexas format, and setkeep updatedto true - save the library in your LaTeX project archive and use it as the
.bib-file
@slide(layout=extra-content-only)
@title Demo: Referencing with Zotero and BibLaTeX
@content
- Hint: "Zotero Connector for Firefox" for easy import of BibTeX entries
- First set up Zotero with Better BibTeX (see previous slide)
- Open the reference source and click on the Firefox extensions
- Run Zotero Connector and import the BibTeX entry into Zotero
- Reference the source as usual according to the procedures already described



