Added \authorsetup{} and example authorarchive.config.

This commit is contained in:
Achim D. Brucker 2018-02-18 16:27:58 +00:00
parent 5e2cf59ade
commit b7678ba26d
3 changed files with 17 additions and 1 deletions

View File

@ -73,6 +73,12 @@ works nicely for Acta Informatica.
| `startpage` | 1 | The pagenumber of the first page of the paper. | | `startpage` | 1 | The pagenumber of the first page of the paper. |
| `publication` | `UNKNOWN PUBLICATION` | Information on the publication. | | `publication` | `UNKNOWN PUBLICATION` | Information on the publication. |
The package also defines a command `\authorsetup{}` which allows to
define key value options dynamically. Moreover, if a file
`authorarchive.config` exists in the LaTeX search path, it will be
loaded automatically. This allows for configuring defaults
(e.g., the baseurl) easily.
## Embedding Bibliography Entries ## Embedding Bibliography Entries
Mostly, it is hard for scientists to find the correct bibtex entry for a paper. 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. One solution to this issue is to embed the respective `.bib`, `.enw`, `.ris`, or `.word.xml` file in the PDF directly.

3
authorarchive.config Normal file
View File

@ -0,0 +1,3 @@
\authorsetup{%
baseurl={https://git.logicalhacking.com/adbrucker/authorarchive/src/master}
}

View File

@ -27,7 +27,7 @@
} }
\DeclareStringOption[.]{bibtexdir} \DeclareStringOption[.]{bibtexdir}
\DeclareStringOption[https://git.logicalhacking.com/adbrucker/authorarchive/src/master]{baseurl} \DeclareStringOption[https://duckduckgo.com/?q=]{baseurl}
\DeclareStringOption[.pdf]{suffix} \DeclareStringOption[.pdf]{suffix}
\DeclareStringOption[UNKOWN PUBLISHER]{publisher}[] \DeclareStringOption[UNKOWN PUBLISHER]{publisher}[]
\DeclareStringOption[UNKOWN YEAR]{year}[] \DeclareStringOption[UNKOWN YEAR]{year}[]
@ -67,6 +67,13 @@
} }
\ProcessKeyvalOptions* \ProcessKeyvalOptions*
% Provide command for dynamic configuration seutp
\def\authorsetup{\kvsetkeys{AA}}
% Load local configuration
\InputIfFileExists{authorarchive.config}{}{}
\newlength\AA@x \newlength\AA@x
\newlength\AA@y \newlength\AA@y
\newlength\AA@width \newlength\AA@width