summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lni
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-01-15 22:21:16 +0000
committerKarl Berry <karl@freefriends.org>2018-01-15 22:21:16 +0000
commit3327506128837caae25f9a61112667de55078b85 (patch)
tree24246c6934a92c5e9a3ee020f13df75478e23e4d /Master/texmf-dist/tex/latex/lni
parent7e250440b6690a5eabcd76bf194e47493b401e1e (diff)
lni (15jan18)
git-svn-id: svn://tug.org/texlive/trunk@46322 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lni')
-rw-r--r--Master/texmf-dist/tex/latex/lni/lni.cls186
1 files changed, 117 insertions, 69 deletions
diff --git a/Master/texmf-dist/tex/latex/lni/lni.cls b/Master/texmf-dist/tex/latex/lni/lni.cls
index 82ff12ea9db..4ad94e8ddb1 100644
--- a/Master/texmf-dist/tex/latex/lni/lni.cls
+++ b/Master/texmf-dist/tex/latex/lni/lni.cls
@@ -5,16 +5,16 @@
%% The original source files were:
%%
%% lni.dtx (with options: `class')
-%% -------:| -----------------------------------------------------------------
+%% --------| -----------------------------------------------------------------
%% lni:| A class for submissions to the ``Lecture Notes in Informatics''
%% Author:| Martin Sievers
%% Email:| martin.sievers@schoenerpublizieren.de
%% License:| Released under the LaTeX Project Public License v1.3c or later
%% See:| http://www.latex-project.org/lppl.txt
-%%
+%% --------| -----------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{lni}
- [2017/05/15 v1.3 Official class for submissions to the ``Lecture Notes
+ [2018/01/15 v1.4 Official class for submissions to the ``Lecture Notes
in Informatics'']
\def\@clearglobaloption#1{%
\def\@tempa{#1}%
@@ -49,7 +49,12 @@
\DeclareOption{crop}{\croptrue}
\newif\ifnofonts
\nofontsfalse
-\DeclareOption{nofonts}{\nofontstrue}
+\DeclareOption{nofonts}{\nofontstrue\autofontsfalse}
+\newif\ifoldfonts
+\oldfontsfalse
+\DeclareOption{oldfonts}{\oldfontstrue\autofontsfalse}
+\newif\ifautofonts
+\autofontstrue
\ExecuteOptions{utf8}
\DeclareOption*{\ClassWarning{Option `\CurrentOption` is not supported!}}
\ProcessOptions\relax
@@ -76,35 +81,60 @@
\fi%
\useshorthands*{"}
\addto\extrasenglish{\languageshorthands{ngerman}}
-\ifnofonts
- \ClassWarning{lni}{Option `nofonts' set! I will use standard fonts
- \MessageBreak
- instead of the New TX fonts. Your document will NOT look like the
+\ifautofonts
+ \ClassInfo{lni}{*******************************************************}
\MessageBreak
- final result for publication. This should only be used if you have
- \MessageBreak
- no possibility to install fonts or upgrade your TeX installation!}%
-\else
+ \ClassInfo{lni}{Checking for fonts ...}
+ \ClassInfo{lni}{*******************************************************}
\ifPDFTeX
- \RequirePackage{newtxtext}
- \RequirePackage{newtxmath}
- \RequirePackage[zerostyle=b,scaled=.9]{newtxtt}
- \@ifpackagelater{newtxtt}{2014/11/18}%
- {\txtt@upqtrue}%
- {\ClassWarning{lni}{You are using an old version of
- `newtxtt'.\MessageBreak
- Option `straightquotes' will not be used!}}%
- \else
- \usepackage{newtxmath}
- \usepackage[no-math]{fontspec}
- \setmainfont{texgyretermes}[
- Extension = .otf,
- UprightFont = *-regular,
- BoldFont = *-bold,
- ItalicFont = *-italic,
- BoldItalicFont = *-bolditalic,
- Ligatures=TeX
- ]
+ \IfFileExists{newtxtext.sty}
+ {%
+ \RequirePackage{newtxtext}
+ \RequirePackage{newtxmath}
+ \RequirePackage[zerostyle=b,scaled=.9]{newtxtt}
+ \@ifpackagelater{newtxtt}{2014/11/18}%
+ {\txtt@upqtrue}%
+ {\ClassWarning{lni}{You are using an old version of
+ `newtxtt'.\MessageBreak
+ Option `straightquotes' will not be used!}}%
+ }%
+ {\IfFileExists{mathptmx.sty}
+ {\oldfontstrue}%
+ {\nofontstrue}%
+ }%
+ \else%
+ \IfFileExists{newtxmath.sty}
+ {\RequirePackage{newtxmath}}%
+ {}%
+ \RequirePackage[no-math]{fontspec}
+ \IfFontExistsTF{texgyretrmes-regular.otf}
+ {%
+ \setmainfont{texgyretermes}[
+ Extension = .otf,
+ UprightFont = *-regular,
+ BoldFont = *-bold,
+ ItalicFont = *-italic,
+ BoldItalicFont = *-bolditalic,
+ Ligatures=TeX
+ ]
+ }%
+ {\IfFileExists{mathptmx.sty}
+ {\oldfontstrue}%
+ {\nofontstrue}%
+ }%
+ \fi%
+\fi%
+\ifoldfonts
+ \RequirePackage{mathptmx}
+\else%
+ \ifnofonts % nofonts activated
+ \ClassWarning{lni}{Option `nofonts' set! I will use standard fonts
+ \MessageBreak
+ instead of the New TX fonts. Your document will NOT look like the
+ \MessageBreak
+ final result for publication. This should only be used if you have
+ \MessageBreak
+ no possibility to install fonts or upgrade your TeX installation!}%
\fi%
\fi%
\ifPDFTeX
@@ -188,6 +218,19 @@
\setlength{\doihoffset}{4.2cm}
\setlength{\doivoffset}{4.3cm}
\fi%
+\let\oldsmall\small%
+\renewcommand\small{%
+ \@setfontsize\small\@ixpt{10}%
+ \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
+ \abovedisplayshortskip \z@ \@plus2\p@
+ \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
+ \def\@listi{\leftmargin\leftmargini
+ \topsep 4\p@ \@plus2\p@ \@minus2\p@
+ \parsep 2\p@ \@plus\p@ \@minus\p@
+ \itemsep \parsep}%
+ \belowdisplayskip \abovedisplayskip
+}
+\renewcommand\Large{\@setfontsize\Large{14}{17}}
\RequirePackage[autostyle]{csquotes}
\ifusebiblatex
\RequirePackage[%
@@ -213,6 +256,12 @@
\RequirePackage{grffile}
\RequirePackage{fancyhdr}
\RequirePackage{listings}
+\lstset{%
+ basicstyle=\ttfamily,%
+ columns=fixed,%
+ basewidth=.5em,%
+ xleftmargin=0.5cm,%
+ captionpos=b}%
\def\thisbottomragged{\def\@textbottom{\vskip\z@ plus.0001fil
\global\let\@textbottom\relax}}
\renewcommand\@pnumwidth{3em}
@@ -243,7 +292,7 @@
\def\@@author[#1]#2{\gdef\@shortauthor{{\let\footnote\@gobble%
\def\and{\unskip,\ }#1}}\gdef\@author{#2}}
\newcommand{\authorrunning}[1]{%
- \fancyhead[LE]{\hspace{0.05cm}\small\thepage\hspace{5pt}#1}}
+ \fancyhead[LE]{\hspace{0.05cm}\oldsmall\thepage\hspace{5pt}#1}}
\newcommand*{\email}[1]{{\urlstyle{same}\protect\url{#1}}}
\newcommand{\@lnidoi}{}
\newcommand{\lnidoi}[1]{\gdef\@lnidoi{#1}}
@@ -292,13 +341,13 @@
\vskip -24pt% Abstand vor dem Titel
\raggedright % Linksbündig
\let\footnote\thanks
- {\fontsize{14}{17}\selectfont\bfseries\@title\par}%
+ {\Large\bfseries\@title\par}%
\ifx\@subtitle\empty\else
\vskip 16pt
- {\fontsize{10}{12}\selectfont\bfseries\@subtitle}
+ {\normalsize\bfseries\@subtitle}
\fi%
\vskip 19pt% Abstand nach dem Titel
- {\fontsize{10}{12}\selectfont
+ {\normalsize%
\lineskip .5em%
\@author
\par}%
@@ -307,9 +356,9 @@
\AddToShipoutPictureBG*{\AtPageLowerLeft{%
\put(\LenToUnit{\the\doihoffset},\LenToUnit{\the\doivoffset}){%
\ifusehyperref
- \href{https://creativecommons.org/licenses/by-nc/3.0/}{\ccbynceu}
+ \href{https://creativecommons.org/licenses/by-sa/4.0/}{\ccbysa}
\else
- \ccbynceu
+ \ccbysa
\fi
\ifdefempty{\@lnidoi}{}{
\footnotesize
@@ -324,13 +373,12 @@
\par
}%
\renewenvironment*{abstract}{%
- \renewcommand{\abstractname}{Abstract}
- \fontsize{9}{10}\selectfont
- \noindent\ignorespaces{\bfseries\abstractname:\ }%
+ \renewcommand{\abstractname}{Abstract}%
+ \small\noindent\ignorespaces{\bfseries\abstractname:\ }%
}{\endquotation}
\newif\ifkeywords
\newenvironment{keywords}%
- {\global\keywordstrue\fontsize{9}{10}\selectfont%
+ {\global\keywordstrue\small%
\def\and{\unskip;\space}%
\noindent\ignorespaces{\bfseries Keywords:\ }}%
{\global\keywordsfalse}
@@ -338,23 +386,17 @@
\pretocmd\@startsection{\ifkeywords\ClassError{lni}{keywords is an environment, not a macro}%
{Please change \string\keywords\space to an environment}\keywordsfalse\fi}{}{}
\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}\selectfont\bfseries}}
+ {-16\p@ \@plus -4\p@ \@minus -4\p@}{5\p@ \@plus 4\p@ \@minus
+ 4\p@}{\large\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}\selectfont\bfseries}}
-\setlength{\abovecaptionskip}{4pt}%Abstand vor der Bildunterschrift
-\setlength{\belowcaptionskip}{0pt}%Abstand nach der Bildunterschrift
+ {-16\p@ \@plus -4\p@ \@minus -4\p@}{8\p@ \@plus 4\p@ \@minus
+ 4\p@}{\normalsize\bfseries}}
+\RequirePackage{caption}
+\DeclareCaptionFont{oldsmall}{\oldsmall}
+\captionsetup[figure]{style=base,skip=4pt,font=oldsmall}
+\captionsetup[table]{style=base,skip=6pt,font=oldsmall}
+\captionsetup[lstlisting]{style=base,skip=6pt,font=small}
\setlength{\intextsep}{6pt}%Abstand nach der Grafik
-\long\def\@makecaption#1#2{%
- \vskip\abovecaptionskip
- {\small
- \sbox\@tempboxa{#1: #2}%
- \ifdim \wd\@tempboxa >\hsize
- #1: #2\par
- \else
- \global \@minipagefalse
- \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
- \fi}
- \vskip\belowcaptionskip}
\def\fps@figure{htbp}
\def\fnum@figure{\figurename~\thefigure}
\def\@floatboxreset{%
@@ -369,17 +411,7 @@
\renewcommand{\bottomfraction}{1.0}% Anteil den gleitende Objekte am Seitenende einnehmen dürfen
\def\fps@table{htbp}
\def\fnum@table{\tablename~\thetable}
-\renewcommand{\arraystretch}{1.1}%Abstand zu Linien in Tabelle
-\renewenvironment{table}
- {\setlength\abovecaptionskip{6\p@}%
- \setlength\belowcaptionskip{0\p@}%
- \@float{table}}%
- {\end@float}%
-\renewenvironment{table*}
- {\setlength\abovecaptionskip{6\p@}%
- \setlength\belowcaptionskip{0\p@}%
- \@dblfloat{table}}%
- {\end@dblfloat}%
+\renewcommand{\arraystretch}{1.1}
\setlength{\mathindent}{0.5cm}
\RequirePackage{verbatim}
\def\verbatim@processline{\hskip0.5cm\the\verbatim@line\par}
@@ -470,6 +502,7 @@
\renewcommand{\headrulewidth}{0.4pt} %Linie unter Kopfzeile
\RequirePackage{url}
\g@addto@macro{\UrlBreaks}{\UrlOrds}
+\RequirePackage{xspace}
\ifusehyperref
\RequirePackage[pdfusetitle]{hyperref}
\hypersetup{%
@@ -506,10 +539,23 @@
\bibliographystyle{lnig}%
\fi%
\fi%
+\newcommand*{\lni@abbrv}[1]{#1\@\xspace}
+\newcommand*{\lniabbrv}[2]{\gdef#1{\lni@abbrv{#2}}}
+\newcommand*{\lni@initialism}[1]{\textsc{#1}\xspace}
+\newcommand*{\lniinitialism}[2]{\gdef#1{\lni@initialism{#2}}}
+\newcommand*{\ie}{\lni@abbrv{i.\,e.}}
+\newcommand*{\eg}{\lni@abbrv{e.\,g.}}
+\newcommand*{\cf}{\lni@abbrv{cf.}}
+\newcommand*{\etal}{\lni@abbrv{et~al.}}
+\newcommand*{\OMG}{\lni@initialism{omg}}
+\newcommand*{\BPM}{\lni@initialism{bpm}}
+\newcommand*{\BPMN}{\lni@initialism{bpmn}}
+\newcommand*{\BPEL}{\lni@initialism{bpel}}
+\newcommand*{\UML}{\lni@initialism{uml}}
\renewenvironment{thebibliography}[1]
{\iflnienglish\selectlanguage{english}\else\selectlanguage{ngerman}\fi
\section*{\refname}%
- \bgroup\fontsize{9}{10}\selectfont
+ \bgroup\small%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
@@ -539,7 +585,7 @@
\vfuzz \hfuzz
\raggedbottom
%%
-%% Copyright (C) 2016-2017 by Gesellschaft für Informatik e.V. (GI)
+%% Copyright (C) 2016-2018 by Gesellschaft für Informatik e.V. (GI)
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License (LPPL), either
@@ -558,6 +604,8 @@
%% and the derived files lni.pdf
%% lni.cls
%% lni-author-template.tex
+%% lni-paper-example-de.bib
+%% lni-paper-example-de.tex
%% lni.bst
%% lnig.bst
%%