Creating a Bibliography
Syntax#
- For a manually-formatted bibliography, there is no need to have citations -
\cite
- within the document.
Parameters#
\documentclass{article}% or book, report, ...
\begin{document}
See \cite{citeA} or \cite{citeB} or \cite{citeA, citeB}.
\begin{thebibliography}{x}
% \bibitem{<biblabel>} <citation>
\bibitem{citeA}
{\scshape Author, A}, {\itshape A title}, Journal of So-and-So, 2000.
\bibitem{citeB}
{\scshape Someone, B}, {\itshape Another title}, Book of books, 1900.
\end{thebibliography}
\end{document}
Note that unless you really know why, you should probably not do this. Using designated packages (see other examples) is preferable.
Basic bibliography with biber
To start a bibliography you need to define your sources. Create a database file (like sources.bib
) and include some content:
@book{Doe1993,
Author = {John Doe},
Publisher = {Earth University},
Title = {Creating a bibliography with biber},
Year = {1993}}
You can then include your database file in your main document and cite the new source (Doe1993
).
\documentclass{article}
% Include the biblatex package and tell it to use biber as a backend.
% Without specifying the backend, it assumes biber.
\usepackage[backend=biber]{biblatex}
% Define where biber can find your sources
\addbibresource{sources.bib}
\begin{document}
"Biber isn't that difficult." \cite{Doe1993}
% Use \cite{source-ID} to generate a citation
% Print the bibliography
\printbibliography
\end{document}
To compile the document, you will need to run 3 commands in sequence:
pdflatex
to create an auxiliary file which tells biber what sources are neededbiber
to create an auxiliary file with all the sources which can be used bypdflatex
pdflatex
to include the auxiliary file and create the PDF
Find many more options and additional fields for bib files in the package documentation on CTAN.