-remove dead api
[oweals/gnunet.git] / contrib / gns-bcd.tex
index 7e1600877a0f26d9ed93acfd2f085e1624a8bf19..5e33ffbc73cd7586c057b0a2397e225f030d635f 100644 (file)
@@ -1,17 +1,37 @@
 \documentclass[14pt,a4paper,oneside,ngerman]{scrartcl}
 
 \usepackage{geometry}
-\geometry{paperwidth=95mm, paperheight=65mm,left=0mm,right=0mm, top=0mm, bottom=0mm}
+%\geometry{paperwidth=95mm, paperheight=65mm,left=0mm,right=0mm, top=0mm, bottom=0mm}
 \usepackage[utf8]{inputenc}
 \usepackage[T1]{fontenc}
 \usepackage{graphicx}
 \usepackage{units}
 \usepackage{tikz}
+\usepackage{url}
+\usepackage[newdimens]{labels}
 \usepackage{pspicture}
 \usepackage{pst-barcode}
 \usepackage{auto-pst-pdf}
 \usetikzlibrary{positioning,shapes,shadows,arrows}
 
+
+\LabelCols=2%
+\LabelRows=5%
+\LeftPageMargin=17.0mm%
+\RightPageMargin=17.0mm%
+\TopPageMargin=10.0mm%
+\BottomPageMargin=10.0mm%
+\InterLabelColumn=3.5mm%
+\InterLabelRow=3.0mm%
+\LeftLabelBorder=2mm%
+\RightLabelBorder=2mm%
+\TopLabelBorder=2mm%
+\BottomLabelBorder=2mm%
+\numberoflabels=10%
+\LabelGridfalse%  <-- or \LabelGridfalse
+
+
+
 \renewcommand{\rmdefault}{phv}
 \renewcommand{\seriesdefault}{m}
 \renewcommand{\shapedefault}{n}
@@ -23,7 +43,7 @@
 \newlength{\width}
 \newlength{\height}
 \setlength{\width}{85mm}
-\setlength{\height}{55mm}
+\setlength{\height}{50mm}
 
 \newcommand{\logo}{
 %LaTeX with PSTricks extensions
 
 \newcommand{\card}[1]{
     \begin{tikzpicture}[font=\tiny]
-            \draw[-,line width=1pt,MyBlack] (-5mm,0mm) to (-2mm,0mm);
-            \draw[-,line width=1pt,MyBlack] (0mm,5mm) to (0mm,2mm);
+%            \draw[-,line width=1pt,MyBlack] (-5mm,0mm) to (-2mm,0mm);
+%            \draw[-,line width=1pt,MyBlack] (0mm,5mm) to (0mm,2mm);
 
-            \draw[-,line width=1pt,MyBlack] [xshift=2mm](\width,0mm) to [xshift=3mm](\width,0mm);
-            \draw[-,line width=1pt,MyBlack] (\width,5mm) to (\width,2mm);
+%            \draw[-,line width=1pt,MyBlack] [xshift=2mm](\width,0mm) to [xshift=3mm](\width,0mm);
+%            \draw[-,line width=1pt,MyBlack] (\width,5mm) to (\width,2mm);
 
-            \draw[-,line width=1pt,MyBlack] (-5mm,-\height) to (-2mm,-\height);
-            \draw[-,line width=1pt,MyBlack] [yshift=-2mm](0mm,-\height) to [yshift=-3mm](0mm,-\height);
+%            \draw[-,line width=1pt,MyBlack] (-5mm,-\height) to (-2mm,-\height);
+%            \draw[-,line width=1pt,MyBlack] [yshift=-2mm](0mm,-\height) to [yshift=-3mm](0mm,-\height);
 
-            \draw[-,line width=1pt,MyBlack] [xshift=2mm](\width,-\height) to [xshift=3mm](\width,-\height);
-            \draw[-,line width=1pt,MyBlack] [yshift=-2mm](\width,-\height) to [yshift=-3mm](\width,-\height);
+%            \draw[-,line width=1pt,MyBlack] [xshift=2mm](\width,-\height) to [xshift=3mm](\width,-\height);
+%            \draw[-,line width=1pt,MyBlack] [yshift=-2mm](\width,-\height) to [yshift=-3mm](\width,-\height);
 
 
-            \node at (78mm,-7mm) {\logo}; %\includegraphics[height=7mm]{gnunet-logo.pdf}};
             \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-16mm) {\orga};
