Skip to content

Commit

Permalink
Fixed #47: Check for latest German hyphenation pattern added
Browse files Browse the repository at this point in the history
* Changed layout of \subtitle
* New option "crop" (still experimental)
  • Loading branch information
sieversMartin committed Apr 18, 2017
1 parent 2a846b9 commit c79befc
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 41 deletions.
59 changes: 39 additions & 20 deletions lni.cls
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{lni}
[2017/04/07 v1.1BETA Official class for submissions to the ``Lecture Notes
[2017/04/18 v1.1BETA Official class for submissions to the ``Lecture Notes
in Informatics'']
\def\@clearglobaloption#1{%
\def\@tempa{#1}%
Expand Down Expand Up @@ -45,16 +45,24 @@
\newif\ifusebiblatex
\usebiblatexfalse
\DeclareOption{biblatex}{\usebiblatextrue}
\newif\ifcrop
\cropfalse
\DeclareOption{crop}{\croptrue}
\ExecuteOptions{utf8}
\DeclareOption*{\ClassWarning{Option `\CurrentOption` is not supported!}}
\ProcessOptions\relax

\RequirePackage[ngerman=ngerman-x-latest]{hyphsubst}
\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}}%
\LoadClass[10pt,twoside,a4paper,fleqn]{article}
\RequirePackage{cmap}
\RequirePackage{inputenc}
\RequirePackage[T1]{fontenc}

\iflnienglish
\RequirePackage[ngerman,english]{babel}
\else
Expand Down Expand Up @@ -83,21 +91,33 @@
<12-> MnSymbolC12%
}{}
\DeclareMathSymbol{\powerset}{\mathord}{MnSyC}{180}
\RequirePackage[
a4paper,
total={12.6cm,19.2cm},
includehead,
headheight=20.39pt,
headsep=.31cm,
centering]
{geometry}
\ifcrop
\RequirePackage[
paperheight=23.5cm,paperwidth=15.5cm,
total={12.6cm,19.2cm},
includehead,
headheight=20.39pt,
headsep=.31cm,
centering]
{geometry}
\RequirePackage[a4,center]{crop}
%%%\crop{axis,cam,info}
\else
\RequirePackage[
total={12.6cm,19.2cm},
includehead,
headheight=20.39pt,
headsep=.31cm,
centering]
{geometry}
\fi%
\RequirePackage[autostyle]{csquotes}
\ifusebiblatex
\RequirePackage[%
backend=biber, % UTF-8 support
style=LNI, % The GI style - see https://www.ctan.org/pkg/biblatex-lni
natbib=true % Required for \Citet
]{biblatex}[2016-09-15] %at least version 3.6 of biblatex is required.
backend=biber,% UTF-8 support
style=LNI, % The GI style - see https://www.ctan.org/pkg/biblatex-lni
natbib=true % Required for \Citet
]{biblatex}[2016-09-15]% at least version 3.6 of biblatex is required.
% Enable hyperlinked authors when using \citeauthor
% Source: http://tex.stackexchange.com/a/75916/9075
\DeclareCiteCommand{\citeauthor}%
Expand Down Expand Up @@ -193,11 +213,10 @@
\vskip -24pt% Abstand vor dem Titel
\raggedright % Linksbündig
\let\footnote\thanks
{\fontsize{14}{17}\fontseries{b}\selectfont \@title \par}%
{\fontsize{14}{17}\fontseries{b}\selectfont\@title\par}%
\ifx\@subtitle\empty\else
\vskip.5\baselineskip
{\fontsize{10}{12}\selectfont\itshape
\@subtitle}
\vskip 16pt
{\fontsize{10}{12}\fontseries{b}\selectfont\@subtitle}
\fi%
\vskip 19pt% Abstand nach dem Titel
{\fontsize{10}{12}\selectfont
Expand All @@ -211,7 +230,7 @@
\renewenvironment*{abstract}{%
\renewcommand{\abstractname}{Abstract}
\fontsize{9}{10}\selectfont
\noindent\ignorespaces{\bfseries \abstractname:\ }%
\noindent\ignorespaces{\bfseries\abstractname:\ }%
}{\endquotation}
\newif\ifkeywords
\newenvironment{keywords}{%
Expand Down
66 changes: 45 additions & 21 deletions lni.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ This work consists of the file lni.dtx
%<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<class>\ProvidesClass{lni}
%<*class>
[2017/04/07 v1.1BETA Official class for submissions to the ``Lecture Notes
[2017/04/18 v1.1BETA Official class for submissions to the ``Lecture Notes
in Informatics'']
%</class>
%<*driver>
Expand Down Expand Up @@ -291,6 +291,9 @@ This work consists of the file lni.dtx
% \cs{add}}
% \changes{v1.1}{2017/04/08}{Fixed bug with \cs{Crefname}}
% \changes{v1.1}{2017/04/08}{Updated documentation and bundle structure}
% \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/18}{Added option \texttt{crop} (still experimental)}
%
% \GetFileInfo{\jobname.dtx}
% \DoNotIndex{\newcommand,\newenvironment}
Expand Down Expand Up @@ -680,16 +683,25 @@ This work consists of the file lni.dtx
\newif\ifusebiblatex
\usebiblatexfalse
\DeclareOption{biblatex}{\usebiblatextrue}
\newif\ifcrop
\cropfalse
\DeclareOption{crop}{\croptrue}
\ExecuteOptions{utf8}
\DeclareOption*{\ClassWarning{Option `\CurrentOption` is not supported!}}
\ProcessOptions\relax

\RequirePackage[ngerman=ngerman-x-latest]{hyphsubst}
\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}}%
\LoadClass[10pt,twoside,a4paper,fleqn]{article}
\RequirePackage{cmap}
\RequirePackage{inputenc}
\RequirePackage[T1]{fontenc}

