summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/directory
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-10-22 14:03:11 +0000
committerKarl Berry <karl@freefriends.org>2006-10-22 14:03:11 +0000
commit46deeb865b1c9bff5961d32ecdaf0d29d4d8c381 (patch)
tree8463bc8bd241fba301f6635995bd6b69a44d917f /Master/texmf-dist/tex/latex/directory
parentfa612a71c254d52cd9cbd98b9596e6ea378b4200 (diff)
birthday bibtex package update (2004)
git-svn-id: svn://tug.org/texlive/trunk@2366 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/directory')
-rw-r--r--Master/texmf-dist/tex/latex/directory/directory.sty284
1 files changed, 184 insertions, 100 deletions
diff --git a/Master/texmf-dist/tex/latex/directory/directory.sty b/Master/texmf-dist/tex/latex/directory/directory.sty
index 6b68c45cd24..fbcb34e9333 100644
--- a/Master/texmf-dist/tex/latex/directory/directory.sty
+++ b/Master/texmf-dist/tex/latex/directory/directory.sty
@@ -1,7 +1,7 @@
%% directory.sty
-%% Copyright 1999-2000 Christophe Geuzaine
+%% Copyright 1998-2004 Christophe Geuzaine <geuz@geuz.org>
%
-% Last Mod by Christophe on Sun Aug 27 21:04:41 2000
+% $Id: directory.sty,v 1.10 2004/02/11 16:17:29 geuzaine Exp $
%
% This program can be redistributed and/or modified under the terms
% of the LaTeX Project Public License distributed from CTAN
@@ -13,109 +13,200 @@
% For use in conjunction with 'address.bst', 'phone.bst',
% 'email.bst', 'birthday.bst', 'letter.bst'
%
-% Christophe.Geuzaine@advalvas.be
+\newif\if@break\@breakfalse
+\newif\if@german\@germanfalse
+\newif\if@french\@frenchfalse
+\newif\if@longdates\@longdatesfalse
%
-\newif\if@splitversion\@splitversionfalse
-\newif\if@breakversion\@breakversionfalse
-%
-\DeclareOption{split}{\@splitversiontrue}
-\DeclareOption{break}{\@breakversiontrue}
+\DeclareOption{split}{
+ \typeout{^^JWarning: the `split' option is obsolete! Redefine `Dirheader' instead.^^J}
+}
+\DeclareOption{break}{\@breaktrue}
+\DeclareOption{german}{\@germantrue}
+\DeclareOption{french}{\@frenchtrue}
+\DeclareOption{longdates}{\@longdatestrue}
%
\ProcessOptions*
%
\RequirePackage{url}
-\newdimen\dirindent
-\newdimen\dirsep
-\newdimen\dirparindent
+%
+% ------------------------------------------------------------
+% N E W D I M E N S I O N S
+% ------------------------------------------------------------
+%
+\newlength{\dirindent} \setlength{\dirindent} {3em}
+\newlength{\dirsep} \setlength{\dirsep} {3ex}
+\newlength{\dirparindent} \setlength{\dirparindent} {0em}
+\newlength{\dirtablewidth} \setlength{\dirtablewidth}{0.5\textwidth}
%
% ------------------------------------------------------------
% C U S T O M I Z A T I O N C O M M A N D S
% ------------------------------------------------------------
%
-\setlength{\dirindent} {3em}
-\setlength{\dirparindent} {0em}
-\setlength{\dirsep} {3ex}
-\newcommand{\dirand} {and}
-\newcommand{\dirsymbol} {}
-\newcommand{\dirbirthday} {$\star$~}
-\newcommand{\dirprivate} {\emph{p}~}
-\newcommand{\dirresidence} {\emph{r}~}
-\newcommand{\dirwork} {\emph{w}~}
-\newcommand{\dirnote} {$\triangleright$~}
-\newcommand{\dirnickname} {}
-\newcommand{\diraddress} {}
- \newcommand{\dirpaddress} {\diraddress}
- \newcommand{\dirraddress} {\diraddress}
- \newcommand{\dirwaddress} {\diraddress}
-\newcommand{\dirphone} {phn: }
- \newcommand{\dirpphone} {\dirphone}
- \newcommand{\dirrphone} {\dirphone}
- \newcommand{\dirwphone} {\dirphone}
-\newcommand{\dircellular} {gsm: }
- \newcommand{\dirpcellular} {\dircellular}
- \newcommand{\dirrcellular} {\dircellular}
- \newcommand{\dirwcellular} {\dircellular}
-\newcommand{\dirfax} {fax: }
- \newcommand{\dirpfax} {\dirfax}
- \newcommand{\dirrfax} {\dirfax}
- \newcommand{\dirwfax} {\dirfax}
-\newcommand{\diremail} {}
- \newcommand{\dirpemail} {\diremail}
- \newcommand{\dirremail} {\diremail}
- \newcommand{\dirwemail} {\diremail}
-\newcommand{\dirurl} {}
- \newcommand{\dirpurl} {\dirurl}
- \newcommand{\dirrurl} {\dirurl}
- \newcommand{\dirwurl} {\dirurl}
-\newcommand{\diraccount} {acc: }
- \newcommand{\dirpaccount} {\diraccount}
- \newcommand{\dirraccount} {\diraccount}
- \newcommand{\dirwaccount} {\diraccount}
-\newcommand{\dirtitle} {}
-\newcommand{\dirname} {}
-\newcommand{\Dirlabel}[1] {\textbf{#1}}
-\newcommand{\Dirheader}[1] {\newpage\markboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}}
-\newcommand{\Dirbirthday}[2] {{\number#1}/{\number#2}}
-\newcommand{\Dirbirthyear}[1] {/{#1}}
-\newcommand{\DirbirthyearAlone}[1]{{#1}}
-\newcommand{\Dirnickname}[1] {(aka {#1})}
-\newcommand{\Diraddress}[1] {{#1}}
- \newcommand{\Dirpaddress}[1] {\Diraddress{#1}}
- \newcommand{\Dirraddress}[1] {\Diraddress{#1}}
- \newcommand{\Dirwaddress}[1] {\Diraddress{#1}}
-\newcommand{\Dirphone}[1] {{#1}}
- \newcommand{\Dirpphone}[1] {\Dirphone{#1}}
- \newcommand{\Dirrphone}[1] {\Dirphone{#1}}
- \newcommand{\Dirwphone}[1] {\Dirphone{#1}}
-\newcommand{\Dircellular}[1] {{#1}}
- \newcommand{\Dirpcellular}[1] {\Dircellular{#1}}
- \newcommand{\Dirrcellular}[1] {\Dircellular{#1}}
- \newcommand{\Dirwcellular}[1] {\Dircellular{#1}}
-\newcommand{\Dirfax}[1] {{#1}}
- \newcommand{\Dirpfax}[1] {\Dirfax{#1}}
- \newcommand{\Dirrfax}[1] {\Dirfax{#1}}
- \newcommand{\Dirwfax}[1] {\Dirfax{#1}}
-\newcommand{\Diremail}[1] {\url{#1}}
- \newcommand{\Dirpemail}[1] {\Diremail{#1}}
- \newcommand{\Dirremail}[1] {\Diremail{#1}}
- \newcommand{\Dirwemail}[1] {\Diremail{#1}}
-\newcommand{\Dirurl}[1] {\url{#1}}
- \newcommand{\Dirpurl}[1] {\Dirurl{#1}}
- \newcommand{\Dirrurl}[1] {\Dirurl{#1}}
- \newcommand{\Dirwurl}[1] {\Dirurl{#1}}
-\newcommand{\Diraccount}[1] {\url{#1}}
- \newcommand{\Dirpaccount}[1] {\Diraccount{#1}}
- \newcommand{\Dirraccount}[1] {\Diraccount{#1}}
- \newcommand{\Dirwaccount}[1] {\Diraccount{#1}}
-\newcommand{\Dirtitle}[1] {{#1}}
-\newcommand{\Dirname}[1] {{#1}}
-\newcommand{\Dirnote}[1] {{#1}}
+\if@german
+%
+% German localization
+%
+ \newcommand{\dirsymbol} {}
+ \newcommand{\dirbirthday} {$\star$~}
+ \newcommand{\dirnote} {$\triangleright$~}
+ \newcommand{\dirnickname} {}
+ \newcommand{\diraddress} {}
+ \newcommand{\dirand} {\normalfont{und}}
+ \newcommand{\dirprivate} {\emph{p}~}
+ \newcommand{\dirresidence} {\emph{z}~} % 'Zweiter Wohnsitz'
+ \newcommand{\dirwork} {\emph{b}~} % 'Beruf'
+ \newcommand{\dirphone} {Tel.~}
+ \newcommand{\dircellular} {Mobil~}
+ \newcommand{\dirfax} {Fax~}
+ \newcommand{\diremail} {}
+ \newcommand{\dirurl} {}
+ \newcommand{\diraccount} {}
+ \newcommand{\dirtitle} {}
+ \newcommand{\dirname} {}
+ \if@longdates
+ \newcommand{\Dirbirthday}[2] {{\number#1}.~{\ifcase #2\or Januar\or Februar\or%
+ M\"arz\or April\or Mai\or Juni\or Juli\or%
+ August\or September\or Oktober\or November\or%
+ Dezember\fi}}
+ \newcommand{\Dirbirthyear}[1] {~{#1}}
+ \else
+ \newcommand{\Dirbirthday}[2] {{\number#1}.{\number#2}.}
+ \newcommand{\Dirbirthyear}[1] {{#1}}
+ \fi
+ \newcommand{\DirbirthyearAlone}[1]{{#1}}
+ \newcommand{\Dirnickname}[1] {(alias \emph{#1})}
+\else
+\if@french
+%
+% French localization
+%
+ \newcommand{\dirsymbol} {}
+ \newcommand{\dirbirthday} {$\star$~}
+ \newcommand{\dirnote} {$\triangleright$~}
+ \newcommand{\dirnickname} {}
+ \newcommand{\diraddress} {}
+ \newcommand{\dirand} {\normalfont{et}}
+ \newcommand{\dirprivate} {\emph{p}~}
+ \newcommand{\dirresidence} {\emph{r}~}
+ \newcommand{\dirwork} {\emph{b}~} % 'bureau'
+ \newcommand{\dirphone} {t\'el: }
+ \newcommand{\dircellular} {gsm: }
+ \newcommand{\dirfax} {fax: }
+ \newcommand{\diremail} {}
+ \newcommand{\dirurl} {}
+ \newcommand{\diraccount} {cpte: }
+ \newcommand{\dirtitle} {}
+ \newcommand{\dirname} {}
+ \if@longdates
+ \newcommand{\Dirbirthday}[2] {{\ifnum #1=1 1er\else\number#1\fi}~%
+ {\ifcase #2\or janvier\or f\'evrier\or mars\or%
+ avril\or mai\or juin\or juillet\or ao\^ut\or%
+ septembre\or octobre\or novembre\or d\'ecembre\fi}}
+ \newcommand{\Dirbirthyear}[1] {~{#1}}
+ \else
+ \newcommand{\Dirbirthday}[2] {{\number#1}/{\number#2}}
+ \newcommand{\Dirbirthyear}[1] {/{#1}}
+ \fi
+ \newcommand{\DirbirthyearAlone}[1]{{#1}}
+ \newcommand{\Dirnickname}[1] {(dit \emph{#1})}
+\else
+%
+% Default localization (English)
+%
+ \newcommand{\dirsymbol} {}
+ \newcommand{\dirbirthday} {$\star$~}
+ \newcommand{\dirnote} {$\triangleright$~}
+ \newcommand{\dirnickname} {}
+ \newcommand{\diraddress} {}
+ \newcommand{\dirand} {\normalfont{and}}
+ \newcommand{\dirprivate} {\emph{p}~}
+ \newcommand{\dirresidence} {\emph{r}~}
+ \newcommand{\dirwork} {\emph{w}~}
+ \newcommand{\dirphone} {tel: }
+ \newcommand{\dircellular} {mobile: }
+ \newcommand{\dirfax} {fax: }
+ \newcommand{\diremail} {}
+ \newcommand{\dirurl} {}
+ \newcommand{\diraccount} {acc: }
+ \newcommand{\dirtitle} {}
+ \newcommand{\dirname} {}
+ \if@longdates
+ \newcommand{\Dirbirthday}[2] {{\ifcase #2\or January\or February\or March\or%
+ April\or May\or June\or July\or August\or%
+ September\or October\or November\or December\fi}%
+ {\space\ifnum #1=1 1st\else\number#1\fi}}
+ \newcommand{\Dirbirthyear}[1] {, {#1}}
+ \else
+ \newcommand{\Dirbirthday}[2] {{\number#2}/{\number#1}}
+ \newcommand{\Dirbirthyear}[1] {/{#1}}
+ \fi
+ \newcommand{\DirbirthyearAlone}[1]{{#1}}
+ \newcommand{\Dirnickname}[1] {(aka \emph{#1})}
+\fi
+\fi
+
+\newcommand{\dirpaddress} {\diraddress}
+\newcommand{\dirraddress} {\diraddress}
+\newcommand{\dirwaddress} {\diraddress}
+\newcommand{\dirpphone} {\dirphone}
+\newcommand{\dirrphone} {\dirphone}
+\newcommand{\dirwphone} {\dirphone}
+\newcommand{\dirpcellular} {\dircellular}
+\newcommand{\dirrcellular} {\dircellular}
+\newcommand{\dirwcellular} {\dircellular}
+\newcommand{\dirpfax} {\dirfax}
+\newcommand{\dirrfax} {\dirfax}
+\newcommand{\dirwfax} {\dirfax}
+\newcommand{\dirpemail} {\diremail}
+\newcommand{\dirremail} {\diremail}
+\newcommand{\dirwemail} {\diremail}
+\newcommand{\dirpurl} {\dirurl}
+\newcommand{\dirrurl} {\dirurl}
+\newcommand{\dirwurl} {\dirurl}
+\newcommand{\dirpaccount} {\diraccount}
+\newcommand{\dirraccount} {\diraccount}
+\newcommand{\dirwaccount} {\diraccount}
+\newcommand{\Dirlabel}[1] {\textbf{#1}}
+%\newcommand{\Dirheader}[1]{\newpage\markboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}}
+\newcommand{\Dirheader}[1] {}
+\newcommand{\Diraddress}[1] {{#1}}
+\newcommand{\Dirpaddress}[1] {\Diraddress{#1}}
+\newcommand{\Dirraddress}[1] {\Diraddress{#1}}
+\newcommand{\Dirwaddress}[1] {\Diraddress{#1}}
+\newcommand{\Dirphone}[1] {{#1}}
+\newcommand{\Dirpphone}[1] {\Dirphone{#1}}
+\newcommand{\Dirrphone}[1] {\Dirphone{#1}}
+\newcommand{\Dirwphone}[1] {\Dirphone{#1}}
+\newcommand{\Dircellular}[1] {{#1}}
+\newcommand{\Dirpcellular}[1] {\Dircellular{#1}}
+\newcommand{\Dirrcellular}[1] {\Dircellular{#1}}
+\newcommand{\Dirwcellular}[1] {\Dircellular{#1}}
+\newcommand{\Dirfax}[1] {{#1}}
+\newcommand{\Dirpfax}[1] {\Dirfax{#1}}
+\newcommand{\Dirrfax}[1] {\Dirfax{#1}}
+\newcommand{\Dirwfax}[1] {\Dirfax{#1}}
+\newcommand{\Diremail}[1] {\url{#1}}
+\newcommand{\Dirpemail}[1] {\Diremail{#1}}
+\newcommand{\Dirremail}[1] {\Diremail{#1}}
+\newcommand{\Dirwemail}[1] {\Diremail{#1}}
+\newcommand{\Dirurl}[1] {\url{#1}}
+\newcommand{\Dirpurl}[1] {\Dirurl{#1}}
+\newcommand{\Dirrurl}[1] {\Dirurl{#1}}
+\newcommand{\Dirwurl}[1] {\Dirurl{#1}}
+\newcommand{\Diraccount}[1] {\url{#1}}
+\newcommand{\Dirpaccount}[1] {\Diraccount{#1}}
+\newcommand{\Dirraccount}[1] {\Diraccount{#1}}
+\newcommand{\Dirwaccount}[1] {\Diraccount{#1}}
+\newcommand{\Dirtitle}[1] {{#1}}
+\newcommand{\Dirname}[1] {{#1}}
+\newcommand{\Dirnote}[1] {{#1}}
%
% ------------------------------------------------------------
% D I R E C T O R Y
% ------------------------------------------------------------
%
-\def\dirbegin{\string\begin{tabular}{@{}l@{}}}
+\def\dirbegin{\string\begin{tabular}{@{}p{\dirtablewidth}@{}}}
\def\dirnext{\string\\}
\def\dirbreak{\dirnext} %% this will be redefined for phonebooks and addressbooks
\def\dirend{\string\end{tabular}}
@@ -276,7 +367,7 @@
\labelwidth\dirindent
\leftmargin\dirindent
\itemsep\dirsep}
- \if@breakversion
+ \if@break
\def\dirblock{\par}
\def\dirbreak{\par\noindent}
\def\dirgroup{}
@@ -299,15 +390,8 @@
% sectionning according to first letter in field
% ------------------------------------------------------------
%
-\if@splitversion
- \def\dirlastletter{-}
- \def\dircheck#1{%
- \if#1\dirlastletter%
- \else\def\dirlastletter{#1}\Dirheader{#1}%
- \fi}
-\else
- \def\dircheck#1{}
-\fi
+\def\dirlastletter{-}
+\def\dircheck#1{\if#1\dirlastletter\else\def\dirlastletter{#1}\Dirheader{#1}\fi}
%
% ------------------------------------------------------------
% define remaining bbl file commands