# Tag Info

9

With KOMA-Script version 3.19 or newer and documentclass scrlttr2 there is no need to load an additional package to get page # of ## in your letter(s). You only have to redefine \pagemark using \pageref{\thisletter.lastpage}: \renewcommand\pagemark{{\usekomafont{pagenumber}% \pagename\nobreakspace\thepage\nobreakspace of\nobreakspace\pageref{\...

7

Since version 3.12 KOMA-Script provides the options footheight – equivalent of the headheight option for the footer footlines – specify number of lines of the footer instead of the height (default is 1.25), equivalent of the option headlines (provided since v3.00, default 1.25). If used in combination with the scrpage2 successor scrlayer-scrpage which ...

6

Here is a solution. First of all, if you have an up-to-date KOMA-script bundle, use scrlayer-scrpage instead of scrpage2. Instead of using \deftripstyle we will use \defpagestyle: The line \setlength{\headheight}{22pt} is to increase a little the room for the header. MWE (replace scrlayer-scrpage with scrpage2 if you have an old KOMA/script bundle) \...

6

Your use of new page styles is completely incorrect. To define a new page style, the KOMA-Script syntax is (see the KOMA-Script documentation, section 5.2.2. The Interface for Experts, p 217 onward): \newpagestyle{<name>}{<header definition>}{<footer definition>} where <header definition> and <footer definition> should ...

6

As explained in section 3.12 of the KoMaScript manual, chapter starting pages use the \chapterstyle page style and the default meaning of \chapterstyle is plain. Just renew the meaning: \documentclass[10pt,twoside,a4paper]{scrbook} \usepackage[utf8]{inputenc} \usepackage[ left=1cm, right=1cm, top=1cm, bottom=1cm, includeheadfoot ]{geometry} \...

6

As mentioned in the comments, it is sufficient to place the colorchange (done via \chaptercolor) after calling the chapter command. \documentclass{scrbook} \usepackage{blindtext} \usepackage[automark]{scrlayer-scrpage} \usepackage{xcolor} \clearscrheadfoot \ihead[\leftmark]{\leftmark} \ohead[\rightmark]{\rightmark} \cfoot[\pagemark]{\pagemark} %Now ...

6


5

