From 4c978c5e818cdf6473d81c5062f6bc2fa6889327 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Fri, 13 Apr 2018 08:46:19 +0200 Subject: [PATCH] Add support for a4paper class option at LNCS --- CHANGELOG.md | 1 + authorarchive.sty | 9 +++++++-- .../brucker-authorarchive-2016-llncs-a4.tex | 20 +++++++++++++++++++ 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 examples/brucker-authorarchive-2016-llncs-a4.tex diff --git a/CHANGELOG.md b/CHANGELOG.md index b191d4d..74fdc4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added - The links to the embedded files (references) are typeset at the bottom of the paper. +- Support for `a4paper` for LNCS papers. ### Changed - Updated LNCS output to the requirements of [Springer's Consent to Publish v3](http://resource-cms.springer.com/springer-cms/rest/v1/content/731196/data/v3). diff --git a/authorarchive.sty b/authorarchive.sty index 230d8b1..0489329 100644 --- a/authorarchive.sty +++ b/authorarchive.sty @@ -137,9 +137,14 @@ %%%% LNCS \ifAA@LNCS% \setkeys{AA}{publisher=Springer-Verlag} - \renewcommand{\authorat}[1]{\put(\LenToUnit{\AA@x},23){#1}} \renewcommand{\authorcrfont}{\scriptsize} - \pdfpagesattr{/CropBox [92 65 523 731]}% LNCS page: 152x235 mm + \@ifclasswith{llncs}{a4paper}{% + \pdfpagesattr{/CropBox [92 114 523 780]}% + \renewcommand{\authorat}[1]{\put(\LenToUnit{\AA@x},40){#1}}% + }{% + \pdfpagesattr{/CropBox [92 65 523 731]}% LNCS page: 152x235 mm + \renewcommand{\authorat}[1]{\put(\LenToUnit{\AA@x},23){#1}} + } \setlength{\AA@width}{\textwidth} \setcounter{tocdepth}{2} \fi diff --git a/examples/brucker-authorarchive-2016-llncs-a4.tex b/examples/brucker-authorarchive-2016-llncs-a4.tex new file mode 100644 index 0000000..bdffbef --- /dev/null +++ b/examples/brucker-authorarchive-2016-llncs-a4.tex @@ -0,0 +1,20 @@ +\documentclass[final, runningheads, USenglish, a4paper, pdftex]{llncs} +\usepackage[T1]{fontenc} +\usepackage[LNCS, + key=brucker-authorarchive-2016, + year=2016, + publication={Anonymous et al.\ (eds). Proceedings of the International + Conference on LaTeX-Hacks, LNCS~42. Some Publisher, 2016}, + startpage={42}, + 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} + +\input{input/body}