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 1280 additions and 0 deletions
\documentclass[%
,ngerman
,twoside
%,serif
,sanserif
,BLN
%,BS
%,head0
,head1
%,head2
%,visualize
]{ptbletter}
\yourref{4711-0815}
\yourmail{2015-05-08}
\handledby{Rolf Niepraschk}
\myref{7.5-1V-15-05}
\mymail{2015-05-14}
\myphone{7316}
\myfax{7777}
\myemail{Rolf.Niepraschk@ptb.de}
\colorlet{bgTextColor}{red!20}
\bgText*{ENTWURF}
% Ausblenden des Fußbereiches
% \setkomavar{firstfoot}{}
\date{2017-01-17}
\begin{document}
\begin{letter}{%
Ellen Bogen \\
Dorfstraße 1\\
12345 Musterhausen
}
\subject{Die \LaTeX-Dokumentenklasse "`ptbletter"'}
\opening{Sehr geehrte Frau Bogen,}
die neue \LaTeX-Dokumentenklasse "`ptbletter"' ist fertig. Mit ihr können
Briefe nach den offiziellen Vorgaben der PTB gesetzt werden. Zum Setzen eines
Briefes muss die Datei "`\texttt{ptbletter.cls}"' dem \TeX"=Compiler zugänglich
sein, d.\,h.\ sie muss sich im \TeX"=Suchpfad befinden. Näheres dazu ist der
Dokumentation der benutzten \TeX"=Distribution zu entnehmen.
Die \LaTeX-Dokumentenklasse "`ptbletter"' unterstützt die folgenden
Klassenoptionen:
\begin{itemize}
\item \textbf{BLN}: Wählt die für den Standort Berlin gültigen Angaben
(Standard).
\item \textbf{BS}: Wählt die für den Standort Braunschweig gültigen Angaben.
\item \textbf{serif}: Wählt die Serifenschrift für den Textbereich (Standard).
\item \textbf{sanserif}: Wählt die serifenlose Schrift für den Textbereich.
\item \textbf{de}, \textbf{german}, \textbf{ngerman}: Trennregeln für die neue
deutsche Rechtschreibung werden benutzt (Standard).
\item \textbf{en}, \textbf{english}: Trennregeln für die englische Sprache
werden benutzt.
\item \textbf{head0}, kein Kopf
\item \textbf{head1}, PTB-Kopf mit Logo (Standard)
\item \textbf{head2}, PTB-Kopf ohne Logo
\item \textbf{visualize}, Visualisierung interner Parameter (zu Debug-Zwecken)
\end{itemize}
\noindent Alle anderen Optionen werden an die intern benutzte Dokumentenklasse
"`scrlttr2"' weitergeleitet. Das Papierformat ist entsprechend der Vorgabe auf
"`A4"' festgelegt. Als Eingabe-Kodierung wird ausschließlich "`UTF-8"'
unterstützt.
Der Text, der dem Makro \verb|\bgText| übergeben wird, erscheint auf jeder
Seite auf dem Textbereich als hellgrauer Hintergrunddruck schräg in großer
Schrift. Wird die Sternvariante (\verb|\bgText*|) benutzt, erscheint der
Hintergrunddruck nur auf der ersten Seite. Die Farbe dieses Textes kann durch Definition der Farbe »bgTextColor« geschehen, z.\,B.\ so:
\verb|\definecolor{bgTextColor}{gray}{0.9}|
%\closing{\MHG}
%\closing{\MFg}
\closing{\MFG}
\ps PS: Viel Spaß beim \TeX{}en!
\encl{
\begin{itemize}
\item alter Fahrschein
\item Tüte Mottenpulver
\item Glückspfennig
\end{itemize}
}
\cc{Präsident\\Fachbereichsleiter\\Arbeitsgruppenleiter}
\end{letter}
\end{document}
% Rolf Niepraschk, Rolf.Niepraschk@ptb.de
\ProvidesFile{ptbletter-new-engines.clo}%
[2017/12/05 v0.1b PTB-Brief -- new engines (RN)]
\RequirePackage{fontspec}
\RequirePackage{unicode-math}
\setromanfont{texgyrepagella}[
Ligatures=TeX,
Scale=MatchUppercase,
Extension=.otf,
UprightFont=*-regular,
BoldFont=*-bold,
ItalicFont=*-italic,
BoldItalicFont=*-bolditalic]
\setsansfont{texgyreheros}[
Ligatures=TeX,
Extension=.otf,
UprightFont=*-regular,
BoldFont=*-bold,
ItalicFont=*-italic,
BoldItalicFont=*-bolditalic]
\setmonofont{DejaVuSansMono}[%
Scale=0.9,
UprightFont = *,
ItalicFont=*-Oblique,
BoldFont=*-Bold,
BoldItalicFont=*-BoldOblique,
Extension = .ttf]
\RequirePackage{newunicodechar}
\newunicodechar{^^^^20ac}{\officialeuro}
\endinput
% Rolf Niepraschk, Rolf.Niepraschk@ptb.de
\ProvidesFile{ptbletter-old-engines.clo}%
[2017/12/05 v0.1b PTB-Brief -- old engines (RN)]
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\usepackage[scaled=0.9]{DejaVuSansMono}
\RequirePackage{textcomp}
\RequirePackage{mathpazo}
\RequirePackage{tgpagella}
\RequirePackage{tgheros}
\endinput
This diff is collapsed.
ptbposter/George.png

42.6 KiB

ptbposter/John.png

55.8 KiB

# Rolf Niepraschk, 2019/05/13, Rolf.Niepraschk@ptb.de
.SUFFIXES : .tex .ltx .dvi .ps .pdf .eps
DOC1 = ptbposter-doc-1
DOC2 = ptbposter-doc-2
ARCHNAME = ptbposter-$(shell date +%Y-%m-%d).zip
all : $(DOC1).pdf $(DOC2).pdf tcb-example1.pdf tcb-example2.pdf
$(DOC1).pdf $(DOC2).pdf tcb-example2.pdf : $(ADDINPUTS)
%.pdf : %.tex
pdflatex $<
tcb-example1.pdf : tcb-example1.tex
lualatex $<
#%.mps : %.eps
# purifyeps $< - | sed -e "s/0 0 0 setrgbcolor/%/g" > $@
# "purifyeps" macht aktuell Probleme # 2017-10-18
clean :
$(RM) $(addprefix $(DOC1), .log .aux .out)
$(RM) $(addprefix $(DOC2), .log .aux .out)
veryclean : clean
$(RM) $(addprefix $(DOC1), .pdf)
$(RM) $(addprefix $(DOC2), .pdf)
arch :
zip $(ARCHNAME) $(DOC1).tex $(DOC2).tex $(ADDINPUTS) Makefile
@ echo $(ARCHNAME)
ptbposter/Paul.png

40.6 KiB

## ptbposter
LaTeX-Dokumentenklasse und andere Komponenten zur
Erzeugung eines PTB-konformen Posters. Näheres siehe Dokumentation [Teil
1](ptbposter-doc-1.pdf) und [Teil 2](ptbposter-doc-2.pdf) sowie die
Beispiele, die die Verwendung positionierbarer Boxen
[(tcolobox)](https://www.ctan.org/pkg/tcolorbox) sowie die Einbeziehung des
Grafikpakets [TikZ](https://www.ctan.org/pkg/pgf) zeigen:
[tcb-example1](tcb-example1.pdf) und [tcb-example2](tcb-example2.pdf).
Rolf Niepraschk, 2025-03-13
ptbposter/Ringo.png

50.5 KiB

File added
% Rolf Niepraschk, Rolf.Niepraschk@ptb.de
\ProvidesFile{ptbposter-2018.clo}%
[2022/09/20 1.0.0 PTB-Poster layout 2018 (RN)]
\typeout{*** LAYOUT 2018 ***}
\setlength\PTB@default@fontsize@base{0.0130170299199\PTB@scale@base}% 11pt (A4), 44pt (A0)
\setlength\PTB@default@author@fontsize{0.0157550946737\PTB@scale@base}% 53.3pt (A0)
\setlength\PTB@default@title@fontsize@base{0.0315101893474\PTB@scale@base}% 106.6pt (A0)
\setlength\PTB@default@foot@fontsize{0.00567538119577\PTB@scale@base}% 19.2pt (A0)
\iftutex% LuaTeX oder XeTeX
\setfontfamily\PTBdesignFont{texgyreheros}[
Ligatures=TeX,
Extension=.otf,
UprightFont=*-regular,
BoldFont=*-bold,
ItalicFont=*-italic,
BoldItalicFont=*-bolditalic]
\let\sffamily=\PTBdesignFont
\else
\let\PTBdesignFont=\sffamily
\fi
\AtEndPreamble{%
\ifx\@author\@empty
\setlength\PTB@topmargin{0.152\PTB@scale@base}%
\else
\setlength\PTB@topmargin{0.180824222418\PTB@scale@base}%
\fi
\ifPTBlandscape
\setlength\PTB@framewidth{0.950378471315\PTB@scale@base}% 3215pt (1130mm) (A0)
\ifx\@author\@empty
\setlength\PTB@frameheight{0.490824222418\PTB@scale@base}% 1660pt (584mm) (A0)
\else
\setlength\PTB@frameheight{0.462\PTB@scale@base}% 1563pt (549mm) (A0)
\fi
\else
\setlength\PTB@framewidth{0.656013458076\PTB@scale@base}% 2219pt (780mm) (A0)
\ifx\@author\@empty
\setlength\PTB@frameheight{0.769\PTB@scale@base}% 2602pt (914mm) (A0)
\else
\setlength\PTB@frameheight{0.740117747573\PTB@scale@base}% 2504pt (880mm) (A0)
\fi
\fi
}
\PTB@AddToShipoutPictureBG{% relativ zur oberen linken Ecke des Blattes
\PTB@tempdima=-0.077\PTB@scale@base
\put(\PTB@leftmargin,\PTB@tempdima){%
\parbox[b]{\PTB@framewidth}{% TODO: vereinfachen?
\parbox[b]{.401\PTB@scale@base}{%
\textcolor{PTBcolor}{% TODO: Tikz-Grafik erzeugen (autom.?) und verwenden
\includegraphics[height=.055\PTB@scale@base]{PTB-logo-A.mps}
}% 1,58365758755
\ifPTB@logo@long@
\hfill
\raisebox{.0025\PTB@scale@base}{%
%\includegraphics[width=.612\linewidth]{ptbposter-logo-B.mps}%
\resizebox{.61\linewidth}{!}{%
\hspace{-.2ex}%
\begin{varwidth}[b]{\linewidth}%
\PTBdesignFont\bfseries
Physikalisch-Technische Bundesanstalt\\
Braunschweig und Berlin\\
\mdseries
Nationales Metrologieinstitut
\end{varwidth}%
}%
}%
\fi
}%
\hfill
\ifx\PTB@logo\@empty\else
\includegraphics[height=.055\PTB@scale@base]{\PTB@logo}%
\fi
}
}%
\def\PTB@tempa{\parbox[c]{\PTB@framewidth}{% Komplette Titeldefinition
\PTB@title@justification\PTB@title@series\PTBdesignFont\titleFontSize
\microtypesetup{protrusion=false}\@title}}%
\begingroup
\@tempcnta=\@ne \@tempcntb=10499 %
\loop\ifnum\@tempcnta<25 % Finden der ersten passenden titleFontSize
\multiply\@tempcntb 10000 \divide\@tempcntb by 10500 % jeweils um 5% kleiner
\PTB@scaleTitleFontSize{0.\the\@tempcntb}% 1:0.9999, 2:0.9522, 3:0.9068, ...
%\typeout{\the\@tempcnta\space XXX: \titleFontSize, 0.\the\@tempcntb}%
\setbox\z@ \hbox{\PTB@tempa}%
\ifdim\dimexpr\ht\z@+\dp\z@>\PTB@maxtitleheight
\advance\@tempcnta\@ne % weiter, wenn zu gross
\else
\@tempcnta=999 % Abbruch
\fi
\repeat
\endgroup
\PTB@tempdima=-0.127\PTB@scale@base
\put(\PTB@leftmargin,\PTB@tempdima){\PTB@tempa}% Title
\PTB@tempdima=-0.172\PTB@scale@base
\def\and{, }%
\put(\PTB@leftmargin,\PTB@tempdima){\parbox[b]{\PTB@framewidth}{% Autoren
\PTB@authors@justification\PTBdesignFont\authorFontSize\@author}}%
% hier wird \@thanks gefüllt
\linethickness{\PTB@framethickness}\color{PTBcolor}%
\PTB@tempdima=-0.0883095039717\PTB@scale@base
\put(\PTB@leftmargin,\PTB@tempdima){%
\line(1,0){\dimexpr\paperwidth-2\PTB@leftmargin}}%
% blauer Rahmen
\put(\PTB@leftmargin,\dimexpr-\textheight-2\PTB@textvsep-\PTB@topmargin)%
{\framebox(\dimexpr\textwidth+2\PTB@texthsep,%
\dimexpr\textheight+2\PTB@textvsep){\backgroundContent}}%
}
\PTB@AddToShipoutPictureFG{% relativ zur linken unteren Ecke des Textbereichs
\PTB@AtTextLowerLeft{%
\put(-\PTB@texthsep,-\PTB@textvsep){%
\PTB@tempdimb=0.000420521447484\PTB@scale@base
\linethickness{\PTB@tempdimb}\normalcolor
\PTB@tempdima=-0.0420521447484\PTB@scale@base
\put(-.5\@wholewidth,\PTB@tempdima){%
\PTB@tempdima=0.0386879731686\PTB@scale@base
\PTB@tempdimb=0.00168208578994\PTB@scale@base
\ifx\PTB@qrcode\@empty
\color{PTBcolor}\framebox(\PTB@tempdima,\PTB@tempdima){}%
\else
\sbox\@tempboxa{\qrcode[height=\PTB@tempdima,tight]{\PTB@qrcode}}%
\raisebox{\dp\@tempboxa}{\usebox\@tempboxa}%
\fi
\color{PTBcolor}
\hspace{\PTB@tempdimb}\raisebox{-\@wholewidth}{%
\rule{\dimexpr\PTB@tempdima+2\@wholewidth}%
{\dimexpr\PTB@tempdima+2\@wholewidth}}%
\hspace{\PTB@tempdimb}\framebox(\PTB@tempdima,\PTB@tempdima){}%
}
\PTB@tempdimb=-0.00841042894969\PTB@scale@base
\footFontSize\sffamily\normalcolor
\PTB@tempdima=0.122792262665\PTB@scale@base
\put(\PTB@tempdima,\PTB@tempdimb){%
\begin{tabular}[t]{@{}l@{}}
Physikalisch-Technische Bundesanstalt \\
Braunschweig und Berlin \\[\f@baselineskip]
\ifx\first@author\@empty\else \textbf{\first@author}\\\fi
\ifx\PTB@department\@empty\else \PTB@department\\\fi
\ifx\PTB@workingGroup\@empty\else \PTB@workingGroup\\\fi
\end{tabular}%
}
\PTB@tempdima=0.263246426125\PTB@scale@base
\put(\PTB@tempdima,\PTB@tempdimb){%
\begin{tabular}[t]{@{}ll@{}}
\ifx\PTB@street\@empty\else\multicolumn{2}{@{}l@{}}{\PTB@street}\\\fi
\ifx\PTB@location\@empty\else\multicolumn{2}{@{}l@{}}{\PTB@location}\\\fi
\ifx\PTB@phone\@empty\else\ifPTB@german@ Telefon\else Phone\fi:
&\PTB@phone\\\fi
\ifx\PTB@fax\@empty\else Fax:&\PTB@fax\\\fi
\ifx\PTB@email\@empty\else\ifPTB@german@ E-Mail\else E-mail\fi:
&\href{mailto:\PTB@email}{\PTB@email}\\\fi
\multicolumn{2}{@{}l@{}}{\href{http://www.ptb.de/}{www.ptb.de}}
\end{tabular}%
}
\PTB@tempdima=0.378469302736\PTB@scale@base
\put(\PTB@tempdima,\PTB@tempdimb){%
\begin{tabular}[t]{@{}l@{}}
\@thanks % wurde bei der Ausführung von \@author gefüllt.
\end{tabular}%
}
}
}
}
\endinput
This diff is collapsed.
This diff is collapsed.
File added
This diff is collapsed.
File added
This diff is collapsed.
This diff is collapsed.
% Rolf Niepraschk, Rolf.Niepraschk@ptb.de
\ProvidesFile{ptbposter-old-engines.clo}%
[2020/03/09 v0.1c `PTB-Poster' old engines (RN/PTB)]
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{textcomp}
\RequirePackage{tgpagella}
\RequirePackage{tgheros}
\RequirePackage[ttdefault=true,scale=1.034]{AnonymousPro}
\makeatletter % wegen Laden aus normalem LaTeX-Dokument
\@ifundefined{ifSERIF}{%
\newif\ifSERIF \SERIFfalse
}{}
\ifSERIF
\RequirePackage{qpxmath}
\else
%%%\renewcommand*\familydefault{\sfdefault}
%%%\RequirePackage{sfmath}
\@latex@error{works only with `LuaLaTeX' or `XeLaTeX'}{%
type:\MessageBreak
lualatex \jobname.tex\MessageBreak
or\MessageBreak
xelatex \jobname.tex
}%
\@@end
\fi
\endinput