| 1 |
\def\fileversion{1.1} % ^^A -*-latex-*- |
| 2 |
\def\filedate{1999/09/04} |
| 3 |
%\iffalse meta-comment |
| 4 |
%<*driver> |
| 5 |
\documentclass{ltxdoc} |
| 6 |
|
| 7 |
\newcommand*{\bizcard}{\textsf{bizcard}} |
| 8 |
|
| 9 |
\begin{document} |
| 10 |
|
| 11 |
\DocInput{bizcard.dtx} |
| 12 |
|
| 13 |
\end{document} |
| 14 |
%</driver> |
| 15 |
%\fi |
| 16 |
% ^^A $Id: bizcard.dtx,v 1.2 1999/08/30 19:46:53 skirsch Exp skirsch $ |
| 17 |
%%\CheckSum{73} |
| 18 |
%%\CharacterTable |
| 19 |
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z |
| 20 |
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z |
| 21 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 22 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 23 |
%% Dollar \$ Percent \% Ampersand \& |
| 24 |
%% Acute accent \' Left paren \( Right paren \) |
| 25 |
%% Asterisk \* Plus \+ Comma \, |
| 26 |
%% Minus \- Point \. Solidus \/ |
| 27 |
%% Colon \: Semicolon \; Less than \< |
| 28 |
%% Equals \= Greater than \> Question mark \? |
| 29 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 30 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 31 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 32 |
%% Right brace \} Tilde \~} |
| 33 |
% |
| 34 |
%\changes{1.0}{1999/08/30}{Based on a \LaTeX2.09 style by Silvano Balemi.} |
| 35 |
%\changes{1.1}{1999/09/04}{Version check for \texttt{geometry}. Simpler |
| 36 |
%example.} |
| 37 |
% |
| 38 |
%\title{\bizcard: A \LaTeXe\ package for business/visiting/calling |
| 39 |
%cards\thanks{This file has version number \fileversion, last revised |
| 40 |
%\filedate.}} |
| 41 |
% |
| 42 |
%\author{Sebastian Marius Kirsch\\ |
| 43 |
% \texttt{[email protected]}} |
| 44 |
% |
| 45 |
%\date{\filedate} |
| 46 |
% |
| 47 |
%\maketitle |
| 48 |
% |
| 49 |
%\begin{abstract} |
| 50 |
%This is a package for typesetting business/visiting/calling |
| 51 |
%cards\footnote{I'm unsure about the correct term; my dictionary says |
| 52 |
%visiting/calling card, but `visiting card' sounds awfully like a |
| 53 |
%literal translation of the German `Visitenkarte', and I've only heard |
| 54 |
%them referred to as `business cards', so that's what I'm calling them.} |
| 55 |
%in the standard size \(2''\times 3.5''\). |
| 56 |
%\end{abstract} |
| 57 |
% |
| 58 |
%\section{Introduction} |
| 59 |
% |
| 60 |
%This style is an adaption of \texttt{card.sty} by Silvano Balemi, a |
| 61 |
%\LaTeX2.09 style for the same purpose. The original style file can be |
| 62 |
%found under |
| 63 |
%\begin{quote} |
| 64 |
% \texttt{CTAN:macros/latex209/contrib/misc/card.sty} |
| 65 |
%\end{quote} |
| 66 |
%I adapted |
| 67 |
%it to \LaTeXe, wrote the documentation (the docs in Silvano's original |
| 68 |
%file are, unfortunately, slightly wrong), and changed the size of the |
| 69 |
%cards to the American standard size \(2''\times 3.5''\). (At least, |
| 70 |
%there is a standard for biz cards in the USA.) |
| 71 |
% |
| 72 |
%If you are interested in other uses for business cards, and a reason |
| 73 |
%why they \emph{have} to have the proportions \(4\times7\), go to |
| 74 |
% |
| 75 |
%\begin{quote} |
| 76 |
%|http://users.aol.com/polygons/bcards/bcards1.html| or\\ |
| 77 |
%|http://world.std.com/~j9/sponge/| |
| 78 |
%\end{quote} |
| 79 |
% % |
| 80 |
%\section{Requirements} |
| 81 |
% |
| 82 |
%If the package finds that the current text area is not large enough for |
| 83 |
%a sheet of biz cards (\(179\,\mathrm{mm}\times 255\,\mathrm{mm}\)), it |
| 84 |
%will load the \texttt{geometry} package (from |
| 85 |
%\texttt{CTAN:macros/latex/contrib/supported/geometry/} to set a |
| 86 |
%sufficiently large text area. |
| 87 |
% |
| 88 |
%If you do not have the \texttt{geometry} package, or your version is |
| 89 |
%too old, you can load a different package to enlarge the text area |
| 90 |
%(eg. \texttt{vmargin} or \texttt{typearea}) before loading \bizcard\ |
| 91 |
%and thereby avoid loading \texttt{geometry}. |
| 92 |
% |
| 93 |
%\section{Installation} |
| 94 |
% |
| 95 |
%The actual package is produced by running \TeX\ on |bizcard.ins|. This |
| 96 |
%produces |bizcard.sty|, the style file, which must be moved where \TeX\ |
| 97 |
%can find it. |
| 98 |
% |
| 99 |
%\section{Options} |
| 100 |
% |
| 101 |
%The package accepts four options that affect how the dimensions of the |
| 102 |
%cards are marked: |
| 103 |
% |
| 104 |
%\begin{description} |
| 105 |
%\item[\texttt{star}] (default) tiny stars in the corners of the cards. |
| 106 |
%\item[\texttt{none}] no marks. Figure out for yourself where the |
| 107 |
% cards end. Allegedly useful for double-sided cards. |
| 108 |
%\item[\texttt{frame}] full frames around the cards. Useful for designing |
| 109 |
% new cards. |
| 110 |
%\item[\texttt{flat}] non-invasive marks that are outside the cards |
| 111 |
% (like crop marks.) Most useful if you are cutting the cards on a |
| 112 |
% guillotine cutting machine. |
| 113 |
%\end{description} |
| 114 |
% |
| 115 |
%\section{The \texttt{bizcard} environment} |
| 116 |
% |
| 117 |
%The \texttt{bizcard} environment contains the description of the |
| 118 |
%card. It is implemented via a \texttt{picture} environment with the |
| 119 |
%|\unitlength| of \(1\,\mathrm{mm}\) and the dimensions |
| 120 |
%\(89\times51\). Therefore, you can use all the \texttt{picture} |
| 121 |
%commands in it---indeed, you have to. |
| 122 |
% |
| 123 |
%The \texttt{bizcard} environment will print one page of 10 biz cards. |
| 124 |
% |
| 125 |
%\section{Example} |
| 126 |
% |
| 127 |
%The package is used like this: |
| 128 |
% |
| 129 |
% \begin{macrocode} |
| 130 |
%<*example> |
| 131 |
\documentclass[a4paper]{article} |
| 132 |
|
| 133 |
\usepackage[flat]{bizcard} |
| 134 |
|
| 135 |
\begin{document} |
| 136 |
|
| 137 |
\begin{bizcard} |
| 138 |
\sffamily |
| 139 |
|
| 140 |
\put(19,38){\makebox(50,5){\Large\bfseries Sebastian Kirsch}} |
| 141 |
\put(19,32){\makebox(50,5){\large -- origami art --}} |
| 142 |
|
| 143 |
\put(7,14){\makebox(79,4)[tl]{Marh{\"o}ferstra{\ss}e 23A}} |
| 144 |
\put(7,10){\makebox(79,4)[tl]{66978 Clausen}} |
| 145 |
\put(7,6){\makebox(79,4)[tl]{Germany}} |
| 146 |
|
| 147 |
\put(43,14){\makebox(10,4)[tr]{e-mail:}} |
| 148 |
\put(57,14){\makebox(25,4)[tr]{[email protected]}} |
| 149 |
|
| 150 |
\put(43,10){\makebox(10,4)[tr]{phone:}} |
| 151 |
\put(57,10){\makebox(25,4)[tr]{+49\,6333\,4653}} |
| 152 |
|
| 153 |
\put(43,6){\makebox(10,4)[tr]{fax:}} |
| 154 |
\put(57,6){\makebox(25,4)[tr]{+49\,6333\,7222}} |
| 155 |
\end{bizcard} |
| 156 |
|
| 157 |
\end{document} |
| 158 |
%</example> |
| 159 |
% \end{macrocode} |
| 160 |
% |
| 161 |
%\section{Legal rubbish} |
| 162 |
%\bizcard: A \LaTeXe package for business/visiting/calling cards |
| 163 |
% |
| 164 |
%Copyright \copyright\ 1999 Sebastian Marius Kirsch\texttt{% |
| 165 |
% $\[email protected]$\rangle$} |
| 166 |
% |
| 167 |
%This program is free software; you can redistribute it and/or modify |
| 168 |
%it under the terms of the GNU General Public License as published by |
| 169 |
%the Free Software Foundation; either version 2, or (at your option) |
| 170 |
%any later version. |
| 171 |
% |
| 172 |
%This program is distributed in the hope that it will be useful, |
| 173 |
%but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 174 |
%MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 175 |
%GNU General Public License for more details. |
| 176 |
% |
| 177 |
%You should have received a copy of the GNU General Public License |
| 178 |
%along with this program; see the file COPYING. |
| 179 |
%If not, write to the Free Software Foundation, |
| 180 |
%59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 181 |
%% |
| 182 |
%\StopEventually |
| 183 |
% |
| 184 |
%\section{The \texttt{docstrip} modules} |
| 185 |
% |
| 186 |
%This file contains three modules to direct \texttt{docstrip} in |
| 187 |
%generating the external files: |
| 188 |
% |
| 189 |
%\begin{tabular}[t]{ll} |
| 190 |
%driver & A short driver for producing the documentation\\ |
| 191 |
%package & The package itself\\ |
| 192 |
%example & The example mentioned above |
| 193 |
%\end{tabular} |
| 194 |
% |
| 195 |
%\section{The Code} |
| 196 |
% |
| 197 |
%\subsection{Introduction} |
| 198 |
% |
| 199 |
%First we have to introduce ourselves. |
| 200 |
% |
| 201 |
% \begin{macrocode} |
| 202 |
%<*package> |
| 203 |
\NeedsTeXFormat{LaTeX2e} |
| 204 |
\ProvidesPackage{bizcard}% |
| 205 |
[\filedate\space v\fileversion\space Package for business cards] |
| 206 |
% \end{macrocode} |
| 207 |
% |
| 208 |
%\subsection{Marks} |
| 209 |
% |
| 210 |
% \begin{macrocode} |
| 211 |
\newcommand*{\bizcard@marks}{} |
| 212 |
% \end{macrocode} |
| 213 |
% |
| 214 |
%Create no marks. Useful when printing double-sided cards. |
| 215 |
% |
| 216 |
% \begin{macrocode} |
| 217 |
\DeclareOption{none}{\renewcommand{\bizcard@marks}{}} |
| 218 |
% \end{macrocode} |
| 219 |
% |
| 220 |
% Draws the full frame around each card. Useful for designing a card. |
| 221 |
% |
| 222 |
% \begin{macrocode} |
| 223 |
\DeclareOption{frame}{\renewcommand{\bizcard@marks}{% |
| 224 |
\multiput(0,0)(0,51){6}{\line(1,0){178}} |
| 225 |
\multiput(0,0)(89,0){3}{\line(0,1){255}}}} |
| 226 |
% \end{macrocode} |
| 227 |
% |
| 228 |
% Creates small star at all corners of all cards. |
| 229 |
% |
| 230 |
% \begin{macrocode} |
| 231 |
\DeclareOption{star}{\renewcommand{\bizcard@marks}{% |
| 232 |
\multiput(0,0)(0,51){6}{\makebox(0.0,0.1)[c]{{\tiny +}}} |
| 233 |
\multiput(89,0)(0,51){6}{\makebox(0.0,0.1)[c]{{\tiny +}}} |
| 234 |
\multiput(178,0)(0,51){6}{\makebox(0.0,0.1)[c]{{\tiny +}}}}} |
| 235 |
% \end{macrocode} |
| 236 |
% |
| 237 |
% These marks are not invasive. Marks are not put on the cards. |
| 238 |
% |
| 239 |
% \begin{macrocode} |
| 240 |
\DeclareOption{flat}{\renewcommand{\bizcard@marks}{% |
| 241 |
\thinlines |
| 242 |
\multiput(0,-.5)(89,0){3}{\line(0,-1){5}} |
| 243 |
\multiput(0,255.5)(89,0){3}{\line(0,1){5}} |
| 244 |
\multiput(-.5,0)(0,51){6}{\line(-1,0){5}} |
| 245 |
\multiput(178.5,0)(0,51){6}{\line(1,0){5}}}} |
| 246 |
% \end{macrocode} |
| 247 |
% |
| 248 |
%Default marks are star marks. |
| 249 |
% |
| 250 |
% \begin{macrocode} |
| 251 |
\ExecuteOptions{star} |
| 252 |
|
| 253 |
\ProcessOptions |
| 254 |
% \end{macrocode} |
| 255 |
% |
| 256 |
%\subsection{Type area} |
| 257 |
% |
| 258 |
%If the package finds that the dimensions of the body are too small to |
| 259 |
%contain a sheet of biz cards, it will call the \texttt{geometry} |
| 260 |
%package to make enough room. |
| 261 |
% |
| 262 |
% \begin{macrocode} |
| 263 |
\RequirePackage{ifthen} |
| 264 |
|
| 265 |
\ifthenelse{% |
| 266 |
\lengthtest{\textwidth<178.8mm}\or\lengthtest{\textheight<255mm}}{% |
| 267 |
\RequirePackage[body={178.8mm,255mm},noheadfoot]{geometry}[1998/04/08]% |
| 268 |
}{} |
| 269 |
% \end{macrocode} |
| 270 |
% |
| 271 |
%\subsection{The \texttt{bizcard} environment} |
| 272 |
% |
| 273 |
%The \texttt{bizcard} environment uses two \texttt{picture} environments |
| 274 |
%to typeset both the single card and the full sheet of pages. |
| 275 |
% |
| 276 |
% \begin{macrocode} |
| 277 |
\newsavebox{\bizcard@box} |
| 278 |
|
| 279 |
\newenvironment{bizcard}{% |
| 280 |
\setlength{\unitlength}{1mm}% |
| 281 |
\begin{lrbox}{\bizcard@box}% |
| 282 |
\begin{picture}(89,51)% |
| 283 |
}{% |
| 284 |
\end{picture}% |
| 285 |
\end{lrbox}% |
| 286 |
\thispagestyle{empty}% |
| 287 |
\noindent\begin{picture}(178,255)(0,0)% |
| 288 |
\multiput(0,0)(0,51){5}{\usebox{\bizcard@box}} |
| 289 |
\multiput(89,0)(0,51){5}{\usebox{\bizcard@box}} |
| 290 |
\bizcard@marks |
| 291 |
\end{picture} |
| 292 |
} |
| 293 |
%</package> |
| 294 |
% \end{macrocode} |
| 295 |
% |
| 296 |
%\Finale |
| 297 |
\endinput |