Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LaTeX-Kalibrierschein
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vaclab
LaTeX-Kalibrierschein
Commits
0ca6814e
Commit
0ca6814e
authored
3 years ago
by
Rolf Niepraschk
Browse files
Options
Downloads
Patches
Plain Diff
mehr Kommentare, Vereinfachungen
parent
d0871a34
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
kalibrierschein.cls
+13
-46
13 additions, 46 deletions
kalibrierschein.cls
ks-common.clo
+5
-6
5 additions, 6 deletions
ks-common.clo
with
18 additions
and
52 deletions
kalibrierschein.cls
+
13
−
46
View file @
0ca6814e
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
\newif\ifnoCMC
\noCMCfalse
\newif\ifnoCMC
\noCMCfalse
\NeedsTeXFormat
{
LaTeX2e
}
[1999/12/01]
\NeedsTeXFormat
{
LaTeX2e
}
[1999/12/01]
\ProvidesClass
{
kalibrierschein
}
\ProvidesClass
{
kalibrierschein
}
[202
1
/0
6/11
v0.6d documentclass PTB `Kalibrierschein' (RN/PTB)]
[202
2
/0
4/25
v0.6d documentclass PTB `Kalibrierschein' (RN/PTB)]
\DeclareOption
{
BS
}{
\def\ks
@location
{
Braunschweig
}}
\DeclareOption
{
BS
}{
\def\ks
@location
{
Braunschweig
}}
\DeclareOption
{
BLN
}{
\def\ks
@location
{
Berlin
}}
\DeclareOption
{
BLN
}{
\def\ks
@location
{
Berlin
}}
\DeclareOption
{
KK
}{
\edef\ks
@kalType
{
\CurrentOption
}}
\DeclareOption
{
KK
}{
\edef\ks
@kalType
{
\CurrentOption
}}
...
@@ -47,7 +47,7 @@ footskip=0bp,
...
@@ -47,7 +47,7 @@ footskip=0bp,
\raggedbottom
% ???
\raggedbottom
% ???
%\RequirePackage{showframe}
%\RequirePackage{showframe}
% Zur Orientierung
\RequirePackage
[\ks@langs]
{
babel
}
\RequirePackage
[\ks@langs]
{
babel
}
\RequirePackage
[autostyle=true,german=quotes,maxlevel=3]
{
csquotes
}
%
\RequirePackage
[autostyle=true,german=quotes,maxlevel=3]
{
csquotes
}
%
...
@@ -57,11 +57,7 @@ footskip=0bp,
...
@@ -57,11 +57,7 @@ footskip=0bp,
\defineshorthand
{
"`
}{
\openautoquote
}
\defineshorthand
{
"`
}{
\openautoquote
}
\defineshorthand
{
"'
}{
\closeautoquote
}
\defineshorthand
{
"'
}{
\closeautoquote
}
%-------------------------------------------------------
%-------------------------------------------------------
\RequirePackage
{
hyphsubst
}
% Trennregeln austauschen
\babelprovide
[hyphenrules=ngerman-x-latest]
{
ngerman
}
\HyphSubstIfExists
{
ngerman-x-latest
}{
%
\HyphSubstLet
{
ngerman
}{
ngerman-x-latest
}}{}
%%%\babelprovide[hyphenrules=ngerman-x-latest]{ngerman}
% TODO: aktivieren, wenn funktionstüchtig
%-------------------------------------------------------
%-------------------------------------------------------
}{
%
}{
%
\newcommand*\ks
@draftName
{
Draft
}
%
\newcommand*\ks
@draftName
{
Draft
}
%
...
@@ -72,12 +68,14 @@ footskip=0bp,
...
@@ -72,12 +68,14 @@ footskip=0bp,
\AtEndOfClass
{
\shorthandon
{
"
}}
\AtEndOfClass
{
\shorthandon
{
"
}}
\MakeAutoQuote
{
»
}{
«
}
\MakeAutoQuote
{
»
}{
«
}
\AtEndOfClass
{
%
\AtEndOfClass
{
%
\@
ifpackageloaded
{
inputenc
}{}{
%
\@
ifpackageloaded
{
inputenc
}{}{
%
TODO: Entfernen, da nur noch LuaTeX/XeTeX
\catcode
`
\»
=
\active
\catcode
`
\»
=
\active
\catcode
`
\«
=
\active
\catcode
`
\«
=
\active
}
%
}
%
}
}
% Anpassen der Schriftbefehle
% nach scrsize11pt.clo
% nach scrsize11pt.clo
\def\normalsize
{
%
\def\normalsize
{
%
\@
setfontsize
\normalsize
{
11.2
}{
12.85
}
%
\@
setfontsize
\normalsize
{
11.2
}{
12.85
}
%
...
@@ -91,21 +89,6 @@ footskip=0bp,
...
@@ -91,21 +89,6 @@ footskip=0bp,
\def\huge
{
\@
setfontsize
\huge
{
20.26
}{
25.3
}}
\def\huge
{
\@
setfontsize
\huge
{
20.26
}{
25.3
}}
\def\large
{
\@
setfontsize
\large
{
12.17
}{
14.2
}}
\def\large
{
\@
setfontsize
\large
{
12.17
}{
14.2
}}
\def\tiny
{
\@
setfontsize
\tiny\@
viipt
\@
viiipt
}
\def\tiny
{
\@
setfontsize
\tiny\@
viipt
\@
viiipt
}
\iffalse
% nach scrsize11pt.clo (dort \small)
\newcommand*\ks
@titelpagefont
{
%
\@
setfontsize
\small\@
ixpt
{
11
}
%
\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
}
\fi
\let\ks
@titelpagefont=
\normalsize
\let\ks
@titelpagefont=
\normalsize
\RequirePackage
{
textcomp
}
% ???
\RequirePackage
{
textcomp
}
% ???
...
@@ -115,30 +98,16 @@ footskip=0bp,
...
@@ -115,30 +98,16 @@ footskip=0bp,
\PassOptionsToPackage
{
final
}{
graphicx
}
\PassOptionsToPackage
{
final
}{
graphicx
}
\RequirePackage
{
eso-pic,graphicx,booktabs
}
\RequirePackage
{
eso-pic,graphicx,booktabs
}
\RequirePackage
{
zref-totpages
}
\RequirePackage
{
zref-totpages
}
\RequirePackage
{
iftex
}
\newif\ifXeOrLua
\XeOrLuafalse
\RequirePackage
{
ifxetex,ifluatex,ifpdf
}
\ifxetex
% XeTeX
\XeOrLuatrue
\else
\ifluatex
% LuaTeX
\XeOrLuatrue
\else
\ifpdf
% pdfTeX
\else
% TeX+dvips
\fi
\fi
\fi
\RequirePackage
{
amsmath
}
\RequirePackage
{
amsmath
}
\if
XeOrLua
% XeLaTeX oder luaLaTeX
\if
tutex
% XeLaTeX oder luaLaTeX
\input
{
ks-new-engines.clo
}
\input
{
ks-new-engines.clo
}
\else
\else
\input
{
ks-old-engines.clo
}
\input
{
ks-old-engines.clo
}
% obsolet!
\fi
\fi
% Listenabstände reduzieren
\RequirePackage
[neverdecrease]
{
paralist
}
\RequirePackage
[neverdecrease]
{
paralist
}
\let\itemize\compactitem
\let\itemize\compactitem
\let\enditemize\endcompactitem
\let\enditemize\endcompactitem
...
@@ -152,7 +121,7 @@ footskip=0bp,
...
@@ -152,7 +121,7 @@ footskip=0bp,
\newcommand*\ks
@PTB
{
Physikalisch-Technische Bundesanstalt
}
\newcommand*\ks
@PTB
{
Physikalisch-Technische Bundesanstalt
}
\newcommand*\ks
@BSuB
{
Braunschweig und Berlin
}
\newcommand*\ks
@BSuB
{
Braunschweig und Berlin
}
\RequirePackage
{
picture
}
% noch nötig?
\RequirePackage
{
picture
}
%
TODO:
noch nötig?
\newdimen\ks
@tempdima
\newdimen\ks
@tempdima
\newdimen\ks
@tempdimb
\newdimen\ks
@tempdimb
...
@@ -215,14 +184,12 @@ footskip=0bp,
...
@@ -215,14 +184,12 @@ footskip=0bp,
\endgroup
\endgroup
}
}
%\RequirePackage[manualmark]{scrpage2}
\RequirePackage
[manualmark,draft=false]
{
scrlayer-scrpage
}
\RequirePackage
[manualmark,draft=false]
{
scrlayer-scrpage
}
\clearpairofpagestyles
\clearpairofpagestyles
\lohead
{
\ks
@head
}
\lohead
{
\ks
@head
}
\lofoot
{
\ks
@foot
}
\lofoot
{
\ks
@foot
}
\definecolor
{
PTBcolor
}{
RGB
}{
0,155,206
}
\definecolor
{
PTBcolor
}{
RGB
}{
0,155,206
}
% TODO: Besser CMYK?
\input
{
ks-common.clo
}
% Titelseiten- und Layout-Definition
\input
{
ks-common.clo
}
% Titelseiten- und Layout-Definition
\input
{
\ks
@kalType
\ks
@layout.clo
}
% Titelseiten- und Layout-Definition
\input
{
\ks
@kalType
\ks
@layout.clo
}
% Titelseiten- und Layout-Definition
...
@@ -323,7 +290,7 @@ footskip=0bp,
...
@@ -323,7 +290,7 @@ footskip=0bp,
\newcommand*\printFirstPage
{
%
\newcommand*\printFirstPage
{
%
\thispagestyle
{
empty
}
%
\thispagestyle
{
empty
}
%
\AddToShipoutPicture*
{
\ks
@printFirstPage
}
%
\AddToShipoutPicture
BG
*
{
\ks
@printFirstPage
}
%
\mbox
{}
\clearpage
\mbox
{}
\clearpage
\global\let\ks
@printFirstPage
\@
empty
\global\let\ks
@printFirstPage
\@
empty
\global\let\printFirstPage\@
empty
\global\let\printFirstPage\@
empty
...
...
This diff is collapsed.
Click to expand it.
ks-common.clo
+
5
−
6
View file @
0ca6814e
\ProvidesFile{ks-common.clo}[2022/0
2
/2
1
v1.0h class option (RN/PTB)]
\ProvidesFile{ks-common.clo}[2022/0
4
/2
5
v1.0h class option (RN/PTB)]
%%% Definitionen, die ab 2019 gültig sind.
%%% Definitionen, die ab 2019 gültig sind.
% Wird per \AddToShipoutPicture absolut auf der Seite positioniert.
\newcommand*\ks@printFirstPage{%
\newcommand*\ks@printFirstPage{%
\unitlength=1bp %
\unitlength=1bp %
\AtPageLowerLeft{%
\AtPageLowerLeft{%
...
@@ -194,10 +195,10 @@
...
@@ -194,10 +195,10 @@
\vspace{1.6\baselineskip}
\vspace{1.6\baselineskip}
\endgroup
\endgroup
\fi
\fi
\itshape
\begin{otherlanguage}{english}
\begin{otherlanguage}{english}
\itshape
\textbf{\Large The Physikalisch-Technische Bundesanstalt} (PTB) in
\textbf{\Large The Physikalisch-Technische Bundesanstalt} (PTB) in
Braunschweig and Berlin is the National Metrology Institute and the
Braunschweig and Berlin is the National Metrology Institute and the
...
@@ -236,7 +237,6 @@
...
@@ -236,7 +237,6 @@
\fi
\fi
\end{otherlanguage}
\end{otherlanguage}
\vfill
\vfill
...
@@ -264,7 +264,6 @@
...
@@ -264,7 +264,6 @@
\begin{picture}(0,0)
\begin{picture}(0,0)
\unitlength=1bp %
\unitlength=1bp %
\normalfont
\normalfont
%%\put(0,-25){\includegraphics[width=304bp]{ks-footline.png}}%
\put(-1,-55){\normalfont\footnotesize
\put(-1,-55){\normalfont\footnotesize
\resizebox{303bp}{!}{%
\resizebox{303bp}{!}{%
\textcolor{PTBcolor}{PTB}~|~Physikalisch-Technische
\textcolor{PTBcolor}{PTB}~|~Physikalisch-Technische
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment