GeneralHeader information (chapter name) in plain pagestyle

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
The-herod
Posts: 3
Joined: Sun Jul 27, 2008 2:56 am

Header information (chapter name) in plain pagestyle

Post by The-herod »

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!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Post by Stefan Kottwitz »

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
LaTeX.org admin
Ted
Posts: 94
Joined: Sat Jun 23, 2007 4:11 pm

Header information (chapter name) in plain pagestyle

Post by Ted »

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...
Rather than reinventing the wheel, you might try using the memoir class.

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.
-- Ted [home/blog]
The-herod
Posts: 3
Joined: Sun Jul 27, 2008 2:56 am

Re: Header information (chapter name) in plain pagestyle

Post by The-herod »

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!
The-herod
Posts: 3
Joined: Sun Jul 27, 2008 2:56 am

Re: Header information (chapter name) in plain pagestyle

Post by The-herod »

Found out the default of the fancyhdr package was exactly what I need :D

Thanks! :)
Ted
Posts: 94
Joined: Sat Jun 23, 2007 4:11 pm

Header information (chapter name) in plain pagestyle

Post by Ted »

The-herod wrote:Found out the default of the fancyhdr package was exactly what I need :D
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
-- Ted [home/blog]
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Header information (chapter name) in plain pagestyle

Post by localghost »

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
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.


Best regards
Thorsten¹
Ted
Posts: 94
Joined: Sat Jun 23, 2007 4:11 pm

Header information (chapter name) in plain pagestyle

Post by Ted »

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.
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.

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.
-- Ted [home/blog]
Post Reply