General ⇒ Header information (chapter name) in plain pagestyle
Header information (chapter name) in plain pagestyle
Hello,
I'm using the extbook class (it's like book, only it allows to use bigger font sizes).
I created a backup of the extbook.cls file, and edited it so the titles etc will be as I wish. I also changed the \pagestyle to plain, so the page numbers will be on the bottom (foot?).
However, now it doesn't show the chapter name on the beginning of the page, and I thought maybe I can build such a thing by myself, so I could edit it too to fit my needs.
However, I don't know how to add such a thing, so it won't be in the pages that starts new chapters or the title page, but will be on all the other pages. Just like the heading pagestyle do...
Maybe someone here can give me an example code/a link to some text that explains how to do it?
Thanks a lot!
I'm using the extbook class (it's like book, only it allows to use bigger font sizes).
I created a backup of the extbook.cls file, and edited it so the titles etc will be as I wish. I also changed the \pagestyle to plain, so the page numbers will be on the bottom (foot?).
However, now it doesn't show the chapter name on the beginning of the page, and I thought maybe I can build such a thing by myself, so I could edit it too to fit my needs.
However, I don't know how to add such a thing, so it won't be in the pages that starts new chapters or the title page, but will be on all the other pages. Just like the heading pagestyle do...
Maybe someone here can give me an example code/a link to some text that explains how to do it?
Thanks a lot!
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Header information (chapter name) in plain pagestyle
Hi,
have a look at the fancyhdr package, it's written for construction of headers and footers. The fancyhdr documentation includes code examples.
If you have further questions feel free to ask.
Stefan
have a look at the fancyhdr package, it's written for construction of headers and footers. The fancyhdr documentation includes code examples.
If you have further questions feel free to ask.
Stefan
LaTeX.org admin
Header information (chapter name) in plain pagestyle
Rather than reinventing the wheel, you might try using the memoir class.The-herod wrote:However, I don't know how to add such a thing, so it won't be in the pages that starts new chapters or the title page, but will be on all the other pages. Just like the heading pagestyle do...
http://ctan.org/pkg/memoir
It combines features of some of the nicest packages into one single documentclass that can replace all of the standard classes.
Among other things, it supports pagestyles and chapterstyles. That is, you can separately customize the look of title pages and normal pages. There are standard styles and mechanisms for you to build your own.
One of the most useful aspects of memoir is its documentation. It is a great introduction to sophisticated concepts in (desktop) publishing. More importantly, it's a complete discussion of all of its features (there is an addendum that gives details about some updates too, but it's short).
Alternatively, check out koma-script.
http://ctan.org/pkg/koma-script
It also includes lots of useful features and terrific documentation.
Re: Header information (chapter name) in plain pagestyle
Great!
I'll try these both this afternoon, and come back if I'll have any trouble or with a code sample for other to use...
Thanks!
I'll try these both this afternoon, and come back if I'll have any trouble or with a code sample for other to use...
Thanks!
Re: Header information (chapter name) in plain pagestyle
Found out the default of the fancyhdr package was exactly what I need
Thanks!

Thanks!

Header information (chapter name) in plain pagestyle
I still strongly urge you to take a look at memoir, which includes the fancyhdr functionality (on purpose; plus, the author lets you override those features with the true fancyhdr if you really really want).The-herod wrote:Found out the default of the fancyhdr package was exactly what I need
At first I was hesitant to use memoir. For some reason, I clung to my very long preambles. However, now I see the value of including a single document class and doing very minimal setup in my preamble and getting very nice looking documents.
--Ted
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Header information (chapter name) in plain pagestyle
You should not insist on recommending your favorites to other users. The memoir class is versatile, but also complex. And using this class is everything but urgent. If the user has found what he searched for and doesn't need all the capabilities of the memoir class, he will work this way and everything is alright for him.Ted wrote:I still strongly urge you to take a look at memoir, which includes the fancyhdr functionality (on purpose; plus, the author lets you override those features with the true fancyhdr if you really really want).
At first I was hesitant to use memoir. For some reason, I clung to my very long preambles. However, now I see the value of including a single document class and doing very minimal setup in my preamble and getting very nice looking documents.
--Ted
Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Header information (chapter name) in plain pagestyle
I don't think I was insisting. I was urging him to sometime in his life look into memoir because I think it provides elegant solutions to lots of other problems and comes with extraordinary documentation. More importantly, memoir is not well known among novice LaTeX users, and so a little advertisement isn't a bad thing. In this particular case, I didn't want the original poster to assume that memoir and fancyhdr are simply alternative solutions to a single problem. memoir's functionality supersedes fancyhdr and probably many of the other packages that he's currently using.localghost wrote:You should not insist on recommending your favorites to other users. The memoir class is versatile, but also complex. And using this class is everything but urgent. If the user has found what he searched for and doesn't need all the capabilities of the memoir class, he will work this way and everything is alright for him.
These threads have heavy tails that are fodder for Google searches. Maybe this particular thread is closed with fancyhdr, but memoir might suit a future searcher better.
I didn't imagine my response would draw a slap on the wrist from a moderator. I guess I'll have to work on my tone if I get a chance to post here ever again. Thanks for the note.