%
\iflnienglish
\RequirePackage[ngerman,english]{babel}
\else
Expand Down Expand Up @@ -728,23 +740,35 @@ This work consists of the file lni.dtx
% \end{macrocode}
% Satzspiegel
% \begin{macrocode}
\RequirePackage[
a4paper,
total={12.6cm,19.2cm},
includehead,
headheight=20.39pt,
headsep=.31cm,
centering]
{geometry}
\ifcrop
\RequirePackage[
paperheight=23.5cm,paperwidth=15.5cm,
total={12.6cm,19.2cm},
includehead,
headheight=20.39pt,
headsep=.31cm,
centering]
{geometry}
\RequirePackage[a4,center]{crop}
%%%\crop{axis,cam,info}
\else
\RequirePackage[
total={12.6cm,19.2cm},
includehead,
headheight=20.39pt,
headsep=.31cm,
centering]
{geometry}
\fi%
% \end{macrocode}
% \begin{macrocode}
\RequirePackage[autostyle]{csquotes}
\ifusebiblatex
\RequirePackage[%
backend=biber, % UTF-8 support
style=LNI, % The GI style - see https://www.ctan.org/pkg/biblatex-lni
natbib=true % Required for \Citet
]{biblatex}[2016-09-15] %at least version 3.6 of biblatex is required.
backend=biber,% UTF-8 support
style=LNI, % The GI style - see https://www.ctan.org/pkg/biblatex-lni
natbib=true % Required for \Citet
]{biblatex}[2016-09-15]% at least version 3.6 of biblatex is required.
% Enable hyperlinked authors when using \citeauthor
% Source: http://tex.stackexchange.com/a/75916/9075
\DeclareCiteCommand{\citeauthor}%
Expand All @@ -765,8 +789,9 @@ This work consists of the file lni.dtx
\RequirePackage{fancyhdr}
\RequirePackage{listings}
% \end{macrocode}
% Ragged bottom -- verhindert die Ausdehnung der Seite = Veränderung der
% Abstände
% \begin{macrocode}
% Ragged bottom -- verhindert die Ausdehnung der Seite = Veränderung der Abstände
\def\thisbottomragged{\def\@textbottom{\vskip\z@ plus.0001fil
\global\let\@textbottom\relax}}

Expand Down Expand Up @@ -863,11 +888,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}\fontseries{b}\selectfont\@title\par}%
\ifx\@subtitle\empty\else
\vskip.5\baselineskip
{\fontsize{10}{12}\selectfont\itshape
\@subtitle}
\vskip 16pt
{\fontsize{10}{12}\fontseries{b}\selectfont\@subtitle}
\fi%
\vskip 19pt% Abstand nach dem Titel
{\fontsize{10}{12}\selectfont
Expand All @@ -884,7 +908,7 @@ This work consists of the file lni.dtx
\renewenvironment*{abstract}{%
\renewcommand{\abstractname}{Abstract}
\fontsize{9}{10}\selectfont
\noindent\ignorespaces{\bfseries \abstractname:\ }%
\noindent\ignorespaces{\bfseries\abstractname:\ }%
}{\endquotation}
% \end{macrocode}
% \begin{macrocode}
Expand Down
Binary file modified lni.pdf
Binary file not shown.

0 comments on commit c79befc

Please sign in to comment.