Directory 0.98 User's Guide
January 30, 1998
1. Introductiondirectory is a macro package for LaTeX2e and BibTeX that facilitates the construction, the maintenance and the exploitation of an address book like database. It consists of five BibTeX style files (address.bst, phone.bst, email.bst, birthday.bst and letter.bst) designed to be used in conjunction with the LaTeX2e style file directory.sty. According to the bibliographical style used, the package has two main applications:
In the first case, directory behaves just like standard bibliographical packages do with lists of information concerning books, articles, proceedings, etc. For example, the name in the title of this guide refers to the corresponding entry in the directory listed in section . The first four BibTeX files permit several handlings of these informations. In the second case, the package enables the extraction of information of the database to be put in your document. It can for example be used to put the address of your correspondent in the address field of a letter. An archive of the package is available here: directory-0.98.tar.gz. The separate files are also available through the CTAN mirror sites in the bibliography/bibtex/contrib/directory/ subdirectory. Any questions, comments or suggestions? Send me an e-mail.
2. General description
2.1 Package inclusion and optionsThe package is included by the usual \usepackage[option]{directory}command at the top of the document, where option stands for one of the following:
The directory is produced by the \directory[extension]{filename} command, where filename represents the name of the bib file (without the bib extension) and where the optional argument extensionrepresents, if necessary, the extension of the file output by BibTeX (see section ). As usual, multiple bib files can be included, a comma separating the different filenames.
2.2 Making a citationAn entry is cited in the text by a \dir{key}, \pdir{key}, \rdir{key} or \wdir{key} command, equivalent to the standard \cite{key} command, where key is used in the same way as ever (referring to an entry in a bib file). The differences between the four citation commands will be explained in the next section. A \nodir{key} command exists and acts exactly like \nocite{key} for standard bibliographies.
2.3 The bst stylesThe style of the directory is chosen by a \directorystyle{style} command, where style is one of the following:
2.4 The bib file fieldsIn all entry types, name is the only obligatory field, since it serves as a key for sorting the entries.
2.5 CustomizationThe symbol produced in the text after a directory label when the symbol option is chosen can be easily redefined. The value used in this user's guide is: The flags marking the beginning of the different fields are easily customizable. The values used in this user's guide are: Two new dimensions defining the indentation of the fields and the amount of space between two entries have been introduced. The values used in this user's guide are:
3. Using both directory and bibliographySince BibTeX always produces an output file of the form ` filename.bbl', it is necessary-in order to use both directory and bibliography entries-, after generating the bbl file corresponding to the directory, to rename it with a new extension (for example dir), and to give this new extension as an optional argument to the \directory command. The normal procedure can then be followed during the rest of the bibliography processing. Remember that changing the directory (adding an entry or suppressing one) forces you to restart from the beginning.
4. ExampleDespite the option described in section 3, one of the most interesting way of using directory is to build a separate address book, including several bib files referring to several categories of people, companies or places, as in the example shown in this document: \nodir{*}A second interesting way of using directory is to use it in your faxes or letters. Using the standard LaTeX2e class letter.cls with the directory style letter, you may for example begin a letter by the following command (\wdir must be protect'ed since the argument of the letter environment is a moving argument): \begin{letter}{\protect\wdir{c.geuzaine}}Take a look at the example tex and bib files-directory.tex, family.bib and business.bib-and try the few options out. The source files are commented and easy to customize. I would be very happy to get your suggestions to improve this helpful little package.
Here are four bib entries (taken from family.bib and business.bib):
@Person{c.geuzaine,
name = "Christophe Geuzaine",
w.title = "Ir., Research Assistant",
w.name = "University of Li\`ege \\
Department of Electrical Engineering",
w.address = "Institut Montefiore (B28, P32, I21) \\
Sart Tilman, B-4000 Li\`ege, Belgium",
w.phone = "+32-(0)4-366.37.10",
w.fax = "/29.10",
w.email = "Christophe.Geuzaine@ulg.ac.be",
w.url = "http://www.montefiore.ulg.ac.be/~geuzaine",
birthday = "06 02",
p.email = "Christophe.Geuzaine@advalvas.be",
}
@Person{d.d.knu,
name = "Knudson, Daffy D. and Bugs Bunny",
nickname = "gnat and gnu",
birthday = "10 02 and 05 11",
p.address = "Haight Street 512, 80214 Novosibirsk, Gnuland",
p.phone = "+01-(0)2-765.43.21",
p.account = "010-1234567-05",
r.address = "Manor Lane 2, 80214 Novosibirsk, Gnuland",
r.phone = "+01-(0)2-876.54.32",
w.name = "University of Novosibirsk \\
Department of Octopus Parthenogenesis",
w.address = "Planck Institut (V1-V2, Park. U-67) \\
Hessenberg Road, 80214 Novosibirsk, Gnuland",
}
@Company{knudsoft,
name = "The Knudsoft Company",
email = "knud@knudsoft.com",
url = "http://knudsoft.com/hole/gates.htm",
}
@Place{knudsoft:rs.2,
name = "Knudsoft (RS.2 Cmptr Room)",
phone = "+01-(0)2-434.23.23",
}
5. Versions
|