diff options
author | Karl Berry <karl@freefriends.org> | 2017-05-05 22:48:32 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-05-05 22:48:32 +0000 |
commit | 4f2e3884f814d46f0bbdb3f072c235e945c49eab (patch) | |
tree | 5790f7bf30d314c8265a3e22c5cb1860c49ed8e1 /Master/texmf-dist/source/latex/lni | |
parent | f229d8b30d8bd919e4f818ccd47c64cdc1d5cd0c (diff) |
lni (5may17)
git-svn-id: svn://tug.org/texlive/trunk@44212 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/lni')
-rw-r--r-- | Master/texmf-dist/source/latex/lni/lni.dtx | 139 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/lni/lni.ins | 2 |
2 files changed, 113 insertions, 28 deletions
diff --git a/Master/texmf-dist/source/latex/lni/lni.dtx b/Master/texmf-dist/source/latex/lni/lni.dtx index c50c598947d..359137aa0cb 100644 --- a/Master/texmf-dist/source/latex/lni/lni.dtx +++ b/Master/texmf-dist/source/latex/lni/lni.dtx @@ -114,6 +114,7 @@ Martin Sievers. This work consists of the file lni.dtx lni.ins README.md + CHANGELOG.md and the derived files lni.pdf lni.cls lni-author-template.tex @@ -162,7 +163,7 @@ This work consists of the file lni.dtx %<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01] %<class>\ProvidesClass{lni} %<*class> - [2017/04/19 v1.1 Official class for submissions to the ``Lecture Notes + [2017/05/05 v1.2 Official class for submissions to the ``Lecture Notes in Informatics''] %</class> %<*driver> @@ -183,7 +184,8 @@ This work consists of the file lni.dtx \usepackage[final]{listings} \usepackage{csquotes} \usepackage[dvipsnames]{xcolor} -\newcommand*{\MiKTeX}{\textsf{MiK\TeX{}}} +\usepackage{hologo} +\newcommand*{\MiKTeX}{\hologo{MiKTeX}} \usepackage[% pdftitle={lni: Official LaTeX class for submissions to the ``Lecture Notes in Informatics'', published by the ``Gesellschaft für Informatik e.\,V.'' (GI)}, @@ -245,7 +247,8 @@ This work consists of the file lni.dtx language = [LaTeX]{TeX}, moretexcs = {, addbibresource,authorrunning,% - email,ExecuteBibliographyOptions,includegraphics,printbibliography, + email,lnidoi, + ExecuteBibliographyOptions,includegraphics,printbibliography, } frame = single, backgroundcolor = \color{yellow!60}, @@ -293,6 +296,10 @@ This work consists of the file lni.dtx % \changes{v1.1}{2017/04/12}{Changed spacing for \cs{subtitle}} % \changes{v1.1}{2017/04/18}{Added check for ngerman-x-latest patterns} % \changes{v1.1}{2017/04/19}{Added option \opt{crop}} +% \changes{v1.2}{2017/04/26}{Set option \opt{straighquotes} for \pkg{newtxtt} +% manually to gain compatibility with version prior to v1.05} +% \changes{v1.2}{2017/04/27}{Added \pkg{iftex} to check for pdflatex} +% \changes{v1.2}{2017/05/04}{Added (partial) support for XeTeX and LuaTeX} % % \GetFileInfo{\jobname.dtx} % \DoNotIndex{\newcommand,\newenvironment} @@ -357,6 +364,11 @@ This work consists of the file lni.dtx % distribution's package manager. Alternatively go to % \href{www.ctan.org}{CTAN} to download missing packages. % +% Please note, that the support of \hologo{XeLaTeX} and \hologo{LuaLaTeX} is +% only partial. For example the mono font is not the same. Moreover \hologo{pdfLaTeX} +% is a \TeX{} engine used by the publishers. Therefore it is strongly recommended +% to use \hologo{pdfLaTeX}. +% % \subsection{Options}\label{sec:options} % Although the class file includes all layout information for a submission to % the \LNI{}, there are options to adapt the output one way or another. @@ -462,6 +474,13 @@ This work consists of the file lni.dtx % In case the authors are too long for the page header, see % \cref{sec:pageheader} of how to shorten the authors for the page header. % +% \DescribeMacro{\lnidoi\space(new in v1.2)}% +% LNI provides a DOI for each paper. In case, the DOI is known, it can be +% specified using the \cs{lnidoi} macro. +% \begin{examplecode}[label={lst:lnidoi}] +% \lnidoi{18.18420/se2016_01} +% \end{examplecode} +% % Finally \cs{maketitle} will output the formatted title page. % % \subsection{Abstract and keywords} @@ -670,7 +689,7 @@ This work consists of the file lni.dtx \expandafter\ifx\@tempb\@gobble \let\@classoptionslist\@empty \fi} - +% \DeclareOption{latin1}{\PassOptionsToPackage{latin1}{inputenc}} \DeclareOption{utf8}{\PassOptionsToPackage{utf8}{inputenc}} \DeclareOption{ansinew}{\PassOptionsToPackage{ansinew}{inputenc}} @@ -692,38 +711,66 @@ This work consists of the file lni.dtx \ExecuteOptions{utf8} \DeclareOption*{\ClassWarning{Option `\CurrentOption` is not supported!}} \ProcessOptions\relax - -\RequirePackage{hyphsubst} -\HyphSubstIfExists{ngerman-x-latest}% - {\HyphSubstLet{ngerman}{ngerman-x-latest}% - \ClassInfo{lni}{Using latest German hyphenation patterns}}% - {\ClassWarning{lni}{Latest German hyphenation patterns could not be found!% - \MessageBreak If you write a German article you should check your% - installation}}% +% +\RequirePackage{iftex} +\ifPDFTeX + \RequirePackage{hyphsubst} + \HyphSubstIfExists{ngerman-x-latest}% + {\HyphSubstLet{ngerman}{ngerman-x-latest}% + \ClassInfo{lni}{Using latest German hyphenation patterns}}% + {\ClassWarning{lni}{Latest German hyphenation patterns could not be found!% + \MessageBreak If you write a German article you should check your% + installation}}% +\fi% \LoadClass[10pt,twoside,a4paper,fleqn]{article} -\RequirePackage{cmap} -\RequirePackage{inputenc} -\RequirePackage[T1]{fontenc} +\ifPDFTeX + \RequirePackage{cmap} + \RequirePackage{inputenc} + \RequirePackage[T1]{fontenc} +\fi% % \iflnienglish \RequirePackage[ngerman,english]{babel} \else \RequirePackage[english,ngerman]{babel} -\fi +\fi% % Hint by http://tex.stackexchange.com/a/321067/9075 -> enable "= as dashes \useshorthands*{"} \addto\extrasenglish{\languageshorthands{ngerman}} % \end{macrocode} % Define a modern variant of Times as the main font % \begin{macrocode} -\RequirePackage{newtxtext} -\RequirePackage{newtxmath} -\RequirePackage[zerostyle=b,straightquotes,scaled=.9]{newtxtt} -\RequirePackage[% - final,% - tracking=smallcaps,% - expansion=alltext,% - protrusion=alltext-nott]{microtype}% +\ifPDFTeX + \RequirePackage{newtxtext} + \RequirePackage{newtxmath} + \RequirePackage[zerostyle=b,scaled=.9]{newtxtt} +% \end{macrocode} +% For compatibility with version of \pkg{newtxtt} prior to v1.05 we set the +% option \opt{straightquotes} manually for recent versions +% \begin{macrocode} + \@ifpackagelater{newtxtt}{2014/11/18}% + {\txtt@upqtrue}% + {\ClassWarning{lni}{You are using an old version of `newtxtt'.\MessageBreak + Option `straightquotes' will not be used!}}% +% \end{macrocode} +% \begin{macrocode} +\else + \usepackage{newtxmath} + \usepackage[no-math]{fontspec} + \setmainfont[Ligatures=TeX]{TeXGyreTermesX} +\fi% +% \begin{macrocode} +\ifPDFTeX + \RequirePackage[% + final,% + tracking=smallcaps,% + expansion=alltext,% + protrusion=alltext-nott]{microtype}% +\else + \RequirePackage[% + final,% + protrusion=alltext-nott]{microtype}% +\fi% \SetTracking{encoding=*,shape=sc}{50}% % \end{macrocode} % Introduce \cs{powerset} - hint by \url{http://matheplanet.com/matheplanet/nuke/html/viewtopic.php?topic=136492&post_id=997377} @@ -741,8 +788,14 @@ This work consists of the file lni.dtx }{} \DeclareMathSymbol{\powerset}{\mathord}{MnSyC}{180} % \end{macrocode} +% Support for CC icons +\RequirePackage{ccicons} +% Support for \cs{ifdefempty} +\RequirePackage{etoolbox} % Satzspiegel % \begin{macrocode} +\newlength{\doihoffset} +\newlength{\doivoffset} \ifcrop \RequirePackage[ paperheight=23.5cm,paperwidth=15.5cm, @@ -783,6 +836,8 @@ This work consists of the file lni.dtx \hss }% }}% + \setlength{\doihoffset}{1.45cm} + \setlength{\doivoffset}{1.2cm} \else \RequirePackage[ total={12.6cm,19.2cm}, @@ -791,6 +846,8 @@ This work consists of the file lni.dtx headsep=.31cm, centering] {geometry} + \setlength{\doihoffset}{4.2cm} + \setlength{\doivoffset}{4.3cm} \fi% % \end{macrocode} % \begin{macrocode} @@ -822,6 +879,7 @@ This work consists of the file lni.dtx % \end{macrocode} % \begin{macrocode} \RequirePackage{graphicx} +\RequirePackage{eso-pic} \RequirePackage{grffile} \RequirePackage{fancyhdr} \RequirePackage{listings} @@ -885,6 +943,12 @@ This work consists of the file lni.dtx \newcommand*{\email}[1]{{\urlstyle{same}\protect\url{#1}}} % \end{macrocode} % \end{macro} +% \begin{macro}{\lnidoi} +% \begin{macrocode} +\newcommand{\@lnidoi}{} +\newcommand{\lnidoi}[1]{\gdef\@lnidoi{#1}} +% \end{macrocode} +% \end{macro} % Title: Kopie aus article.cls mit anderem \thispagestyle % \begin{macrocode} \renewcommand\maketitle{\par% @@ -934,10 +998,10 @@ This work consists of the file lni.dtx \vskip -24pt% Abstand vor dem Titel \raggedright % Linksbündig \let\footnote\thanks - {\fontsize{14}{17}\fontseries{b}\selectfont\@title\par}% + {\fontsize{14}{17}\selectfont\bfseries\@title\par}% \ifx\@subtitle\empty\else \vskip 16pt - {\fontsize{10}{12}\fontseries{b}\selectfont\@subtitle} + {\fontsize{10}{12}\selectfont\bfseries\@subtitle} \fi% \vskip 19pt% Abstand nach dem Titel {\fontsize{10}{12}\selectfont @@ -946,6 +1010,24 @@ This work consists of the file lni.dtx \par}% \vskip 28pt% Abstand vor dem Abstract \end{center}% +% output CC license and DOI (if it exists) + \AddToShipoutPictureBG*{\AtPageLowerLeft{% + \put(\LenToUnit{\the\doihoffset},\LenToUnit{\the\doivoffset}){% + \ifusehyperref + \href{https://creativecommons.org/licenses/by-nc/3.0/}{\ccbynceu} + \else + \ccbynceu + \fi + \ifdefempty{\@lnidoi}{}{ + \footnotesize + \ifusehyperref + \href{https://doi.org/\@lnidoi}{doi:\@lnidoi} + \else + doi:\@lnidoi + \fi% + } + } + }} \par }% % \end{macrocode} @@ -974,9 +1056,9 @@ This work consists of the file lni.dtx % Section headings % \begin{macrocode} \renewcommand{\section}{\@startsection{section}{1}{\z@}% - {-16\p@ \@plus -4\p@ \@minus -4\p@}{5\p@ \@plus 4\p@ \@minus 4\p@}{\fontsize{12}{14}\fontseries{b}\selectfont}} + {-16\p@ \@plus -4\p@ \@minus -4\p@}{5\p@ \@plus 4\p@ \@minus 4\p@}{\fontsize{12}{14}\selectfont\bfseries}} \renewcommand{\subsection}{\@startsection{subsection}{2}{\z@}% - {-16\p@ \@plus -4\p@ \@minus -4\p@}{8\p@ \@plus 4\p@ \@minus 4\p@}{\fontsize{10}{12}\fontseries{b}\selectfont}} + {-16\p@ \@plus -4\p@ \@minus -4\p@}{8\p@ \@plus 4\p@ \@minus 4\p@}{\fontsize{10}{12}\selectfont\bfseries}} % \end{macrocode} % Bildunterschriften % \begin{macrocode} @@ -2687,6 +2769,7 @@ Firstname2 Lastname2\footnote{University, Department, Address, Country \editor{Herausgeber et al.} % Names of Editors \booktitle{Name-der-Konferenz} % Name of book title \year{2017} +%%%\lnidoi{18.18420/provided-by-editor-02} % if known \maketitle \begin{abstract} diff --git a/Master/texmf-dist/source/latex/lni/lni.ins b/Master/texmf-dist/source/latex/lni/lni.ins index cd3230d749f..f32cb314523 100644 --- a/Master/texmf-dist/source/latex/lni/lni.ins +++ b/Master/texmf-dist/source/latex/lni/lni.ins @@ -74,6 +74,7 @@ Martin Sievers. This work consists of the file lni.dtx lni.ins README.md + CHANGELOG.md and the derived files lni.pdf lni.cls lni-author-template.tex @@ -111,6 +112,7 @@ This work consists of the file lni.dtx %% This work consists of the file lni.dtx %% lni.ins %% README.md +%% CHANGELOG.md %% and the derived files lni.pdf %% lni.cls %% lni-author-template.tex |