LaTeX forum ⇒ Page LayoutFormatting header - "Chapter X" + Chapter Title

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
buddy88
Posts: 1
Joined: Mon Jun 30, 2014 9:13 am

Formatting header - "Chapter X" + Chapter Title

Postby buddy88 » Mon Jun 30, 2014 10:44 am

Hi everyone.

I am hoping to get some much needed advice here. I would like to format my header of a book according to the standards of my publisher. On the left book page I would like to have the chapter number and on the right book page the chapter title.
I am using TeXstudio and Komascript.

This is what I got so far:

  1. \documentclass[a4paper, 12pt, listof=totoc, headsepline, twoside, toc=flat, headings=big,version=first, chapterprefix=false, BCOR8.25mm, open=any]{scrbook}
  2.  
  3. \usepackage[]{scrlayer-scrpage}
  4. \usepackage[utf8]{inputenc}
  5. \usepackage[T1]{fontenc}
  6. \usepackage{lmodern}
  7. \usepackage{blindtext}
  8.  
  9. \usepackage[english,ngerman]{babel}
  10.  
  11. \renewcommand*{\chaptermarkformat}{}
  12.  
  13. \renewcommand*{\headfont}{\normalfont\footnotesize}
  14.  
  15. \pagestyle{scrheadings}
  16. \clearscrheadings
  17. \cehead[]{\chapapp~\thechapter}
  18. %\cohead[]{????? what should it say here????}
  19. \markboth{}{chapter}
  20. \ofoot{\pagemark}
  21.  
  22. \begin{document}



What I want it to look like:

-On the left side of the book I would like to have the chapter number (format "Chapter 1") and on the right book page I would like to have the chapter title (without the word "chapter" or so in front).
-The header needs to be centered.
-On the first page of a chapter, there should be no header
-On those pages that do not belong to a chapter (table of content, glossary, etc), the title should be on both pages (e.g. "Table of content" on the left and right book page).

Anyone any ideas? I appreciate any help.
Thank you.
Last edited by Stefan Kottwitz on Mon Jun 30, 2014 12:12 pm, edited 1 time in total.
Reason: code marked

Tags:

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Jun 30, 2014 11:32 am

Crosspost at GoLaTeX

Please read what our administrator thinks about this: Gimme Pizza
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

User avatar
Stefan Kottwitz
Site Admin
Posts: 9445
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Mon Jun 30, 2014 12:17 pm

Hi buddy,

cross-posts with a link to the related discussion are no problem, don't worry.

As you posted there in German: I gladly invite you to join our German partner site TeXwelt. Have a look around there, perhaps you like it. Many very experienced LaTeX friends are already there. There we go beyond the scope of a classical forum: while we provide user support for LaTeX, we use that knowhow to build a solution database, in German language, making using LaTeX easier.

Stefan
Site admin


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 7 guests