diff --git a/README.md b/README.md index 17f0aa2..5524572 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,12 @@ works nicely for Acta Informatica. | `startpage` | 1 | The pagenumber of the first page of the paper. | | `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 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. diff --git a/authorarchive.config b/authorarchive.config new file mode 100644 index 0000000..44418c3 --- /dev/null +++ b/authorarchive.config @@ -0,0 +1,3 @@ +\authorsetup{% + baseurl={https://git.logicalhacking.com/adbrucker/authorarchive/src/master} +} diff --git a/authorarchive.sty b/authorarchive.sty index d31c710..f92555e 100644 --- a/authorarchive.sty +++ b/authorarchive.sty @@ -27,7 +27,7 @@ } \DeclareStringOption[.]{bibtexdir} -\DeclareStringOption[https://git.logicalhacking.com/adbrucker/authorarchive/src/master]{baseurl} +\DeclareStringOption[https://duckduckgo.com/?q=]{baseurl} \DeclareStringOption[.pdf]{suffix} \DeclareStringOption[UNKOWN PUBLISHER]{publisher}[] \DeclareStringOption[UNKOWN YEAR]{year}[] @@ -67,6 +67,13 @@ } \ProcessKeyvalOptions* +% Provide command for dynamic configuration seutp +\def\authorsetup{\kvsetkeys{AA}} + +% Load local configuration +\InputIfFileExists{authorarchive.config}{}{} + + \newlength\AA@x \newlength\AA@y \newlength\AA@width