> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/questions-and-answers/69-in-the-ieee-for-journals-template-i-m-trying-to-use-bibtex-for-my-references.md).

# In the IEEE for journals template, I'm trying to use bibtex for my references

A lot of authors using one of the IEEE journal templates ask for help adding their references using bibtex. In particular, after uploading the IEEEexample.bib and IEEEabrv.bib files to the bibtex/bib folder, it can be tricky to get the document to compile. Here's a compilation of our answers which should hopefully help if you're in a similar situation, and they culminate in an example you can use as a template to get started.

Firstly, if you've uploaded the IEEEtran.cls and IEEEtran.bst files it's recommended to delete them, because they're actually built in to writeLaTeX—you don't have to include them in your project, and it's usually best to use the built in version.

If you need to create the bibtex/bib folder, you can do so via the Project menu in the editor—once you have opened the menu, the icons to create folders and files are on the top right.

The bibtex-generated bibliography comes from the \bibliography and \bibliographystyle commands, and assuming you're using the IEEEexample.bib and IEEEabrv.bib files in the bibtex/bib folder, these commands should be changed to:

```latex
\bibliography{bibtex/bib/IEEEabrv.bib,bibtex/bib/IEEEexample.bib}{}
\bibliographystyle{IEEEtran}
```

This tells bibtex to load the two .bib files and use the IEEEtran bibliography style to format the references.

Note: The original commands in the template were:

```latex
\bibliography{mybib.bib}{}
\bibliographystyle{plain}
```

which told bibtex that you want to use a file called mybib.bib for references, with the plain (built-in) style.

Finally, a common error that occurs after setting this all up is when there's no \cite command in the document that refers to any of the records in the bib file. In the example below we've added one from IEEEexample.bib:

```latex
\cite{IEEEhowto:IEEEtranpage}
```

to make it compile. You'll want to delete it once you've started adding your own citations.

[Here's the example on Overleaf, ready and set up for use.](https://www.overleaf.com/latex/templates/ieee-for-journals-template-with-bibtex-example-files-included/hjbyjvncdmpx)

For more information on bibtex, we recommend the LaTeX wikibook \[[chapter on bibliography management](http://en.wikibooks.org/wiki/LaTeX/Bibliography_Management)].


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/questions-and-answers/69-in-the-ieee-for-journals-template-i-m-trying-to-use-bibtex-for-my-references.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
