aboutsummaryrefslogtreecommitdiff
path: root/contrib/gns-bcd.tex
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gns-bcd.tex')
-rw-r--r--contrib/gns-bcd.tex99
1 files changed, 99 insertions, 0 deletions
diff --git a/contrib/gns-bcd.tex b/contrib/gns-bcd.tex
new file mode 100644
index 000000000..cb0b8220d
--- /dev/null
+++ b/contrib/gns-bcd.tex
@@ -0,0 +1,99 @@
1\documentclass[14pt,a4paper,oneside,ngerman]{scrartcl}
2
3\usepackage{geometry}
4\geometry{paperwidth=95mm, paperheight=65mm,left=0mm,right=0mm, top=0mm, bottom=0mm}
5\usepackage[utf8]{inputenc}
6\usepackage[T1]{fontenc}
7\usepackage{graphicx}
8\usepackage{units}
9\usepackage{tikz}
10\usepackage{pst-barcode}
11\usepackage{auto-pst-pdf}
12\usetikzlibrary{positioning,shapes,shadows,arrows}
13
14
15\input{fields.tex}
16
17\renewcommand{\rmdefault}{phv}
18\renewcommand{\seriesdefault}{m}
19\renewcommand{\shapedefault}{n}
20
21\definecolor{MyBlack}{cmyk}{0,0,0,1}
22
23\setlength\parindent{0pt}
24\newlength{\width}
25\newlength{\height}
26\setlength{\width}{85mm}
27\setlength{\height}{55mm}
28
29
30\newcommand{\card}[1]{
31 \begin{tikzpicture}[font=\tiny]
32 \draw[-,line width=1pt,MyBlack] (-5mm,0mm) to (-2mm,0mm);
33 \draw[-,line width=1pt,MyBlack] (0mm,5mm) to (0mm,2mm);
34
35 \draw[-,line width=1pt,MyBlack] [xshift=2mm](\width,0mm) to [xshift=3mm](\width,0mm);
36 \draw[-,line width=1pt,MyBlack] (\width,5mm) to (\width,2mm);
37
38 \draw[-,line width=1pt,MyBlack] (-5mm,-\height) to (-2mm,-\height);
39 \draw[-,line width=1pt,MyBlack] [yshift=-2mm](0mm,-\height) to [yshift=-3mm](0mm,-\height);
40
41 \draw[-,line width=1pt,MyBlack] [xshift=2mm](\width,-\height) to [xshift=3mm](\width,-\height);
42 \draw[-,line width=1pt,MyBlack] [yshift=-2mm](\width,-\height) to [yshift=-3mm](\width,-\height);
43
44
45 \node at (78mm,-7mm) {\includegraphics[height=7mm]{gnunet-logo.pdf}};
46 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-16mm) {\orga};
47 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-21.5mm) {\ifthenelse{\equal{#1}{english}}{\departmenten}{\departmentde}};
48 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-24.0mm) {\ifthenelse{\equal{#1}{english}}{\subdepartmenten}{\subdepartmentde}};
49
50 \ifthenelse{\equal{\gpglineone}{}\or\equal{#1}{german}}{
51 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-35mm) {\street};
52 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-37.5mm) {\city};
53
54 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-41.5mm) {Tel};
55 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-44.0mm) {Fax};
56 \node[rectangle,draw=white,minimum height=7pt,text width=30mm,inner sep=0pt] at (65mm,-41.5mm) {\phone};
57 \node[rectangle,draw=white,minimum height=7pt,text width=30mm,inner sep=0pt] at (65mm,-44.0mm) {\fax};
58
59 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-48.0mm) {\email};
60 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-50.5mm) {\homepage};
61 }
62 {
63 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-35.0mm) {\email};
64 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-37.5mm) {\homepage};
65
66 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-44.0mm) {GPG Fingerprint:};
67 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-46.5mm) {\gpglineone};
68 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-49.0mm) {\gpglinetwo};
69 }
70
71 \ifthenelse{\equal{\gns}{}\or\equal{#1}{english}}{
72 \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-21.0mm) {\ifthenelse{\equal{\prefix}{}}{}{\tiny \prefix}};
73 \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-24.0mm) {\fontsize{8pt}{8pt}\selectfont \textbf{\name}\ifthenelse{\equal{\suffix}{}}{}{, \tiny \suffix}};
74 \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-29.0mm) {\ifthenelse{\equal{#1}{english}}{\textit{\jobtitleenglish}}{\textit{\jobtitlegerman}}};
75 }
76 {
77 \node[rectangle,draw=black,line width=1pt,inner sep=0pt] at (12.5mm,-14.75mm) {\begin{pspicture}(17mm,17mm) \psbarcode{\gns}{}{qrcode}\end{pspicture}};
78 \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-32.0mm) {\ifthenelse{\equal{\prefix}{}}{}{\tiny \prefix}};
79 \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-35.0mm) {\fontsize{8pt}{8pt}\selectfont \textbf{\name}\ifthenelse{\equal{\suffix}{}}{}{, \tiny \suffix}};
80 \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-41.5mm) {\ifthenelse{\equal{#1}{english}}{\textit{\jobtitleenglish}}{\textit{\jobtitlegerman}}};
81 }
82 \end{tikzpicture}
83}
84
85
86\begin{document}
87\begin{figure}
88 \begin{center}
89 \card{german}
90 \end{center}
91\end{figure}
92\clearpage
93\begin{figure}
94 \begin{center}
95 \card{english}
96 \end{center}
97\end{figure}
98\end{document}
99