All guides
Writing a paper

Citations and bibliography

Keep references in a .bib file, cite them with \cite, and choose a citation style.

The .bib file

References live in a .bib file as BibTeX entries. Each has a type (@article, @book, @inproceedings…), a key you cite it by, and fields. In CiteTeX you rarely type these yourself: Cite in paper search or your library adds the entry for you.

@article{lovelace2021ecg,
  author  = {Lovelace, Ada and Hopper, Grace},
  title   = {Denoising {ECG} Signals with Autoencoders},
  journal = {IEEE Transactions on Biomedical Engineering},
  year    = {2021},
  doi     = {10.1000/ecg.2021.1}
}

Citing and printing the list

Cite with \cite{key} (several keys separated by commas). At the end of the document, choose a style and name the .bib file without its extension. Typing \cite{ in the editor suggests keys from your .bib and your library.

Autoencoders work well for this task~\cite{lovelace2021ecg}.

\bibliographystyle{plain}   % or ieeetr, abbrv, unsrt …
\bibliography{references}   % references.bib

Author–year citations

For "(Lovelace and Hopper, 2021)" style, load natbib and use \citep (in parentheses) and \citet (in the text) with an author–year style such as plainnat. biblatex (with biber) is a modern alternative with many styles.

\usepackage{natbib}
…
\citet{lovelace2021ecg} show that … \citep{lovelace2021ecg}.
\bibliographystyle{plainnat}
Try it: the full example compiles as it is. Open as a project
Next guide
Cross-references