diff --git a/README.md b/README.md index f12fea1..f1bb323 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ - [Embedding Bibliography Entries](#embedding-bibliography-entries) - [Notes on Self-Archiving](#notes-on-self-archiving) - [LNCS](#lncs) + - [Usage at arXiv.org](#usage-at-arxivorg) - [Other publishers](#other-publishers) - [Alternative Packages](#alternative-packages) - [Authors](#authors) @@ -129,6 +130,7 @@ Sprinter states in his [Springer's Consent to Publish v3](http://resource-cms.sp > following sentence: > "The final publication is available at Springer via > `http://dx.doi.org/[insert DOI]`". + The DOI (Digital Object Identifier) can be found at the bottom of the first page of the published paper. @@ -149,6 +151,12 @@ Thus, the proposed configuration for Springer is as follows: ]{authorarchive} ``` +## Usage at arXiv.org + +arXiv.org deletes bib files when submitting a pre print. As workaround, this package +supports using the file suffix `.bibtex`. When no `.bib` is found, but a `.bibtex` +file, this file is used and embedded as `.bib` file into the PDF. + ## Other publishers In general, one does not need to specify a certain publisher (or LaTeX document class). diff --git a/authorarchive.sty b/authorarchive.sty index 0e9ceb0..9f6e6a9 100644 --- a/authorarchive.sty +++ b/authorarchive.sty @@ -92,18 +92,19 @@ \newlength\AA@width \def\AA@bibBibTeX{\AA@bibtexdir/\AA@key.bib} +\def\AA@bibBibTeXLong{\AA@bibtexdir/\AA@key.bibtex} \def\AA@bibWord{\AA@bibtexdir/\AA@key.word.xml} \def\AA@bibEndnote{\AA@bibtexdir/\AA@key.enw} \def\AA@bibRIS{\AA@bibtexdir/\AA@key.ris} + \newboolean{AA@bibExists} \setboolean{AA@bibExists}{false} \IfFileExists{\AA@bibBibTeX}{\setboolean{AA@bibExists}{true}}{} +\IfFileExists{\AA@bibBibTeXLong}{\setboolean{AA@bibExists}{true}}{} \IfFileExists{\AA@bibWord}{\setboolean{AA@bibExists}{true}}{} \IfFileExists{\AA@bibEndnote}{\setboolean{AA@bibExists}{true}}{} \IfFileExists{\AA@bibRIS}{\setboolean{AA@bibExists}{true}}{} - - \setlength\AA@x{1in+\hoffset+\oddsidemargin} \newcommand{\authorcrfont}{\footnotesize} @@ -293,24 +294,28 @@ \begin{itemize*}[label={}, itemjoin={,}] \IfFileExists{\AA@bibBibTeX}{% \item \attachandlink{\AA@bibBibTeX}[application/x-bibtex]{BibTeX entry of this paper}{\BibTeX}% - }{ - \typeout{No file \AA@bibBibTeX found. Not embedded reference in BibTeX format.} - } + }{% + \IfFileExists{\AA@bibBibTeXLong}{% + \item \attachandlink[\AA@key.bib]{\AA@bibBibTeXLong}[application/x-bibtex]{BibTeX entry of this paper}{\BibTeX}% + }{% + \typeout{No file \AA@bibBibTeX{} (and no \AA@bibBibTeXLong) found. Not embedded reference in BibTeX format.}% + }% + }% \IfFileExists{\AA@bibWord}{% \item \attachandlink{\AA@bibWord}[application/xml]{XML entry of this paper (e.g., for Word 2007 and later)}{Word}% - }{ - \typeout{No file \AA@bibWord found. Not embedded reference for Word 2007 and later.} - } + }{% + \typeout{No file \AA@bibWord{} found. Not embedded reference for Word 2007 and later.}% + }% \IfFileExists{\AA@bibEndnote}{% \item \attachandlink{\AA@bibEndnote}[application/x-endnote-refer]{Endnote entry of this paper}{EndNote}% - }{ - \typeout{No file \AA@bibEndnote found. Not embedded reference in Endnote format.} - } + }{% + \typeout{No file \AA@bibEndnote{} found. Not embedded reference in Endnote format.}% + }% \IfFileExists{\AA@bibRIS}{% \item \attachandlink{\AA@bibRIS}[application/x-research-info-systems]{RIS entry of this paper}{RIS}% - }{ - \typeout{No file \AA@bibRIS found. Not embedded reference in RIS format.} - } + }{% + \typeout{No file \AA@bibRIS{} found. Not embedded reference in RIS format.}% + }% \end{itemize*}\\ }{% \PackageError{authorarchive}{No bibliographic files found. Specify option 'nobib' if this is intended.}