First, prepend \setstretch{1} to the argument of \chead. (Don't use \singlespacing because that would add extra space at the start.) Second, because a singlespaced line's height is 0.8 times the height of a onehalfspaced line, change headlines=3 to headlines=2.4. \documentclass[fontsize=14pt,headlines=2.4,headinclude]{scrartcl} \usepackage[onehalfspacing]{...

5

The file does not exist by default. It should be placed anywhere the usual tex search mechanisms will find files. As it is mostly intended for local configuration, the natural place would be the current directory of the current project. If you want to make it available for all your projects then you should place in the local texmf tree. The exact ...

5

I also suggest the use of scrlayer-scrpage instead of scrpage2.... About your question, you can issue \lohead{\thesection\autodot} just after \chapter{Appendix} to obtain what you want. MWE \documentclass[headsepline, open=right,twoside=true, numbers=noenddot]{scrreprt} \usepackage[english]{babel} \usepackage{blindtext} \usepackage{scrlayer-scrpage} \...

5

You could use: \documentclass{scrartcl} \usepackage{scrlayer-scrpage} \KOMAoptions{footsepline=:.25\textwidth,clines} \begin{document}test page\end{document} or \documentclass{scrartcl} \usepackage[footsepline=:\the\textwidth*25/100,clines]{scrlayer-scrpage} \begin{document}test page\end{document} or \documentclass{scrartcl} \usepackage[footsepline=:\...

4

Here's a simple patch: we add to \@part the code that stores in \theparttitle the current part title. You can also give anywhere \parttitle{whatever} (perhaps with an empty argument) to change the footer. \documentclass{scrbook} \usepackage{scrpage2} \usepackage{etoolbox} \makeatletter \apptocmd{\@part}{\parttitle{#2}}{}{} \def\parttitle#1{\gdef\...

4

Since KOMA-Script version 3.12 there is a footheight option defined. Package scrlayer-scrpage (the successor of scrpage2) takes this option into account: \documentclass[ footheight=30pt ]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[headsepline,footsepline]{scrlayer-scrpage} \ofoot{Course year\\ 2010/2011} \begin{document} This is a sample ...

4

If you use a current KOMA-Script version, at least version 3.12 which is already available for MiKTeX and TeX Live via normal package update, everything works as expected: Note: This feature depends on option version. So if you are using a deprecated option, that sets version=first, it doesn't work.

4


4

You should use package scrlayer-scrpage. Here is how to change the headers font: \documentclass[oneside,12pt,numbers=endperiod]{scrartcl} \usepackage{scrlayer-scrpage} \usepackage{lipsum} \pagestyle{scrheadings} \setkomafont{pagehead}{\sffamily\upshape} \cohead{Das ist ein Test.} \begin{document} \section{A test section} \lipsum[11] \end{document}

4

Chapter pages uses page style plain by default. If there should be a line below of the header on plain pages too, add option plainheadsepline. Note that package scrpage2 is outdated. So here is an example with its successor scrlayer-scrpage: \documentclass{report} \usepackage[ markcase=noupper, headsepline,plainheadsepline, footsepline,...

3

You can redefine \maketitle to save and restore a copy of \@title. \documentclass{scrartcl} \usepackage[english]{babel} \usepackage[automark,headsepline]{scrpage2} \pagestyle{scrheadings} \makeatletter \ihead{\MakeUppercase{\@title}} \makeatother \usepackage{blindtext} \title{my doc title} \makeatletter \let\svmaketitle\...

3

3

You don't have to patch \maketitle just to remember the title \documentclass{article} \newcommand{\mytitle}{Save This Title} \title{\mytitle} \author{me} \begin{document} \maketitle The title of this document is \mytitle. \end{document} Edit ... but this will not remember the title for the header.

3

You can use a tabular: \documentclass[twoside,a4paper,11pt]{scrbook} \usepackage[T1]{fontenc} %encodage police \usepackage[utf8]{inputenc} %encodage clavier \usepackage[francais]{babel} %langue \usepackage{scrpage2} %head-foot koma \deftripstyle{fancy}[0pt][0.4pt] {\begin{tabular}[t]{@{}l@{}}\leftmark \\ \rightmark\end{tabular}}{}{\thepage} {Nom du ...

3

I'd use a \parbox; but since scrpage2 already uses a \parbox itself for placing the header, the final result will be almost unpredictable, unless we do the trick of hiding the height of the box \documentclass[fontsize=14pt,headlines=3,headinclude]{scrartcl} \usepackage[pass,showframe]{geometry} % just to draw frames \usepackage{fontspec} \setmainfont{CMU ...

3

You used a low level command, but missed the necessary command \selectfont at the end, read again the font guide, section “Selection commands”. This was the cause, why no font size change happened. Because you only wanted to change the second part, you should have put the font selection just before this second text part. To put it all together the relevant ...

3

Note, that scrpage2 is depreciated. So here is a suggestion using scrlayer-scrpage. \documentclass{scrreprt} \usepackage[automark,autooneside=false]{scrlayer-scrpage} \clearpairofpagestyles \ohead{\leftmark\ifstr{\rightmark}{\leftmark}{}{ -- \rightmark}} \usepackage{lipsum} \begin{document} \chapter{Cht} \section{Sct} \lipsum \section{SScctt} \lipsum \...

3


3

Note that the package scrpage2 is deprecated. The successor is scrlayer-scrpage. Then you can simple use a starred version of \automark to get the desired result: \usepackage[headsepline]{scrlayer-scrpage} \automark[section]{section} \automark*[subsection]{} Example: \documentclass[twoside]{scrartcl} \usepackage[headsepline]{scrlayer-scrpage} \automark[...

3

Different approach using the successor scrlayer-scrpage instead of the obsolete scrpage2. Using headinclude we define, that the head is part of the typearea, which in this example might not even be true.Using headlines we can give some height value and don't have to manually set the headheight. With onpsinit we give a command that is to be executed every ...

3

It is recommended to use scrlayer-scrpage with a KOMA-Script class. \documentclass{scrartcl} \usepackage[ autooneside=false,% use left and right marks with a onesided document automark% set \leftmark and \rightmark automatically by \section and \subsection ]{scrlayer-scrpage} \clearpairofpagestyles \ihead{\leftmark}% section on the inner (oneside: right)...

3