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).
Post Reply
buddy88
Posts: 1
Joined: Mon Jun 30, 2014 9:13 am

Formatting header - "Chapter X" + Chapter Title

Post by buddy88 »

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:

Code: Select all

\documentclass[a4paper, 12pt, listof=totoc, headsepline, twoside, toc=flat, headings=big,version=first, chapterprefix=false, BCOR8.25mm, open=any]{scrbook}
                         
\usepackage[]{scrlayer-scrpage}                         

\usepackage[utf8]{inputenc}  
\usepackage[T1]{fontenc}
\usepackage{lmodern}     
\usepackage{blindtext}

\usepackage[english,ngerman]{babel} 

\renewcommand*{\chaptermarkformat}{}

\renewcommand*{\headfont}{\normalfont\footnotesize}

\pagestyle{scrheadings}
\clearscrheadings
\cehead[]{\chapapp~\thechapter}
%\cohead[]{????? what should it say here????}
\markboth{}{chapter}
\ofoot{\pagemark}

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

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Formatting header - "Chapter X" + Chapter Title

Post by Johannes_B »

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: 10328
Joined: Mon Mar 10, 2008 9:44 pm

Formatting header - "Chapter X" + Chapter Title

Post by Stefan Kottwitz »

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
LaTeX.org admin
Post Reply