%
%  Debian GNU/Linux developer business card template
%
%  This template is vaguely based on several similar ones I have
%  found elsewhere on the web; it uses a LaTeX ``picture'' environment
%  to position the text all around an individual card, and wraps that
%  in a bigger ``picture'' which renders 10 cards on the page in a
%  layout suitable for printing on Avery pre-punched business card
%  stock.
%
%  The modified cut marks are aligned outside the actual card. When cutting
%  this makes sure that there is no slight black line on the top or the
%  bottom of the cards. The best way to cut them is using a cutting wheel
%  [looks like a pizza cutter but is extrmely sharp] and a plastic pad. Use
%  a rular to guide the cutter. Cut the three vertical divisions first, but 
%  do not go past the top or bottom of the page. After that cut each card 
%  horizontally. If you have a sharp cutter you can cut more than one sheet
%  at once like this. The prefered type of paper is a heavy paper run through
%  a laser in the `straight through' path [usually in the manual feed and
%  out the face up tray on the back]

\documentclass[11pt]{article}
\usepackage[dvips]{graphicx}
%
%  I personally like the look of the CM fonts, especially compared to
%  plain old times/helvetica.  Of course, you can select a different
%  set of fonts here if you like -- Adobe Myriad looks good on a card,
%  and for mixed serif/sans the Stone family hangs together nicely,
%  but unfortunately those aren't part of TeX.
%
\usepackage{times}
%
\pagestyle{empty}
%
%  Before printing a final copy, you will probably have to tweak these
%  values to get the cards to properly line up with the cut marks.
%  Avery provides a sizing overlay with their cards; if you're having
%  these professionally printed, get the appropriate dimensions from
%  your printer [and you might need to adjust the multiput commands
%  below!].
%
\setlength{\textwidth}{7in}
\setlength{\hoffset}{0in}
\setlength{\voffset}{0in}
\setlength{\oddsidemargin}{-.8in}
\setlength{\evensidemargin}{-.8in}
\setlength{\textheight}{10in}
\setlength{\topmargin}{-0.27in}
%
%  The Debian logo.  I bet this would look good stamped in red
%  foil. :-) To make this one, I took the original .eps logo with
%  text, converted it to xfig format, removed the text, and converted
%  it back to .eps again.  You can put any other graphic you like
%  here, but of course it should be roughly the same proportion as the
%  area available on the card.
%
%\newcommand{\logo}{\includegraphics{./swirl.eps}}

%  The Bottle version of the logo was created the same as the above, xfig
%  removed the debian words. Here is the conversion command:
%    fig2dev -L ps -m 0.5 officiallogo.fig bottle.eps
\newcommand{\logo}{\includegraphics{./bottle.eps}}
%
%  Text variables for the card.  If you want to change how these are
%  rendered, see below.
%
%  You can define your own variables here for alternative email addresses,
%  to add lines to your address, and so forth.
%
\newcommand{\xname}{Branden Robinson}
\newcommand{\xtitle}{Debian Project Leader}
\newcommand{\xaddress}{P.O. Box 502761}
\newcommand{\xaddressb}{Indianapolis, IN 46250-7761}
\newcommand{\xaddressc}{United States of America}
%\newcommand{\xphone}{Tel: +1 317 706 0781}
\newcommand{\xleaderemail}{leader@debian.org}
\newcommand{\xemail}{branden@debian.org}
\newcommand{\xurl}{http://people.debian.org/\~{}branden/}
%
%  The PGP keys are printed in a tiny little font along the bottom
%  edge of the card.  If you come up with a better way to fit them in,
%  let me know.
%
\newcommand{\xpgpkeyidA}{2B46A27C}
\newcommand{\xpgpbitsA}{1024D}
\newcommand{\xpgpfingerprintA}{1573 D544 73C3 988F 0096  3E4F EA4C 661F 2B46 A27C}
\newcommand{\xpgpkeyA}{\xpgpbitsA/\xpgpkeyidA: \xpgpfingerprintA}

% \newcommand{\xpgpkeyidB}{D23450F9}
% \newcommand{\xpgpbitsB}{1024R}
% \newcommand{\xpgpfingerprintB}{9A 8D 5E 8C 56 14 87 64  9C 74 E5 29 24 60 5C 92}
% \newcommand{\xpgpkeyB}{\xpgpbitsB/\xpgpkeyidB: \xpgpfingerprintB}

% There is room for 3 keys, uncomment the bit below and duplicate the above

\newcommand{\pgpfont}{\tt \fontsize{.08in}{.096in}\selectfont}

%
\begin{document}
\setlength{\unitlength}{1mm}
\begin{picture}(178,253)(-7,-1)

  % Vert ticks along the bottom
  \put(0,-1){\line(0,-1){3}}
  \put(89,-1){\line(0,-1){3}}
  \put(179,-1){\line(0,-1){3}}

  % Vert ticks along the top
  \put(0,255){\line(0,1){3}}
  \put(89,255){\line(0,1){3}}
  \put(179,255){\line(0,1){3}}

    \put(-1,-1){\line(-1,0){3}}
    \put(180,-1){\line(1,0){3}}

  \multiput(0,0)(0,51.0){5}{%
    % Ticks on the side of each card
    \put(-1,51){\line(-1,0){3}}
    \put(180,51){\line(1,0){3}}
    \multiput(0,0)(89,0){2}{%
      \begin{picture}(89,51)(0,0)
        %
        %  Line across the top of the card.
        %
        \put(3,48){\line(1,0){83}}
        %
        \put(35,42){\large\xname}
        \put(35,39){\textsc{\scriptsize\xtitle}}

        % You need at least three units of space between lines in the Y
        % axis.
        \put(35,33){\textsf{\scriptsize \xleaderemail}}
        \put(35,29){\textsf{\scriptsize \xemail}}
        \put(35,26){\textsf{\scriptsize \xurl}}

        \put(35,19){\scriptsize \xaddress}
        \put(35,16){\scriptsize \xaddressb}
        \put(35,13){\scriptsize \xaddressc}
        %\put(35,13){\scriptsize \xphone}

        % For Swirl
        %\put(5,12){\logo}

        % For Bottle
        \put(10,10){\logo}

        % For one key [1.2x]
        \put(5,6){\textsf{\pgpfont \xpgpkeyA}}

        % For two keys
        %\put(5,8){\textsf{\pgpfont \xpgpkeyA}}
        %\put(5,6){\textsf{\pgpfont \xpgpkeyB}}
        %\put(5,4){\textsf{\pgpfont \xpgpkeyC}}        % For three keys

        %  Line across the bottom of the card.
        %
        \put(3,3){\line(1,0){83}}
      \end{picture}}}
\end{picture}
\end{document}
