1
0
Fork 0
mirror of https://github.com/fsr/namensschilder synced 2024-11-15 04:43:10 +01:00

Adjust vcard design to add titles

This commit is contained in:
Felix Wittwer 2018-07-09 11:22:54 +02:00
parent 455df19d48
commit e38d22cfc9
Signed by: wittwer
GPG key ID: 24363525EA0E8A99

View file

@ -1,43 +1,47 @@
% XeLaTeX % XeLaTeX
% Vorlage "NF-Vorstellung", v0.1 % Vorlage "NF-Vorstellung", v0.1
\documentclass[a4paper,12pt]{article} \documentclass[a4paper,12pt]{article}
\usepackage{fontspec} \usepackage{fontspec}
\setmainfont{PT Sans} \setmainfont{PT Sans}
\newfontfamily{\headfont}{Exo} \newfontfamily{\headfont}{Exo}
\usepackage{graphicx} \usepackage{graphicx}
\usepackage{xcolor} \usepackage{xcolor}
\usepackage[zw32010, crossmark]{ticket} \usepackage[zw32010, crossmark]{ticket}
\hoffset=-8.911mm \hoffset=-8.911mm
\voffset=-16.83mm \voffset=-16.83mm
\definecolor{uni}{gray}{.4} \definecolor{uni}{gray}{.4}
\definecolor{myGreen}{rgb}{0.694, 0.882, 0.109} \definecolor{myGreen}{rgb}{0.694, 0.882, 0.109}
\renewcommand{\ticketdefault}{ \renewcommand{\ticketdefault}{
\put(43, 1){\includegraphics[width=40mm]{LogoCropped.pdf}} \put(43, 1){\includegraphics[width=40mm]{LogoCropped.pdf}}
\put( 6, 18){\line(1,0){25}} \put( 4, 18){\line(1,0){25}}
\put( 6, 13){\footnotesize TU Dresden} \put( 4, 13){\footnotesize TU Dresden}
\put( 6, 9){\footnotesize FSR Informatik} \put( 4, 9){\footnotesize FSR Informatik}
\put( 6, 5){\footnotesize www.ifsr.de} \put( 4, 5){\footnotesize www.ifsr.de}
} }
\newcommand{\vcard}[3]{\ticket{ \newcommand{\vcard}[5]{\ticket{
\put(4, 45){\LARGE\headfont\bfseries\color{myGreen} #1} \put(4, 47){\footnotesize\bfseries\color{myGreen} #1}
\put(6, 38){\textbf{#2}} \put(4, 39){\LARGE\headfont\bfseries\color{myGreen} #2}
\put(6, 33){\footnotesize #3} \put(4, 32){\textbf{#3}}
}} \put(4, 27){\textbf{#4}}
\put(4, 22){\footnotesize #5}
\begin{document} }}
\color{uni}
\vcard{Matthias Stuhlbein}{Akustik}{stuhlbein@ifsr.de}% \begin{document}
% Beispiel für Menschen ohne Mail-Adresse: %
\vcard{Ayn Rand}{Literaturgeschichte}{}% \color{uni}
%
\end{document} % USAGE: KEINE Leerzeilen lassen. Wenn doch, dann mit `%` escapen.
% \vcard{Titel}{Name}{NF-Name}{NF-Name #2 (falls nötig, sonst leer)}{Mail (falls vorhanden)}
%
\vcard{Prof. Dr. rer. nat. habil.}{Matthias Stuhlbein}{Künstliche Intelligenz}{}{stuhlbein@ifsr.de}
\end{document}