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

pagestyle in memoir part/chapter

34 views
Skip to first unread message

nonglobal

unread,
Nov 18, 2009, 3:45:50 PM11/18/09
to
Hello,
(minimal example bellow)
I try to get a particular pagestyle in memoir:
the part name in the left-evenpages and chapter in right-odd pages.

With de code bellow from, the manual, I get the part name in left-even
pages but the section name in the right-odd pages.

Using MikTex 2.8 (under Vista) and Memoir recently (today) updated.

Minimal example:


\documentclass[letterpaper,11pt,twoside]{memoir}
\usepackage{lipsum}

%from manual: page 124 [7.3.1]
\makepsmarks{headings}{%
\createmark{part}{left}{nonumber}{\partname\ }{. \ }
\createmark{chapter}{right}{nonumber}{\@chapapp\ }{. \ }
}
\pagestyle{headings}

\begin{document}

\chapterstyle{bringhurst}

\mainmatter
\part{Begining}
\chapter{This is the chapter 1}
\lipsum[1-3]
\section{sec. 1}
\lipsum[1-3]
\section{sec. 2}
\lipsum[1-6]
\subsection{subsection}
\lipsum[1-5]

\end{document}

I will appreciate any help.
Thanks in advance.

Lars Madsen

unread,
Nov 18, 2009, 4:42:32 PM11/18/09
to
nonglobal wrote:
> Hello,
> (minimal example bellow)
> I try to get a particular pagestyle in memoir:
> the part name in the left-evenpages and chapter in right-odd pages.
>
> With de code bellow from, the manual, I get the part name in left-even
> pages but the section name in the right-odd pages.
>
> Using MikTex 2.8 (under Vista) and Memoir recently (today) updated.
>

the problem is that the section mark also sets the rightmark so the
rightmark set by chapter is overridden.

try adding

\renewcommand\sectionmark[1]{} to your \makepsmarks

/daleif

nonglobal

unread,
Nov 20, 2009, 9:59:46 AM11/20/09
to

Ok. Yes that solve the problem.
This is the code.

\makeatletter
\makepsmarks{headings}{%
\createmark{part}{left}{shownumber}{\partname\ }{. \ }
\createmark{chapter}{right}{shownumber}{\@chapapp\ }{. \ }
\renewcommand\sectionmark[1]{}
\makeatother
\pagestyle{headings}

If no makeat* an error popups:
! You can't use `\spacefactor' in internal vertical mode.
<to be read again> \spacefactor
\@m CHAPAPP\ 1. \ THIS IS THE CHAPTER
1

Thanks a lot... again.

0 new messages