Add arXiv.org workaround (and fix issue with missing \item)

This commit is contained in:
Oliver Kopp 2019-05-28 00:19:40 +02:00
parent f5ca922ebc
commit e47ec6627c
2 changed files with 27 additions and 14 deletions

View File

@ -13,6 +13,7 @@
- [Embedding Bibliography Entries](#embedding-bibliography-entries) - [Embedding Bibliography Entries](#embedding-bibliography-entries)
- [Notes on Self-Archiving](#notes-on-self-archiving) - [Notes on Self-Archiving](#notes-on-self-archiving)
- [LNCS](#lncs) - [LNCS](#lncs)
- [Usage at arXiv.org](#usage-at-arxivorg)
- [Other publishers](#other-publishers) - [Other publishers](#other-publishers)
- [Alternative Packages](#alternative-packages) - [Alternative Packages](#alternative-packages)
- [Authors](#authors) - [Authors](#authors)
@ -129,6 +130,7 @@ Sprinter states in his [Springer's Consent to Publish v3](http://resource-cms.sp
> following sentence: > following sentence:
> "The final publication is available at Springer via > "The final publication is available at Springer via
> `http://dx.doi.org/[insert DOI]`". > `http://dx.doi.org/[insert DOI]`".
The DOI (Digital Object Identifier) can be found at the bottom of the first The DOI (Digital Object Identifier) can be found at the bottom of the first
page of the published paper. page of the published paper.
@ -149,6 +151,12 @@ Thus, the proposed configuration for Springer is as follows:
]{authorarchive} ]{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 ## Other publishers
In general, one does not need to specify a certain publisher (or LaTeX document class). In general, one does not need to specify a certain publisher (or LaTeX document class).

View File

@ -92,18 +92,19 @@
\newlength\AA@width \newlength\AA@width
\def\AA@bibBibTeX{\AA@bibtexdir/\AA@key.bib} \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@bibWord{\AA@bibtexdir/\AA@key.word.xml}
\def\AA@bibEndnote{\AA@bibtexdir/\AA@key.enw} \def\AA@bibEndnote{\AA@bibtexdir/\AA@key.enw}
\def\AA@bibRIS{\AA@bibtexdir/\AA@key.ris} \def\AA@bibRIS{\AA@bibtexdir/\AA@key.ris}
\newboolean{AA@bibExists} \newboolean{AA@bibExists}
\setboolean{AA@bibExists}{false} \setboolean{AA@bibExists}{false}
\IfFileExists{\AA@bibBibTeX}{\setboolean{AA@bibExists}{true}}{} \IfFileExists{\AA@bibBibTeX}{\setboolean{AA@bibExists}{true}}{}
\IfFileExists{\AA@bibBibTeXLong}{\setboolean{AA@bibExists}{true}}{}
\IfFileExists{\AA@bibWord}{\setboolean{AA@bibExists}{true}}{} \IfFileExists{\AA@bibWord}{\setboolean{AA@bibExists}{true}}{}
\IfFileExists{\AA@bibEndnote}{\setboolean{AA@bibExists}{true}}{} \IfFileExists{\AA@bibEndnote}{\setboolean{AA@bibExists}{true}}{}
\IfFileExists{\AA@bibRIS}{\setboolean{AA@bibExists}{true}}{} \IfFileExists{\AA@bibRIS}{\setboolean{AA@bibExists}{true}}{}
\setlength\AA@x{1in+\hoffset+\oddsidemargin} \setlength\AA@x{1in+\hoffset+\oddsidemargin}
\newcommand{\authorcrfont}{\footnotesize} \newcommand{\authorcrfont}{\footnotesize}
@ -293,24 +294,28 @@
\begin{itemize*}[label={}, itemjoin={,}] \begin{itemize*}[label={}, itemjoin={,}]
\IfFileExists{\AA@bibBibTeX}{% \IfFileExists{\AA@bibBibTeX}{%
\item \attachandlink{\AA@bibBibTeX}[application/x-bibtex]{BibTeX entry of this paper}{\BibTeX}% \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}{% \IfFileExists{\AA@bibWord}{%
\item \attachandlink{\AA@bibWord}[application/xml]{XML entry of this paper (e.g., for Word 2007 and later)}{Word}% \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}{% \IfFileExists{\AA@bibEndnote}{%
\item \attachandlink{\AA@bibEndnote}[application/x-endnote-refer]{Endnote entry of this paper}{EndNote}% \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}{% \IfFileExists{\AA@bibRIS}{%
\item \attachandlink{\AA@bibRIS}[application/x-research-info-systems]{RIS entry of this paper}{RIS}% \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*}\\ \end{itemize*}\\
}{% }{%
\PackageError{authorarchive}{No bibliographic files found. Specify option 'nobib' if this is intended.} \PackageError{authorarchive}{No bibliographic files found. Specify option 'nobib' if this is intended.}