LaCorTeX
DocsCitations

Searching arXiv

Find a paper and insert the citation in whatever format your project already uses.

4 min readUpdated 24 November 2026

The tedious part of citing is never finding the paper. It is getting the entry into the right file, in the right format, with a key that matches what you typed, and doing it without leaving the sentence you were in the middle of.

1Searching

Ask the agent in plain words: the paper you mean, or the claim you need a source for. It searches arXiv and lists what it found. If you already have the identifier, skip the search: Add References (DOI, arXiv) in the palette (⌘ P) imports it directly, with no agent involved.

> search_arxiv  ·  "attention mechanism transformer"  [1] Attention Is All You Need      Vaswani et al.  ·  2017  ·  arXiv:1706.03762  [2] Layer Normalization      Ba, Kiros, Hinton  ·  2016  ·  arXiv:1607.06450
Author, year and identifier, so you can tell two similar papers apart before inserting either.

Asking the agent works when you do not know the exact title: “cite the paper that introduced layer norm” is a search it can run and a citation it can insert, in one turn.

2Three kinds of bibliography

LaCorTeX does not impose a bibliography style on your project. It looks at what is already there and matches it:

  • BibTeX. The project has a .bib file, so the entry is appended to it. This is the Overleaf default and probably what you have.
  • Inline. A .tex file contains \begin{thebibliography}, so a \bibitem is inserted before the matching \end{thebibliography}. Common in arXiv and conference submissions, where a single self-contained file is easier to submit.
  • Neither. See below.
Why this matters
A tool that always writes BibTeX will quietly break a submission that ships a single self-contained .tex, and you find out at the worst possible moment. Matching what the project already does is the only safe default.

3Projects with no bibliography

If there is nothing to match, LaCorTeX creates references.bib and wires it up, adding \bibliography{references} and \bibliographystyle{plain} before \end{document} in the main file.

references.bib                    created  +6 linesmain.tex   \bibliography{references}       insertedmain.tex   \bibliographystyle{plain}       inserted

Those two lines are an opinion about your document, so they arrive as a diff like any other edit. If you wanted natbib, or a different style, reject it and say so.

4Citations that do not resolve

A \cite with no matching entry is not a compile error. LaTeX prints a warning and renders a question mark, which is exactly the kind of thing that reaches a reviewer. The compile log lists them under undefined citations, and the agent can check every citation in the project against the bibliography in one pass.

Two compiles
Bibliographies need a second compilation to resolve: the first pass writes the keys, the second reads them back. If a citation you just added still shows as a question mark, compile once more before investigating.
Previous
← Inline rewrite
Next
BibTeX or thebibliography →