Adds a watermark on your paper pre-prints with all information needed to refer to the final version.
Given a PDF and the related BibTeX file, automatically generates a new PDF file with watermark explaining that it is a pre-print version of the published manuscript, and adds citation and BibTeX of the final paper in an extra page. Errata corrige files can be appended as well, optionally.
BibTeX files should have already been tidied by BibTool
and contain one entry (excluding referenced ones). This is
already done by the
You'd better invoke it first on your BibTeX files.
It requires the installation of:
- LaTeX 2015+ with PDFlatex command (https://www.latex-project.org/),
- BibTool (https://ctan.org/tex-archive/biblio/bibtex/utils/bibtool),
- Biber (http://biblatex-biber.sourceforge.net/), and
- PDFtk (https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/).
It has been tested on an Ubuntu Linux 16.04 machine and on a Mac OS X Lion.
To run it, launch
first (you will see that you need some options – follow the suggestion!) and then
The former slices a BibTeX file with (possibly) many entries into single
.bib files, which are also linted by bibtool.
The latter creates the watermark on existing pre-prints. You can modify that script to run it with your files.
More explanations below.
Some folders are already filled in with example material.
you can find a BibTeX file with two sample publications, which I named
diciccio.bib for egocentrism. Ideally, it would be your own BibTeX file with your publications.
To lint it and split it into single-entry bibliography files, to be stored in
for example, run:
./slice-and-dice-my-BibTeX.sh bibsource/DiCiccio.bib bibs true
The last parameter imposes to remove existing files from the
directory, so watch out.
You should see the two files preloaded in
as the result:
Notice that the file names are automatically generated based on the BibTeX keys of the respective entries.
you can find the PDF files of the papers.
At this stage, have a look at
You should see that
is invoked twice to add the copyright watermark on those pre-prints, associated to the respective BibTeX single-entry files:
./add-copyright-marks-on-preprint.sh "bibs/Surnamev-etal-Symp2017.bib" "pre-prints/Surnamev-etal-Symp2017.pdf" "copyright-marked" ./add-copyright-marks-on-preprint.sh "bibs/Author-etal-Conf2018.bib" "pre-prints/Author-etal-Conf2018.pdf" "copyright-marked"
The results are stored in
Notice that every page has as a super-imposed footnote its DOI and publisher. A last page is also appended with bibliographic information.
for convenience of batch calls. Feel free to invoke
directly on single files, of course.
The software also relies on an auxiliary folder (
tmp/) to store temporary data. For debugging reasons, the software does not remove the temporary files at the end of the run. To change the location of the folder, feel free to alter the following line in