-            \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}};
-            \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}};
+            \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-18.5mm) {\ifthenelse{\equal{#1}{english}}{\departmenten}{\departmentde}};
+            \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-21.0mm) {\ifthenelse{\equal{#1}{english}}{\subdepartmenten}{\subdepartmentde}};
 
             \ifthenelse{\equal{\gpglineone}{}\or\equal{#1}{german}}{
-                \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-35mm) {\street};
-                \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-37.5mm) {\city};
+                \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-33.0mm) {Tel};
+                \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-35.5mm) {Fax};
+                \node[rectangle,draw=white,minimum height=7pt,text width=30mm,inner sep=0pt] at (65mm,-33.0mm) {\phone};
+                \node[rectangle,draw=white,minimum height=7pt,text width=30mm,inner sep=0pt] at (65mm,-35.5mm) {\fax};
 
-                \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-41.5mm) {Tel};
-                \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-44.0mm) {Fax};
-                \node[rectangle,draw=white,minimum height=7pt,text width=30mm,inner sep=0pt] at (65mm,-41.5mm) {\phone};
-                \node[rectangle,draw=white,minimum height=7pt,text width=30mm,inner sep=0pt] at (65mm,-44.0mm) {\fax};
+                \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-38.5mm) {\email};
+                \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-41.0mm) {\homepage};
 
-                \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-48.0mm) {\email};
-                \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-50.5mm) {\homepage};
+                \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-44.0mm) {GPG Fingerprint:};
+                \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-46.5mm) {\gpglineone};
+                \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-49.0mm) {\gpglinetwo};
             }
             {
                 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-35.0mm) {\email};
             }
 
             \ifthenelse{\equal{\gns}{}\or\equal{#1}{english}}{
+                \node[rectangle,draw=white,minimum height=7pt,text width=120mm,inner sep=0pt] at (62mm,-2mm) {\gns};
                 \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-21.0mm) {\ifthenelse{\equal{\prefix}{}}{}{\tiny \prefix}};
                 \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}};
                 \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}}};
             }
             {
-                \node[rectangle,draw=black,line width=1pt,inner sep=0pt] at (12.5mm,-14.75mm) {\begin{pspicture}(17mm,17mm) \psbarcode{\gns}{}{qrcode}\end{pspicture}};
-                \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-32.0mm) {\ifthenelse{\equal{\prefix}{}}{}{\tiny \prefix}};
-                \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}};
-                \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}}};
+                \node at (78mm,-7mm) {\logo}; %\includegraphics[height=7mm]{gnunet-logo.pdf}};
+                \node[rectangle,draw=white,line width=1pt,inner sep=0pt] at (17mm,-17mm) {\begin{pspicture}(15mm,15mm) \psbarcode{gnunet://gns/\gns}{eclevel=Q}{qrcode}\end{pspicture}};
+                \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-35.0mm) {\ifthenelse{\equal{\prefix}{}}{}{\tiny \prefix}};
+                \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-41.5mm) {\fontsize{8pt}{8pt}\selectfont \textbf{\name}\ifthenelse{\equal{\suffix}{}}{}{, \tiny \suffix}};
+                \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-47.0mm) {\ifthenelse{\equal{#1}{english}}{\textit{\jobtitleenglish}}{\textit{\jobtitlegerman}}};
             }
     \end{tikzpicture}
 }
 
 
 \begin{document}
+\addresslabel{\card{german}}
+%\addresslabel{\card{english}}
+\end{document}
+
+
 \begin{figure}
     \begin{center}
         \card{german}
     \end{center}
 \end{figure}
-\clearpage
-\begin{figure}
-    \begin{center}
-        \card{english}
-    \end{center}
-\end{figure}
-\end{document}
+%\clearpage
+%\begin{figure}
+%    \begin{center}
+%        \card{english}
+%    \end{center}
+%\end{figure}