# Tag Info

27

The main downside is that it masks the problem and makes it less likely that you apply a better fix. If you are processing thousands of pages and don't want to hand correct that's a good thing, but if you are just doing a single book or thesis or something, it's better to see them and adjust by hand. If the last line of a paragraph is just one or two words, ...

20

Three aspects here, one on design, one on macro programming, one policy. At the design level, it's well-known that the standard classes are somewhat esoteric without modification. However, there are many (probably millions) of documents out there which rely on the standard designs or on altering them in a predictable way. Any changes to the core styling ...

17

KOMA-Script decides in the default setting that an “end dot” will be used if any section numbering macros (\thepart, \thechapter, …) use Roman numbers or any letters. When you change \thepart to use \arabic, it will switch automaticaly to “no end dot”. Do you want to never have an end dot, or to not have an end dot with Roman part numbers? No end dot in ...

16

I am the author of the memoir class. I had used the standard classes for my documents, usually with some added packages or preamble code to get the look I wanted, often writing new packages for that purpose. I eventually decided to produce the memoir class, based on the book/report classes with options for article class type output and including those ...

15

13

By default the new chapters are opening on the right hand page. Use the [openany] class option if that is not desired. \documentclass[openany]{scrbook} \usepackage[english]{babel} \begin{document} \chapter{Foo} \chapter{Bar} \end{document}

11


11

\chaptermark sets \markboth and then you can use \leftmark for the chapter in the header. Similarly, \sectionmark sets \markright. So \rightmark can be used for the section entry in the header. \documentclass{scrbook} \usepackage[ top=25mm, bottom=30mm, inner=20mm, outer=70mm, marginparsep=7mm, marginparwidth=45mm, ]{geometry} \usepackage{tikz}% ...

10


10

Thinking about it, I guess, it would not be worth the trouble. Thousands of packages rely on a certain feature of the LaTeX core and now somebody changes something. How in the world can you avoid breaking some peoples documents or other peoples packages? And then, all the angry users »this kind of document compiled for years!1!« There is a striking xkcd ...

9

scrbook defines a macro \ifnumbered that isn't a TeX if which is not necessarily wrong but it is a bit dangerous and here mcode pushes you over a cliff. You can restore scrbook s definition: \documentclass{scrbook} \let\zz\ifnumbered \usepackage{mcode} \let\ifnumbered\zz \begin{document} %\tracingall \chapter{matlab code} \end{document}

9

Update redefining \chapterlinesformat Since KOMA-Script version 3.19 the command \chapterlinesformat can be redefined to change the layout of chapter titles that have no prefix line. Now it is possible to set a different entry for the page headings or to use the starred versions of the chapter title command. Chapter titles with more than one line are ...

9

Do not use package tocloft (mentioned in your own answer) together with a KOMA-Script class. There is an KOMA-Script option to fill the space between the chapter title and the pagenumber in TOC with dots: \KOMAoptions{toc=chapterentrydotfill} If the page numbers for the chapter headings should not be bold use \addtokomafont{chapterentrypagenumber}{\...

8


8

onepage is not a valid KOMA option. If you want to switch to one-sided mode within a double-sided document when using KOMA classes you have to use twoside=false (being twoside a "simple switch" you can use no or off as well, instead of false), i.e. issue the command \KOMAoptions{twoside=false} just before your appendix.

8

Your problem can be solved with “widetext.sty”. This package mimicing the mechanism with the same name from RevTeX4 was written by Anjishnu Sarkar. Alas, the original home went away. Luckily, we can get a copy from a svn site of Einstein Toolkit, because they have used it for a document (direct link): https://svn.einsteintoolkit.org/documents/...

8


8

For the first problem, you can set \setlength{\nomlabelwidth}{1.5cm} in the preamble (adjust to the needed value), or follow the method suggested for how to set label width to widest element using nomencl? (a bit more complicated). For the second problem, the manual of nomencl suggests \setlength{\nomitemsep}{-\parsep} (also in the document preamble).

7

Just add \cleardoublepage to the action of \section. No packages: \long\expandafter\def\expandafter\section\expandafter{% \expandafter\cleardoublepage\section} Shorter: \usepackage{etoolbox} \preto\section{\cleardoublepage} Note: the \section command has (in the standard classes and also in the KoMa-script classes) a definition without arguments. The ...

7

From the tagging, it seems that you are using KOMAscript and the class scrbook. Then you change the font either with \setkomafont or \addtokomafont (see section 3.6, page 51 in the revised manual), and with the modifier chapterprefix. Try: \setkomafont{chapterprefix}{\rmfamily\Large\bfseries} or, to change to a serif typeface only: \addtokomafont{...

7

7

Change the default behaviour of scrbook for starting new chapters: \KOMAoptions{open=left}. Add something, that is not printed, like \mbox{}. Make sure the page number is not printed, too (pagestyle empty). Insert the page break. Reset the page counter to page 1. At end of \frontmatter, directly before \mainmatter (or in frontmatter directly before you start ...

7

Here is a suggestion without titlesec. Note, that the code needs KOMA-Script version 3.15 or newer. \documentclass[a4paper,chapterprefix]{scrbook} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{xcolor} \colorlet{chaptercolor}{blue!80!black} \setkomafont{chapter}{\normalfont\color{chaptercolor}\Huge} \...

7

Here is a solution using etoc package \documentclass{scrbook} \usepackage{etoc} \begin{document} \etocdepthtag.toc{mtchapter} \etocsettagdepth{mtchapter}{subsection} \etocsettagdepth{mtappendix}{none} \tableofcontents‎‎ \chapter{First chapter} text text text \section{A section} text text text \subsection{A subsection} text text text \appendix \...

7


7

You can use a trick I learnt some time ago: using the layout feature of geometry \documentclass{scrbook} \usepackage{geometry} \usepackage{kantlipsum} \geometry{ a4paper, layoutsize={20cm,27.9cm},% cut 1cm from the width layoutoffset={1cm,0cm},% put it in the offset inner=1cm, outer=2cm, showframe, } \renewcommand{\chapterformat}{% \hspace*{-...

6

Another solution with only KOMA-Script tools (and some low level trickery): \usepackage{scrpage2} \pagestyle{scrheadings} \setlength{\footskip}{0pt} \rofoot[\centerpageno{o}]{\centerpageno{o}} \lefoot[\centerpageno{e}]{\centerpageno{e}} \def\centerpageno#1{\leavevmode \vbox to 0pt{ \vss \hbox to 0pt{\Huge\normalfont \if#1o\kern 2em\else\hss\...

6

You can use the background package; a little exampe: \documentclass[twoside]{scrbook} \usepackage{background} \usepackage{ifthen} \usepackage{lipsum} \SetBgContents{} \SetBgAngle{0} \SetBgColor{black} \SetBgScale{3} \makeatletter \AddEverypageHook{% \ifthenelse{\isodd{\value{page}}}% {\SetBgPosition{1.05\textwidth,-.5\textheight}} {\SetBgPosition{0....

6

For the main toc Please read carefully again the linked answer and the KOMA-Script documentation1): By default in scrbook (and scrreprt) the toc is set in onecolumn modus. Only, when you want to have it in two columns, you need \unsettoc{toc}{onecolumn}. So, leaving it out is the solution here … For the minitoc Use \setchapterpreamble2). Note, you must ...

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