Skip to content
Snippets Groups Projects
Commit f0305348 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

Bessere Sprachbehandlung

parent 73ffcf41
No related branches found
No related tags found
No related merge requests found
% Rolf Niepraschk, Rolf.Niepraschk@ptb.de % Rolf Niepraschk, Rolf.Niepraschk@gmx.de
\setcounter{errorcontextlines}{100} \listfiles \setcounter{errorcontextlines}{100} \listfiles
\NeedsTeXFormat{LaTeX2e}[1999/12/01] \NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{ptbposter}[2022/09/21 1.0.2 PTB-Poster (RN)] \ProvidesClass{ptbposter}[2025/03/12 1.1.0 PTB-Poster (RN)]
\newif\ifPTB@useCMYK \PTB@useCMYKfalse % vorerst \newif\ifPTB@useCMYK \PTB@useCMYKfalse % vorerst
\newif\ifPTB@german@ \PTB@german@true \newif\ifPTB@german@ \PTB@german@false
\newdimen\PTB@topmargin % Abstand zum Rahmen \newdimen\PTB@topmargin % Abstand zum Rahmen
\newdimen\PTB@leftmargin % Abstand zum Rahmen \newdimen\PTB@leftmargin % Abstand zum Rahmen
...@@ -61,6 +61,11 @@ ...@@ -61,6 +61,11 @@
\newcommand*\PTB@layout{} \newcommand*\PTB@layout{}
\newcommand*\PTB@target@size{} \newcommand*\PTB@target@size{}
\newcommand*\PTB@babel@opt{english,main=ngerman}
\DeclareOption{english}{\def\PTB@babel@opt{ngerman,main=english}}
\DeclareOption{ngerman}{\def\PTB@babel@opt{english,main=ngerman}}
\DeclareOption{german}{\def\PTB@babel@opt{english,main=ngerman}}
\DeclareOption{sanserif}{% noch experimentell! Besser: LuaTeX/XeTeX + OTF \DeclareOption{sanserif}{% noch experimentell! Besser: LuaTeX/XeTeX + OTF
\SERIFfalse \SERIFfalse
...@@ -121,10 +126,15 @@ ...@@ -121,10 +126,15 @@
\DeclareOption{layout2020}{% \DeclareOption{layout2020}{%
\def\PTB@layout{1}% \def\PTB@layout{1}%
} }
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{babel}} %\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{babel}}
\DeclareOption*{\OptionNotUsed}
\ExecuteOptions{serif,raggedTitle,layout2020} \ExecuteOptions{serif,raggedTitle,layout2020}
\ProcessOptions\relax \ProcessOptions\relax
\PassOptionsToPackage{\PTB@babel@opt}{babel}
\RequirePackage{babel}
\iflanguage{ngerman}{\PTB@german@true}{}
\iffalse \iffalse
% The default language should be `ngerman', `english' should also be present. % The default language should be `ngerman', `english' should also be present.
\def\@tempa{english}\def\@tempb{english,ngerman} \def\@tempa{english}\def\@tempb{english,ngerman}
...@@ -198,16 +208,9 @@ ...@@ -198,16 +208,9 @@
\providecommand*\microtypesetup[1]{} \providecommand*\microtypesetup[1]{}
\RequirePackage[english,ngerman]{babel} % ???
\AtEndOfClass{% \AtEndOfClass{%
\shorthandon{"}%
\PTB@german@false
\iflanguage{ngerman}{\PTB@german@true}{%
\iflanguage{german}{\PTB@german@true}{}%
}
%\if@tempswa
\ifPTB@german@ \ifPTB@german@
\shorthandon{"}%
\defineshorthand{"`}{\guillemotright}% \defineshorthand{"`}{\guillemotright}%
\defineshorthand{"'}{\guillemotleft}% \defineshorthand{"'}{\guillemotleft}%
\fi \fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment