18 votes
Accepted

Headers and font in KOMA-script

For the part entries in the page header I will modify my example from scrpage2: Three “marks” for headings. Note that there must be no unstarred \automark command after the redefinition of \partmark ...
user avatar
  • 81.7k
8 votes
Accepted

Problems with scrlayer-scrpage

This translates your page layout into KOMA's terms. It may not make the requested changes because I don't know what they are meant to be. Your example does not include any chapters, let alone chapter ...
user avatar
  • 183k
8 votes
Accepted

Page number digits do not look homogenous

This is how the old style numbers looks like in the default font (en-dash added for reference): (--\oldstylenums{1234567890}--) As you can see the sizes vary greatly, and without something stable it ...
user avatar
  • 49.5k
7 votes
Accepted

Set header using scrlayer-scrpage

There is also a starred version of \automark. From the scrguien.pdf: The difference in \automark and \automark* is, that \automark deletes all prior usages of \automark or \automark*, while \...
user avatar
  • 81.7k
7 votes

Set header using scrlayer-scrpage

In a single-sided document, a \section command doesn't issue a \markright. So, add the following lines in your preamble \renewcommand*{\sectionmark}[1]{% \markright{\MakeMarkcase{\ifnumbered{...
user avatar
7 votes

How to get a custom running foot in the scrbook class with scrlayer-scrpage package?

\clearpairofpagestyles removes the predefined content of both pagestyle scrheadings and plain.scrheadings. There are also the commands \clearmainofpairofpagestyles and \clearplainofpairofpagestyles to ...
user avatar
  • 81.7k
7 votes

How to use custom page style on a single page and another for all subsequent pages?

\thispagestyle{StyleA} sets the page style only for the current page. On the next page the style set by \pagestyle will be used again. Example: \documentclass{scrbook} \usepackage{scrlayer-scrpage} \...
user avatar
  • 81.7k
6 votes
Accepted

scrlayer-scrpage: different styles for different pages

Note that the unstarred version of \ihead sets only the content of the main page style while the starred version sets both. There is no need to use both if their argument ist the same. On the first ...
user avatar
  • 81.7k
6 votes

Configuration of scrlayer-scrpage Package

Remove the line \renewcommand*{\chapterpagestyle}{empty} from your code. Then the page style on chapter pages will be plain. To get no header entries on plain pages remove the optional argument of \...
user avatar
  • 81.7k
6 votes
Accepted

koma-script/scrlayer-scrpage: How to get rid of the rulers at the page edge when enabling the draft class option?

Thanks to @Ulrike's comment \usepackage[draft=false]{scrlayer-scrpage}
6 votes

Length of headsepline wrong when using BCOR and geometry

Change the order to \usepackage{geometry} \KOMAoption{headsepline}{0.5pt:\textwidth} Explanation \KOMAoption{headsepline}{0.5pt:\textwidth} \usepackage{geometry} uses the \textwidth that was ...
user avatar
  • 81.7k
6 votes
Accepted

setspace: double spacing messes the predefined position of page number

To get single spaced header and footer on all pages where a layer page style is used, add \KOMAoptions{onpsinit={\linespread{1}\selectfont}} to your preamble. Code: \documentclass{scrreprt} \...
user avatar
  • 81.7k
6 votes

How to get a custom running foot in the scrbook class with scrlayer-scrpage package?

Why and when \clearpairofpagestyles? scrlayer-scrpage defines two new page styles scrheadings and plain.scrheadings. Together they build a pair of page styles similar to headings and plain in most ...
user avatar
6 votes

Remove rulers from draft view

Your class loads package scrlayer-scrpage which adds the rulers if option draft is set. To disable the draft mode for package scrlayer-scrpage add \KOMAoptions{draft=false} to your preamble. Example: ...
user avatar
  • 81.7k
5 votes
Accepted

“draft” class/package option with scrlayer-scrpage

