Make bibliography files optional
This commit is contained in:
parent
2034700a32
commit
2495471849
|
@ -39,6 +39,14 @@ be adapted easily to other layouts. For example,
|
||||||
```
|
```
|
||||||
works nicely for Acta Informatica.
|
works nicely for Acta Informatica.
|
||||||
|
|
||||||
|
## Embedding Bibliography Entries
|
||||||
|
Mostly, it is hard for scientists to find the correct bibtex entry for a paper.
|
||||||
|
One solution to this issue is to embed the respective `.bib`, `.enw`, `.ris`, or `.word.xml` file in the PDF directly.
|
||||||
|
This work allows for that.
|
||||||
|
In case any of these file exist in the current directory, it gets embedded in the PDF.
|
||||||
|
|
||||||
|
You can generate these files by using [JabRef's export functionalities](https://help.jabref.org/en/#importexport).
|
||||||
|
|
||||||
## License
|
## License
|
||||||
If not otherwise stated, all sub-projects are dual-licensed under a
|
If not otherwise stated, all sub-projects are dual-licensed under a
|
||||||
2-clause BSD-style license and/or the LPPL version 1 or any later
|
2-clause BSD-style license and/or the LPPL version 1 or any later
|
||||||
|
|
|
@ -153,26 +153,38 @@
|
||||||
|
|
||||||
\ifAA@nobib\relax\else%
|
\ifAA@nobib\relax\else%
|
||||||
\AtBeginDocument{%
|
\AtBeginDocument{%
|
||||||
|
\IfFileExists{\AA@bibtexdir/\AA@key.bib}{%
|
||||||
\embedfile[filespec=\AA@key.bib,%
|
\embedfile[filespec=\AA@key.bib,%
|
||||||
desc={BibTeX entry of this paper.},%
|
desc={BibTeX entry of this paper.},%
|
||||||
stringmethod=escape,%
|
stringmethod=escape,%
|
||||||
mimetype=plain/text,%
|
mimetype=plain/text,%
|
||||||
]{\AA@bibtexdir/\AA@key.bib}%
|
]{\AA@bibtexdir/\AA@key.bib}}{
|
||||||
|
\typeout{No file \AA@bibtexdir/\AA@key.bib found. Not embedded reference in BibTeX format.}
|
||||||
|
}%
|
||||||
|
\IfFileExists{\AA@bibtexdir/\AA@key.enw}{%
|
||||||
\embedfile[filespec=\AA@key.enw,%
|
\embedfile[filespec=\AA@key.enw,%
|
||||||
desc={Endnote entry of this paper.},%
|
desc={Endnote entry of this paper.},%
|
||||||
stringmethod=escape,%
|
stringmethod=escape,%
|
||||||
mimetype=plain/text,%
|
mimetype=plain/text,%
|
||||||
]{\AA@bibtexdir/\AA@key.enw}%
|
]{\AA@bibtexdir/\AA@key.enw}}{
|
||||||
|
\typeout{No file \AA@bibtexdir/\AA@key.enw found. Not embedded reference in Endnote format.}
|
||||||
|
}%
|
||||||
|
\IfFileExists{\AA@bibtexdir/\AA@key.ris}{%
|
||||||
\embedfile[filespec=\AA@key.ris,%
|
\embedfile[filespec=\AA@key.ris,%
|
||||||
desc={RIS entry of this paper.},%
|
desc={RIS entry of this paper.},%
|
||||||
stringmethod=escape,%
|
stringmethod=escape,%
|
||||||
mimetype=plain/text,%
|
mimetype=plain/text,%
|
||||||
]{\AA@bibtexdir/\AA@key.ris}%
|
]{\AA@bibtexdir/\AA@key.ris}}{
|
||||||
|
\typeout{No file \AA@bibtexdir/\AA@key.ris found. Not embedded reference in RIS format.}
|
||||||
|
}%
|
||||||
|
\IfFileExists{\AA@bibtexdir/\AA@key.word.xml}{%
|
||||||
\embedfile[filespec=\AA@key.xml,%
|
\embedfile[filespec=\AA@key.xml,%
|
||||||
desc={XML entry of this paper (e.g., for Word 2007 and later).},%
|
desc={XML entry of this paper (e.g., for Word 2007 and later).},%
|
||||||
stringmethod=escape,%
|
stringmethod=escape,%
|
||||||
mimetype=plain/text,%
|
mimetype=plain/text,%
|
||||||
]{\AA@bibtexdir/\AA@key.word.xml}%
|
]{\AA@bibtexdir/\AA@key.word.xml}}{
|
||||||
|
\typeout{No file \AA@bibtexdir/\AA@key.word.xml found. Not embedded reference for Word 2007 and later.}
|
||||||
|
}%
|
||||||
}%
|
}%
|
||||||
\fi
|
\fi
|
||||||
\AtEndDocument{\label{LastPage}}
|
\AtEndDocument{\label{LastPage}}
|
||||||
|
|
Loading…
Reference in New Issue