Bug fix: \authorsetup{} did not allow to set the key attribute. Moreover, changed examples and documentation to document that \authorsetup{} is the preferred way of configuring authorarchive (fixes #23 on github)."
ci/woodpecker/push/build Pipeline was successful
Details
ci/woodpecker/push/build Pipeline was successful
Details
This commit is contained in:
parent
5600365688
commit
df2d50d3e1
|
@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- use style `orcidlink.sty` instead of local logo for the ORCID icon.
|
- use style `orcidlink.sty` instead of local logo for the ORCID icon.
|
||||||
|
- `\authorsetup{}` is now the preferred way for configuring the package
|
||||||
|
|
||||||
## [1.2.1] - 2022-04-25
|
## [1.2.1] - 2022-04-25
|
||||||
|
|
||||||
|
|
21
README.md
21
README.md
|
@ -30,6 +30,25 @@ your `texmf` tree or the local directory with your main LaTeX file).
|
||||||
|
|
||||||
A simple use for LNCS-formatted papers is as follows:
|
A simple use for LNCS-formatted papers is as follows:
|
||||||
|
|
||||||
|
```tex
|
||||||
|
\usepackage{authorarchive}
|
||||||
|
\authorsetup{LNCS,
|
||||||
|
key=brucker-authorarchive-2016,
|
||||||
|
year=2016,
|
||||||
|
publication={Anonymous et al.\ (eds). Proceedings of the International
|
||||||
|
Conference on LaTeX-Hacks, LNCS~42. Some Publisher}
|
||||||
|
startpage={42},
|
||||||
|
doi={00/00_00},
|
||||||
|
doiText={0/00\_00},
|
||||||
|
nocopyright
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Note that this is the preferred way of configuring the package, as it allows,
|
||||||
|
e.g., for LaTeX commands in options. Only if no (complex) LaTeX commands are
|
||||||
|
used, the configuration can also be passes as package options (this is a
|
||||||
|
limitation of the way LaTeX is passing options to packages):
|
||||||
|
|
||||||
```tex
|
```tex
|
||||||
\usepackage[LNCS,
|
\usepackage[LNCS,
|
||||||
key=brucker-authorarchive-2016,
|
key=brucker-authorarchive-2016,
|
||||||
|
@ -40,7 +59,7 @@ A simple use for LNCS-formatted papers is as follows:
|
||||||
doi={00/00_00},
|
doi={00/00_00},
|
||||||
doiText={0/00\_00},
|
doiText={0/00\_00},
|
||||||
nocopyright
|
nocopyright
|
||||||
]{authorarchive}
|
]{authorarchive}
|
||||||
```
|
```
|
||||||
|
|
||||||
The following layout-styles are pre-defined:
|
The following layout-styles are pre-defined:
|
||||||
|
|
|
@ -80,8 +80,34 @@
|
||||||
}
|
}
|
||||||
\ProcessKeyvalOptions*
|
\ProcessKeyvalOptions*
|
||||||
|
|
||||||
|
\newcommand{\AA@defIncludeFiles}{
|
||||||
|
\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}
|
||||||
|
}
|
||||||
|
\AA@defIncludeFiles
|
||||||
|
|
||||||
|
\newboolean{AA@bibExists}
|
||||||
|
\setboolean{AA@bibExists}{false}
|
||||||
|
\newcommand{\AA@defIncludeSwitches}{
|
||||||
|
\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}}{}
|
||||||
|
}
|
||||||
|
\AA@defIncludeSwitches
|
||||||
|
|
||||||
|
|
||||||
% Provide command for dynamic configuration setup
|
% Provide command for dynamic configuration setup
|
||||||
\def\authorsetup{\kvsetkeys{AA}}
|
% \def\authorsetup{\kvsetkeys{AA}}
|
||||||
|
\newcommand{\authorsetup}[1]{%
|
||||||
|
\kvsetkeys{AA}{#1}
|
||||||
|
\AA@defIncludeFiles
|
||||||
|
\AA@defIncludeSwitches
|
||||||
|
}
|
||||||
|
|
||||||
% Load local configuration
|
% Load local configuration
|
||||||
\InputIfFileExists{authorarchive.config}{}{}
|
\InputIfFileExists{authorarchive.config}{}{}
|
||||||
|
@ -99,20 +125,6 @@
|
||||||
\newlength\AA@y
|
\newlength\AA@y
|
||||||
\newlength\AA@width
|
\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}
|
\setlength\AA@x{1in+\hoffset+\oddsidemargin}
|
||||||
|
|
||||||
\newcommand{\authorcrfont}{\footnotesize}
|
\newcommand{\authorcrfont}{\footnotesize}
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
\documentclass[conference]{IEEEtran}
|
\documentclass[conference]{IEEEtran}
|
||||||
\usepackage[T1]{fontenc}
|
\usepackage[T1]{fontenc}
|
||||||
\usepackage[IEEE,
|
\usepackage{../authorarchive}
|
||||||
|
\authorsetup{
|
||||||
|
IEEE,
|
||||||
key=brucker-authorarchive-2016,
|
key=brucker-authorarchive-2016,
|
||||||
year=2016,
|
year=2016,
|
||||||
publication={Anonymous et al.\ (eds). Proceedings of the International
|
publication={Anonymous et al.\ (eds). Proceedings of the International
|
||||||
|
@ -8,7 +10,7 @@
|
||||||
startpage={42},
|
startpage={42},
|
||||||
nourl,
|
nourl,
|
||||||
nocopyright
|
nocopyright
|
||||||
]{../authorarchive}
|
}
|
||||||
|
|
||||||
\usepackage{lipsum}
|
\usepackage{lipsum}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
\documentclass[conference]{IEEEtran}
|
\documentclass[conference]{IEEEtran}
|
||||||
\usepackage[T1]{fontenc}
|
\usepackage[T1]{fontenc}
|
||||||
\usepackage[IEEE,
|
\usepackage{../authorarchive}
|
||||||
|
\authorsetup{
|
||||||
|
IEEE,
|
||||||
key=brucker-authorarchive-2016,
|
key=brucker-authorarchive-2016,
|
||||||
year=2016,
|
year=2016,
|
||||||
publication={Anonymous et al.\ (eds). Proceedings of the International
|
publication={Anonymous et al.\ (eds). Proceedings of the International
|
||||||
|
@ -9,7 +11,7 @@
|
||||||
doi={00/00_00},
|
doi={00/00_00},
|
||||||
doiText={0/00\_00},
|
doiText={0/00\_00},
|
||||||
nocopyright
|
nocopyright
|
||||||
]{../authorarchive}
|
}
|
||||||
|
|
||||||
\usepackage{lipsum}
|
\usepackage{lipsum}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,9 @@
|
||||||
\acmDOI{10.1145/000000.000000}
|
\acmDOI{10.1145/000000.000000}
|
||||||
\acmISBN{000-0-0000-0000-0/00/00}
|
\acmISBN{000-0-0000-0000-0/00/00}
|
||||||
|
|
||||||
\usepackage[acmart,
|
\usepackage{../authorarchive}
|
||||||
|
\authorsetup{
|
||||||
|
acmart,
|
||||||
key=brucker-authorarchive-2016,
|
key=brucker-authorarchive-2016,
|
||||||
year=2016,
|
year=2016,
|
||||||
publication={Anonymous et al. (eds). Proceedings of the International
|
publication={Anonymous et al. (eds). Proceedings of the International
|
||||||
|
@ -16,7 +18,7 @@
|
||||||
startpage={42},
|
startpage={42},
|
||||||
doi={00/0000},
|
doi={00/0000},
|
||||||
nocopyright
|
nocopyright
|
||||||
]{../authorarchive}
|
}
|
||||||
|
|
||||||
\usepackage{lipsum}
|
\usepackage{lipsum}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
\documentclass{entcs}
|
\documentclass{entcs}
|
||||||
\usepackage[T1]{fontenc}
|
\usepackage[T1]{fontenc}
|
||||||
\usepackage[ENTCS,
|
\usepackage{../authorarchive}
|
||||||
|
\authorsetup{
|
||||||
|
ENTCS,
|
||||||
key=brucker-authorarchive-2016,
|
key=brucker-authorarchive-2016,
|
||||||
year=2016,
|
year=2016,
|
||||||
publication={Anonymous et al.\ (eds). Proceedings of the International
|
publication={Anonymous et al.\ (eds). Proceedings of the International
|
||||||
|
@ -9,7 +11,7 @@
|
||||||
doi={00/00_00},
|
doi={00/00_00},
|
||||||
doiText={0/00\_00},
|
doiText={0/00\_00},
|
||||||
nocopyright
|
nocopyright
|
||||||
]{../authorarchive}
|
}
|
||||||
|
|
||||||
\usepackage{lipsum}
|
\usepackage{lipsum}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
\documentclass[final, runningheads, USenglish, a4paper]{llncs}
|
\documentclass[final, runningheads, USenglish, a4paper]{llncs}
|
||||||
\usepackage[T1]{fontenc}
|
\usepackage[T1]{fontenc}
|
||||||
\usepackage[LNCS,
|
\usepackage{../authorarchive}
|
||||||
|
\authorsetup{
|
||||||
|
LNCS,
|
||||||
key=brucker-authorarchive-2016,
|
key=brucker-authorarchive-2016,
|
||||||
year=2016,
|
year=2016,
|
||||||
publication={Anonymous et al.\ (eds). Proceedings of the International
|
publication={Anonymous et al.\ (eds). Proceedings of the International
|
||||||
|
@ -9,7 +11,7 @@
|
||||||
doi={00/00_00},
|
doi={00/00_00},
|
||||||
doiText={0/00\_00},
|
doiText={0/00\_00},
|
||||||
nocopyright
|
nocopyright
|
||||||
]{../authorarchive}
|
}
|
||||||
|
|
||||||
\usepackage{lipsum}
|
\usepackage{lipsum}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
\documentclass[final, runningheads, USenglish]{llncs}
|
\documentclass[final, runningheads, USenglish]{llncs}
|
||||||
\usepackage[T1]{fontenc}
|
\usepackage[T1]{fontenc}
|
||||||
|
|
||||||
\usepackage[LNCS,
|
\usepackage{../authorarchive}
|
||||||
|
\authorsetup{
|
||||||
|
LNCS,
|
||||||
key=brucker-authorarchive-2016,
|
key=brucker-authorarchive-2016,
|
||||||
year=2016,
|
year=2016,
|
||||||
publication={Anonymous et al.\ (eds). Proceedings of the International
|
publication={Anonymous et al.\ (eds). Proceedings of the International
|
||||||
|
@ -11,8 +13,12 @@
|
||||||
doiText={0/00\_00},
|
doiText={0/00\_00},
|
||||||
orcidicon,
|
orcidicon,
|
||||||
nocopyright
|
nocopyright
|
||||||
]{../authorarchive}
|
}
|
||||||
|
|
||||||
|
\authorsetup{
|
||||||
|
publication={Anonymous 6\textsuperscript{th} et al.\ (eds). Proceedings of the International
|
||||||
|
Conference on LaTeX-Hacks, LNCS~42. Some Publisher},
|
||||||
|
}
|
||||||
\usepackage{lipsum}
|
\usepackage{lipsum}
|
||||||
|
|
||||||
\title{A Simple Example of the \texttt{authorarchive} Package for \LaTeX}
|
\title{A Simple Example of the \texttt{authorarchive} Package for \LaTeX}
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
\documentclass[english]{lni}
|
\documentclass[english]{lni}
|
||||||
\usepackage[T1]{fontenc}
|
\usepackage[T1]{fontenc}
|
||||||
\AtEndPreamble{
|
\AtEndPreamble{
|
||||||
\usepackage[LNI,
|
\usepackage{../authorarchive}
|
||||||
|
\authorsetup{
|
||||||
|
LNI,
|
||||||
key=brucker-authorarchive-2016,
|
key=brucker-authorarchive-2016,
|
||||||
year=2016,
|
year=2016,
|
||||||
publication={Anonymous et al.\ (eds). Proceedings of the International
|
publication={Anonymous et al.\ (eds). Proceedings of the International
|
||||||
|
@ -10,7 +12,7 @@
|
||||||
doi={00/00_00},
|
doi={00/00_00},
|
||||||
doiText={0/00\_00},
|
doiText={0/00\_00},
|
||||||
nocopyright
|
nocopyright
|
||||||
]{../authorarchive}
|
}
|
||||||
}
|
}
|
||||||
\usepackage{lipsum}
|
\usepackage{lipsum}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
\documentclass[a4paper]{article}
|
\documentclass[a4paper]{article}
|
||||||
|
|
||||||
\usepackage[
|
\usepackage{../authorarchive}
|
||||||
|
\authorsetup{
|
||||||
key=brucker-authorarchive-2016,
|
key=brucker-authorarchive-2016,
|
||||||
year=2016,
|
year=2016,
|
||||||
publication={Anonymous et al.\ (eds). Proceedings of the International
|
publication={Anonymous et al.\ (eds). Proceedings of the International
|
||||||
|
@ -8,7 +9,7 @@
|
||||||
startpage={42},
|
startpage={42},
|
||||||
doi={00/0000},
|
doi={00/0000},
|
||||||
nocopyright
|
nocopyright
|
||||||
]{../authorarchive}
|
}
|
||||||
|
|
||||||
\usepackage{lipsum}
|
\usepackage{lipsum}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue