Debian Codegraph @

texmf-dist/doc/latex/directory/directory.tex

raw
1 %% directory.tex
2 %% Copyright 1998-2004 Christophe Geuzaine <[email protected]>
3 %
4 % $Id: directory.tex,v 1.32 2004/09/22 21:05:18 geuzaine Exp $
5 %
6 % This program can be redistributed and/or modified under the terms
7 % of the LaTeX Project Public License distributed from CTAN
8 % archives in directory macros/latex/base/lppl.txt; either
9 % version 1 of the License, or (at your option) any later version.
10 %
11 % 'directory' user's guide and example file
12 %
13 % The parts you may want to customize are labeled with "CUSTOM:". The lines
14 % beginning with "%%tth:" are used by TTH (a LaTeX to HTML translator).
15
16 \documentclass[10pt]{article}
17
18 \usepackage[break,longdates]{directory}
19
20 % CUSTOM: uncomment one of the following:
21 % \directorystyle{email}
22 % \directorystyle{phone}
23 % \directorystyle{birthday}
24 % \directorystyle{letter}
25 % \directorystyle{address-html}
26 % \directorystyle{email-html}
27 % \directorystyle{address-vcard}
28 % \directorystyle{address-ldif}
29 \directorystyle{address}
30
31 % CUSTOM: here is how I customize the directory for this user's guide:
32 \renewcommand{\dirsymbol}{\raisebox{1ex}{\tiny{[see \S\ref{sec:output}]}}}
33 \renewcommand{\Dirlabel}[1]{{#1}}
34 \renewcommand{\Dirheader}[1]{\item\hspace{-\dirindent}\textbf{\MakeUppercase{#1}}}
35
36 \ifx\pdfoutput\undefined\else
37 \usepackage[colorlinks=true,urlcolor=blue]{hyperref}
38 \newcommand\MyURL{\begingroup\Url}
39 \renewcommand{\Diremail}[1]{\href{mailto:#1}{\MyURL{#1}}}
40 \renewcommand{\Dirurl}[1]{\href{#1}{\MyURL{#1}}}
41 \fi
42 \def\baselinestretch{0.98}
43
44 \newcommand{\BibTeX}{\textsc{Bib}\TeX}
45 \newcommand{\Quote}[1]{`{#1}'}
46 \newcommand{\DbleQuote}[1]{``{#1}''}
47 \newcommand{\Download}{\footnote{\texttt{directory} is available at
48 \url{http://www.geuz.org/directory/} or through the CTAN in the
49 \url{biblio/bibtex/contrib/directory/} subdirectory. \texttt{directory}
50 is distributed under the \LaTeX\ Project Public License (LPPL) since
51 version 1.11.}}
52
53 %%tth: \def\Quote#1{'{#1}'}
54 %%tth: \def\DbleQuote#1{''{#1}''}
55 %%tth: \def\Download{\footnote{\texttt{directory} is distributed under the
56 %%tth: \LaTeX\ Project Public License (LPPL) since version 1.11.}}
57 %%tth: \def\LaTeX{LaTeX}
58 %%tth: \def\BibTeX{BibTeX}
59
60 \pagestyle{headings}
61
62 \begin{document}
63
64 \title{\texttt{directory}: address books with \LaTeX\ and \BibTeX}
65
66 % CUSTOM: try e.g. \author{\wdir{c.geuzaine}} with \directorystyle{letter}
67 \author{\dir{c.geuzaine}}
68
69 %%tth: \special{html:<H3 align=center>Christophe Geuzaine</H3>}
70
71 \date{Version 1.20, 22 September 2004}
72
73 \maketitle
74
75 %%tth: \section*{Download}
76 %%tth: The current distribution of \texttt{directory} is
77 %%tth: \href{http://www.geuz.org/directory/src/directory-1.20.tgz}{directory-1.20.tgz}.
78 %%tth: This distribution contains both a
79 %%tth: \href{http://www.geuz.org/directory/directory.ps}{PostScript}
80 %%tth: and a \href{http://www.geuz.org/directory/directory.pdf}{PDF}
81 %%tth: version of the documentation. The separate files are also available
82 %%tth: through the \href{http://www.ctan.org/}{CTAN} sites in the
83 %%tth: \href{http://www.ctan.org/tex-archive/biblio/bibtex/contrib/directory/}
84 %%tth: {biblio/bibtex/contrib/directory/} subdirectory. Older versions are
85 %%tth: still available \href{http://www.geuz.org/directory/src/}{here}.
86 %%tth: Any questions, comments or suggestions? Send me an
87 %%tth: \href{mailto:[email protected]}{e-mail}.
88
89 \tableofcontents
90
91 \section{Introduction}
92
93 \texttt{directory}\Download\ is a macro package for \LaTeX\ and \BibTeX\ that
94 facilitates the construction, the maintenance and the exploitation of an
95 address book like database. It consists of five \BibTeX\ style files
96 (\texttt{address.bst}, \texttt{phone.bst}, \texttt{email.bst},
97 \texttt{birthday.bst} and \texttt{letter.bst}) designed to be used in
98 conjunction with the \LaTeX\ style file \texttt{directory.sty}. Depending on
99 the bibliographical style used, the package has two main applications:
100
101 \begin{enumerate}
102 \item
103 the construction of a list of information (address, phone number, etc.)
104 about selected persons, companies or places;
105 \item
106 the inclusion of a selected piece of information concerning a person, a
107 place or a company at a desired location in a document.
108 \end{enumerate}
109
110 In the first case, \texttt{directory} behaves just like standard
111 bibliographical styles: while standard bibliographical styles handle data
112 concerning books, articles, proceedings, etc., \texttt{directory} handles
113 data relative to people, companies or places. For example, the name in the
114 title of this guide refers to the corresponding entry in the directory
115 listed in section~\ref{sec:output}. The first four \BibTeX\ files provide
116 several ways to handle this data.
117
118 In the second case, the package enables bits of the database to be put in your
119 document. It can for example be used to put the address of your correspondent
120 in the address field of a letter.
121
122 \sloppypar
123 Four special \BibTeX\ style files (\texttt{address-html.bst},
124 \texttt{email-html.bst}, \texttt{address-vcard.bst} and
125 \texttt{address-ldif.bst}) are also provided for an easy generation of HTML,
126 vCard and LDIF versions of your directories.
127
128 \section{General description}
129
130 \subsection{Package inclusion and options}
131
132 The package is included by the usual \verb'\usepackage{directory}' command
133 at the top of the document. Four options are available:
134 \begin{description}
135 \item[\textmd{\texttt{break}:}] allows the directory fields to be broken
136 across pages;
137 \item[\textmd{\texttt{german}:}] creates directories in German;
138 \item[\textmd{\texttt{french}:}] creates directories in French;
139 \item[\textmd{\texttt{longdates}:}] prints birthday dates using month names
140 instead of numbers.
141 \end{description}
142 The old (before version 1.10) formatting options are now handled by the same
143 command mechanism as all other customization options (see
144 section~\ref{sec:custom}).
145
146 The directory is produced by the
147 \verb'\directory['\emph{extension}\verb']{'\emph{filename}\verb'}' command,
148 where \emph{filename} stands for the name of the \texttt{bib} file (without
149 the \texttt{bib} extension) and where the optional argument \emph{extension}
150 gives, if necessary, the extension of the file output by \BibTeX\ (see
151 section~\ref{sec:usingboth}). As usual, multiple \texttt{bib} files can be
152 included, a comma separating the different file names.
153
154 \subsection{Making a citation}
155
156 An entry is cited in the text by a \verb'\dir{'\emph{key}\verb'}',
157 \verb'\pdir{'\emph{key}\verb'}', \verb'\rdir{'\emph{key}\verb'}' or
158 \verb'\wdir{'\emph{key}\verb'}' command, equivalent to the standard
159 \verb'\cite{'\emph{key}\verb'}' command, where \emph{key} is used in the same
160 way as ever (referring to an entry in a \texttt{bib} file).
161 The differences between the four citation commands will be explained in the next
162 section.
163 A \verb'\nodir{'\emph{key}\verb'}' command exists and acts exactly like
164 \verb'\nocite{'\emph{key}\verb'}' for standard bibliographies.
165
166 \subsection{The \texttt{bst} styles}
167
168 The style of the directory is chosen by a \verb'\directorystyle{'\emph{style}\verb'}'
169 command, where \emph{style} is one of the following:
170 \begin{description}
171 \item[\textmd{\texttt{address}:}]
172 full listing in the directory of all fields corresponding to the
173 \emph{key} entry. The \verb'\dir{'\emph{key}\verb'}' command also prints the
174 \texttt{name} field of the entry in the document;
175 \item[\textmd{\texttt{phone}:}]
176 only the phone, cellular and fax fields corresponding to the cited entry are
177 displayed in the directory. The \verb'\dir{'\emph{key}\verb'}' command acts in
178 the same way as with the \texttt{address} style, except that the names are
179 abbreviated;
180 \item[\textmd{\texttt{email}:}]
181 only e-mail addresses are displayed in the directory. The
182 \verb'\dir{'\emph{key}\verb'}' command acts in the same way as with the
183 \texttt{address} style;
184 \item[\textmd{\texttt{birthday}:}]
185 only the birthdays are displayed, sorting the entries in chronological
186 order. The \verb'\dir{'\emph{key}\verb'}' command acts in the same way as with
187 the \texttt{address} style;
188 \item[\textmd{\texttt{letter}:}]
189 acts in a slightly different way than the four preceding styles. No directory
190 is produced with the \verb|\directory| command. The
191 \verb'\dir{'\emph{key}\verb'}' command results in the \texttt{name} field of
192 the \emph{key} entry to be printed in the document. The
193 \verb'\pdir{'\emph{key}\verb'}' (respectively \verb'\rdir{'\emph{key}\verb'}'
194 or \verb'\wdir{'\emph{key}\verb'}') command prints the name and the private
195 (respectively residence or work) address in the document in a tabulated way.
196 \end{description}
197
198
199 \subsection{The \texttt{bib} file fields}
200
201 \texttt{directory} defines three entry types: \verb'@person{}',
202 \verb'@company{}' and \verb'@place{}'. In all these types, \texttt{name} is
203 the only mandatory field, since it serves as a key for sorting the entries.
204 Here are all the available fields that can be defined for each entry:
205
206 \begin{verbatim}
207 @person{key,
208 name = "Full name(s), in standard BibTeX format",
209 nickname = "Nickname(s)",
210 birthday = "Birthday date(s), in numeric 'day month' format",
211 birthyear = "Birth year(s)",
212
213 p.street = "Street of private residence",
214 p.city = "City of private residence",
215 p.zip = "ZIP code of private residence",
216 p.state = "State of private residence",
217 p.country = "Country of private residence",
218 p.phone = "Private phone number",
219 p.cellular = "Private mobile phone number",
220 p.fax = "Private fax number",
221 p.email = "Private e-mail address",
222 p.url = "Private home page",
223 p.account = "Private bank account",
224
225 r.street = "Street of alternative residence",
226 r.city = "City of alternative residence",
227 r.zip = "ZIP code of alternative residence",
228 r.state = "State of alternative residence",
229 r.country = "Country of alternative residence",
230 r.phone = "Alternative phone number",
231 r.cellular = "Alternative mobile phone number",
232 r.fax = "Alternative fax number",
233 r.email = "Alternative e-mail address",
234 r.url = "Alternative home page",
235 r.account = "Alternative bank account",
236
237 w.name = "Work organization name",
238 w.title = "Job title",
239 w.street = "Street of work organization",
240 w.city = "City of work organization",
241 w.zip = "ZIP code of work organization",
242 w.state = "State of work organization",
243 w.country = "Country of work organization",
244 w.phone = "Work phone number",
245 w.cellular = "Work mobile phone number",
246 w.fax = "Work fax number",
247 w.email = "Work e-mail address",
248 w.url = "Work home page",
249 w.account = "Work bank account",
250
251 note = "Additional notes about the person",
252 }
253 \end{verbatim}
254
255 \begin{verbatim}
256 @company{key,
257 name = "Company name",
258 street = "Company street",
259 city = "Company city",
260 zip = "Company ZIP code",
261 state = "Company state",
262 country = "Company country",
263 phone = "Company phone number",
264 cellular = "Company mobile phone number",
265 fax = "Company fax number",
266 email = "Company e-mail address",
267 url = "Company home page",
268 account = "Company bank account",
269 note = "Additional notes about the company",
270 }
271 \end{verbatim}
272
273 \begin{verbatim}
274 @place{key,
275 name = "Place name",
276 street = "Place street",
277 city = "Place city",
278 zip = "Place ZIP code",
279 state = "Place state",
280 country = "Place country",
281 phone = "Place phone number",
282 cellular = "Place mobile phone number",
283 fax = "Place fax number",
284 note = "Additional notes about the place",
285 }
286 \end{verbatim}
287
288 Multiple names, nicknames or birthday dates should be be separated with
289 ``\texttt{and}''. For backward compatibility, or if an unconventional
290 address formatting is needed, the \texttt{street}, \texttt{city},
291 \texttt{state}, \texttt{zip} and \texttt{country} fields (and their
292 \texttt{p.}, \texttt{r.} and \texttt{w.} equivalents) can be replaced by
293 generic \texttt{address}, \texttt{p.address}, \texttt{r.address} or
294 \texttt{w.address} fields. As soon as an \texttt{address} field is defined,
295 any \texttt{street}, \texttt{city}, \texttt{state}, \texttt{zip} or
296 \texttt{country} field definition is ignored, and the formatting in the
297 \texttt{address} field is kept as is.
298
299 \section{Customization}
300 \label{sec:custom}
301
302 \subsection{Dimensions}
303
304 Three new dimensions defining the indentation of the fields (\verb'\dirindent'
305 and \verb'\dirparindent') and the amount of space between two entries
306 (\verb'\dirsep') have been introduced. The default values are:
307 \begin{quote}
308 \begin{verbatim}
309 \setlength{\dirindent}{3em}
310 \setlength{\dirparindent}{0em}
311 \setlength{\dirsep}{3ex}
312 \end{verbatim}
313 \end{quote}
314
315 If you want to explicitly introduce a new paragraph in a field, you
316 should use the \verb'\dirbreak' command.
317
318 A fourth dimension (\verb'\dirtablewidth') sets the width of the table used
319 to display fields in when the \texttt{letter} style is selected. The default
320 value is:
321 \begin{quote}
322 \begin{verbatim}
323 \setlength{\dirtablewidth}{0.5\textwidth}
324 \end{verbatim}
325 \end{quote}
326
327
328 \subsection{Flags and formats}
329 \label{sec:flagsformats}
330
331 Each field of a directory is easily customizable by redefining one of the
332 commands summarized in table~\ref{tab:commands} at the end of this user's
333 guide (page~\pageref{tab:commands}).
334
335 For example, to produce nicely formatted address booklets, you could
336 redefine the \verb'\Dirheader' command as
337 \begin{quote}
338 \begin{verbatim}
339 \pagestyle{headings}
340 \renewcommand{\Dirheader}[1]
341 {\newpage\markboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}}
342 \end{verbatim}
343 \end{quote}
344 (which will split the directory across pages, with the first letter used in
345 the sorting algorithm in the header of each page) or
346 \begin{quote}
347 \begin{verbatim}
348 \renewcommand{\Dirheader}[1]
349 {\item\hspace{-\dirindent}\textbf{\MakeUppercase{#1}}}
350 \end{verbatim}
351 \end{quote}
352 (which will produce inline headings).
353
354 When a field type appears multiple times in an entry, the default settings
355 assume the same formatting for each one. For example, there are three
356 instances of a \texttt{phone} type field in a full \texttt{person} entry,
357 i.e.\ \texttt{p.phone}, \texttt{r.phone} and \texttt{w.phone}, and the
358 \verb'\dirphone' and \verb'\Dirphone' customization commands apply to these
359 three instances in the same way.
360
361 To particularize the formatting of one of these instances, you can use
362 special versions of the customization commands, constructed by inserting
363 \texttt{p}, \texttt{r} or \texttt{w} after the \verb'\dir' or \verb'\Dir'
364 prefix of the original commands. For example, to customize only the
365 \texttt{phone} field in the work part, you should use \verb'\dirwphone' and
366 \verb'\Dirwphone'.
367
368 To change the formatting of names, you have to edit the \BibTeX\ style
369 files. For example, the default name format ``Christophe von Geuzaine, Jr.''
370 can be changed into ``von Geuzaine C., Jr.'' in your address books by replacing the line
371 \begin{quote}
372 \begin{verbatim}
373 s nameptr "{ff }{vv }{ll}{, jj}" format.name$ 't :=
374 \end{verbatim}
375 \end{quote}
376 in the file \texttt{address.bst} by the line
377 \begin{quote}
378 \begin{verbatim}
379 s nameptr "{vv }{ll}{ f.}{, jj}" format.name$ 't :=
380 \end{verbatim}
381 \end{quote}
382
383
384 \section{Using both \texttt{directory} and \texttt{bibliography}}
385 \label{sec:usingboth}
386
387 Since \BibTeX\ always produces an output file of the form
388 \Quote{\emph{filename}\texttt{.bbl}}, it is necessary---in order to use \emph{both}
389 directory and bibliography entries---, after generating the \texttt{bbl} file
390 corresponding to the directory, to rename it with a new extension (for example
391 \texttt{dir}), and to give this new extension as an optional argument to the
392 \verb'\directory' command. The normal procedure can then be followed during the
393 rest of the bibliography processing. Remember that changing the directory
394 (adding an entry or suppressing one) forces you to restart from the beginning.
395
396 \section{Generating directories with hypertext links}
397
398 You can use the \texttt{hyperref} package along with \texttt{directory}. For
399 example, adding the following lines in the preamble of your document and
400 using \texttt{pdflatex} will produce a PDF version of your directory, with
401 working links for the \verb'email' and \verb'url' fields.
402
403 \begin{quote}
404 \begin{verbatim}
405 \ifx\pdfoutput\undefined\else
406 \usepackage{hyperref}
407 \newcommand\MyURL{\begingroup\Url}
408 \renewcommand{\Diremail}[1]{\href{mailto:#1}{\MyURL{#1}}}
409 \renewcommand{\Dirurl}[1]{\href{#1}{\MyURL{#1}}}
410 \fi
411 \end{verbatim}
412 \end{quote}
413
414 \section{Generating HTML, vCard or LDIF directories}
415
416 Four special \BibTeX\ style files (\texttt{address-html},
417 \texttt{email-html}, \texttt{address-vcard} and \texttt{address-ldif}) allow
418 the easy generation of HTML, vCard and LDIF versions of your directories:
419
420 \begin{description}
421 \item[\textmd{\texttt{address-html}:}]
422 full listing in the HTML directory of all fields corresponding to the
423 \emph{key} entry. The output formatting is similar to that produced by \LaTeX\
424 with the \texttt{address} style;
425 \item[\textmd{\texttt{email-html}:}]
426 only e-mail addresses are displayed in the HTML directory;
427 \item[\textmd{\texttt{address-vcard}:}]
428 full listing in the vCard directory of all fields corresponding to the
429 \emph{key} entry.
430 \item[\textmd{\texttt{address-ldif}:}]
431 full listing in the LDIF directory of all fields corresponding to the
432 \emph{key} entry.
433 \end{description}
434
435 Since \BibTeX\ directly outputs a \texttt{bbl} file in HTML, vCard or LDIF
436 format, no additional program is needed to make the HTML/vCard/LDIF
437 conversion. The \texttt{bbl} file directly contains the HTML/vCard/LDIF
438 code, ready to be included in a HTML document or to be imported in a
439 vCard/LDIF-aware application (Apple Address Book, Microsoft Outlook, Mozilla
440 Mail, etc.).
441
442 This method presents nevertheless a little drawback: after \BibTeX'ing your
443 \LaTeX\ file, running \LaTeX\ on the same file (even with another
444 \verb|\directorystyle|) will produce errors, since the \texttt{bbl} file is
445 not understandable by \LaTeX. You have to either delete the \texttt{bbl}
446 file or to override the error messages (and to change the
447 \verb|\directorystyle|) before any subsequent successful \LaTeX\ run.
448
449 The handling of special characters in the HTML/vCard/LDIF directories is
450 also somewhat problematic: any special \LaTeX\ character sequence is output
451 the way it is in the \texttt{bib} file. This implies for example that
452 \verb|{\'e}| is printed in the HTML document as \verb|{\'e}|, and not as
453 \verb|&eacute;|. The vCard style assumes an ISO Latin 1 encoding of the
454 directory. If a special encoding is used in the \texttt{bib} file, the LDIF
455 output will need to be converted to UTF8. See the comments in the \BibTeX\
456 style files for more information.
457
458 \section{Example}
459 \label{sec:example}
460
461 Despite the option described in section~\ref{sec:usingboth}, one of the most
462 interesting way of using \texttt{directory} is to build a separate address
463 book, including several \texttt{bib} files referring to several categories of
464 people, companies or places, as in the example shown in this document:
465 \begin{quote}
466 \verb|\nodir{*}| \\
467 \verb|\directory{family,business}|
468 \end{quote}
469
470 A second interesting way of using \texttt{directory} is to use it in your faxes
471 or letters. Using the standard \LaTeX\ class \texttt{letter.cls} with the
472 directory style \texttt{letter}, you may for example begin a letter by the
473 following command (\verb'\wdir' must be \texttt{protect}'ed since the argument
474 of the \texttt{letter} environment is a moving argument):
475 \begin{quote}
476 \verb'\begin{letter}{\protect\wdir{c.geuzaine}}'
477 \end{quote}
478
479 Take a look at the example \texttt{tex} and \texttt{bib}
480 files (\texttt{directory.tex}, \texttt{family.bib} and
481 \texttt{business.bib}) and try the options out. The source files are
482 commented and easy to customize. I would be very happy to get your suggestions
483 to improve this package.
484
485 \subsection{Source file}
486
487 Here are four \texttt{bib} entries (taken from \texttt{family.bib} and
488 \texttt{business.bib}):
489
490 \begin{verbatim}
491 @Person{c.geuzaine,
492 name = "Christophe Geuzaine",
493 birthday = "06 02",
494 birthyear = "1973",
495 p.email = "[email protected]",
496 p.url = "http://www.geuz.org",
497 w.title = "Postdoctoral Scholar",
498 w.name = "Caltech, Applied and Computational Mathematics",
499 w.url = "http://www.acm.caltech.edu",
500 w.street = "1200 E California Blvd",
501 w.city = "Pasadena",
502 w.state = "CA",
503 w.zip = 91125,
504 w.country = "USA",
505 w.phone = "1 626 395 4552",
506 }
507
508 @Person{d.d.knu,
509 name = "Knudson, Daffy Duck and Bunny, Bugs and Mr. Pluto",
510 nickname = "gnat and gnu and pluto",
511 birthday = "10 02 and 05 11 and 01 01",
512 p.phone = "+01-(0)2-765.43.21",
513 p.cellular = "+01-(0)5-555.55.55",
514 p.account = "010-1234567-05",
515 r.street = "Haight Street 512",
516 r.zip = 80214,
517 r.city = "Novosibirsk",
518 r.country = "Gnuland",
519 r.phone = "+01-(0)2-876.54.32",
520 w.name = "University of Novosibirsk,
521 Department of Octopus Parthenogenesis",
522 }
523
524 @Company{knudsoft,
525 name = "The Knudsoft Company",
526 email = "[email protected]",
527 url = "http://knudsoft.com/hole/gates.htm",
528 }
529
530 @Place{knudsoft:rs.2,
531 name = "Knudsoft (RS.2 Computer Room)",
532 phone = "+01-(0)2-434.23.23",
533 }
534 \end{verbatim}
535
536 \subsection{Output}
537 \label{sec:output}
538
539 The output resulting from the \verb'\directory{family,business}' command is
540 shown below (all entries are listed, thanks to the \verb'\nodir{*}' command):
541
542 % CUSTOM: try e.g. citing just some of the entries
543 \nodir{*}
544
545 % CUSTOM: this has the same effect as \directory[bbl]{family,business}
546 \directory{family,business}
547
548 %%tth: \par directory generated with \href{directory-address.html}{address-html.bst},
549 %%tth: \href{directory-email.html}{email-html.bst},
550 %%tth: \href{directory-address.vcf}{address-vcard.bst} and
551 %%tth: \href{directory-address.ldif}{address-ldif.bst}.
552
553 \section{Contributors}
554
555 Many thanks to Bernd Schandl, Robert Walker Sumner, Thomas Ruedas and
556 J\"urgen G\"obel for their suggestions and corrections.
557
558 \section{Versions}
559
560 \begin{description}
561 \item[0.95] (Jan 8, 1998)
562 First distributed version.
563 \item[0.96] (Jan 9, 1998)
564 New documentation. Introduction of customization commands. New alignment
565 mechanism in the \texttt{addressbook} and \texttt{phonebook} environments.
566 \item[0.97] (Jan 26, 1998)
567 Entries \texttt{ccp} and \texttt{p.ccp} changed to \texttt{account} and
568 \texttt{p.account}.
569 \item[0.98] (Feb 9, 1998)
570 New style \texttt{letter.bst}. New commands \verb|\pdir|, \verb|\rdir| and
571 \verb|\wdir| to produce in-text addresses when used with the
572 \texttt{letter.bst} style. New internal key generation.
573 \item[0.99] (Feb 12, 1998)
574 Name change of old customization flags (\verb'\'\emph{name}\verb'flag' becomes
575 \verb'\dir'\emph{name}). New flags introduced: \verb|\dirnickname|, \verb|\dirphone|,
576 \verb|\dirfax|, \verb|\diremail|, \verb|\dirurl|, \verb|\diraccount| and
577 \verb|\dirand|.
578 \item[1.00] (Mar 26, 1998)
579 New HTML styles (\texttt{address-html.bst} and \texttt{email-html.bst}).
580 \item[1.01] (Oct 26, 1998)
581 Minor corrections.
582 \item[1.10] (May 6, 1999)
583 Major rewriting of \texttt{bst} files (suppression of direct \LaTeX\
584 formatting). Definition of new customization commands. New package global
585 options to split directories across pages and allow page breaks inside
586 directory fields. The \texttt{url.sty} package is now required.
587 \item[1.11] (May 7, 1999)
588 Introduction of \verb'\dirparindent'.
589 \item[1.12] (May 11, 1999)
590 Formatting commands can be particularized to each subfield by adding
591 \texttt{p}, \texttt{r} or \texttt{w} after the \verb'\dir' or \verb'\Dir'
592 prefix of the original customization command. Many simplifications and small
593 corrections in the page breaking mechanism and in the list environments.
594 \item[1.13] (Jun 21, 1999)
595 Fixed bug for long entries without blank spaces (e.g.\ in \texttt{url}
596 fields).
597 \item[1.14] (Jun 21, 2000)
598 More flexible definition of \verb|\Dirheader|.
599 \item[1.15] (Aug 28, 2000)
600 Added fields for cellular phones (suggested by Stefano Ferrari). Added
601 section explaining how to use \texttt{hyperref} to generate PDF documents
602 with hyperlinks. Updated web site address.
603 \item[1.16] (Feb 5, 2002)
604 Added \verb'\dirtablewidth' to set the width of the fields when the
605 \texttt{letter} style is selected. Suppressed the \texttt{split} option
606 (redefining the \verb'\Dirheader' command makes it possible to achieve the
607 same result: see section~\ref{sec:flagsformats}).
608 \item[1.17] (Dec 15, 2002)
609 Revised documentation.
610 \item[1.18] (Sep 13, 2003)
611 Added vCard and LDIF support.
612 \item[1.19] (Sep 15, 2003)
613 Split \texttt{address} into \texttt{street}, \texttt{city}, \texttt{state},
614 \texttt{zip} and \texttt{country}.
615 \item[1.20] (Sep 22, 2004)
616 Fixed small vcard export bug when using the old \texttt{address} fields;
617 new \texttt{german}, \texttt{french} and \texttt{longdates} options.
618 \end{description}
619
620
621 \begin{table}[p]
622 \caption{Summary of customization commands\label{tab:commands}}
623 \begin{center}\small
624 \begin{tabular}{@{}l@{\hspace{5pt}}c@{\hspace{5pt}}p{3.8cm}l@{}}
625 \hline
626 Command & Arg. & Explanation & Default \\
627 \hline
628
629 \verb'\dirsymbol' & 0 &
630 \raggedright In-text symbol produced after a directory citation &
631 \verb*'' \\
632
633 \verb'\dirand' & 0 &
634 \DbleQuote{anding} string &
635 \verb*'\normalfont{and}' \\
636
637 \verb'\dirbirthday' & 0 &
638 Birthday field flag &
639 \verb*'$\star$~' \\
640
641 \verb'\dirprivate' & 0 &
642 Private field flag &
643 \verb*'\emph{p}~' \\
644
645 \verb'\dirresidence' & 0 &
646 Residence field flag &
647 \verb*'\emph{r}~' \\
648
649 \verb'\dirwork' & 0 &
650 Work field flag &
651 \verb*'\emph{w}~' \\
652
653 \verb'\dirnote' & 0 &
654 Note field flag &
655 \verb*'$\triangleright$~' \\
656
657 \verb'\dirnickname' & 0 &
658 Nickname field flag &
659 \verb*'' \\
660
661 \verb'\diraddress' & 0 &
662 Address fields flag &
663 \verb*'' \\
664
665 \verb'\dirphone'$^*$ & 0 &
666 Phone fields flag &
667 \verb*'tel: ' \\
668
669 \verb'\dircellular'$^*$ & 0 &
670 Cellular phone fields flag &
671 \verb*'mobile: ' \\
672
673 \verb'\dirfax'$^*$ & 0 &
674 Fax fields flag &
675 \verb*'fax: ' \\
676
677 \verb'\diremail'$^*$ & 0 &
678 E-mail fields flag &
679 \verb*'' \\
680
681 \verb'\dirurl'$^*$ & 0 &
682 Url fields flag &
683 \verb*'' \\
684
685 \verb'\diraccount'$^*$ & 0 &
686 Account fields flag &
687 \verb*'acc: ' \\
688
689 \verb'\dirtitle' & 0 &
690 Title field flag &
691 \verb*'' \\
692
693 \verb'\dirname' & 0 &
694 Name field flag &
695 \verb*'' \\
696
697 \verb'\Dirlabel' & 1 &
698 Label format &
699 \verb*'{\textbf{#1}}' \\
700
701 \verb'\Dirheader' & 1 &
702 Command issued for each new starting letter in the directory (the arg.\ is
703 the first letter used in the sorting algorithm) &
704 \verb*'{}' \\
705
706 \verb'\Dirbirthday' & 2 &
707 \raggedright Birthday format (the first arg.\ is the day, the second
708 is the month) &
709 \verb*'{\number#2}/{\number#1}' \\
710
711 \verb'\Dirbirthyear' & 1 &
712 \raggedright Birth year format when a \texttt{birthday} field exists &
713 \verb*'/{#1}' \\
714
715 \verb'\DirbirthyearAlone' & 1 &
716 \raggedright Birth year format when no \texttt{birthday} field exists &
717 \verb*'{#1}' \\
718
719 \verb'\Dirnickname' & 1 &
720 Nickname format &
721 \verb*'(aka \emph{#1})' \\
722
723 \verb'\Diraddress'$^*$ & 1 &
724 Address format &
725 \verb*'{#1}' \\
726
727 \verb'\Dirphone'$^*$ & 1 &
728 Phone format &
729 \verb*'{#1}' \\
730
731 \verb'\Dircellular'$^*$ & 1 &
732 Cellular phone format &
733 \verb*'{#1}' \\
734
735 \verb'\Dirfax'$^*$ & 1 &
736 Fax format &
737 \verb*'{#1}' \\
738
739 \verb'\Diremail'$^*$ & 1 &
740 E-mail format &
741 \verb*'\url{#1}' \\
742
743 \verb'\Dirurl'$^*$ & 1 &
744 Url format &
745 \verb*'\url{#1}' \\
746
747 \verb'\Diraccount'$^*$ & 1 &
748 Account format &
749 \verb*'\url{#1}' \\
750
751 \verb'\Dirtitle' & 1 &
752 Title format &
753 \verb*'{#1}' \\
754
755 \verb'\Dirname' & 1 &
756 Name format &
757 \verb*'{#1}' \\
758
759 \verb'\Dirnote' & 1 &
760 Note format &
761 \verb*'{#1}' \\
762
763 \hline
764 \end{tabular}
765 \end{center}
766 \vspace{-5pt}\small
767 $^*$\,The commands marked with an asterisk also exist
768 in three other versions, controlling independently the private, residence and
769 work parts (e.g.\ \verb'\dirphone' can be particularized to \verb'\dirpphone',
770 \verb'\dirrphone' and \verb'\dirwphone').
771 \end{table}
772
773 \end{document}