@slide(layout=chapter-slide) @number 11 @title Reference management @slide(layout=content-only) @title What do we need? @content * a **bibliography file** (hereafter `.bib` file) for storing references * **BibTeX** as an interface between the references and LaTeX @slide(layout=wide-content) @title What is this mysterious `.bib` file? @content * collection of references in BibTeX format * example: ``` {.hljs .lang-tex} @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 year={1990}, % follows publisher={Springer} % … } ``` @slide(layout=content-only) @title How is it used? @content BibTeX adds some citation commands to LaTeX. In addition, we need the `natbib` package. * ++ Citing an author: `\citeauthor{}` * ++ Citing a source: `\cite{}` * ++ Citing a page: `\cite[p. 15]{}` * ++ Citing with additional text:
`\cite[][]{}` * ++ Referencing the `.bib` file: `\bibliography{<.bib file>}` * ++ Choosing a citation style:
`\bibliographystyle{}` > Two things are infinite: the universe and the assortment of citation styles.Unknown @slide(layout=preview-only) @preview ![Citing in Alpha style](svg/chapter-14/bibtex-alpha-example-crop.svg){.large .thin-padding} @slide(layout=preview-only) @preview ![Citing in Natdin style](svg/chapter-14/bibtex-natdin-example-crop.svg){.large .thin-padding} @slide(layout=preview-only) @preview ![Finding ready-made BibTeX entries – University of Bamberg Library](svg/chapter-14/bamberg_catalogue_bibtex.jpg){.large} @slide(layout=preview-only) @preview ![Finding ready-made BibTeX entries – Google Scholar](svg/chapter-14/google_bibtex1.jpg){.large} @slide(layout=preview-only) @preview ![Finding ready-made BibTeX entries – Google Scholar](svg/chapter-14/google_bibtex2.jpg){.large} @slide(layout=preview-only) @preview ![Finding ready-made BibTeX entries – dblp.org](svg/chapter-14/dblp.jpg){.large} @slide(layout=wide-task) @task-number 11 @title Creating and inserting references @content * Create a new BibTeX file called `literature.bib` in the `exercises/literature` folder. * Use Google Scholar or dblp.org to retrieve BibTeX references for the following $\LaTeX$ handbooks: * Dilip Datta (2017): $\LaTeX$ in 24 Hours. A Practical Guide for Scientific Writing. * Frank Mittelbach / Michel Goossens (2010): Der $\LaTeX$-Begleiter. * Add the BibTeX entries to the BibTeX file. * Assign unique and meaningful BibTeX keys. * Include the BibTeX file in a suitable location, where later on the references should be listed. * Cite the two handbooks in the file `exercises/literature/literature.tex`. * Make use of the `plain` bibliography style. @slide(layout=extra-content-only) @title The University Library recommends … @content * reference management software (esp. **[Zotero](https://www.zotero.org/)**) 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 * ++ for connecting LaTeX and reference management: **`biblatex` + [`biber`](https://biblatex-biber.sourceforge.net/)** (better support for UTF-8 and varius citation styles) * ++ in Zotero: activate the plugin **["Better BibTeX"](https://retorque.re/zotero-better-bibtex/)** (applies also if you are using `biblatex`)