Skip to content

Instantly share code, notes, and snippets.

@diegoferigo
Created February 16, 2020 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diegoferigo/80ae4925da667cd83a0741316b481ac0 to your computer and use it in GitHub Desktop.
Save diegoferigo/80ae4925da667cd83a0741316b481ac0 to your computer and use it in GitHub Desktop.
Embed the BIB file in the main TEX manuscript

When submitting a paper, often publishers do not support including external bibliography files. Bibliography must be converted and included in the manuscript file before the submission.

The following works if you use bibtex to generate the bibliography. Somehow it could be done also with biblatex, but it is more complicated.

  1. Let's assume the references are stored in a references.bib file
  2. Compile your latex project and get the final version of your pdf manuscript, with all the references included
  3. Comment out the \bibliography{references} line that imports the external .bib file
  4. Copy the content of the autogenerated references.bbl file right below the commented \bibliography comment
  5. To be sure that everything works, remove the temp references.aux file
  6. Recompile your latex project and inspect the output pdf file

References:

@maasyraf-project
Copy link

I want to share my experience on this case, for avoiding error during compile the Tex file, the references.bbl and references.aux should be deleted before compiling process. Moreover, actually the name *.bbl and *.aux is created during compiling which has the same filename with *.tex filename, not the *.bib one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment