LaCorTeX
DocsCitations

BibTeX or thebibliography

How LaCorTeX decides where a new reference goes, so it lands in the format your project already uses.

4 min readUpdated 22 November 2026

LaTeX has two common ways to keep references, and a conference template usually picks one for you. LaCorTeX looks at the project and follows it. This applies both when the agent cites a paper and when you add references by DOI or arXiv id.

1The order it checks

  • A .bib file anywhere in the project: use BibTeX.
  • Otherwise, a .tex file containing \begin{thebibliography}: add to that list.
  • Otherwise: create a bibliography for you.

2A project with a .bib file

The new entry is appended to the file. Style files such as .bstare never treated as a bibliography, so a venue’s style stays intact.

@article{vaswani2017attention,  title  = {Attention Is All You Need},  author = {Vaswani, Ashish and others},  year   = {2017},}
Appended to your existing .bib file.

3An inline bibliography

Many arXiv and conference sources keep references in the document itself. A new \bibitem goes in just before \end{thebibliography}.

Duplicates are harder to spot here
A \bibitem is free text with no fields, so LaCorTeX recognises a repeat by the title, DOI or arXiv id it contains. A title that was abbreviated or retyped can slip through, so glance at the list after a large import.

4A project with neither

LaCorTeX creates references.bib and adds \bibliography{references} and \bibliographystyle{plain} to your main file. Change the style whenever you like.

5Several .bib files

New entries go to the first .bib file found. If you keep separate files on purpose, tell the agent which one to use, or move the entry afterwards. Citation completion reads all of them either way.

Previous
← Searching arXiv
Next
Fixing broken \cite →