Bibliography
The bibliographic information is stored inside a .bib
file.
Format
Format is as such:
@BOOK{KEY_NAME:1,
AUTHOR= "John Doe",
TITLE= "The Book without Title",
PUBLISHER= "Dummy Publisher",
YEAR= "2100",
}
or
@BOOK{KEY_NAME:1,
AUTHOR= {John Doe},
TITLE= {The Book without Title},
PUBLISHER= {Dummy Publisher},
YEAR= {2100},
}
The capitalized words in above example can be small cased as well.
\begin{document}
\bibliography{file_name}
\bibliographystyle{style_name}
\end{document}
Bug
Unsure about behaviors in other cases but if you are using vimtex and you are having issues with compilation, try following steps:
- Stop compilation
- Remove related files, other than
.bib
and.tex
files. - Open file and try compiling again
Citation
You can then create a citation
by doing:
\cite{KEY_NAME:1}
Potential mistake regarding citations
Citations have to appear in an order. For example, you must use \cite{KEY_NAME:1}
before using \cite{KEY_NAME:2}
.
Inside Footnotes
If you want your citations
to appear in footnotes
then you can use:
\usepackage[backend=bibtex, style=ieeetr]{biblatex}
\bibliography{file_name}
\begin{document}
\autocite{KEY:VALUE}
\printbibliography
\end{document}
When using biblatex
The \bibliography{file_name}
has to be in preamble area. Additionally, you may use \printbibliography
to print the references.