## LaTeX forum ⇒ Text Formatting ⇒ fancyhdr and Koma book class

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Johannes_B
Site Moderator
Posts: 4186
Joined: Thu Nov 01, 2012 4:08 pm

### Re: fancyhdr and Koma book class

It took me two hours (with interruptions) so here are my two cents:

You can go with fncychap if you want. It uses commands (like \rm) which are deprecated for right about 20 years now. To be honest, i think it is pretty ugly. Other people are making fun of it as well (but in conjunction with Comic Sans).

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

mike1264
Posts: 27
Joined: Wed Jul 24, 2013 6:07 pm
Many thanks - brilliant!

Mike

mike1264
Posts: 27
Joined: Wed Jul 24, 2013 6:07 pm
Hi Johannes_b,

First off, thank you for the enormous time and effort you and others have given to my problems with formatting. It really is much appreciated!
I agree with you on the use of 'fancychap' - I have been thinking I would like to remove this because it detracts from the excellent formatting latex provides. The more I have read the comments in this posting from everyone including yourself, I am drawn more and more towards letting latex do the formatting with as little intervention from me. I am learning!
One small problem remains: when I run your code, as is, I can't see any headers or footers. I wonder if I have missed something?

Thanks,
Mike

Johannes_B
Site Moderator
Posts: 4186
Joined: Thu Nov 01, 2012 4:08 pm
Hi Mike,

we like to help

Are the headers and footers missing on all pages?
Pages where a chapter starts are set with the plain style, cf. scrguien.pdf
You can change the plain style as well by providing an optional argument to \ohead[plain]{others}.

Titlepages are empty by default.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

mike1264
Posts: 27
Joined: Wed Jul 24, 2013 6:07 pm
Hi Johannes_B,

Regarding the code you provided, just a few questions:

1. Where you use "blindtext" in your code, is this adding random text at that point - like lorem ipsum does?

2. Where you use "blinddocument" that inserts an example document with example formatting. Should I write in at that point an "addchap" or an "\input" or "\include" with a pointer to one of my chapter files?

3. The \marginpar{The times of Love, Peace and Music} statement in the code adds a marginal note - do I need to make the margin larger for this to be included if I need to?

4. This statement in the code I didn't understand why it is there: "\iffalse We can better see how the text block is laid out on the page with package showframe. Be aware, that your marginpar column is running out of the page.\fi". I understand it as an 'if-then' statement.

Thanks,
Mike

mike1264
Posts: 27
Joined: Wed Jul 24, 2013 6:07 pm
A little question,

Can '\marginpar{A note in the margins.}' be assigned to either outer or inner margins?

Cheers,
Mike

Johannes_B
Site Moderator
Posts: 4186
Joined: Thu Nov 01, 2012 4:08 pm
Hi Mike,

1. Exactly, just some random text so there is something to see on the page.

2. Not sure what you mean. Where Blinddocument inserts a chapter, you can do the same.

No matter if you use input or include at the point, but there are differences.

Please make a mental note, that \chapter{chapter title} makes a numbered chapter \addchap adds an unnumbered chapter.

3. Exactly, your margin is atm just not big enough to fit a marginpar. If you do not need marginpars, then nevermind.

4. This \iffalse \fi is indeed a conditional. It treats everything inbetween as a comment. This is not very good style but pretty handy in a minimal example. The thing about marginpars have been discussed in 3.

Not sure about the marginpars in inner and outer margin. But i think it is possible using scrlayer-scrpage, or scrlayer-notecolumn. Would need to check that. Please open up a new question for that.

Little hint, use *code* instead of *mwe* to include code.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

mike1264
Posts: 27
Joined: Wed Jul 24, 2013 6:07 pm
Hi Johannes_B ,

Again - thanks!! I'll work on your suggestions this afternoon and finalise the layout.

Mike