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

pict2e-Änderung; nur noch LuaLaTeX

parent f2a543b8
Branches
No related tags found
No related merge requests found
\ProvidesFile{gefahrgutformular-new-engines.clo}%
[Definitionen f. luaLaTeX/XeLaTeX]
\RequirePackage{fontspec}
%\setsansfont[Ligatures=TeX]{TeX Gyre Pagella}
\setmonofont{AnonymousPro-Regular}[%
Extension = .ttf,
BoldFont = AnonymousPro-Bold,
ItalicFont = AnonymousPro-Italic,
BoldItalicFont = AnonymousPro-BoldItalic,
Scale = 1.034
]
\setsansfont{texgyreheros}[
Ligatures=TeX,
Extension=.otf,
UprightFont=*-regular,
BoldFont=*-bold,
ItalicFont=*-italic,
BoldItalicFont=*-bolditalic.otf]
\RequirePackage{newunicodechar}
\newunicodechar{^^^^202f}{\,}% 'NARROW NO-BREAK SPACE' (\u202F, 8239)
\newunicodechar{^^^^2009}{\,\hspace{0pt}}% 'THIN SPACE'
\newunicodechar{^^^^00ad}{\-}% 'SOFT HYPHEN'
\endinput
\ProvidesFile{gefahrgutformular-old-engines.clo}%
[Definitionen f. pdfLaTeX]
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{textcomp}
\RequirePackage{lmodern}
\RequirePackage{tgheros}
\RequirePackage[ttdefault=true,scale=1.034]{AnonymousPro}
%\RequirePackage[scaled=1.05]{zlmtt}% ist lmodern!
\DeclareUnicodeCharacter{202F}{\,}% 'NARROW NO-BREAK SPACE'
\DeclareUnicodeCharacter{2009}{\,\hspace{0pt}}% 'THIN SPACE'
\DeclareUnicodeCharacter{00AD}{\-}% 'SOFT HYPHEN'
\endinput
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
\listfiles \listfiles
\NeedsTeXFormat{LaTeX2e}[1999/12/01] \NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{gefahrgutformular} \ProvidesClass{gefahrgutformular}
[2019/10/07 v0.1b Gefahrgutformular (RN/PTB)] [2020/07/09 v0.1c Gefahrgutformular (RN/PTB)]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}} \DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
\ProcessOptions\relax \ProcessOptions\relax
...@@ -15,17 +15,37 @@ ...@@ -15,17 +15,37 @@
\setlength\textwidth{490bp} \setlength\textwidth{490bp}
\setlength\textheight{709bp} \setlength\textheight{709bp}
\RequirePackage{ifxetex,ifluatex} \RequirePackage{iftex}
\newif\ifXeOrLua \XeOrLuafalse \ifluatex\else
\ifxetex\XeOrLuatrue\else\ifluatex\XeOrLuatrue\fi\fi \ClassError{gefahrgutformular}{LuaTeX is required for this class. Aborting.}{%
This class can only be used with the LuaTeX engine\MessageBreak
\ifXeOrLua% XeLaTeX oder luaLaTeX (command `lualatex').}
\input{gefahrgutformular-new-engines.clo} \expandafter\luacode@sty@endinput
\else
\input{gefahrgutformular-old-engines.clo}
\fi \fi
\RequirePackage{fontspec}
%\setsansfont[Ligatures=TeX]{TeX Gyre Pagella}
\setmonofont{AnonymousPro-Regular}[%
Extension = .ttf,
BoldFont = AnonymousPro-Bold,
ItalicFont = AnonymousPro-Italic,
BoldItalicFont = AnonymousPro-BoldItalic,
Scale = 1.034
]
\setsansfont{texgyreheros}[
Ligatures=TeX,
Extension=.otf,
UprightFont=*-regular,
BoldFont=*-bold,
ItalicFont=*-italic,
BoldItalicFont=*-bolditalic.otf]
\RequirePackage{newunicodechar}
\newunicodechar{^^^^202f}{\,}% 'NARROW NO-BREAK SPACE' (\u202F, 8239)
\newunicodechar{^^^^2009}{\,\hspace{0pt}}% 'THIN SPACE'
\newunicodechar{^^^^00ad}{\-}% 'SOFT HYPHEN'
\renewcommand*\familydefault{\sfdefault} \renewcommand*\familydefault{\sfdefault}
\newcommand*\vl@doc@style@code{616~00~h} \newcommand*\vl@doc@style@code{616~00~h}
...@@ -93,7 +113,7 @@ ...@@ -93,7 +113,7 @@
\put(\vl@tempdima,68bp){\framebox(\textwidth,\textheight){}}% \put(\vl@tempdima,68bp){\framebox(\textwidth,\textheight){}}%
%------ alle waagerechten Linien und Texte in der Nähe ------ %------ alle waagerechten Linien und Texte in der Nähe ------
\vl@tempdimb=694bp % \vl@tempdimb=694bp %
\put(\vl@tempdima,\vl@tempdimb){\line(1,0){\textwidth}% \put(\vl@tempdima,\vl@tempdimb){
\put(4bp,65bp){\resizebox{202bp}{!}{\textbf{\Large Beförderung von \put(4bp,65bp){\resizebox{202bp}{!}{\textbf{\Large Beförderung von
Gefahrgütern}}}% Gefahrgütern}}}%
\put(4bp,35bp){\resizebox{106bp}{!}{\Large In Braunschweig an:}}% \put(4bp,35bp){\resizebox{106bp}{!}{\Large In Braunschweig an:}}%
...@@ -104,10 +124,11 @@ ...@@ -104,10 +124,11 @@
\put(171bp,\vl@tempdimc){Hausruf:}% \put(171bp,\vl@tempdimc){Hausruf:}%
\put(171bp,2.5\vl@tempdimc){\vl@Telephon}% \put(171bp,2.5\vl@tempdimc){\vl@Telephon}%
\put(332bp,\vl@tempdimc){Ort, Datum:}% \put(332bp,\vl@tempdimc){Ort, Datum:}%
\put(332bp,2.5\vl@tempdimc){\vl@Place, \vl@Date}% \put(332bp,2.5\vl@tempdimc){\vl@Place, \vl@Date}%
\line(1,0){\textwidth}%
}% }%
\vl@tempdimb=644bp % \vl@tempdimb=644bp %
\put(\vl@tempdima,\vl@tempdimb){\line(1,0){\textwidth}% \put(\vl@tempdima,\vl@tempdimb){%
\vl@tempdimc=-17bp % \vl@tempdimc=-17bp %
\put(4bp,\vl@tempdimc){% \put(4bp,\vl@tempdimc){%
\parbox[t]{314bp}{% \parbox[t]{314bp}{%
...@@ -122,24 +143,26 @@ ...@@ -122,24 +143,26 @@
\end{itemize}% \end{itemize}%
\fi \fi
}% }%
} }%
\put(347bp,\vl@tempdimc){% \put(347bp,\vl@tempdimc){%
\parbox[t]{137bp}{% \parbox[t]{137bp}{%
\textbf{Netto-Gewicht} in kg (bei mehr als einem Gut \textbf{Netto-Gewicht} in kg (bei mehr als einem Gut
Einzelgewichte):\par\medskip\vl@Weight Einzelgewichte):\par\medskip\vl@Weight
}% }%
} }%
\line(1,0){\textwidth}%
}% }%
\vl@tempdimb=406bp % \vl@tempdimb=406bp %
\put(\vl@tempdima,\vl@tempdimb){\line(1,0){\textwidth}% \put(\vl@tempdima,\vl@tempdimb){%
\vl@tempdimc=-17bp % \vl@tempdimc=-17bp %
\put(4bp,\vl@tempdimc){\textbf{Ansprechpartner} (für Rückfragen)}% \put(4bp,\vl@tempdimc){\textbf{Ansprechpartner} (für Rückfragen)}%
\put(4bp,2.1\vl@tempdimc){\vl@ContactPerson}% \put(4bp,2.1\vl@tempdimc){\vl@ContactPerson}%
\put(347bp,\vl@tempdimc){\textbf{Hausruf:}}% \put(347bp,\vl@tempdimc){\textbf{Hausruf:}}%
\put(347bp,2.1\vl@tempdimc){\vl@ContactPersonTelephon}% \put(347bp,2.1\vl@tempdimc){\vl@ContactPersonTelephon}%
\line(1,0){\textwidth}%
}% }%
\vl@tempdimb=363bp % \vl@tempdimb=363bp %
\put(\vl@tempdima,\vl@tempdimb){\line(1,0){\textwidth}% \put(\vl@tempdima,\vl@tempdimb){%
\vl@tempdimc=-17bp % \vl@tempdimc=-17bp %
\put(4bp,\vl@tempdimc){\textbf{Bei Luft-/See- oder Schienentransport \put(4bp,\vl@tempdimc){\textbf{Bei Luft-/See- oder Schienentransport
24\,h Notfallrufnummer des Absenders erforderlich:}}% 24\,h Notfallrufnummer des Absenders erforderlich:}}%
...@@ -147,9 +170,10 @@ ...@@ -147,9 +170,10 @@
\put(4bp,\vl@tempdimc){% \put(4bp,\vl@tempdimc){%
\textbf{Kontaktperson}\hspace{165bp}24\,h~Notfallrufnummer: \textbf{Kontaktperson}\hspace{165bp}24\,h~Notfallrufnummer:
}% }%
\line(1,0){\textwidth}%
}% }%
\vl@tempdimb=295bp % \vl@tempdimb=295bp %
\put(\vl@tempdima,\vl@tempdimb){\line(1,0){\textwidth}% \put(\vl@tempdima,\vl@tempdimb){%
\vl@tempdimc=-17bp % \vl@tempdimc=-17bp %
\put(4bp,\vl@tempdimc){% \put(4bp,\vl@tempdimc){%
\parbox[t]{236bp}{% \parbox[t]{236bp}{%
...@@ -162,20 +186,22 @@ ...@@ -162,20 +186,22 @@
\textbf{Empfänger}~(vollständige Adresse)\par\medskip \textbf{Empfänger}~(vollständige Adresse)\par\medskip
\vl@RecipientAddress \vl@RecipientAddress
}% }%
} }%
\line(1,0){\textwidth}%
}% }%
\vl@tempdimb=173bp % \vl@tempdimb=173bp %
\put(\vl@tempdima,\vl@tempdimb){\line(1,0){\textwidth}% \put(\vl@tempdima,\vl@tempdimb){%
\vl@tempdimc=-17bp % \vl@tempdimc=-17bp %
\put(4bp,\vl@tempdimc){\textbf{Bemerkungen:}}% \put(4bp,\vl@tempdimc){\textbf{Bemerkungen:}}%
\put(77bp,\vl@tempdimc){% \put(77bp,\vl@tempdimc){%
\parbox[t]{409bp}{% \parbox[t]{409bp}{%
\vl@Comment \vl@Comment
}% }%
} }%
\line(1,0){\textwidth}%
}% }%
\vl@tempdimb=124bp % \vl@tempdimb=124bp %
\put(\vl@tempdima,\vl@tempdimb){\line(1,0){\textwidth}% \put(\vl@tempdima,\vl@tempdimb){%
\put(12bp,-34bp){\line(1,0){171}}% \put(12bp,-34bp){\line(1,0){171}}%
\vl@tempdimc=95bp % \vl@tempdimc=95bp %
\put(\vl@tempdimc,-17bp){\makebox(0,0)[c]{% \put(\vl@tempdimc,-17bp){\makebox(0,0)[c]{%
...@@ -188,20 +214,23 @@ ...@@ -188,20 +214,23 @@
\includegraphics[height=26bp]{\vl@SignatureGraphic}% \includegraphics[height=26bp]{\vl@SignatureGraphic}%
\fi \fi
}}% }}%
\put(\vl@tempdimc,-45bp){\makebox(0,0)[c]{Unterschrift}}% \put(\vl@tempdimc,-45bp){\makebox(0,0)[c]{Unterschrift}}%
\line(1,0){\textwidth}%
}% }%
% %
\vl@tempdima=397bp % \vl@tempdima=397bp %
\vl@tempdimc=147bp % kurze waag. Linien \vl@tempdimc=147bp % kurze waag. Linien
\put(\vl@tempdima,525bp){\line(1,0){\vl@tempdimc}% \put(\vl@tempdima,525bp){%
\vl@tempdimb=-15bp % \vl@tempdimb=-15bp %
\put(4bp,\vl@tempdimb){\textbf{Verpackung:}~\vl@Package}% \put(4bp,\vl@tempdimb){\textbf{Verpackung:}~\vl@Package}%
\line(1,0){\vl@tempdimc}%
}% }%
\put(\vl@tempdima,502bp){\line(1,0){\vl@tempdimc}% \put(\vl@tempdima,502bp){%
\vl@tempdimb=-17bp % \vl@tempdimb=-17bp %
\put(4bp,\vl@tempdimb){% \put(4bp,\vl@tempdimb){%
\parbox[t]{139bp}{\textbf{Art:}\par\medskip\vl@Type}% \parbox[t]{139bp}{\textbf{Art:}\par\medskip\vl@Type}%
}% }%
\line(1,0){\vl@tempdimc}%
}% }%
%------ Symbole ------ %------ Symbole ------
\vl@tempdima=145mm % \vl@tempdima=145mm %
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment