From e38d22cfc98338752f7bcceed86caa6331f0b340 Mon Sep 17 00:00:00 2001 From: Felix Wittwer Date: Mon, 9 Jul 2018 11:22:54 +0200 Subject: [PATCH] Adjust vcard design to add titles --- nebenfachvorstellung.tex | 90 +++++++++++++++++++++------------------- 1 file changed, 47 insertions(+), 43 deletions(-) diff --git a/nebenfachvorstellung.tex b/nebenfachvorstellung.tex index 4d1b1c8..c62af63 100644 --- a/nebenfachvorstellung.tex +++ b/nebenfachvorstellung.tex @@ -1,43 +1,47 @@ -% XeLaTeX -% Vorlage "NF-Vorstellung", v0.1 - -\documentclass[a4paper,12pt]{article} - -\usepackage{fontspec} -\setmainfont{PT Sans} -\newfontfamily{\headfont}{Exo} - -\usepackage{graphicx} -\usepackage{xcolor} - -\usepackage[zw32010, crossmark]{ticket} - -\hoffset=-8.911mm -\voffset=-16.83mm - -\definecolor{uni}{gray}{.4} -\definecolor{myGreen}{rgb}{0.694, 0.882, 0.109} - -\renewcommand{\ticketdefault}{ - \put(43, 1){\includegraphics[width=40mm]{LogoCropped.pdf}} - \put( 6, 18){\line(1,0){25}} - \put( 6, 13){\footnotesize TU Dresden} - \put( 6, 9){\footnotesize FSR Informatik} - \put( 6, 5){\footnotesize www.ifsr.de} -} - -\newcommand{\vcard}[3]{\ticket{ - \put(4, 45){\LARGE\headfont\bfseries\color{myGreen} #1} - \put(6, 38){\textbf{#2}} - \put(6, 33){\footnotesize #3} -}} - -\begin{document} - -\color{uni} - -\vcard{Matthias Stuhlbein}{Akustik}{stuhlbein@ifsr.de}% -% Beispiel für Menschen ohne Mail-Adresse: -\vcard{Ayn Rand}{Literaturgeschichte}{}% - -\end{document} +% XeLaTeX +% Vorlage "NF-Vorstellung", v0.1 + +\documentclass[a4paper,12pt]{article} + +\usepackage{fontspec} +\setmainfont{PT Sans} +\newfontfamily{\headfont}{Exo} + +\usepackage{graphicx} +\usepackage{xcolor} + +\usepackage[zw32010, crossmark]{ticket} + +\hoffset=-8.911mm +\voffset=-16.83mm + +\definecolor{uni}{gray}{.4} +\definecolor{myGreen}{rgb}{0.694, 0.882, 0.109} + +\renewcommand{\ticketdefault}{ + \put(43, 1){\includegraphics[width=40mm]{LogoCropped.pdf}} + \put( 4, 18){\line(1,0){25}} + \put( 4, 13){\footnotesize TU Dresden} + \put( 4, 9){\footnotesize FSR Informatik} + \put( 4, 5){\footnotesize www.ifsr.de} +} + +\newcommand{\vcard}[5]{\ticket{ + \put(4, 47){\footnotesize\bfseries\color{myGreen} #1} + \put(4, 39){\LARGE\headfont\bfseries\color{myGreen} #2} + \put(4, 32){\textbf{#3}} + \put(4, 27){\textbf{#4}} + \put(4, 22){\footnotesize #5} +}} + + + +\begin{document} +% +\color{uni} +% +% 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}