Understanding the Limitations of ChatGPT in Producing LaTeX with Proper Citations

As AI language models like ChatGPT become increasingly integrated into research and academic workflows, users often expect precise formatting, especially when it comes to technical documents such as LaTeX with citations. However, recent observations indicate that ChatGPT, even with advanced subscription plans like ChatGPT Pro, encounters significant challenges when generating LaTeX code with correct citation formatting.

Common Challenges Encountered

One prevalent issue is that ChatGPT tends to produce citations in the form of clickable hyperlinks or other non-standard formats, rather than the expected LaTeX \cite{} commands. For instance, users report outputs resembling:

\`:contentReference\[oaicite:53\]\`

This indicates that while ChatGPT recognizes references and can generate bibliographic files (.bib files), it struggles to produce the standardized LaTeX citation commands.

Attempts to Circumvent the Problem

Users have experimented with different prompt engineering techniques to steer ChatGPT toward correct citation format. One such prompt might be:

“Consider research papers when you write the sections and cite all of the research papers you use with \cite.”

In addition, explicit instructions for output structure — requesting two code blocks, one containing the LaTeX text and the other the .bib entries — are often employed:

plaintext
Please return:
1. One code block with the full LaTeX text for the requested sections.
2. One code block with the corresponding `.bib` entries.
Ensure the LaTeX code uses `\cite{}` for citations and is contained within a single code block.

Despite these efforts, the model frequently defaults to producing references that are either unhelpful or incompatible with LaTeX citation commands.

Recognized Capabilities and Remaining Limitations

Interestingly, ChatGPT demonstrates an understanding of where content originates from, as it can generate correct .bib files when provided, and it recognizes citation contexts. Nonetheless, it does not reliably output \cite{} commands in the LaTeX text. Instead, it sometimes outputs references that look like clickable links or incorporate identifier tags, which are not directly usable in standard LaTeX documents.

Implications for Researchers and Writers

This limitation underscores that, at present, ChatGPT should be viewed as a tool that can assist in drafting and bibliographic management but not as a fully reliable source for generating LaTe

Leave a Reply

Your email address will not be published. Required fields are marked *