Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Preface in Latex?

4,656 views
Skip to first unread message

Staffan Ulfberg

unread,
Sep 27, 1993, 10:54:55 AM9/27/93
to
I want to include a preface in my LaTeX report. Does anybody know how to do this?
I don't want the preface to appear as 'Chapter 1: Preface,' as it does for the moment...

I'd be greatful for any responses!

Staffan
---
================================================================================
E-Mail: Staffan...@erisoft.se
After 1st of October 1993: d89...@sm.luth.se
================================================================================

Jeroen Paasschens

unread,
Sep 27, 1993, 12:38:15 PM9/27/93
to
In <1993Sep27.1...@lu.erisoft.se> su9...@lu.erisoft.se (Staffan Ulfberg) writes:

>I want to include a preface in my LaTeX report. Does anybody know how to do this?
>I don't want the preface to appear as 'Chapter 1: Preface,' as it does for the moment...

try
\chapter*{Preface}
\addcontentsline{toc}{chapter}{Preface}


Greetings
--
Jeroen Paasschens.
Faculty of Science Toernooiveld 1, University of Nijmegen,
6525 ED Nijmegen, the Netherlands
Phone: +31.80.652849 E-mail: jer...@sci.kun.nl

Arthur van Horck

unread,
Sep 28, 1993, 6:03:26 AM9/28/93
to
In article <CE0u7...@sci.kun.nl>, jer...@sci.kun.nl (Jeroen Paasschens) writes:
|> In <1993Sep27.1...@lu.erisoft.se> su9...@lu.erisoft.se (Staffan Ulfberg) writes:
|>
|> >I want to include a preface in my LaTeX report....


|> try
|> \chapter*{Preface}
|> \addcontentsline{toc}{chapter}{Preface}


A more general solution:

\newcommand{\frontmatter}{\pagenumbering{roman}\setcounter{secnumdepth}{-10}}
\newcommand{\body}{\clearpage\pagenumbering{arabic}\setcounter{secnumdepth}{3}}
\newcommand{\backmatter}{\clearpage\setcounter{secnumdepth}{-10}}

Things in the front- and backmatter get included in the toc, but get
no ugly numbers... Neither in the toc, nor in the text. Adapt
pagenumbering to your taste...

Best,
Arthur
--
***--*--*---------------------- Arthur van Horck ----------------------------+
** * * KUB-University Tilburg, the Netherlands Phone: (+31) 13 662232|
* * * Arthur....@kub.nl Fax: (+31) 13 662537|
+-*--*-----------------------------SPIN\SMCT---------------------------------+

Denbigh Starkey

unread,
Oct 1, 1993, 4:45:17 PM10/1/93
to
In article <1993Sep28.1...@kub.nl>, Arthur van Horck <ho...@kub.nl> wrote: >In article <CE0u7...@sci.kun.nl>, jer...@sci.kun.nl (Jeroen Paasschens) writes: >|> In <1993Sep27.1...@lu.erisoft.se> su9...@lu.erisoft.se (Staffan Ulfberg) writes:
>|>
>|> >I want to include a preface in my LaTeX report....
>
>|> try
>|> \chapter*{Preface}
>|> \addcontentsline{toc}{chapter}{Preface}
>
>A more general solution:
>\newcommand{\frontmatter}{\pagenumbering{roman}\setcounter{secnumdepth}{-10}}
>\newcommand{\body}{\clearpage\pagenumbering{arabic}\setcounter{secnumdepth}{3}}
>\newcommand{\backmatter}{\clearpage\setcounter{secnumdepth}{-10}}
>

Both of these solutions have a problem when using the book documentstyle
as they don't appear to change the page header. So, for example, if you
have a Preface preceded by a Table of Contents, then the word CONTENTS will
still appear as the header for the Preface.

Is there someone out there who can modify the \frontmatter command to
also change the page header to read PREFACE.

Currently the only solution that I have found is to make the Preface appear
as Chapter 0, which is really ugly.

Denbigh S.

vladimi...@gmail.com

unread,
Aug 6, 2020, 2:32:05 PM8/6/20
to
This will solve your problem - if it is still relevant 27 years later, which is longer than I have been on this planet. :)


\chapter*{Preface}
\addcontentsline{toc}{chapter}{\protect\numberline{}Preface}
\markboth{PREFACE}{} % Changes the header to say PREFACE

If you want the Preface to be aligned with the numbers in your table of contents, then use:

\chapter*{Preface}
\addcontentsline{toc}{chapter}{Preface}
\markboth{PREFACE}{} % Changes the header to say PREFACE


Best wishes,

Vladimir Grbić
0 new messages