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!
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:
nocite{key}
.bibliography{bib_library}
input{modified_bibliography.bbl}
Answered by Karolis on June 13, 2021
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
include nocite.tex in your main.tex using input{nocite.tex} before the bibliography, compile it, and run bibtex to generate main.bbl
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
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP