summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/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/source/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/source/latex/lni')
-rw-r--r--Master/texmf-dist/source/latex/lni/lni.dtx658
-rw-r--r--Master/texmf-dist/source/latex/lni/lni.ins73
2 files changed, 537 insertions, 194 deletions
diff --git a/Master/texmf-dist/source/latex/lni/lni.dtx b/Master/texmf-dist/source/latex/lni/lni.dtx
index b47219ed198..03fb51ba2c3 100644
--- a/Master/texmf-dist/source/latex/lni/lni.dtx
+++ b/Master/texmf-dist/source/latex/lni/lni.dtx
@@ -14,92 +14,53 @@
\keepsilent
\askforoverwritefalse
\declarepreamble\bibtexengpre
-%%
-%% lnig.bst
-%% Lecture Notes in Informatics Style File (english)
-%% Version 1.0 (2017/04/07)
-%%
-%%
-%% The Style File is based on alpha.bst
-%%
-%% This work may be freely used,
-%% distributed and modified.
-%% Modified files should be clearly indicated as such and renamed.
-%%
-%%***************************************************
-% Changelog:
-%
-% 1.0 (07.04.17), Martin Sievers
-% - Revised version
-%
-% (17.12.14), Judith Michael, Alpen-Adria-Universität Klagenfurt, Austria
-% Changes:
-% - Last Name before the prename
-% - ; between Autors
-% - : before title
-% - Lable: Abbreviation of name of first author instead of + (former: A+09 or WFEL14, now Az09 and Wa14)
-% - Lable: Use first 2 letters of title if there is no author
-% - add : after In (functions inproceedings and inbook)
-% - no emphasize of titles
-% - editors in bracelets ()
-% - correct order of reference infos
-% - correct signs (.,:()) between reference infos
-% - Add second prename
-% - change order of series (not: "number" in "series", now "series" "number"
-%
-%%***************************************************
-%
+lnig.bst
+Lecture Notes in Informatics Style File (english)
+Version 1.0 (2017/04/07)
+
+The Style File is based on alpha.bst
+
+This work may be freely used,
+distributed and modified.
+Modified files should be clearly indicated as such and renamed.
\endpreamble
\declarepreamble\bibtexgerpre
-%%
-%% lnig.bst
-%% Lecture Notes in Informatics Style File (german)
-%% Version 1.0 (2017/04/07)
-%%
-%% The Style File is based on alpha.bst
-%%
-%% This work may be freely used,
-%% distributed and modified.
-%% Modified files should be clearly indicated as such and renamed.
-%%
-%%***************************************************
-% Changelog:
-%
-% 1.0 (07.04.17), Martin Sievers
-% - Revised version
-%
-% (17.12.14), Judith Michael, Alpen-Adria-Universität Klagenfurt, Austria
-% Changes:
-% - Last Name before the prename
-% - ; between Autors
-% - : before title
-% - Lable: Abbreviation of name of first author instead of + (former: A+09 or WFEL14, now Az09 and Wa14)
-% - Lable: Use first 2 letters of title if there is no author
-% - add : after In (functions inproceedings and inbook)
-% - no emphasize of titles
-% - editors in bracelets ()
-% - correct order of reference infos
-% - correct signs (.,:()) between reference infos
-% - Add second prename
-% - change order of series (not: "number" in "series", now "series" "number"
-%
-%%***************************************************
-%
+lnig.bst
+Lecture Notes in Informatics Style File (german)
+Version 1.0 (2017/04/07)
+
+The Style File is based on alpha.bst
+
+This work may be freely used,
+distributed and modified.
+Modified files should be clearly indicated as such and renamed.
\endpreamble
\declarepreamble\classpre
--------:| -----------------------------------------------------------------
+--------| -----------------------------------------------------------------
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
-
+--------| -----------------------------------------------------------------
\endpreamble
+
+\def\templatepre{%
+\perCent\space !TeX encoding = UTF-8^^J%
+\perCent\space !TeX program = pdflatex^^J%
+\perCent\space !BIB program = bibtex^^J%
+}
+
+\def\templatepreger{%
+\perCent\space !TeX encoding = UTF-8^^J%
+\perCent\space !TeX spellcheck = de_DE^^J%
+}
+
\postamble
-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
@@ -118,6 +79,8 @@ This work consists of the file lni.dtx
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
\endpostamble
@@ -146,8 +109,16 @@ This work consists of the file lni.dtx
\nopreamble\nopostamble
\usedir{doc/latex/lni}
\generate{
+ \usepreamble\templatepre
\file{lni-author-template.tex}{\from{\jobname.dtx}{template}}
}
+\generate{
+ \file{lni-paper-example-de.bib}{\from{\jobname.dtx}{exampledebib}}
+}
+\generate{
+ \usepreamble\templatepreger
+ \file{lni-paper-example-de.tex}{\from{\jobname.dtx}{exampledetex}}
+}
\ifx\fmtname\nameofplainTeX
\expandafter\endbatchfile
\else
@@ -163,7 +134,7 @@ This work consists of the file lni.dtx
%<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<class>\ProvidesClass{lni}
%<*class>
- [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'']
%</class>
%<*driver>
@@ -189,9 +160,9 @@ This work consists of the file lni.dtx
\usepackage[%
pdftitle={lni: Official LaTeX class for submissions to the ``Lecture Notes in
Informatics'', published by the ``Gesellschaft für Informatik e.\,V.'' (GI)},
- pdfauthor={Martin Sievers},
- urlcolor=blue,%
- linktocpage,%
+ pdfauthor={Martin Sievers},
+ urlcolor=blue,%
+ linktoc=both,%
colorlinks=true]{hyperref}
\usepackage[nameinlink,capitalise]{cleveref}
@@ -303,6 +274,17 @@ This work consists of the file lni.dtx
% \changes{v1.3}{2017/05/04}{Added option \opt{nofonts} to suppress font
% loading completely}
% \changes{v1.3}{2017/05/08}{Changed syntax for \pkg{fontspec}}
+% \changes{v1.4}{2017/05/27}{Added new macros taken from the EMISA class file}
+% \changes{v1.4}{2017/05/27}{Added option \opt{oldfonts} to use a font package
+% available}
+% \changes{v1.4}{2017/07/26}{Added package \pkg{caption} and changed all
+% \cs{fontsize} calls to nativ \LaTeX{} macros}
+% \changes{v1.4}{2017/09/11}{Fixed basewidth for \env{lstlistings}}
+% \changes{v1.4}{2017/09/29}{Fixed font size for \cs{Large}}
+% \changes{v1.4}{2017/11/08}{Added full example for an article in German}
+% \changes{v1.4}{2017/11/08}{Adapting captions of \env{lstlistings}}
+% \changes{v1.4}{2017/11/08}{Fix font size bug regarding the running header
+% and the captions: \cs{small} was redefined, so we need an \cs{oldsmall} here}
%
% \GetFileInfo{\jobname.dtx}
% \DoNotIndex{\newcommand,\newenvironment}
@@ -310,7 +292,8 @@ This work consists of the file lni.dtx
% \title{\textsf{lni} -- Official class for submissions to the\\%
% ``Lecture Notes in Informatics''\thanks{This file describes version
% \fileversion, last revised \filedate.}}
-% \author{Martin Sievers\setcounter{footnote}{6}\thanks{Email: martin.sievers@schoenerpublizieren.de}}
+% \author{Martin Sievers\setcounter{footnote}{6}\thanks{Email:
+% martin.sievers@schoenerpublizieren.de}}
% \date{Released \filedate}
%
% \maketitle
@@ -346,7 +329,7 @@ This work consists of the file lni.dtx
% The \lni{} bundle is currently distributed via
% \href{https://github.com/gi-ev/LNI}{GitHub}, the
% \href{https://www.gi.de/service/publikationen/lni/autorenrichtlinien.html}
-% {GI website} and (preferably) \href{https://www.ctan.org}{CTAN}.
+% {GI website} and (preferably) \href{https://www.ctan.org/pkg/lni}{CTAN}.
% The later is the basis for all updates of the two main \TeX{} distributions
% \MiKTeX{} and \TeX{}~Live. Thus the easiest way to get all files needed to
% typeset an article for the \LNI{} is to use the package manager of your
@@ -365,7 +348,7 @@ This work consists of the file lni.dtx
% distributions. Therefore, if you are confronted
% with a missing package, please try to download and install it using your
% distribution's package manager. Alternatively go to
-% \href{www.ctan.org}{CTAN} to download missing packages.
+% \href{http://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}
@@ -413,14 +396,22 @@ This work consists of the file lni.dtx
% used with all floating objects. The package is loaded as default. In case it
% causes issues, one can disable it using with the \opt{nocleveref} option.
%
-% \DescribeOption{nohyperref}\pkg{hyperref} is used for colored hyperlink
+% \DescribeOption{nohyperref}\pkg{hyperref} is used for colored hyperlinks
% within the articles. If you consider problems or just do not want that
% feature, you can disable it by using the option \opt{nohyperref}.
%
-% \DescribeOption{nofonts\space(new in v1.3)}On older systems you might not
-% have installed the New TX fonts. Therefore option \opt{nofonts} allows to
+% \DescribeOption{nofonts\space(new in v1.3, deprecated in v1.4)}On old systems you might not
+% have installed the New TX fonts. If for whatever reason the \opt{oldfonts} option
+% does not work for you, you can activate option \opt{nofonts}. This allows to
% suppress font loading completely using the engines standard fonts instead.
-% Please note, that your output will differ from the publishers'.
+% Usually there should be no need to do so. Please note, that your output will differ
+% from the publishers'.
+%
+% \DescribeOption{oldfonts\space(new in v1.4)}On older systems you might not
+% have installed the New TX fonts. Therefore option \opt{oldfonts} allows to
+% to load the package \pkg{mathptmx} instead of the New TX fonts. The output will
+% be in accordance to (or at least near) the publisher's requirements.
+%
% \newpage
% \section{Setting up a document}
% You can use the file \file{lni-author-template.tex} as a starting point
@@ -439,7 +430,7 @@ This work consists of the file lni.dtx
% % !TeX program = pdflatex
% % !BIB program = bibtex8
% % !TeX encoding = UTF-8
-% % !TeX spellcheck = en_GB
+% !TeX spellcheck = de_DE
% \documentclass[english]{lni}
% \end{examplecode}
%
@@ -495,8 +486,9 @@ This work consists of the file lni.dtx
% \subsection{Abstract and keywords}
% \DescribeEnv{abstract}\DescribeEnv{keywords}%
% \DescribeMacro{\and\space(new in v1.1)}%
-% Each article should start with a short abstract and some keywords. Please use
-% the environments \env{abstract} and \env{keywords} for that purpose:
+% Each article should start with a short (70 to 150 words) abstract and some
+% keywords. Please use the environments \env{abstract} and \env{keywords} for
+% that purpose:
% \begin{examplecode}
% \begin{abstract}
% Tell the reader what your article is about
@@ -592,11 +584,34 @@ This work consists of the file lni.dtx
% specific programming language.
%
% \subsubsection{Math}
-% If you need mathematics, you can load \pkg{amsmath} and \pkg{mathtools} for
+% If you need mathematics, you can load packages \pkg{amsmath} and \pkg{mathtools} for
% additional features. The \lni{} class offers by default the command
% \cs{powerset} to render the powerset symbol correctly as $\powerset$ and not
% as Weierstrass p ($\wp$).
%
+% \subsubsection{Abbreviations and initialisms}
+% \DescribeMacro{\eg}\DescribeMacro{\ie}\DescribeMacro{\cf}\DescribeMacro{\etal}%
+% To achieve consistent typesetting of common abbreviations, macros are predefined by the class. These macros should \emph{consistently} being used instead of writing the plain version. For example use \verb|\eg| rather than {\verb|e.g.,|}. The macros take care of spacing within and after the abbreviations.
+% \begin{itemize}
+% \item \cs{eg} for e.\,g.
+% \item \cs{ie} for i.\,e.
+% \item \cs{cf} for cf.
+% \item \cs{etal} for et~al.
+% \end{itemize}
+%
+% \DescribeMacro{\OMG}\DescribeMacro{\BPM}\DescribeMacro{\BPMN}\DescribeMacro{\UML}%
+% In addition to common abbreviations, further initialisms are provided by the class for convenience and for a consistent visual appearance. Note that the class uses \textsc{smallcaps} for typesetting initialisms. The list of predefined initialisms comprises:
+%
+% \begin{itemize}
+% \item \cs{OMG} for \textsc{omg} (Object Management Group).
+% \item \cs{BPM} for \textsc{bpm} (Business Process Management).
+% \item \cs{BPMN} for \textsc{bpmn} (Business Process Model and Notation).
+% \item \cs{BPEL} for \textsc{bpel} (Business Process Execution Language).
+% \item \cs{UML} for \textsc{uml} (Unified Modelling Language).
+% \end{itemize}
+%
+% \DescribeMacro{\lniinitialism} You can add your own initialisms by stating \cs{lniinitialism\marg{\textbackslash initialism\_macro}\marg{text}} in the preamble.
+%
% \subsection{Bibliography}\label{sec:bibliography}
% \enlargethispage{\baselineskip}The old \lni{} class file only supports \BibTeX{} with bst files for German
% and English submissions resp. If you want to use this approach for your
@@ -635,7 +650,6 @@ This work consists of the file lni.dtx
% \end{document}
% \end{examplecode}
%
-% \newpage
% \section{Trouble shooting}
% This section lists the most common issues when using this template. For more
% help, please head to
@@ -661,7 +675,7 @@ This work consists of the file lni.dtx
% just clean up (remove \texttt{paper.aux}) and recompile.
% \item If the compiler error is\\
% \texttt{!Package xkeyval Error: 'family\_i'
-% undefined in families blx@opt@namepart'.},\\
+% undefined in families blx@opt@name}\\\texttt{part'.},\\
% it is an indicator that you
% switched from \BibTeX{} to \pkg{biblatex}. Clean up (remove
% \texttt{paper.bbl}) and recompile.
@@ -672,7 +686,7 @@ This work consists of the file lni.dtx
%
% \section{Bugs and feature request}
% If you find a bug or have a feature request, please open an ``issue'' at the
-% \href{https://github.com/sieversMartin/LNI/issues}{GitHub website}.
+% \href{https://github.com/gi-ev/LNI/issues}{GitHub website}.
%
% \StopEventually{^^A
% \PrintChanges
@@ -719,7 +733,12 @@ This work consists of the file lni.dtx
\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
@@ -752,42 +771,69 @@ This work consists of the file lni.dtx
% \end{macrocode}
% Define a modern variant of Times as the main font
% \begin{macrocode}
-\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
- \MessageBreak
- final result for publication. This should only be used if you have
+\ifautofonts
+ \ClassInfo{lni}{*******************************************************}
\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}
+ \IfFileExists{newtxtext.sty}
+ {%
+ \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}
+ \@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}
+ }%
+ {\IfFileExists{mathptmx.sty}
+ {\oldfontstrue}%
+ {\nofontstrue}%
+ }%
+% \end{macrocode}
% for \hologo{XeTeX} or \hologo{LuaTeX} we use \pkg{fontspec}
% \begin{macrocode}
- \else
- \usepackage{newtxmath}
- \usepackage[no-math]{fontspec}
- \setmainfont{texgyretermes}[
- Extension = .otf,
- UprightFont = *-regular,
- BoldFont = *-bold,
- ItalicFont = *-italic,
- BoldItalicFont = *-bolditalic,
- Ligatures=TeX
- ]
+ \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%
% \begin{macrocode}
@@ -881,6 +927,23 @@ This work consists of the file lni.dtx
\setlength{\doivoffset}{4.3cm}
\fi%
% \end{macrocode}
+% We change \cs{small} and \cs{Large} to get the correct baseline skips and add
+% an \cs{oldsmall}
+% \begin{macrocode}
+\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}}
+% \end{macrocode}
% \begin{macrocode}
\RequirePackage[autostyle]{csquotes}
\ifusebiblatex
@@ -915,6 +978,19 @@ This work consists of the file lni.dtx
\RequirePackage{fancyhdr}
\RequirePackage{listings}
% \end{macrocode}
+% We fix the basewidth for lstlistings:
+% The default setting of listings with ``fixed columns'' has a space 0.6em
+% wide, while the characters in TX Typewriter (as in Computer Modern
+% Typewriter) are 0.5em wide.
+% Source: https://tex.stackexchange.com/a/179072/9075
+% \begin{macrocode}
+\lstset{%
+ basicstyle=\ttfamily,%
+ columns=fixed,%
+ basewidth=.5em,%
+ xleftmargin=0.5cm,%
+ captionpos=b}%
+% \end{macrocode}
% Ragged bottom -- verhindert die Ausdehnung der Seite = Veränderung der
% Abstände
% \begin{macrocode}
@@ -966,7 +1042,7 @@ This work consists of the file lni.dtx
% \begin{macro}{\authorrunning}
% \begin{macrocode}
\newcommand{\authorrunning}[1]{%
- \fancyhead[LE]{\hspace{0.05cm}\small\thepage\hspace{5pt}#1}}
+ \fancyhead[LE]{\hspace{0.05cm}\oldsmall\thepage\hspace{5pt}#1}}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\email}
@@ -1029,13 +1105,13 @@ This work consists of the file lni.dtx
\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}%
@@ -1045,9 +1121,9 @@ This work consists of the file lni.dtx
\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
@@ -1065,9 +1141,8 @@ This work consists of the file lni.dtx
% \begin{environment}{abstract}
% \begin{macrocode}
\renewenvironment*{abstract}{%
- \renewcommand{\abstractname}{Abstract}
- \fontsize{9}{10}\selectfont
- \noindent\ignorespaces{\bfseries\abstractname:\ }%
+ \renewcommand{\abstractname}{Abstract}%
+ \small\noindent\ignorespaces{\bfseries\abstractname:\ }%
}{\endquotation}
% \end{macrocode}
% \end{environment}
@@ -1075,7 +1150,7 @@ This work consists of the file lni.dtx
% \begin{macrocode}
\newif\ifkeywords
\newenvironment{keywords}%
- {\global\keywordstrue\fontsize{9}{10}\selectfont%
+ {\global\keywordstrue\small%
\def\and{\unskip;\space}%
\noindent\ignorespaces{\bfseries Keywords:\ }}%
{\global\keywordsfalse}
@@ -1087,26 +1162,20 @@ 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}\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}}
+ {-16\p@ \@plus -4\p@ \@minus -4\p@}{8\p@ \@plus 4\p@ \@minus
+ 4\p@}{\normalsize\bfseries}}
% \end{macrocode}
% Bildunterschriften
% \begin{macrocode}
-\setlength{\abovecaptionskip}{4pt}%Abstand vor der Bildunterschrift
-\setlength{\belowcaptionskip}{0pt}%Abstand nach der Bildunterschrift
+\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}
% \end{macrocode}
% Take care of floats
% \begin{macrocode}
@@ -1127,17 +1196,7 @@ This work consists of the file lni.dtx
% \begin{macrocode}
\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}
% \end{macrocode}
% Indention for equations with fleqn option
% \begin{macrocode}
@@ -1277,6 +1336,9 @@ This work consists of the file lni.dtx
\g@addto@macro{\UrlBreaks}{\UrlOrds}
% \end{macrocode}
% \begin{macrocode}
+\RequirePackage{xspace}
+% \end{macrocode}
+% \begin{macrocode}
\ifusehyperref
\RequirePackage[pdfusetitle]{hyperref}
\hypersetup{%
@@ -1322,13 +1384,26 @@ This work consists of the file lni.dtx
\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}}
% \end{macrocode}
% bibliography
% \begin{macrocode}
\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
@@ -2772,10 +2847,6 @@ EXECUTE {end.bib}
%</eng|ger>
%</bibtex>
%<*template>
-%% !TeX encoding = UTF-8
-%% !TeX program = pdflatex
-%% !BIB program = bibtex
-%%
%%% Um einen Artikel auf deutsch zu schreiben, genügt es die Klasse ohne
%%% Parameter zu laden.
\documentclass[]{lni}
@@ -2804,7 +2875,8 @@ Firstname2 Lastname2\footnote{University, Department, Address, Country
\maketitle
\begin{abstract}
-Zusammenfassung / Some abstract
+This is a brief overview of the paper, which should be 70 to 150 words long and
+include the most relevant points. This has to be a single paragraph.
\end{abstract}
\begin{keywords}
Schlagwort1 \and Schlagwort2 %Keyword1 \and Keyword2
@@ -2816,5 +2888,269 @@ Schlagwort1 \and Schlagwort2 %Keyword1 \and Keyword2
\bibliography{mybibfile} %\printbibliography if you use biblatex/Biber
\end{document}
%</template>
+%<*exampledebib>
+% Encoding: UTF-8
+
+@InProceedings{ABC01,
+ author = {N. Abraham and U. Bibel and P. Corleone},
+ title = {Formatting Contributions for Proceedings},
+ pages = {46-53},
+ crossref = {Gl01},
+}
+
+@InBook{Az09,
+ pages = {135-162},
+ title = {Die Fußnote in LNI-Bänden},
+ author = {Azubi, L. and others},
+ crossref = {Gl09},
+}
+
+@Book{AB00,
+ title = {Formatierungsrichtlinien für Tagungsbände},
+ publisher = {Format-Verlag},
+ year = {2000},
+ author = {K. Abel and U. Bibel},
+ address = {Bonn},
+}
+
+@Book{Ez10,
+ title = {The Magic Format -- Your Way to Pretty Books},
+ publisher = {Noah \& Sons},
+ year = {2010},
+ author = {O. Ezgarani},
+}
+
+@Article{Gl06,
+ author = {H. I. Glück},
+ title = {Formatierung leicht gemacht},
+ journal = {Formatierungsjournal},
+ volume = {11},
+ number = {09},
+ year = {2009},
+ pages = {23-27},
+}
+
+@Book{Wa14,
+ title = {Essenzen der Informatik},
+ publisher = {Verlag Formvoll},
+ year = {2014},
+ author = {K. Wasser and H. Feuer and R. Erde and H. Licht},
+}
+
+@Book{Wa14b,
+ title = {Ganz neue Essenzen der Informatik im selben Jahr},
+ publisher = {Format-Verlag},
+ year = {2014},
+ author = {K. Wasser and H. Feuer and R. Erde and H. Licht},
+}
+
+@Proceedings{Gl01,
+ title = {Proc. 7th Int. Conf. on Formatting of Workshop-Proceedings},
+ year = {2001},
+ editor = {Glück, H. I.},
+ address = {San Francisco},
+ publisher = {Noah \& Sons},
+ booktitle = {Proc. 7th Int. Conf. on Formatting of Workshop-Proceedings},
+}
+
+@Book{Gl09,
+ title = {Formatierung 2009},
+ publisher = {Format-Verlag},
+ year = {2009},
+ editor = {H. I. Glück},
+ number = {999},
+ series = {LNI},
+ address = {Bonn},
+ booktitle = {Formatierung 2009},
+}
+
+@Misc{XX14,
+ title = {Anteil an Frauen in der Informatik},
+ label = {An},
+ howpublished = {Statistics Worldwide},
+ year = {2014},
+}
+
+@Online{GI14,
+ author = {{Gesellschaft für Informatik e.\,V.}},
+ label = {GI},
+ year = {2014},
+ url = {http://www.gi-ev.de},
+ urldate = {2014-12-24}
+}
+
+@Comment{jabref-meta: databaseType:biblatex;}
+%</exampledebib>
+%<*exampledetex>
+%% Dies gibt Warnungen aus, sollten veraltete LaTeX-Befehle verwendet werden
+\RequirePackage[l2tabu, orthodox]{nag}
+
+\documentclass[utf8,biblatex]{lni}
+\bibliography{lni-paper-example-de}
+
+%% Schöne Tabellen mittels \toprule, \midrule, \bottomrule
+\usepackage{booktabs}
+
+%% Zu Demonstrationszwecken
+\usepackage[math]{blindtext}
+\usepackage{mwe}
+
+%% BibLaTeX-Sonderkonfiguration,
+%% falls man schnell eine existierende Bibliographie wiederverwenden will, aber nicht die .bib-Datei händisch anpassen möchte.
+%% Bitte \iffalse und \fi entfernen, dann ist diese Konfiguration aktiviert.
+
+\iffalse
+\AtEveryBibitem{%
+ \ifentrytype{article}{%
+ }{%
+ \clearfield{doi}%
+ \clearfield{issn}%
+ \clearfield{url}%
+ \clearfield{urldate}%
+ }%
+ \ifentrytype{inproceedings}{%
+ }{%
+ \clearfield{doi}%
+ \clearfield{issn}%
+ \clearfield{url}%
+ \clearfield{urldate}%
+ }%
+}
+\fi
+
+\begin{document}
+%%% Mehrere Autoren werden durch \and voneinander getrennt.
+%%% Die Fußnote enthält die Adresse sowie eine E-Mail-Adresse.
+%%% Das optionale Argument (sofern angegeben) wird für die Kopfzeile verwendet.
+\title[Ein Kurztitel]{Ein sehr langer Titel über mehrere Zeilen mit sehr vielen Worten und noch mehr Buchstaben}
+%%%\subtitle{Untertitel / Subtitle} % falls benötigt
+\author[Vorname1 Nachname1 \and Vorname2 Nachname2]
+{Vorname1 Nachname1\footnote{Universität, Abteilung, Straße, Postleitzahl Ort, Land \email{emailaddress@author1}} \and
+ Vorname2 Nachname2\footnote{University, Department, Address, Country \email{emailaddress@author2}}}
+\startpage{11} % Beginn der Seitenzählung für diesen Beitrag
+\editor{Herausgeber et al.} % Namen der Herausgeber
+\booktitle{Name-der-Konferenz} % Name des Tagungsband
+\year{2017}
+%%%\lnidoi{18.18420/provided-by-editor-02} % Falls bekannt
+\maketitle
+
+\begin{abstract}
+Die \LaTeX-Klasse \texttt{lni} setzt die Layout-Vorgaben für Beiträge in LNI Konferenzbänden um.
+Dieses Dokument beschreibt ihre Verwendung und ist ein Beispiel für die entsprechende Darstellung.
+Der Abstract ist ein kurzer Überblick über die Arbeit der zwischen 70 und 150 Wörtern lang sein und das Wichtigste enthalten sollte.
+Die Formatierung erfolgt automatisch innerhalb des abstract-Bereichs.
+\end{abstract}
+
+\begin{keywords}
+LNI Guidelines \and \LaTeX Vorlage
+\end{keywords}
+
+\section{Verwendung}
+Die GI gibt unter \url{http://www.gi-ev.de/LNI} Vorgaben für die Formatierung von Dokumenten in der LNI Reihe.
+Für \LaTeX-Dokumente werden diese durch die Dokumentenklasse \texttt{lni} realisiert.
+
+Dieses Dokument basiert auf der offiziellen Dokumentation, simplifiziert und setzt grundlegendes LaTeX-Wissen voraus.
+Es werden generische Platzhalter an die entsprechenden Stellen (wie beispielsweise die Authoren-Angaben) gesetzt und nicht weiter an anderer Stelle dokumentiert.
+
+Dieses Template ist wie folgt gegliedert:
+\Cref{sec:demos} zeigt Demonstrationen der LNI-Verlage.
+\Cref{sec:lniconformance} zeigt die Einhaltung der Richtlinien durch einfachen Text.
+
+\section{Demonstrationen}
+\label{sec:demos}
+Das Symbol für Potenzmengen ($\powerset$) wird korrekt angezeigt.
+Es ist kein Weierstraß-p ($\wp$) mehr.
+
+Spitze Klammen können direkt eingegeben werden: <test />
+
+Hier eine kleine Demonstration von \href{https://www.ctan.org/pkg/microtype}{microtype}:
+\blindtext
+
+\section{Demonstration der Einhaltung der Richtlinien}
+\label{sec:lniconformance}
+
+\subsection{Literaturverzeichnis}
+Der letzte Abschnitt zeigt ein beispielhaftes Literaturverzeichnis für Bücher mit einem Autor \cite{Ez10} und zwei AutorInnen \cite{AB00}, einem Beitrag in Proceedings mit drei AutorInnen \cite{ABC01}, einem Beitrag in einem LNI Band mit mehr als drei AutorInnen \cite{Az09}, zwei Bücher mit den jeweils selben vier AutorInnen im selben Erscheinungsjahr \cite{Wa14} und \cite{Wa14b}, ein Journal \cite{Gl06}, eine Website \cite{GI14} bzw.\ anderweitige Literatur ohne konkrete AutorInnenschaft \cite{XX14}.
+Es wird biblatex verwendet, da es UTF8 sauber unterstützt und \href{https://github.com/gi-ev/LNI/issues/5}{im Gegensatz zu lni.bst} keine Fehler beim bibtexen auftreten.
+
+Referenzen sollten nicht direkt als Subjekt eingebunden werden, sondern immer nur durch Authorenanganben:
+Beispiel: \Citet{AB00} geben ein Beispiel, aber auch \citet{Az09}.
+Hinweis: Großes C bei \texttt{Citet}, wenn es am Satzanfang steht. Dies ist analog zu \texttt{Cref}.
+
+Formatierung und Abkürzungen werden für die Referenzen \texttt{book}, \texttt{inbook}, \texttt{proceedings}, \texttt{inproceedings}, \texttt{article}, \texttt{online} und \texttt{misc} automatisch vorgenommen.
+Mögliche Felder für Referenzen können der Beispieldatei \texttt{lni-paper-example-de.bib} entnommen werden.
+Andere Referenzen sowie Felder müssen allenfalls nachträglich angepasst werden.
+
+\subsection{Abbildungen}
+\Cref{fig:demo} zeigt eine Abbildung.
+
+\begin{figure}
+ \centering
+ \includegraphics[width=.8\textwidth]{example-image}
+ \caption{Demographik}
+ \label{fig:demo}
+\end{figure}
+
+\subsection{Tabellen}
+\Cref{tab:demo} zeigt eine Tabelle.
+
+\begin{table}
+\centering
+\begin{tabular}{lll}
+\toprule
+Überschriftsebenen & Beispiel & Schriftgröße und -art \\
+\midrule
+Titel (linksbündig) & Der Titel \ldots & 14 pt, Fett\\
+Überschrift 1 & 1 Einleitung & 12 pt, Fett\\
+Überschrift 2 & 2.1 Titel & 10 pt, Fett\\
+\bottomrule
+\end{tabular}
+\caption{Die Überschriftsarten}
+\label{tab:demo}
+\end{table}
+
+\subsection{Programmcode}
+Die LNI-Formatvorlage verlangt die Einrückung von Listings vom linken Rand.
+In der \texttt{lni}-Dokumentenklasse ist dies für die \texttt{verbatim}-Umgebung realisiert.
+
+\begin{verbatim}
+public class Hello {
+ public static void main (String[] args) {
+ System.out.println("Hello World!");
+ }
+}
+\end{verbatim}
+
+Alternativ kann auch die \texttt{lstlisting}-Umgebung verwendet werden.
+
+\Cref{L1} zeigt uns ein Beispiel, das mit Hilfe der \texttt{lstlisting}-Umgebung realisiert ist.
+
+\begin{lstlisting}[caption={Beschreibung}, label=L1]
+public class Hello {
+ public static void main (String[] args) {
+ System.out.println("Hello World!");
+ }
+}
+\end{lstlisting}
+
+\subsection{Formeln und Gleichungen}
+
+Die korrekte Einrückung und Nummerierung für Formeln ist bei den Umgebungen \texttt{equation} und \texttt{eqnarray} gewährleistet.
+
+\begin{equation}
+ 1=4-3
+\end{equation}
+und
+\begin{eqnarray}
+ 2=7-5\\
+ 3=2-1
+\end{eqnarray}
+
+%% \bibliography{lni-paper-example-de.tex} ist hier nicht erlaubt: biblatex erwartet dies bei der Preambel
+%% Starten Sie "biber paper", um eine Biliographie zu erzeugen.
+\printbibliography
+
+\end{document}
+%</exampledetex>
% \end{macrocode}
%\fi
diff --git a/Master/texmf-dist/source/latex/lni/lni.ins b/Master/texmf-dist/source/latex/lni/lni.ins
index f32cb314523..b4a2c80bf16 100644
--- a/Master/texmf-dist/source/latex/lni/lni.ins
+++ b/Master/texmf-dist/source/latex/lni/lni.ins
@@ -5,61 +5,64 @@
%% The original source files were:
%%
%% lni.dtx (with options: `install')
-%% -------:| -----------------------------------------------------------------
+%% --------| -----------------------------------------------------------------
%% 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
-%%
+%% --------| -----------------------------------------------------------------
\input docstrip.tex
\keepsilent
\askforoverwritefalse
\declarepreamble\bibtexengpre
-%%
-%% lnig.bst
-%% Lecture Notes in Informatics Style File (english)
-%% Version 1.0 (2017/04/07)
-%%
-%%
-%% The Style File is based on alpha.bst
-%%
-%% This work may be freely used,
-%% distributed and modified.
-%% Modified files should be clearly indicated as such and renamed.
-%%
-%%***************************************************
-%%***************************************************
+lnig.bst
+Lecture Notes in Informatics Style File (english)
+Version 1.0 (2017/04/07)
+
+The Style File is based on alpha.bst
+
+This work may be freely used,
+distributed and modified.
+Modified files should be clearly indicated as such and renamed.
\endpreamble
\declarepreamble\bibtexgerpre
-%%
-%% lnig.bst
-%% Lecture Notes in Informatics Style File (german)
-%% Version 1.0 (2017/04/07)
-%%
-%% The Style File is based on alpha.bst
-%%
-%% This work may be freely used,
-%% distributed and modified.
-%% Modified files should be clearly indicated as such and renamed.
-%%
-%%***************************************************
-%%***************************************************
+lnig.bst
+Lecture Notes in Informatics Style File (german)
+Version 1.0 (2017/04/07)
+
+The Style File is based on alpha.bst
+
+This work may be freely used,
+distributed and modified.
+Modified files should be clearly indicated as such and renamed.
\endpreamble
\declarepreamble\classpre
--------:| -----------------------------------------------------------------
+--------| -----------------------------------------------------------------
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
-
+--------| -----------------------------------------------------------------
\endpreamble
+
+\def\templatepre{%
+\perCent\space !TeX encoding = UTF-8^^J%
+\perCent\space !TeX program = pdflatex^^J%
+\perCent\space !BIB program = bibtex^^J%
+}
+
+\def\templatepreger{%
+\perCent\space !TeX encoding = UTF-8^^J%
+\perCent\space !TeX spellcheck = de_DE^^J%
+}
+
\postamble
-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
@@ -78,6 +81,8 @@ This work consists of the file lni.dtx
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
\endpostamble
@@ -97,7 +102,7 @@ This work consists of the file lni.dtx
}
\endbatchfile
%%
-%% 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
@@ -116,6 +121,8 @@ This work consists of the file lni.dtx
%% 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
%%