Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now
4

If sections, subsections etc. should not get a dot after the number, use option numbers=noenddot. One possibility to add the dot after chapter number is \usepackage{xpatch} \xpatchcmd\chapterformat{\autodot}{.}{}{\PatchFailed} \DeclareTOCStyleEntry[ entrynumberformat=\entrynumberwithdot ]{chapter}{chapter} \newcommand*\entrynumberwithdot[1]{\def\autodot{....


3

It's not hard with titlesec: \documentclass[12pt, a4paper]{book}% \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{lipsum} \usepackage{titlesec}% \titleformat{\chapter}[display]{\sffamily\huge\bfseries}{\filleft\chaptername \thechapter}{4ex}{}[{\titlerule[1.5pt]}] \begin{document} \chapter{Introduction} \sffamily \...


2

If you activate the klasse option headings=optiontohead|optiontotoc|optiontoheadandtoc*, you can use the options head={…} and tocentry={…} in the optional argument of sectioning macros. \documentclass[12pt,a4paper,headings=optiontohead]{scrreprt} \usepackage[automark,headsepline]{scrlayer-scrpage} \automark[chapter]{chapter} \usepackage{lipsum}% only for ...


2

You can redefine \chapterlineswithprefixformat: \documentclass[chapterprefix=true]{scrreprt} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{lipsum} \newcommand*{\originalchapterlineswithprefixformat}{} \let\originalchapterlineswithprefixformat\chapterlineswithprefixformat \renewcommand\chapterlineswithprefixformat[3]...


2

You can test for the current value of secnumdepth: \documentclass[paper=a4, pagesize=auto, fontsize = 12pt]{scrbook} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[lf, p, sflf, sfp]{libertine} \usepackage{biblatex} \KOMAoptions{% listof=totoc, bibliography=totoc } \makeatletter \def\thickhrulefill{\leavevmode \leaders \hrule ...


1

The following example updates \mychapter by doing the following: Store the second argument #2 in a command called \chaptoc. Use regexpatch's \xpatchcmd* to replace all occurrences of \\ with nothing (effectively removing them) Use \chaptoc as the addition to the ToC, while printing the original chapter title as part of \chapter*. \documentclass{report} \...


1

You ask too many questions in one submission. In answer to your quotations question: %\documentclass... \usepackage{epigraph} % ... \begin{document} \chapter{A chapter} \epigraph{The will ...}{Martin Luther} % ... \end{document}


1

you can use the koma option numbers=enddot so the first line will be \documentclass[a4paper,11pt,numbers=enddot]{scrreprt} Edit: This will set points also after section numbers. You may want to go with: Remove last dot in title numbering This is a solution specifically for KOMA-Script


1

Nesting the additional chapter in an additional environment does it: \documentclass{book} \newenvironment{additional} {\addtocounter{chapter}{-1}\renewcommand{\thechapter}{ \arabic{chapter}A}} {} \begin{document} \chapter{First original chapter} \begin{additional} \chapter{Added chapter} % I want this chapter to be Chapter 1A or 1a etc. \end{additional} \...


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