Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • vaclab/ptb-latex
  • andre.waehlisch/ptb-latex
2 results
Show changes
Showing
with 4116 additions and 0 deletions
arbeitsanweisung/Kalibriereinrichtung.png

656 KiB

## Arbeitsanweisung
Das Projekt enthält eine LaTeX-Dokumentenklasse (`vl-arbeitsanweisung.cls`) zur
Erzeugung eines einer Arbeitsanweisung.
### Testdatei
* `7.5-AA-DIR.tex`. Beispieldokument für die Arbeitsanweisung.
% Rolf Niepraschk, Rolf.Niepraschk@ptb.de
\ProvidesFile{vl-aa-new-engines.clo}[2020/06/11 v0.1b AA -- new engines (RN)]
\RequirePackage[no-math]{fontspec}
\RequirePackage{unicode-math}
\setmainfont{Latin Modern Roman}[Ligatures=TeX]
\setsansfont{Latin Modern Sans}[Ligatures=TeX]
\setmonofont{AnonymousPro-Regular}[%
Extension = .ttf,
BoldFont = AnonymousPro-Bold,
ItalicFont = AnonymousPro-Italic,
BoldItalicFont = AnonymousPro-BoldItalic,
Scale = .88
]
\setmathfont{Latin Modern Math}[math-style=ISO,bold-style=ISO]
\endinput
% Rolf Niepraschk, Rolf.Niepraschk@ptb.de
\ProvidesFile{vl-aa-old-engines.clo}[2020/06/20 v0.1b AA -- old engines (RN)]
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{textcomp}
%\RequirePackage{tgpagella,qpxmath}
%\RequirePackage{tgheros}
\RequirePackage{lmodern}
\RequirePackage[ttdefault=true,scale=1.034]{AnonymousPro}
\endinput
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{vl-arbeitsanweisung}
[2020/09/11 v1.0b Dokumentenklasse (RN/PTB)]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
\ProcessOptions\relax
\PassOptionsToPackage{headinclude,usegeometry}{typearea}
\LoadClass[%
,twoside
,fontsize=12pt% ???
,headings=small
,toc=bibliographynumbered
,captions=oneline
,captions=tableheading
%,origlongtable
]{scrartcl}
\RequirePackage[%
paper=a4paper,
headheight=16mm,
marginparsep=2mm,
marginparwidth=12mm,
inner=22mm,
%right=16mm,
textwidth=172mm,% 172+22+16=210
textheight=228mm,
top=20bp,
headsep=10mm,
footskip=85bp,
]{geometry}
%\setlength{\footheight}{18.5pt}
\setlength\footheight{50.35002pt}
\renewcommand*\maketitle[1][1]{%
\begingroup
\centering \noindent\usekomafont{title}
\Large \@title \par \bigskip\medskip
\endgroup
}
\RequirePackage[main=ngerman,english]{babel}
\RequirePackage{zref-totpages,ifxetex,ifluatex,grffile,picture}
\RequirePackage{tabularx}
\RequirePackage{graphicx}
%%%\let\ptb@endtabularx=\TX@endtabularx
\RequirePackage{xltabular}
\RequirePackage{amsmath,threeparttable,tabto}
\RequirePackage{pdflscape,trimspaces,url,varwidth,placeins}
\RequirePackage{booktabs,array}
\RequirePackage[final]{pdfpages}
\RequirePackage{longtable,siunitx,ragged2e,relsize}
\RequirePackage{siunitx-PTB}
\let\ptb@tempdima=\@clnwd
\let\ptb@tempdimb=\@clnht
\let\ptb@tempdimc=\@dashdim
\newcommand*\ptb@Devision{}
\newcommand*\ptb@Department{}
\newcommand*\ptb@WorkingGroup{}
\newcommand*\ptb@Object{}
\newcommand*\ptb@Ident{}
\newcommand*\ptb@Edition{}
\newcommand*\ptb@Date{}
\newcommand*\ptb@tempa{0}
\ifxetex
\def\ptb@tempa{1}%
\else
\ifluatex
\def\ptb@tempa{1}%
\fi
\fi
\ifcase\ptb@tempa % pdfTeX
\input{vl-aa-old-engines.clo}
\or % XeTeX oder luaTeX
\input{vl-aa-new-engines.clo}
\fi
\RequirePackage[
,final=true
,babel=true
]{microtype}
\RequirePackage[autostyle=true,babel=once,german=guillemets,maxlevel=3]{csquotes}%
\defineshorthand{"`}{\openautoquote}%
\defineshorthand{"'}{\closeautoquote}%
\MakeAutoQuote{»}{«}% Alt Gr + y / Alt Gr + x
\MakeAutoQuote{}{}% Alt Gr + v / Alt Gr + b
\newcommand*\Devision[1]{\xdef\ptb@Devision{\trim@spaces{#1}}}
\newcommand*\Department[1]{\xdef\ptb@Department{\trim@spaces{#1}}}
\newcommand*\WorkingGroup[1]{\xdef\ptb@WorkingGroup{\trim@spaces{#1}}}
\newcommand*\Object[1]{\xdef\ptb@Object{\trim@spaces{#1}}}
\newcommand*\Edition[1]{\xdef\ptb@Edition{\trim@spaces{#1}}}
\addtokomafont{caption}{\small}
\addtokomafont{captionlabel}{\bfseries\sffamily}
\setcapindent{1em}
\AtBeginDocument{%
\edef\ptb@Ident{\ptb@Department-AA-\ptb@Object}%
\edef\ptb@Date{\@date}%
\date{}%
}
\newcommand*\ptb@rulewidth{.4mm}
\newcolumntype{C}{>{\centering\arraybackslash}X}
\newcolumntype{R}{>{\RaggedRight\arraybackslash}X}
\newcommand\varbox[2][\linewidth]{%
\begin{varwidth}{#1}\nointerlineskip\strut#2\strut\end{varwidth}\strut}
\newcommand\varboxC[2][\linewidth]{\varbox[#1]{\Centering#2}}
\newcommand*\ptb@head@even{%
\begin{picture}(0,0)
\linethickness{\ptb@rulewidth}%
\put(0,-2.5mm){\line(1,0){\textwidth}}%
\end{picture}
\normalfont\sffamily\bfseries\large
PTB\hfill Qualit\"atsmanagement-Arbeitsanweisung\hfill\ptb@Ident
}
\newcommand*\ptb@head@odd{%
\begin{picture}(0,0)
\linethickness{\ptb@rulewidth}%
\put(0,-2.5mm){\line(1,0){\textwidth}}%
\end{picture}
\normalfont\sffamily\bfseries\large
\ptb@Ident \hfill Qualit\"atsmanagement-Arbeitsanweisung \hfill PTB
}
\newcommand*\ptb@first@foot{%
\raisebox{-20bp}[0pt][0pt]{%
\begingroup
\normalfont\sffamily\tiny\extrarowheight=.3\baselineskip
\arrayrulewidth=\ptb@rulewidth \extratabsurround=0pt %
\tabcolsep=.3em %
\ptb@tempdima=\dimexpr\textwidth-12\tabcolsep-7\arrayrulewidth
\newcolumntype{P}[1]{>{\centering}p{##1\ptb@tempdima}}%
\begin{tabular}[b]{@{}|P{.23}|P{.23}|P{.23}|P{.09}|P{.11}|P{.11}|@{}}%
\firsthline
Erstellt: \\ Abteilung~\ptb@Devision, Fachbereich~\ptb@Department \\
AG~\ptb@WorkingGroup &
Geprüft:\\ Leiter~\ptb@Department \\~ &
Genehmigt:\\ QMV-\ptb@Devision \\~ &
Ausgabe-Nr.:\\ \ptb@Edition\\~ &
Kurzbezeichnung:\\ \ptb@Ident\\~ &
Seite von Seiten \\ \thepage~von \ztotpages\\~ \tabularnewline
&&&&& \tabularnewline
&&&&& \tabularnewline
am:~\dotfill &
am:~\dotfill &
am:~\dotfill & & & \tabularnewline[.5ex] \lasthline
\end{tabular}%
\endgroup
}
}
\newcommand*\ptb@foot@even{%
\begingroup
\arrayrulewidth=\ptb@rulewidth \extratabsurround=0pt %
\ptb@tempdima=0.2\dimexpr\textwidth-10\tabcolsep-6\arrayrulewidth
\newcolumntype{M}{>{\centering}m{\ptb@tempdima}}
\normalfont\sffamily\tiny\extrarowheight=.3\baselineskip
\begin{tabular}[b]{@{}|M|M|M|M|M|@{}} \firsthline
Erstellt: \\ Abteilung~\ptb@Devision, Fachbereich~\ptb@Department &
Ausgabe-Nr.: \\ \ptb@Edition &
Datum: \\ \ptb@Date &
Kurzbezeichnung: \\ \ptb@Ident &
Seite von Seiten \\ \thepage~von \ztotpages \tabularnewline \lasthline
\end{tabular}
\endgroup
}
\newcommand*\ptb@foot@odd{%
\begingroup
\arrayrulewidth=\ptb@rulewidth \extratabsurround=0pt %
\ptb@tempdima=0.2\dimexpr\textwidth-10\tabcolsep-6\arrayrulewidth
\newcolumntype{M}{>{\centering}m{\ptb@tempdima}}
\normalfont\sffamily\tiny\extrarowheight=.3\baselineskip
\begin{tabular}[b]{@{}|M|M|M|M|M|@{}} \firsthline
Seite von Seiten \\ \thepage~von \ztotpages &
Kurzbezeichnung: \\ \ptb@Ident &
Datum: \\ \ptb@Date &
Ausgabe-Nr.: \\ \ptb@Edition &
Erstellt: \\ Abteilung~\ptb@Devision, Fachbereich~\ptb@Department
\tabularnewline \lasthline
\end{tabular}
\endgroup
}
\RequirePackage[manualmark,draft=false]{scrlayer-scrpage}
\pagestyle{scrheadings}
\clearpairofpagestyles
\cehead{\ptb@head@even}
\cohead{\ptb@head@odd}
\cefoot{\ptb@foot@even}
\cofoot{\ifnum\c@page=\@ne\ptb@first@foot\else\ptb@foot@odd\fi}
\setkomafont{pageheadfoot}{\normalfont\normalsize}
% Kompaktere Listen
\RequirePackage{enumitem}
\setlist{noitemsep}
%\setlist{leftmargin=*}
%\setlist[1]{labelindent=1em}
\renewcommand{\floatpagefraction}{.9}
\renewcommand{\textfraction}{.1}
\renewcommand{\topfraction}{.9}
\renewcommand{\bottomfraction}{.5}
\setcounter{topnumber}{3}
\setcounter{bottomnumber}{1}
\setcounter{totalnumber}{5}
\renewcommand{\dbltopfraction}{.8}
\renewcommand{\dblfloatpagefraction}{.6}
% Einzelne Abbildungen nicht auf dem leeren Blatt zentrieren.
\AtBeginDocument{\@fptop=0pt} % verzögert wegen Paket `rotating'
% TODO: nach siunitx-PTB.sty ???
\sisetup{% Formatierung von Maßzahlen (z.B. Spaltentyp "S" in Tabellen)
,retain-zero-exponent=true
,retain-unity-mantissa=true
,add-decimal-zero=true
,add-integer-zero=true
,zero-decimal-to-integer=false
}
\addtokomafont{title}{\sisetup{detect-weight=true, detect-family=true}}
\addtokomafont{disposition}{\sisetup{detect-weight=true, detect-family=true}}
\RequirePackage{marginnote}
\DeclareRobustCommand\note{%
% Normalform = Horizontale Notiz;
% #1 = vertikale Verschiebung (ohne Einheit: Anzahl Zeilen)
% Sternform = Um 90 Grad gedrehte Notiz;
% #1 = Breite (ohne Einheit: Anzahl mm, ohne Angabe: 3\marginparwidth)
\@ifstar{\@tempswatrue\note@i}{\@tempswafalse\note@i}%
}
\newcommand*\note@i[1][\z@]{%
\note@ii[#1]%
}
\newcommand*\note@ii{}
\def\note@ii[#1]#2{%
\begingroup{}
\if@tempswa
\unitlength=1mm\relax
\else
\unitlength=\baselineskip
\fi
\@ovro#1\unitlength
\if@tempswa
\@ovri=\ifdim\@ovro=\z@ 3\marginparwidth\else\@ovro\fi
\@ovro=\z@
\def\x{\rotatebox[origin=c]{90}{\makebox[0pt][c]{%
\parbox{\@ovri}{\baselineskip=0pt\RaggedRight\hspace{0pt}#2}}}}%
\else
\def\x{\baselineskip=0pt\RaggedRight\hspace{0pt}#2}%
\fi
\overfullrule=\z@
\marginnote{\x}[\@ovro]%
\endgroup
\ignorespaces% problematisch!
}
% Für Parameter #1 Angabe mit und ohne Einheit ermöglichen.
\picture@redefine\note@ii{[&1]}
\renewcommand*\marginfont{\normalfont\normalsize\itshape\color{red}}
\RequirePackage[final]{listings}
\RequirePackage{lstautogobble}
\newcommand*\ptb@lstfont{\small\ttfamily}
\lstset{
,language={}
,basicstyle=\ptb@lstfont
,numbers=none
,backgroundcolor={}
,tabsize=2
,basicstyle=\ptb@lstfont
%,identifierstyle=\bfseries\ptb@lstfont
,keywordstyle=\bfseries\ptb@lstfont
,stringstyle=\ptb@lstfont
,commentstyle=\itshape\ptb@lstfont
,basewidth=0.55em
,keepspaces
,numbers=none
,frame=single
,framesep=\fboxsep
,aboveskip=\medskipamount
,belowskip=1pt plus .5pt minus .5pt %
,xleftmargin=\fboxsep
,xrightmargin=\fboxsep
,columns=fullflexible
%,extendedchars=true
,showspaces=false
,showstringspaces=false
,breaklines=true
,breakindent=0.5em
,breakautoindent=true
,breakatwhitespace=false % ???
,captionpos=t
,postbreak=\mbox{$\hookrightarrow$}
,autogobble=true
}
\emergencystretch=3em %
\raggedbottom
\AtBeginDocument{\setkeys{Gin}{draft=false}}
\RequirePackage{nameref}
\RequirePackage[final]{hyperref}
\endinput
## Erklärung
Das Projekt enthält eine LaTeX-Dokumentenklasse und andere Komponenten zur
Erzeugung eines Erklärungsdokuments.
### Testdateien
* `test-declaration-de.tex`. Beispieldokument für ein Erklärungsdokument in
deutscher Sprache.
* `test-declaration-en.tex`. Beispieldokument für ein Erklärungsdokument in
englischer Sprache.
\ProvidesFile{ptb-declaration-de.clo}[2021/09/14 v0.1c (ptb-declaration, german)]
\mbox{}
\vspace{-1.5cm}
\begin{center}
\usekomafont{disposition} \huge Erklärung
\end{center}
\begin{tabular}{@{}ll@{}}
Bitte senden an: &
\begin{minipage}[t]{10cm}
Arbeitsgruppe 7.54, Vakuummetrologie \\
Physikalisch-Technische Bundesanstalt \\
Abbestraße 2--12 \\
10587 Berlin
\end{minipage}
\end{tabular}
oder E-Mail an \vl@myemail{} oder dem Gerät beilegen.
\medskip
\textbf{Betreff:}~PTB-Aktenzeichen~\vl@myref, Auftragsbestätigung vom \vl@mymail
\medskip
Wir versichern, dass die zur Kalibrierung eingereichten Vakuummessgeräte oder
Testlecks (inklusive Vakuumbauteile)
\begin{itemize}
\item nicht mit toxischen, ätzenden, explosiven, radioaktiven,
mikrobiologischen, krebserregenden oder sonstigen Schadstoffen kontaminiert
sind,
\item vor dem Versand an die PTB einer Funktionsprüfung unterzogen wurden,
\item sich in einem den allgemeinen Regeln der Hoch- und
Ultrahochvakuumtechnik entsprechenden Zustand befinden (Ausnahme:
Schnüffellecks),
\item eine Verunreinigung der Kalibrieranlagen der PTB ausgeschlossen ist
(z.\,B.\ durch Öle und andere Kohlenwasserstoffe),
\item aus messtechnischer Sicht kalibrierfähig sind,
\item die einschlägigen Unfallverhütungsvorschriften und die
anerkannten Regeln der Technik beachtet wurden und
\item uns keine sonstigen Umstände bekannt sind, die einer Kalibrierung
entgegenstehen könnten.
\end{itemize}
\bigskip
\fbox{%
\begin{tabular}{ll}
\textbf{Rücktransport:} \\[1ex]
Wir wünschen eine Versicherung des Rücktransportes: &
\qquad Ja~\checkBox{}\qquad Nein~\checkBox{} \\[1ex]
Warenwert bzw.\ gewünschte Versicherungssumme:
\end{tabular}
}
Die Kosten für Transport, Zollabfertigung, Verpackungsmaterial und Versicherung
trägt der Auftraggeber.
\textbf{Rücksendeadresse:}
\vfill
\begin{tabularx}{\textwidth}{@{}C{.25\textwidth}C{.35\textwidth}Y@{}}
\hrulefill & \hrulefill & \hrulefill \\
Ort, Datum & Auftragsnummer des Kunden &
Institution\,/\,Firma und rechtsverbindliche Unterschrift
\end{tabularx}
\vspace{0mm}
\endinput
\ProvidesFile{ptb-declaration-en.clo}[2018/11/08 v0.1b (ptb-declaration, english)]
\mbox{}
\vspace{-1.8cm}
\begin{center}
\usekomafont{disposition} \huge Declaration
\end{center}
\begin{tabular}{@{}ll@{}}
To be mailed to: &
\begin{minipage}[t]{10cm}
Section 7.54, Vacuum Metrology \\
Physikalisch-Technische Bundesanstalt \\
Abbestraße 2--12 \\
10587 Berlin, Germany
\end{minipage}
\end{tabular}
or email to \vl@myemail{}; may also be sent with instrument.
\medskip
\textbf{Subject:}~PTB reference no.:~\vl@myref,~date of confirmation:~\vl@mymail
\medskip
This is to certify that the vacuum gauges and/or test leaks (including their
vacuum components) which we ordered to being calibrated by PTB
\begin{itemize}
\item are not contaminated with toxic, corrosive, explosive, radioactive,
microbiological, carcinogenic or other harmful substances,
\item were investigated with respect to their operational reliability before
shipment to PTB,
\item leave our house in a condition according to the general rules of high
and ultrahigh vacuum techniques (not applicable for sniffer leaks) and in a
condition that a contamination of the PTB calibration standards can be
excluded (e.\,g.\ by oil or other hydrocarbons),
\item are ready for calibration from the metrological point of view,
\item obey the general rules of prevention of accidents and the
acknowledged rules of relevant techniques and
\item that we have no knowledge of any other indication of obstacles to a
calibration.
\end{itemize}
\bigskip
\fbox{%
\begin{tabular}{@{}ll@{}}
\textbf{Return transport:} \\[1ex]
We wish an insurance of the return transport: &
\qquad Yes~\checkBox{}\qquad No~\checkBox{} \\[1ex]
Indication of value or desired sum insured:
\end{tabular}
}
Any costs related to transport, customs clearance, packing material and insurance must be paid by PTB’s
customer.
\textbf{Return address:}
\vfill
\begin{tabularx}{\textwidth}{@{}C{.25\textwidth}C{.35\textwidth}Y@{}}
\hrulefill & \hrulefill & \hrulefill \\
place, date & purchase order number of the customer &
\parbox[t]{\linewidth}{\centering institution\,/\,company and \\
legally binding signature}
\end{tabularx}
\vspace{0mm}
\endinput
% Rolf Niepraschk, Rolf.Niepraschk@ptb.de
\setcounter{errorcontextlines}{100} \listfiles
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{ptp-declaration}
[2021/06/14 v0.1c PTB-Klasse (RN)]
\newcommand*\vl@lang{main=ngerman}
\DeclareOption{german}{\def\vl@lang{main=ngerman}}
\DeclareOption{ngerman}{\def\vl@lang{main=ngerman}}
\DeclareOption{de}{\def\vl@lang{main=ngerman}}
\DeclareOption{english}{\def\vl@lang{main=english}}
\DeclareOption{en}{\def\vl@lang{main=english}}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
\ProcessOptions\relax
\LoadClass[%
,paper=a4
,fontsize=11pt
,parskip=true
]{scrartcl}
\RequirePackage{eso-pic,graphicx,xcolor}
\RequirePackage[\vl@lang]{babel}
\RequirePackage{iflang}
\RequirePackage[left=25mm,right=25mm,top=2cm,bottom=6cm]{geometry}
\RequirePackage{ifxetex,ifluatex,url,array,tabularx}
\newif\ifXeOrLua \XeOrLuafalse
\ifxetex\XeOrLuatrue\else\ifluatex\XeOrLuatrue\fi\fi
% TODO: Mathematik?
\ifXeOrLua% XeLaTeX oder luaLaTeX
\RequirePackage{fontspec}
\setmainfont{TeX Gyre Pagella}[Ligatures=TeX]
\setsansfont{TeX Gyre Heros}[Scale=MatchUppercase,Ligatures=TeX]
\setmonofont{AnonymousPro-Regular}[%
Extension = .ttf,
BoldFont = AnonymousPro-Bold,
ItalicFont = AnonymousPro-Italic,
BoldItalicFont = AnonymousPro-BoldItalic,
Scale = MatchLowercase
]
\else
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{textcomp}
\RequirePackage{mathpazo}
\RequirePackage{tgpagella}
\RequirePackage{tgheros}
\RequirePackage[ttdefault=true,scale=1.034]{AnonymousPro}
\fi
\RequirePackage{amsfonts,trimspaces}
\newcommand*\vl@setcommand[3][]{% #1=default (opt.), #2=macro, #3=value
\edef\vl@tempa{\trim@spaces@noexp{#3}}%
\expandafter\protected@xdef\csname #2\endcsname{%
\ifx\@empty\vl@tempa #1\else\vl@tempa\fi}%
}
\newcommand*\myref[1]{\vl@setcommand{vl@myref}{#1}}
\newcommand*\mymail[1]{\vl@setcommand{vl@mymail}{#1}}
\newcommand*\myfax[1]{\vl@setcommand{vl@myfax}{#1}}
\newcommand*\myemail[1]{\vl@setcommand{vl@myemail}{#1}}
\newcommand*\yourref[1]{\vl@setcommand{vl@yourref}{#1}}
\newcommand*\missingEntries[1]{\vl@setcommand{vl@missingEntries}{#1}}
\newcommand*\vl@myref{}
\newcommand*\vl@mymail{}
\newcommand*\vl@myfax{}
\newcommand*\vl@myemail{}
\newcommand*\vl@yourref{}
\newcommand*\vl@missingEntries{0}
\newcolumntype{Y}{>{\centering\arraybackslash}X}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\AtBeginDocument{%
\RequirePackage{enumitem}
\setlist{leftmargin=*,itemsep=.3ex,parsep=.5ex}
\setlist[1]{labelindent=1em}
\iffalse
\setlist[itemize,1]{label=\raisebox{-.1ex}{\Large\textbullet}}
\setlist[itemize,2]{label=\raisebox{-.1ex}{\Large$\m@th\circ$}}
\setlist[itemize,3]{label=\raisebox{-.7ex}{\large\textasteriskcentered}}
\setlist[itemize,4]{label=\raisebox{.4ex}{\tiny$\m@th\triangleright$}}
\fi
\ifxetex\else
\RequirePackage[%
,factor=1500
,protrusion=true
,expansion=true
,verbose=true
,final=true
,letterspace=100
,babel=true
]{microtype}
\fi
\makeatletter
\IfLanguageName{ngerman}{%
\input{ptb-declaration-de.clo}
}{%
\input{ptb-declaration-en.clo}
}
\makeatother
}
\newcommand*\checkBox[2][0]{%
\begingroup
\fboxrule=0.7bp\fboxsep=0pt % 0.7bp (10pt)
\raisebox{.3\height}{\fbox{\parbox[c][11bp]{11bp}{%
\mbox{}\ifcase#1\or\centering\relscale{1.35}$\times$\fi%
}}}%
\endgroup\ifx\relax#2\relax\else~\raisebox{.2\height}{#2}\fi%
}
\AtBeginDocument{%
\ifnum\number\vl@missingEntries>0 %
\AddToShipoutPictureBG{%
\AtTextCenter{%
\makebox(0,0)[c]{\resizebox{\textwidth}{!}{%
\rotatebox{54.7}{%
\textnormal{\textsf{\textbf{%
\color{lightgray}Fehler:~\vl@missingEntries}}}}}}%
}%
}%
\fi
}
\textheight=1.2\textheight
\pagestyle{empty}
\endinput
File added
\documentclass[de]{ptb-declaration}
\missingEntries{ 0 }
\myref{7.5-1V-15-05}
\mymail{2018-10-08}
\myfax{+49-30-3481-7490}
\myemail{vacuum.cal@ptb.de }
\yourref{Wrdlbrmpft0815}
\begin{document}
\end{document}
File added
\documentclass[en]{ptb-declaration}
\missingEntries{ 0 }
\myref{7.5-1V-15-05}
\mymail{2018-10-08}
\myfax{+49-30-3481-7490}
\myemail{vacuum.cal@ptb.de }
\yourref{Wrdlbrmpft0815}
\begin{document}
\end{document}
gefahrgutformular/Dangclass2_2.png

9.74 KiB

gefahrgutformular/Dangclass2_3.png

14.7 KiB

gefahrgutformular/Dangclass3.png

30 KiB

gefahrgutformular/Dangclass8.png

27.7 KiB

\setcounter{errorcontextlines}{100}
\listfiles
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{gefahrgutformular}
[2020/07/09 v0.1c Gefahrgutformular (RN/PTB)]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
\ProcessOptions\relax
\PassOptionsToPackage{paper=a4,pagesize}{typearea}
\LoadClass[%
,fontsize=10pt
]{scrartcl}
\setlength\textwidth{490bp}
\setlength\textheight{709bp}
\RequirePackage{iftex}
\ifluatex\else
\ClassError{gefahrgutformular}{LuaTeX is required for this class. Aborting.}{%
This class can only be used with the LuaTeX engine\MessageBreak
(command `lualatex').}
\expandafter\stop
\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}
\newcommand*\vl@doc@style@code{616~00~h}
\RequirePackage{graphicx,pict2e,picture,eso-pic}
\RequirePackage[ngerman]{babel}
\RequirePackage{siunitx-PTB}
\ifluatex\RequirePackage{luaimageembed}\fi
\iffalse % Warum geht das nicht?
\AtBeginDocument{%
\ifx\vl@SignatureGraphic\@empty
\ifx\vl@SignatureGraphicBaseLXIV\@empty\else
\usepackage{luaimageembed}%
\fi
\fi
}
\fi
\let\vl@tempdima=\@ovxx
\let\vl@tempdimb=\@ovyy
\let\vl@tempdimc=\@ovdx
\let\vl@tempdimd=\@clnwd
\let\vl@tempdime=\@clnht
\let\vl@tempdimf=\@dashdim
\newcommand*\vl@WorkingGroup{}
\newcommand*\WorkingGroup[1]{\gdef\vl@WorkingGroup{#1}}
\newcommand*\vl@Telephon{}
\newcommand*\Telephon[1]{\gdef\vl@Telephon{#1}}
\newcommand*\vl@Place{}
\newcommand*\Place[1]{\gdef\vl@Place{#1}}
\newcommand*\vl@Date{}
\newcommand*\Date[1]{\gdef\vl@Date{#1}}
\newcommand*\vl@Weight{}
\newcommand*\Weight[1]{\gdef\vl@Weight{#1}}
\newcommand*\vl@Package{}
\newcommand*\Package[1]{\gdef\vl@Package{#1}}
\newcommand*\vl@Type{}
\newcommand*\Type[1]{\gdef\vl@Type{#1}}
\newcommand*\vl@ContactPerson{}
\newcommand*\ContactPerson[1]{\gdef\vl@ContactPerson{#1}}
\newcommand*\vl@ContactPersonTelephon{}
\newcommand*\ContactPersonTelephon[1]{\gdef\vl@ContactPersonTelephon{#1}}
\newcommand*\vl@SignatureGraphic{}
\newcommand*\SignatureGraphic[1]{\gdef\vl@SignatureGraphic{#1}}
\newcommand*\vl@SignatureGraphicBaseLXIV{}
\newcommand\SignatureGraphicBaseLXIV[1]{%
\long\gdef\vl@SignatureGraphicBaseLXIV{#1}}
\newcommand*\vl@SenderAddress{}
\newcommand*\SenderAddress[1]{\long\gdef\vl@SenderAddress{#1}}
\newcommand*\vl@RecipientAddress{}
\newcommand*\RecipientAddress[1]{\long\gdef\vl@RecipientAddress{#1}}
\newcommand*\vl@Comment{}
\newcommand*\Comment[1]{\gdef\vl@Comment{#1}}
\newcommand*\vl@Items{}
\newcommand\Items[1]{\long\gdef\vl@Items{#1}}
\AddToShipoutPictureBG{%
\frenchspacing
\AtPageLowerLeft{%
\linethickness{0.6bp}%
\vl@tempdima=54bp %
%------ Rahmen ------
\put(\vl@tempdima,68bp){\framebox(\textwidth,\textheight){}}%
%------ alle waagerechten Linien und Texte in der Nähe ------
\vl@tempdimb=694bp %
\put(\vl@tempdima,\vl@tempdimb){
\put(4bp,65bp){\resizebox{202bp}{!}{\textbf{\Large Beförderung von
Gefahrgütern}}}%
\put(4bp,35bp){\resizebox{106bp}{!}{\Large In Braunschweig an:}}%
\put(4bp,7bp){\resizebox{31bp}{!}{\textbf{\Large Q.212}}}%
\vl@tempdimc=-17bp %
\put(4bp,\vl@tempdimc){Organisationseinheit:}%
\put(4bp,2.5\vl@tempdimc){\vl@WorkingGroup}%
\put(171bp,\vl@tempdimc){Hausruf:}%
\put(171bp,2.5\vl@tempdimc){\vl@Telephon}%
\put(332bp,\vl@tempdimc){Ort, Datum:}%
\put(332bp,2.5\vl@tempdimc){\vl@Place, \vl@Date}%
\line(1,0){\textwidth}%
}%
\vl@tempdimb=644bp %
\put(\vl@tempdima,\vl@tempdimb){%
\vl@tempdimc=-17bp %
\put(4bp,\vl@tempdimc){%
\parbox[t]{334bp}{%
\textbf{Gefahrgut} {\scriptsize (Bei Luft-/See- oder
Schienentransport Sicherheitsdatenblätter zwingend mitschicken)}
Bei Gemischen Angabe der 2 Hauptkomponenten in~\%, bei Säuren und
Laugen Konzentrationsangaben in~\%
\ifx\vl@Items\@empty\else
\noindent\hskip-30pt %
\begin{itemize}%
\scriptsize
\vl@Items
\end{itemize}%
\fi
}%
}%
\put(347bp,\vl@tempdimc){%
\parbox[t]{137bp}{%
\textbf{Netto-Gewicht} in kg (bei mehr als einem Gut
Einzelgewichte):\par\medskip\vl@Weight
}%
}%
\line(1,0){\textwidth}%
}%
\vl@tempdimb=406bp %
\put(\vl@tempdima,\vl@tempdimb){%
\vl@tempdimc=-17bp %
\put(4bp,\vl@tempdimc){\textbf{Ansprechpartner} (für Rückfragen)}%
\put(4bp,2.1\vl@tempdimc){\vl@ContactPerson}%
\put(347bp,\vl@tempdimc){\textbf{Hausruf:}}%
\put(347bp,2.1\vl@tempdimc){\vl@ContactPersonTelephon}%
\line(1,0){\textwidth}%
}%
\vl@tempdimb=363bp %
\put(\vl@tempdima,\vl@tempdimb){%
\vl@tempdimc=-17bp %
\put(4bp,\vl@tempdimc){\textbf{Bei Luft-/See- oder Schienentransport
24\,h Notfallrufnummer des Absenders erforderlich:}}%
\vl@tempdimc=-32bp %
\put(4bp,\vl@tempdimc){%
\textbf{Kontaktperson}\hspace{165bp}24\,h~Notfallrufnummer:
}%
\line(1,0){\textwidth}%
}%
\vl@tempdimb=295bp %
\put(\vl@tempdima,\vl@tempdimb){%
\vl@tempdimc=-17bp %
\put(4bp,\vl@tempdimc){%
\parbox[t]{236bp}{%
\textbf{Absender}~(vollständige Adresse)\par\medskip
\vl@SenderAddress
}%
}
\put(250bp,\vl@tempdimc){%
\parbox[t]{236bp}{%
\textbf{Empfänger}~(vollständige Adresse)\par\medskip
\vl@RecipientAddress
}%
}%
\line(1,0){\textwidth}%
}%
\vl@tempdimb=173bp %
\put(\vl@tempdima,\vl@tempdimb){%
\vl@tempdimc=-17bp %
\put(4bp,\vl@tempdimc){\textbf{Bemerkungen:}}%
\put(77bp,\vl@tempdimc){%
\parbox[t]{409bp}{%
\vl@Comment
}%
}%
\line(1,0){\textwidth}%
}%
\vl@tempdimb=124bp %
\put(\vl@tempdima,\vl@tempdimb){%
\put(12bp,-34bp){\line(1,0){171}}%
\vl@tempdimc=95bp %
\put(\vl@tempdimc,-17bp){\makebox(0,0)[c]{%
\ifx\vl@SignatureGraphic\@empty
\ifx\vl@SignatureGraphicBaseLXIV\@empty\else
% https://github.com/csachs/luaimageembed
\includegraphicsembedded[height=26bp]{\vl@SignatureGraphicBaseLXIV}%
\fi
\else
\includegraphics[height=26bp]{\vl@SignatureGraphic}%
\fi
}}%
\put(\vl@tempdimc,-45bp){\makebox(0,0)[c]{Unterschrift}}%
\line(1,0){\textwidth}%
}%
%
\vl@tempdima=397bp %
\vl@tempdimc=147bp % kurze waag. Linien
\put(\vl@tempdima,525bp){%
\vl@tempdimb=-15bp %
\put(4bp,\vl@tempdimb){\textbf{Verpackung:}~\vl@Package}%
\line(1,0){\vl@tempdimc}%
}%
\put(\vl@tempdima,502bp){%
\vl@tempdimb=-17bp %
\put(4bp,\vl@tempdimb){%
\parbox[t]{139bp}{\textbf{Art:}\par\medskip\vl@Type}%
}%
\line(1,0){\vl@tempdimc}%
}%
%------ Symbole ------
\vl@tempdima=145mm %
\vl@tempdimb=255mm %
\vl@tempdimc=12.67mm %
% TODO: Evtl. Paket Grafiken von "ghsystem" verwenden?!
\put(\vl@tempdima,\vl@tempdimb){%
\includegraphics[width=15mm]{Dangclass2_3.png}}%
\advance\vl@tempdima-\vl@tempdimc
\put(\vl@tempdima,\vl@tempdimb){%
\includegraphics[width=15mm]{Dangclass2_2.png}}%
\advance\vl@tempdima 3\vl@tempdimc
\put(\vl@tempdima,\vl@tempdimb){%
\includegraphics[width=15mm]{Dangclass8.png}}%
\advance\vl@tempdima-\vl@tempdimc
\put(\vl@tempdima,\vl@tempdimb){%
\includegraphics[width=15mm]{Dangclass3.png}}%
%------ vertikale Linien ------
\vl@tempdimb=694bp %
\put(221bp,\vl@tempdimb){\line(0,-1){50bp}}%
\put(382bp,\vl@tempdimb){\line(0,-1){50bp}}%
\vl@tempdimb=644bp %
\put(397bp,\vl@tempdimb){\line(0,-1){281bp}}%
\vl@tempdimb=295bp %
\put(299bp,\vl@tempdimb){\line(0,-1){122bp}}%
%------ interne Nummer ------
\put(15mm,27mm){\rotatebox[origin=c]{90}{\tiny \vl@doc@style@code}}
}%
}
\AtBeginDocument{%
\mbox{} \newpage
}
\iftrue
\RequirePackage[neverdecrease]{paralist}
\let\itemize\compactitem
\let\enditemize\endcompactitem
\setdefaultleftmargin{0pt}{0pt}{0pt}{0pt}{0pt}{0pt}
\pltopsep=\medskipamount
\plitemsep=\smallskipamount
\else
\RequirePackage{enumitem}
\setlist{leftmargin=*,noitemsep}
\setlist[1]{labelindent=0em}
\fi
\emergencystretch=3em %
\pagestyle{empty}
\endinput
This diff is collapsed.
File added