From 3dc720cc4ed5d94ed2a9bbfbec06eeb9848e7cbf Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 10 Feb 2023 21:54:31 +0000 Subject: authorarchive (10feb23) git-svn-id: svn://tug.org/texlive/trunk@65777 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/authorarchive/CHANGELOG.md | 10 +++ .../texmf-dist/doc/latex/authorarchive/README.md | 58 ++++++++----- .../brucker-authorarchive-2016-IEEEtran-nourl.pdf | Bin 67605 -> 64143 bytes .../brucker-authorarchive-2016-IEEEtran-nourl.tex | 8 +- .../brucker-authorarchive-2016-IEEEtran.pdf | Bin 71839 -> 68345 bytes .../brucker-authorarchive-2016-IEEEtran.tex | 8 +- .../examples/brucker-authorarchive-2016-acmart.pdf | Bin 394597 -> 130454 bytes .../examples/brucker-authorarchive-2016-acmart.tex | 6 +- .../examples/brucker-authorarchive-2016-entcs.pdf | Bin 257762 -> 250535 bytes .../examples/brucker-authorarchive-2016-entcs.tex | 6 +- .../brucker-authorarchive-2016-llncs-a4.pdf | Bin 232514 -> 198627 bytes .../brucker-authorarchive-2016-llncs-a4.tex | 10 ++- .../examples/brucker-authorarchive-2016-llncs.pdf | Bin 233416 -> 221241 bytes .../examples/brucker-authorarchive-2016-llncs.tex | 19 ++-- .../examples/brucker-authorarchive-2016-lni.pdf | Bin 141002 -> 190755 bytes .../examples/brucker-authorarchive-2016-lni.tex | 8 +- .../examples/brucker-authorarchive-2016.pdf | Bin 237936 -> 57049 bytes .../examples/brucker-authorarchive-2016.tex | 5 +- .../doc/latex/authorarchive/icons/README.md | 21 ----- .../latex/authorarchive/icons/vector_iD_icon.pdf | Bin 1197 -> 0 bytes .../latex/authorarchive/icons/vector_iD_icon.svg | 17 ---- .../tex/latex/authorarchive/authorarchive.sty | 96 +++++++++++---------- 22 files changed, 139 insertions(+), 133 deletions(-) delete mode 100644 Master/texmf-dist/doc/latex/authorarchive/icons/README.md delete mode 100644 Master/texmf-dist/doc/latex/authorarchive/icons/vector_iD_icon.pdf delete mode 100644 Master/texmf-dist/doc/latex/authorarchive/icons/vector_iD_icon.svg (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/authorarchive/CHANGELOG.md b/Master/texmf-dist/doc/latex/authorarchive/CHANGELOG.md index 8520607b2ee..8d8fb5a0ef5 100644 --- a/Master/texmf-dist/doc/latex/authorarchive/CHANGELOG.md +++ b/Master/texmf-dist/doc/latex/authorarchive/CHANGELOG.md @@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [1.3.0] - 2023-02-10 + +### Changed + +- use style `orcidlink.sty` instead of local logo for the ORCID icon. +- `\authorsetup{}` is now the preferred way for configuring the package. +- use style `etoolbox.sty` providing `\newrobustcommand{}`, which is + used instead of `\DeclareRobustCommand{}` for defining BibTeX-logo + (avoids problems with `lni.cls`). ## [1.2.1] - 2022-04-25 @@ -47,6 +56,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Initial version uploaded to CTAN. +[1.3.0]: https://git.logicalhacking.com/adbrucker/authorarchive/compare/v1.3.0...v1.3.0 [1.2.1]: https://git.logicalhacking.com/adbrucker/authorarchive/compare/v1.2.0...v1.2.1 [1.2.0]: https://git.logicalhacking.com/adbrucker/authorarchive/compare/v1.1.1...v1.2.0 [1.1.1]: https://git.logicalhacking.com/adbrucker/authorarchive/compare/v1.1.0...v1.1.1 diff --git a/Master/texmf-dist/doc/latex/authorarchive/README.md b/Master/texmf-dist/doc/latex/authorarchive/README.md index 7721b1baa2a..11da279bcb6 100644 --- a/Master/texmf-dist/doc/latex/authorarchive/README.md +++ b/Master/texmf-dist/doc/latex/authorarchive/README.md @@ -5,34 +5,50 @@ -- [authorarchive](#authorarchive) - - [Installation](#installation) - - [Usage](#usage) - - [Boolean Switches](#boolean-switches) - - [Key/Value Options](#key-value-options) - - [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) - - [Contributors](#contributors) - - [License](#license) - - [Upstream Repository](#upstream-repository) +- [Installation](#installation) +- [Usage](#usage) + - [Boolean Switches](#boolean-switches) + - [Key/Value Options](#keyvalue-options) +- [Embedding Bibliography Entries](#embedding-bibliography-entries) +- [Notes on Self-Archiving](#notes-on-self-archiving) +- [Usage at arXiv.org](#usage-at-arxivorg) +- [Other publishers](#other-publishers) +- [Alternative Packages](#alternative-packages) +- [Authors](#authors) + - [Contributors](#contributors) +- [License](#license) +- [Upstream Repository](#upstream-repository) ## Installation -Copy `authorarchive.sty` and the directory `icons` in a directory that -is searched by LaTeX (e.g., either your `texmf` tree or the local -directory with your main LaTeX file). +Copy `authorarchive.sty` in a directory that is searched by LaTeX (e.g., either +your `texmf` tree or the local directory with your main LaTeX file). ## Usage 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 \usepackage[LNCS, key=brucker-authorarchive-2016, @@ -43,7 +59,7 @@ A simple use for LNCS-formatted papers is as follows: doi={00/00_00}, doiText={0/00\_00}, nocopyright - ]{authorarchive} +]{authorarchive} ``` The following layout-styles are pre-defined: @@ -119,8 +135,6 @@ or the postprint. For more information on that, read on at None of the authors might be hold liable for copyright violations by using this package. -### LNCS - ## Usage at arXiv.org arXiv.org deletes bib files when submitting a pre print. As workaround, this package @@ -145,7 +159,7 @@ The default setting just prints the note centered at the bottom of the first pag ``` Still, for some used document classes (e.g., `lncs` and `acmart`) there are specific -package options available hat produce an alternative layout. +package options available hat produce an alternative layout. ## Alternative Packages diff --git a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-IEEEtran-nourl.pdf b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-IEEEtran-nourl.pdf index 94f21f7a93a..56c33276911 100644 Binary files a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-IEEEtran-nourl.pdf and b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-IEEEtran-nourl.pdf differ diff --git a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-IEEEtran-nourl.tex b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-IEEEtran-nourl.tex index a8650325e1b..2094c694817 100644 --- a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-IEEEtran-nourl.tex +++ b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-IEEEtran-nourl.tex @@ -1,6 +1,8 @@ \documentclass[conference]{IEEEtran} \usepackage[T1]{fontenc} -\usepackage[IEEE, +\usepackage{../authorarchive} +\authorsetup{ + IEEE, key=brucker-authorarchive-2016, year=2016, publication={Anonymous et al.\ (eds). Proceedings of the International @@ -8,14 +10,14 @@ startpage={42}, nourl, nocopyright - ]{../authorarchive} +} \usepackage{lipsum} \title{A Simple Example of the \texttt{authorarchive} Package for \LaTeX} \author{% \IEEEauthorblockN{\protect\href{http://www.brucker.ch/}{Achim D. Brucker}} - \IEEEauthorblockA{Some Departement \\ Somewhere} + \IEEEauthorblockA{Some Department \\ Somewhere} } diff --git a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-IEEEtran.pdf b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-IEEEtran.pdf index bf038ed5749..8c923577df7 100644 Binary files a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-IEEEtran.pdf and b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-IEEEtran.pdf differ diff --git a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-IEEEtran.tex b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-IEEEtran.tex index 8809fc9ac4b..14888541626 100644 --- a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-IEEEtran.tex +++ b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-IEEEtran.tex @@ -1,6 +1,8 @@ \documentclass[conference]{IEEEtran} \usepackage[T1]{fontenc} -\usepackage[IEEE, +\usepackage{../authorarchive} +\authorsetup{ + IEEE, key=brucker-authorarchive-2016, year=2016, publication={Anonymous et al.\ (eds). Proceedings of the International @@ -9,14 +11,14 @@ doi={00/00_00}, doiText={0/00\_00}, nocopyright - ]{../authorarchive} +} \usepackage{lipsum} \title{A Simple Example of the \texttt{authorarchive} Package for \LaTeX} \author{% \IEEEauthorblockN{\protect\href{http://www.brucker.ch/}{Achim D. Brucker}} - \IEEEauthorblockA{Some Departement \\ Somewhere} + \IEEEauthorblockA{Some Department \\ Somewhere} } diff --git a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-acmart.pdf b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-acmart.pdf index 8aaac22109b..6660c089e23 100644 Binary files a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-acmart.pdf and b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-acmart.pdf differ diff --git a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-acmart.tex b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-acmart.tex index 3c6da448a69..e94e33f945f 100644 --- a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-acmart.tex +++ b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-acmart.tex @@ -8,7 +8,9 @@ \acmDOI{10.1145/000000.000000} \acmISBN{000-0-0000-0000-0/00/00} -\usepackage[acmart, +\usepackage{../authorarchive} +\authorsetup{ + acmart, key=brucker-authorarchive-2016, year=2016, publication={Anonymous et al. (eds). Proceedings of the International @@ -16,7 +18,7 @@ startpage={42}, doi={00/0000}, nocopyright - ]{../authorarchive} +} \usepackage{lipsum} diff --git a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-entcs.pdf b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-entcs.pdf index 43d66bb8f4a..9413253a84c 100644 Binary files a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-entcs.pdf and b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-entcs.pdf differ diff --git a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-entcs.tex b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-entcs.tex index 9095d7970fd..ca97306efe0 100644 --- a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-entcs.tex +++ b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-entcs.tex @@ -1,6 +1,8 @@ \documentclass{entcs} \usepackage[T1]{fontenc} -\usepackage[ENTCS, +\usepackage{../authorarchive} +\authorsetup{ + ENTCS, key=brucker-authorarchive-2016, year=2016, publication={Anonymous et al.\ (eds). Proceedings of the International @@ -9,7 +11,7 @@ doi={00/00_00}, doiText={0/00\_00}, nocopyright - ]{../authorarchive} +} \usepackage{lipsum} diff --git a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-llncs-a4.pdf b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-llncs-a4.pdf index 4df12f3cb7c..d70ed34b15f 100644 Binary files a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-llncs-a4.pdf and b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-llncs-a4.pdf differ diff --git a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-llncs-a4.tex b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-llncs-a4.tex index 7796d64d2db..cac65990284 100644 --- a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-llncs-a4.tex +++ b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-llncs-a4.tex @@ -1,6 +1,8 @@ -\documentclass[final, runningheads, USenglish, a4paper, pdftex]{llncs} +\documentclass[final, runningheads, USenglish, a4paper]{llncs} \usepackage[T1]{fontenc} -\usepackage[LNCS, +\usepackage{../authorarchive} +\authorsetup{ + LNCS, key=brucker-authorarchive-2016, year=2016, publication={Anonymous et al.\ (eds). Proceedings of the International @@ -9,13 +11,13 @@ doi={00/00_00}, doiText={0/00\_00}, nocopyright - ]{../authorarchive} +} \usepackage{lipsum} \title{A Simple Example of the \texttt{authorarchive} Package for \LaTeX} \author{\protect\href{http://www.brucker.ch/}{Achim D. Brucker}} -\institute{Some Departement, Somewhere} +\institute{Some Department, Somewhere} \begin{document} \maketitle{} diff --git a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-llncs.pdf b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-llncs.pdf index a663b9f16c2..8edfe78b17c 100644 Binary files a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-llncs.pdf and b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-llncs.pdf differ diff --git a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-llncs.tex b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-llncs.tex index 54766ce27bc..87749240425 100644 --- a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-llncs.tex +++ b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-llncs.tex @@ -1,12 +1,9 @@ -\documentclass[final, runningheads, USenglish, pdftex]{llncs} +\documentclass[final, runningheads, USenglish]{llncs} \usepackage[T1]{fontenc} -% Quickly make vector_iD_icon.pdf available to authorarchive. -% The global installation is described in ../README.md -\usepackage{graphicx} -\graphicspath{{../icons/}} - -\usepackage[LNCS, +\usepackage{../authorarchive} +\authorsetup{ + LNCS, key=brucker-authorarchive-2016, year=2016, publication={Anonymous et al.\ (eds). Proceedings of the International @@ -16,13 +13,17 @@ doiText={0/00\_00}, orcidicon, 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} \title{A Simple Example of the \texttt{authorarchive} Package for \LaTeX} \author{\protect\href{http://www.brucker.ch/}{Achim D. Brucker}\orcidID{0000-0002-6355-1200}} -\institute{Some Departement, Somewhere} +\institute{Some Department, Somewhere} \begin{document} \maketitle{} diff --git a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-lni.pdf b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-lni.pdf index e481830a277..c0a6deda064 100644 Binary files a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-lni.pdf and b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-lni.pdf differ diff --git a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-lni.tex b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-lni.tex index 00bff6be9e6..675e8e379ba 100644 --- a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-lni.tex +++ b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016-lni.tex @@ -1,7 +1,9 @@ \documentclass[english]{lni} \usepackage[T1]{fontenc} \AtEndPreamble{ - \usepackage[LNI, + \usepackage{../authorarchive} + \authorsetup{ + LNI, key=brucker-authorarchive-2016, year=2016, publication={Anonymous et al.\ (eds). Proceedings of the International @@ -10,14 +12,14 @@ doi={00/00_00}, doiText={0/00\_00}, nocopyright - ]{../authorarchive} + } } \usepackage{lipsum} \title{A Simple Example of the \texttt{authorarchive} Package for \LaTeX} \author{% \protect\href{http://www.brucker.ch/}{Achim D. Brucker}\\ - Some Departement\\ + Some Department\\ Somewhere } diff --git a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016.pdf b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016.pdf index d29dd69796d..24e632cff43 100644 Binary files a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016.pdf and b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016.pdf differ diff --git a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016.tex b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016.tex index b6f2ea3fc4d..99f5cdb30f9 100644 --- a/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016.tex +++ b/Master/texmf-dist/doc/latex/authorarchive/examples/brucker-authorarchive-2016.tex @@ -1,6 +1,7 @@ \documentclass[a4paper]{article} -\usepackage[ +\usepackage{../authorarchive} +\authorsetup{ key=brucker-authorarchive-2016, year=2016, publication={Anonymous et al.\ (eds). Proceedings of the International @@ -8,7 +9,7 @@ startpage={42}, doi={00/0000}, nocopyright - ]{../authorarchive} +} \usepackage{lipsum} diff --git a/Master/texmf-dist/doc/latex/authorarchive/icons/README.md b/Master/texmf-dist/doc/latex/authorarchive/icons/README.md deleted file mode 100644 index 6670cb04fba..00000000000 --- a/Master/texmf-dist/doc/latex/authorarchive/icons/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# Icons for the use with authorarchive - -This directory contains icons that might be used together with -the authorarchive LaTeX style. The use of these icons is -restricted by the respective copyright holders. - -## ORCID iD Icon - -The iD icon ([vector_iD_icon.svg](vector_iD_icon.svg)) was obtained in -SVG format from - and converted -to PDF ([vector_iD_icon.pdf](vector_iD_icon.pdf)) using -[Inkscape](https://inkscape.org). According to the use and (display -guidelines)[https://orcid.org/trademark-and-id-display-guidelines] of -the ORCID iD icons, it can be used for displaying ORCID identifiers. - -An alternative to including the iD icon as PDF image is the -[academicons](https://ctan.org/pkg/academicons) package. At the time -of writing, this package requires xe(la)tex or lua(la)tex while the -[authorarchive](https://ctan.org/pkg/authorarchive) packages requires -pdf(la)tex. diff --git a/Master/texmf-dist/doc/latex/authorarchive/icons/vector_iD_icon.pdf b/Master/texmf-dist/doc/latex/authorarchive/icons/vector_iD_icon.pdf deleted file mode 100644 index 59824b11a1e..00000000000 Binary files a/Master/texmf-dist/doc/latex/authorarchive/icons/vector_iD_icon.pdf and /dev/null differ diff --git a/Master/texmf-dist/doc/latex/authorarchive/icons/vector_iD_icon.svg b/Master/texmf-dist/doc/latex/authorarchive/icons/vector_iD_icon.svg deleted file mode 100644 index 2bddf44f1b8..00000000000 --- a/Master/texmf-dist/doc/latex/authorarchive/icons/vector_iD_icon.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/authorarchive/authorarchive.sty b/Master/texmf-dist/tex/latex/authorarchive/authorarchive.sty index 057cceee3b0..1f95f82571d 100644 --- a/Master/texmf-dist/tex/latex/authorarchive/authorarchive.sty +++ b/Master/texmf-dist/tex/latex/authorarchive/authorarchive.sty @@ -1,4 +1,4 @@ -%% Copyright (C) 2008-2019 Achim D. Brucker, https://www.brucker.ch +%% Copyright (C) 2008-2023 Achim D. Brucker, https://www.brucker.ch %% %% License: %% This program can be redistributed and/or modified under the terms @@ -11,21 +11,22 @@ %% SPDX-License-Identifier: LPPL-1.3c+ OR BSD-2-Clause \NeedsTeXFormat{LaTeX2e}\relax \ProvidesPackage{authorarchive} - [2022/04/25 v1.2.1 + [2023/02/10 v1.3.0 Self-archiving information for scientific publications.] % \PassOptionsToPackage{hyphens}{url} % \RequirePackage{ifthen} \RequirePackage[inline]{enumitem} -\RequirePackage{graphicx} +\RequirePackage{orcidlink} \RequirePackage{eso-pic} \RequirePackage{intopdf} \RequirePackage{kvoptions} \RequirePackage{hyperref} \RequirePackage{calc} \RequirePackage{qrcode} -\RequirePackage{hvlogos} +\RequirePackage{etoolbox} +\newrobustcmd\BibTeX{Bib\TeX} % %Better url breaking \g@addto@macro{\UrlBreaks}{\UrlOrds} @@ -80,31 +81,51 @@ } \ProcessKeyvalOptions* -% Provide command for dynamic configuration seutp -\def\authorsetup{\kvsetkeys{AA}} +\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 +% \def\authorsetup{\kvsetkeys{AA}} +\newcommand{\authorsetup}[1]{% + \kvsetkeys{AA}{#1} + \AA@defIncludeFiles + \AA@defIncludeSwitches +} % Load local configuration \InputIfFileExists{authorarchive.config}{}{} +% define proxy command for setting PDF attributes +\ExplSyntaxOn +\@ifundefined{pdfmanagement_add:nnn}{% + \newcommand{\AA@pdfpagesattribute}[2]{\pdfpagesattr{/#1 #2}}% + }{% + \newcommand{\AA@pdfpagesattribute}[2]{\pdfmanagement_add:nnn{Pages}{#1}{#2}}% + }% +\ExplSyntaxOff \newlength\AA@x \newlength\AA@y \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} @@ -148,8 +169,7 @@ %%%% LNCS \ifAA@LNCS% \ifAA@orcidicon% - \renewcommand{\orcidID}[1]{\href{https://orcid.org/#1}{% - \textsuperscript{\,\includegraphics[height=2\fontcharht\font`A]{vector_iD_icon}}}} + \renewcommand{\orcidID}[1]{\orcidlink{#1}} \else\relax\fi% % \ifthenelse{\equal{\AA@publisher}{UNKNOWN PUBLISHER}}{% @@ -157,23 +177,11 @@ }{} \renewcommand{\authorcrfont}{\scriptsize} \@ifclasswith{llncs}{a4paper}{% - \ExplSyntaxOn - \@ifundefined{pdfmanagement_add:nnn}{% - \pdfpagesattr{/CropBox [92 114 523 780]}% - }{% - \pdfmanagement_add:nnn {Pages}{CropBox}{[92~114~523~780]} - }% - \ExplSyntaxOff + \AA@pdfpagesattribute{CropBox}{[92 114 523 780]}% \renewcommand{\authorat}[1]{\put(\LenToUnit{\AA@x},40){#1}}% }{% - \ExplSyntaxOn - \@ifundefined{pdfmanagement_add:nnn}{% - \pdfpagesattr{/CropBox [92 65 523 731]}% LNCS page: 152x235 mm - }{% - \pdfmanagement_add:nnn {Pages}{CropBox}{[92~62~523~731]} - }% - \ExplSyntaxOff - \renewcommand{\authorat}[1]{\put(\LenToUnit{\AA@x},23){#1}} + \AA@pdfpagesattribute{CropBox}{[92 65 523 731]}% + \renewcommand{\authorat}[1]{\put(\LenToUnit{\AA@x},23){#1}}% } \setlength{\AA@width}{\textwidth} \setcounter{tocdepth}{2} @@ -186,7 +194,7 @@ }{} \renewcommand{\authorat}[1]{\put(\LenToUnit{\AA@x},35){#1}} \renewcommand{\authorcrfont}{\scriptsize} - \pdfpagesattr{/CropBox [70 65 526.378 748.15]} % TODO + \AA@pdfpagesattribute{CropBox}{[70 65 526.378 748.15]} \setlength{\AA@width}{\textwidth} \setcounter{tocdepth}{2} \fi @@ -218,8 +226,6 @@ draft = false, bookmarksopen = true, bookmarksnumbered= true, - pdfauthor = {\@author}, - pdftitle = {\@title}, } \@ifpackageloaded{totpages}{% @@ -305,26 +311,26 @@ \hfill \begin{itemize*}[label={}, itemjoin={,}] \IfFileExists{\AA@bibBibTeX}{% - \item \attachandlink{\AA@bibBibTeX}[application/x-bibtex]{BibTeX entry of this paper}{\BibTeX}% + \item \expanded{\attachandlink[\AA@key.bib]{\AA@bibBibTeX}[application/x-bibtex]{BibTeX entry of this paper}{\BibTeX}}% }{% \IfFileExists{\AA@bibBibTeXLong}{% - \item \attachandlink[\AA@key.bib]{\AA@bibBibTeXLong}[application/x-bibtex]{BibTeX entry of this paper}{\BibTeX}% + \item \expanded{\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}% + \item \expanded{\attachandlink[\AA@key.word.xml]{\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.}% }% \IfFileExists{\AA@bibEndnote}{% - \item \attachandlink{\AA@bibEndnote}[application/x-endnote-refer]{Endnote entry of this paper}{EndNote}% + \item \expanded{\attachandlink[\AA@key.enw]{\AA@bibEndnote}[application/x-endnote-refer]{Endnote entry of this paper}{EndNote}}% }{% \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}% + \item \expanded{\attachandlink[\AA@key.ris]{\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.}% }% -- cgit v1.2.3