Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I modified the chapter title to be shown as 1. ..., but the headings still show CHAPTER. How can I remove the chapter in headings? Is there a way to modify the chapter style in the contents and heading at the same time?

enter image description here

\documentclass[12pt,oneside]{memoir}
\usepackage{lipsum}

\title{Document}
\author{prosseek}
% }

% http://tex.stackexchange.com/questions/97465/modify-default-memoir-chapter-style
\makeatletter
\newcommand{\fonttitle}{\chaptitlefont}
\makechapterstyle{mystyle}{%
\def\chapterheadstart{\vspace*{\beforechapskip}}
\def\printchaptername{}
\def\printchapternum{}
\def\printchapternonum{}
\def\printchaptertitle##1{\fonttitle \space \fonttitle \thechapter.\space \fonttitle ##1}
\def\afterchaptertitle{\par\nobreak\vskip \afterchapskip}
}
\makeatother

\chapterstyle{mystyle}

\begin{document}

\maketitle
\tableofcontents

\chapter{The Domain Problem and Stakeholders}
\section{First}
\lipsum 

\end{document}
share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

Chapter styles and page styles are two separate things. You only changed the chapter style.

If the headings style is ok for you and you only want to remove CHAPTER then use

\addtopsmarks{headings}{}{
  \createmark{chapter}{both}{shownumber}{}{. \ }
}
\pagestyle{headings}

You might want to consider adding \nouppercaseheads before \pagestyle{...}, this removes the uppercaseness of the headers.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.