Any pagestyle defined by scrlayer-scrpage consists of 10 layers. You can use \ForEachLayerOfPageStyle{scrheadings}{#1\newline} to get a list of these layers in your document. On each page with a ...
user avatar
  • 81.7k
5 votes
Accepted

Increasing \footheight with scrlayer-scrpage

\footheight is total height of the foot, including height (space above the baseline) and depth (space below the baseline) of the foot. Your rule starts on the baseline. So the height of the foot ...
user avatar
  • 81.7k
5 votes
Accepted

How to produce a headsepline from the border of the page to the end of the chapter title

You could use \ifthispageodd to decide if the rule should go to the left or to the right and \makebox[0pt]... to hide the length of the \rule. \documentclass{scrbook} %\providecommand*\Ifthispageodd{\...
user avatar
  • 81.7k
5 votes

Running header: chapter and section in same line (KOMA)

You can have a short text in the header and a long text in the table of contents. You only need the option headings=optiontohead: \documentclass[ twoside=false, open=right, headings=optiontohead ]{...
user avatar
5 votes
Accepted

Flipbook Image Placement within Komaclass scrbook

I would declare an own layer for the flipbook which can be added to the page styles scrheadings and plain.scrheadings. Then you can still use \ohead and \rohead for other contents. \documentclass{...
user avatar
  • 81.7k
5 votes
Accepted

Applying a different format at every first page of a chapter using Scrlayer-Scrpage

The page style of first page of a chapter of most book classes, distinguishes from the page style of the other pages. Standard class book uses hard coded \thispagestyle{plain} for the first page of a \...
user avatar
5 votes
Accepted

scrlayer-scrpage: line with relative length

You could use: \documentclass{scrartcl} \usepackage{scrlayer-scrpage} \KOMAoptions{footsepline=:.25\textwidth,clines} \begin{document}test page\end{document} or \documentclass{scrartcl} \usepackage[...
user avatar
  • 81.7k
5 votes
Accepted

Symmetric header layers with scrlayer-scrpage

You have to use \AddLayersAtBeginOfPageStyle to add the layers before the default layers of scrheadings. But I am note sure what the desired result is. Maybe something like Code: \documentclass[...
user avatar
  • 81.7k
5 votes

How to set author, title and date in KOMA script header (scrlayer-scrpage)?

Here is how you could 'translate' your fancyhdr into scrlayer-scrpage: \documentclass[headinclude=true]{scrbook} \usepackage{blindtext} \usepackage[headsepline=.5pt]{scrlayer-scrpage} \pagestyle{...
user avatar
  • 2,999
4 votes

How to set the section "range" onto the head? scrpage2, scrbook, titlesec

The successor of scrpage2 is scrlayer-scrpage. With this package and an uptodate KOMA-Script version you can use something like \documentclass[12pt]{scrbook} \renewcommand\thesection{\arabic{section}}...
user avatar
  • 81.7k
4 votes

Problem with plain pagestyle in twosided document with scrlayer-scrpage

To format the plain pagestyle use the optional argument of \cfoot etc: \cfoot[<settings for plain>]{<settings for scrheadings>} If both arguments are equal, you can use the short starred ...
user avatar
  • 81.7k
4 votes
Accepted

Compiling error regarding scrlayer-scrpage

The mentioned online compiler uses a really old KOMA-Script version: Document Class: scrartcl 2013/12/19 v3.12 KOMA-Script document class (article) Current version is 3.22 and version 3.23 will be ...
user avatar
  • 81.7k
4 votes

Mid-document header/footer changes and reversions

The first page of a chapter always uses the page style defined by \chapterpagestyle (see the KOMA-Script manual, scrguien.pdf). So the \pagestyle{empty} does not change the page style of the first ...
user avatar
4 votes
Accepted

scrlayer-scrpage: 1st page header and footer in scrreprt without titlepage

Do not patch an internal KOMA-Script command. If your chapters should behave like sections, redeclare the chapter level using \RedeclareSectionCommand[ style=section, indent=0pt ]{chapter} Code: ...
user avatar
  • 81.7k
4 votes
Accepted

Supporting landscape mode with following design

If you don't need rotated output in the preview but only rotation of, e.g., a figure even a simple \rotatebox could be enough: \documentclass[ a4paper, 12pt, titlepage, ngerman, footheight=...
user avatar
4 votes
Accepted

Why does changing \fontsize in \setkomafont{pagehead} cause overfull \hbox?

The problem is the space between \fontsize{10pt}{10pt} and \selectfont. With this you get a \parbox of width \textwidth plus a space. And that is more than \textwidth. The following works out: \...
user avatar
  • 49k

Only top scored, non community-wiki answers of a minimum length are eligible