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:
\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:
\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:
\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.
For more information on bibtex, we recommend the LaTeX wikibook [chapter on bibliography management].
Overleaf guides
- Creating a document in Overleaf
- Uploading a project
- Copying a project
- Creating a project from a template
- Using the Overleaf project menu
- Including images in Overleaf
- Exporting your work from Overleaf
- Working offline in Overleaf
- Using Track Changes in Overleaf
- Using bibliographies in Overleaf
- Sharing your work with others
- Using the History feature
- Debugging Compilation timeout errors
- How-to guides
- Guide to Overleaf’s premium features
LaTeX Basics
- Creating your first LaTeX document
- Choosing a LaTeX Compiler
- Paragraphs and new lines
- Bold, italics and underlining
- Lists
- Errors
Mathematics
- Mathematical expressions
- Subscripts and superscripts
- Brackets and Parentheses
- Matrices
- Fractions and Binomials
- Aligning equations
- Operators
- Spacing in math mode
- Integrals, sums and limits
- Display style in math mode
- List of Greek letters and math symbols
- Mathematical fonts
- Using the Symbol Palette in Overleaf
Figures and tables
- Inserting Images
- Tables
- Positioning Images and Tables
- Lists of Tables and Figures
- Drawing Diagrams Directly in LaTeX
- TikZ package
References and Citations
- Bibliography management with bibtex
- Bibliography management with natbib
- Bibliography management with biblatex
- Bibtex bibliography styles
- Natbib bibliography styles
- Natbib citation styles
- Biblatex bibliography styles
- Biblatex citation styles
Languages
- Multilingual typesetting on Overleaf using polyglossia and fontspec
- Multilingual typesetting on Overleaf using babel and fontspec
- International language support
- Quotations and quotation marks
- Arabic
- Chinese
- French
- German
- Greek
- Italian
- Japanese
- Korean
- Portuguese
- Russian
- Spanish
Document structure
- Sections and chapters
- Table of contents
- Cross referencing sections, equations and floats
- Indices
- Glossaries
- Nomenclatures
- Management in a large project
- Multi-file LaTeX projects
- Hyperlinks
Formatting
- Lengths in LaTeX
- Headers and footers
- Page numbering
- Paragraph formatting
- Line breaks and blank spaces
- Text alignment
- Page size and margins
- Single sided and double sided documents
- Multiple columns
- Counters
- Code listing
- Code Highlighting with minted
- Using colours in LaTeX
- Footnotes
- Margin notes
Fonts
Presentations
Commands
Field specific
- Theorems and proofs
- Chemistry formulae
- Feynman diagrams
- Molecular orbital diagrams
- Chess notation
- Knitting patterns
- CircuiTikz package
- Pgfplots package
- Typesetting exams in LaTeX
- Knitr
- Attribute Value Matrices
Class files
- Understanding packages and class files
- List of packages and class files
- Writing your own package
- Writing your own class