Questions tagged [koma-script]
KOMA-Script is a bundle of classes and packages replacing the LaTeX standard classes and providing additional features with emphasis on typography and versatility.
55 questions from the last 365 days
2
votes
1
answer
32
views
KOMA-Script v3.49.2 does not like my "runin"
This document throws an error Package scrbase Error: unknown option 'runin=false'.
scrbase.sty indicates this is KOMA-Script version 2026/02/02 v3.49.2 KOMA-Script.
\documentclass{scrreport}
\...
2
votes
2
answers
136
views
Restricting the area in which text is typeset, for letters
I want to write a letter template. The code below works but has the disadvantage that one has to state how many lines a paragraph has, so that it does not spill over into the margin where the details ...
0
votes
1
answer
38
views
Switch option 'headinclude' in KOMA-Script by pagestyle
In a KOMA document I toggle the headings
\KOMAoptions{headinclude=on}
\KOMAoptions{DIV=last}
It works.
But I need to create a custom style where this heading is not taken into account.
I can create a ...
4
votes
1
answer
58
views
Issue attempting "fullwidth" image on document
I'm writting report in "Tufte-style" with scrreprt koma-script class.
I'm quite happy with the result, but I cannot figure out how to put a figure in full width of the page.
I want to keep ...
1
vote
0
answers
49
views
Change headsepline for KOMAscript
How can I control the output of headsepline in KOMAscript?
I need the line to be broken in the middle
Attempt to control the output via
\renewcommand*{\headsepline}{%
\makebox[\textwidth]{%
\rule{...
0
votes
1
answer
55
views
DocumentMetadata combined with scrclass changes \@footnotemark
Following:
\DocumentMetadata{lang=en-US}
\documentclass{scrbook}
\begin{document}
x
\end{document}
causes
(/usr/local/texlive/2025/texmf-dist/tex/latex/koma-script/tocbasic.sty)
LaTeX Warning: ...
3
votes
2
answers
108
views
Custom Font and Bolding Not Compatible In Font Setup Commands [KOMA-Script] [closed]
I am trying to use \setkomafont to set the font of titles and headings, but when I try to use a custom font with \fontspec or \fontfamily, it overrides \bfseries instead of applying them both. So, ...
0
votes
1
answer
34
views
longtable inside \chapter* with KOMA-Script scrreprt breaks headers/footers
I'm writing a report using KOMA-Script (scrreprt) and want to include a "Nomenclature" chapter. This chapter is unnumbered (\chapter*{Nomenclature}) and should appear in the table of ...
2
votes
0
answers
33
views
Conflict between KOMA-Script (scrbook) and babel [czech] after MiKTeX update: "\@startsection" hook error [duplicate]
After updating MiKTeX (verified in MiKTeX Console, 2026-01-12), I encountered the following issue:
Minimal Working Example (MNWE):
\documentclass{scrbook}
\usepackage[czech]{babel}
\begin{document}
...
2
votes
0
answers
53
views
PDF 2.0 + hyperref: titles of toc entries are not clickable
mwe.tex:
%\DocumentMetadata{lang=en}
\documentclass{scrartcl}
\usepackage[hidelinks]{hyperref}
\begin{document}
\tableofcontents
\clearpage
\section{My first section}
\end{document}
I'm now running:
...
4
votes
1
answer
39
views
Place the dotted line in a TOC after first line in KOMA-script scrbook-class with a twoline TOC-entry
I would like to adjust the appearance of a twoline-TOC entry with scrbook, a KOMA-script document-class. The option chapterentrywithdots enables »dotting« the chapter entry. The book is structured by ...
6
votes
2
answers
165
views
Incompatibility between KOMA-script classes and babel Spanish [closed]
While using [spanish]babel with a KOMA-script class (I've tried with scrartcl and scrbook) I get the following error:
LaTeX hooks: Generic hooks cannot be added to '\@startsection'.
How can I fix ...
10
votes
2
answers
92
views
How to use \setcapwidth with \maxof from calc in TeXLive 2025?
As of TexLive 2025, I started running into an error with the following MnWE:
\documentclass{scrartcl}
\usepackage{calc}
\setcapwidth{\maxof{\textwidth}{0.8\textwidth}}
\begin{document}
This fails with ...
0
votes
0
answers
49
views
Paragraphs in captions with KOMA >= v3.48 (recent caption.sty regression)
The caption package recently lost its compatibility with KOMA-script >= 3.48.
Some more context in the issue tracker of the caption package: https://gitlab.com/axelsommerfeldt/caption/-/issues/183
...
0
votes
2
answers
74
views
parskip and parindent in KOMA-script classes
How can I have parskip and parindent in a KOMA-script class?
I read this question, but \restoreparindent only works with parskip package, which I'm not using because of the KOMA-script class.