Re: Setting chapter style within frontmatter (memoir class)
- From: Lars Madsen <daleif@xxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 08 Aug 2007 10:40:46 +0200
José Carlos Santos wrote:
Hi all,
I am typesetting a book using the memoir class. I want that every
chapter title is centered, without the word "Chapter" and with the
chapter number at the left of the title. No problem here:
\documentclass[12pt]{memoir}
\makechapterstyle{mystyle}{%
\renewcommand{\printchaptername}{}
\renewcommand{\chapternamenum}{}
\renewcommand{\chapnumfont}{\chaptitlefont\center}
\renewcommand{\printchapternum}{\chapnumfont \thechapter\space}
\renewcommand{\afterchapternum}{}}
\chapterstyle{mystyle}
\begin{document}
\frontmatter
\tableofcontents
\chapter{Foreword}
This book is about\dots
\mainmatter
\chapter{Begin}
So\dots
\end{document}
The problem is that the command "\chapterstyle{mystyle}" seems to take
effect after the \mainmatter declaration. Why is that? The memoir
documentation only says:
The \frontmatter declaration sets the folios to be printed in
lowercase roman numerals, starts the page numbering from i, and
prohibits any numbering of sectional divisions. Caption, equations,
etc., will be numbered continuously.
The chapter styles are not mentioned here at all. But I want all my
chapters to be as described above (including the table of contents).
What should I do?
Best regards,
Jose Carlos Santos
your style is not complete, you need configurations for unnumbered chapters
add
\renewcommand\printchapternonum[1]{\chaptitlefont\centering ##1}
also \center is not a command, use \centering
--
/daleif (remove RTFSIGNATURE from email address)
LaTeX FAQ: http://www.tex.ac.uk/faq
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
http://www.minimalbeispiel.de/mini-en.html
.
- Follow-Ups:
- Re: Setting chapter style within frontmatter (memoir class)
- From: Lars Madsen
- Re: Setting chapter style within frontmatter (memoir class)
- References:
- Setting chapter style within frontmatter (memoir class)
- From: José Carlos Santos
- Setting chapter style within frontmatter (memoir class)
- Prev by Date: Re: A successor to TeX/Latex?
- Next by Date: Re: Setting chapter style within frontmatter (memoir class)
- Previous by thread: Re: Setting chapter style within frontmatter (memoir class)
- Next by thread: Re: Setting chapter style within frontmatter (memoir class)
- Index(es):
Relevant Pages
|