Skip to content

Instantly share code, notes, and snippets.

@PHPirates
Created July 29, 2018 09:16
Show Gist options
  • Save PHPirates/3bd80ef721b669e21e38e7ab058ed59a to your computer and use it in GitHub Desktop.
Save PHPirates/3bd80ef721b669e21e38e7ab058ed59a to your computer and use it in GitHub Desktop.
Sample file for testing bibtex bibs.
\begin{filecontents}{main.bib}
@Book{knuth1990,
author = {Knuth, Donald E.},
title = {The {\TeX}book},
year = {1990},
isbn = {0-201-13447-0},
publisher = {Addison\,\textendash\,Wesley},
}
\end{filecontents}
\documentclass{article}
\usepackage{filecontents}
\begin{document}
\cite{knuth1990}
\bibliography{main}
\bibliographystyle{plain}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment