I'm using the document class memoir, and in the header for each chapter, it keeps reading 'Chapter 1. The Title of the Chapter'. Is there any way to remove the 'Chapter X' from the header? I've figured all of the other formatting issues out via Google, but I haven't been able to locate anything regarding this particular instance.
Asked
Active
Viewed 548 times
4
-
Are you using any predefined page style? – Gonzalo Medina May 25 '13 at 01:48
-
@GonzaloMedina: I set up my own page style (sort of) as an experiment, just trying to find a layout I like. Other than that, I've not change or redefined anything. – anon271828 May 25 '13 at 01:51
-
Ah, then my answer should do what you want. Let me know if it works for you. – Gonzalo Medina May 25 '13 at 01:53
2 Answers
4
You can redefine \chaptermark; for example:
\def\chaptermark#1{\markboth{#1}{}}
Gonzalo Medina
- 505,128
-
This works perfectly! It's too early, otherwise I'd accept it. +1. Would you mind explaining the meaning in the meantime? I saw similar things in the manual (of which I've only read portions trying to figure out how to get the layout I wanted), but the meaning itself has escaped me. – anon271828 May 25 '13 at 01:54
-
-
The #1 and \markboth. I'm currently looking at the manual to figure out why this does what I want it to. – anon271828 May 25 '13 at 02:06
-
Or a reference where I can learn the material fairly well in a brief (if possible) amount of time. – anon271828 May 25 '13 at 02:15
-
@anon271828 I am adding some explanations... the documentation for the
fancyhdrpackage contains some information on the marking mechanism. The LaTeX Companion also has some explanations. In some minutes I'll add some other comments. – Gonzalo Medina May 25 '13 at 02:21 -
@anon271828 I must leave now, but tomorrow I'll finish with some other comments about
\marbothand\markright. – Gonzalo Medina May 25 '13 at 02:33 -
That is way too complicated. This can be fixed with a memoir one liner. See addtopsmarks, add the change in the third argument. Or see my article about me our page styles, there is no reason to use that complicated code cited above (I'm on a tablet so I cannot post my solution at the moment) – daleif May 25 '13 at 08:13
-
@daleif I agree with you; this is one liner and my answer is exactly a one liner:
\def\chaptermark#1{ \markboth{#1}{}}. All the other code that appears in my answer was just to give an explanation (that I still haven't finished) of the various commands involved in the marking mechanism, since the OP requested some explanation. – Gonzalo Medina May 25 '13 at 11:45 -
@anon271828 I don't have time to complete the explanation I was writing, so I decided to suppress it; sorry about that, but you can find information in the references I mentioned before. – Gonzalo Medina May 25 '13 at 14:39
-
4
My solution
\addtopsmarks{headings}{}{
\createmark{chapter}{left}{nonumber}{}{}
}
\pagestyle{headings}
The default is
\createmark{chapter}{left}{shownumber}{\@chapapp\ }{. \ }
daleif
- 54,450