TransWikia.com

Including references from supplementary material in the reference section of the main text

TeX - LaTeX Asked by TKS on June 13, 2021

I am preparing a manuscript for submission to Science, the guidelines state that authors may submit supplementary materials for posting on the Science Web site, however I am unable to format the references correctly. The guidelines state:

References only cited in the supplementary materials should be include at the end of the reference section of the main text, and the reference numbering should continue as if the Supplementary Materials was a continuation of the main text.

I currently have a main.tex file and a supplementary.tex file, each containing several citations. If I understand the guidelines correctly, when compiled I need the references in supplementary.pdf to continue where the numbering for the main file finished and be included in the main bibliography.

Any help on how to do this would be greatly appreciated!

2 Answers

Similar guidelines come from PRL journal

Please format any references copied to the Letter using the following example:

[20] See Supplemental Material [url], which includes Refs. [21-24].

[21] [first reference in Supplemental Material not already in Letter]

...

[24] [last reference in Supplemental Material not already in Letter]

This is my solution to this problem:

  1. In the main TEX file include all the references using nocite{key}.
  2. Generate the PDF and BBL file.
  3. Modify the BBL file to meet the order and style requirements.
  4. Comment out bibliography{bib_library}
  5. Include the modified BBL file in the main TEX and supplementary TEX files using input{modified_bibliography.bbl}

Answered by Karolis on June 13, 2021

  1. You parse your supplementary file e.g., perl -e '$x=cat $ARGV[0];while($x=~/cite{(.*?)}/g){print "nocite{$1}n"}' supp.tex > nocite.tex

  2. include nocite.tex in your main.tex using input{nocite.tex} before the bibliography, compile it, and run bibtex to generate main.bbl

  3. Include main.bbl into your supplementary input{main.bbl}, compile twice to get the labels, then remove input{main.bbl} and compile once again. The references will remain, but the bibliography wont be printed

Answered by Dmitri on June 13, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP