miller@sunybcs.UUCP (02/17/87)
I am in need of a Preface macro for LaTeX, and was wondering if someone had one that they could email me. It should have the following characteristics. 1. should generate a chapter-like entry in the Contents (the Preface will go after the contents and before the first chapter). It should not have a chapter number, however. 2. page numbering should remain in lower case roman numerals (like the Contents). 3. the header should contain 'Preface' in the same style as other headers, such as 'Contents'. 4. the word 'Preface' should appear as the section title at about the same vertical offset as Contents, but text should begin shortly thereafter on the same page (much as the Bibliography does). I would like this to work within the context of the 'book' document style. We have LaTeX 2.09, but our support staff is full of die-hard troff gurus that won't touch TeX. The most they would have to do with LaTeX was the installation. Thanks in advance, Russ Miller Assistant Professor SUNY/Buffalo Computer Science ======================================================================== | UUCP : {cmcl2,hao,harpo}!seismo!rochester!rocksvax!sunybcs!miller | | ...{allegra,decvax,watmath}!sunybcs!miller | | CSNET : miller@buffalo | | ARPA : miller%buffalo@csnet-relay | | BITNET : miller@sunybcs | ========================================================================
rusty@weyl.Berkeley.EDU.UUCP (02/19/87)
Try doing something like \documentstyle{book} \begin{document} \pagenumbering{roman} \chapter*{Preface\markboth{Preface}{Preface}} (text of preface here) \pagenumbering{arabic} \chapter{First Chapter} ... \end{document} You also need an \addcontentsline. You could wrap this all up into an environment with something like \newenvironment{preface}{% \pagenumbering{roman}% \chapter*{Preface\markboth{Preface}{Preface}}% \addcontentsline{toc}{chapter}{Preface}% }{% \pagenumbering{arabic}% } Then you could do \begin{preface} ... \end{preface}. Let me know if it works. -------------------------------------- rusty c. wright rusty@weyl.berkeley.edu ucbvax!weyl!rusty