Tag Info

Hot answers tagged

11

With scrbook the command to redefine is \cleardoubleoddstandardpage \documentclass[openright]{scrbook} \newcommand*{\blankpage}{% \par\vspace*{\fill}% {\centering This page would be intentionally left blank if we would not wish to inform about that.\par} \vspace{\fill}% } \makeatletter \renewcommand*{\cleardoubleoddstandardpage}{% \clearpage ...


7

You can define a special pagestyle for those pages using the package scrlayer and the KOMA option cleardoublepage=<pagestyle> \documentclass[open=right]{scrbook} \newcommand*{\blankpage}{% \par\vspace*{\fill}% {\centering This page would be intentionally left blank if we would not wish to inform about that.\par} \vspace{\fill}% } ...


6

You can use \widowpenalties to avoid that two lines are alone on the second page: \documentclass{article} \usepackage{lipsum} \textheight=10\baselineskip \widowpenalties=3 10000 10000 150 \begin{document} \lipsum[1-2] \end{document}


5

The documentation of KOMAscript has a whole chapter about how the text area is calculated according to typographic principles. Basically it boils down to certain relations between text area and blank spaces as well as aspect ratios of paper and text area. But also the font size plays a role as there is a (more or less strict) optimum of how many characters ...


5

The KOMA-Script classes uses DIV=default as default option for the page layout. default for a4paper and 11pt means 10. But with 10pt and a4paper default is only 8 resulting in bigger margins. If you really want you can set DIV=10, but you will get a warning. Maybe DIV=9 is a compromise: \documentclass[10pt,DIV=9]{scrartcl} \usepackage{blindtext} ...


5

You need to patch the \@startsection command; patching \section is also possible, but it would add a spacing command also for \section*. Not a big deal, but if it's possible to avoid it, the better. \documentclass[11pt,a4paper]{scrartcl} \usepackage{amsmath} \usepackage{etoolbox} \makeatletter \patchcmd{\@startsection} {\@dblarg} ...


4

Here's how you can obtain the output you're after in the KOMA-script classes: \documentclass[appendixprefix=true]{scrreprt} \usepackage{etoolbox} \makeatletter \g@addto@macro{\appendix}{% \patchcmd{\@@makechapterhead}% <cmd> {\endgraf\nobreak\vskip.5\baselineskip}% <search> {\hspace*{-.5em}:\space}% <replace> {}{}% ...


4

Just use \ifkomavarempty{fromemail}{true-code}{false-code} for example. \documentclass[refline=nodate]{scrlttr2} \usepackage{lipsum,marvosym} \setkomavar{fromname}{David} \setkomavar{fromemail}{} \setkomavar{place}{Here} \setkomavar{backaddress}{} \usekomavar[\edef\komaemail]{fromemail} \setkomavar{fromaddress}{Road 17\\9900 Place \hfill ...


4

They are both using bold but the T1 font is available in more design sizes so is considerably thinner at large size, the OT1 font is only available in 10pt and gets scaled. You can force the T1 font to do the same, just using the 10pt scaled by adding \makeatletter\input{t1cmss.fd}\makeatother \DeclareFontShape{T1}{cmss}{bx}{n}% ...


3

In the text section of the .pdf file \\ is interpreted correctly, but the compilation process complains about unallowed characters in PDFString. It's possible to force \texorpdfstring{\\}{^^J} with the TeX - primitive ^^J newline which at least is interpreted as a link break in the keywords section. In addition, the hyperref manual recommends to specify ...


3

The Tufte classes define an author command in a way, that a thanks is gobbled and just the name is stored (thankslessauthor). If an optional argument to \author was given, this is stored as the plainauthor, if none was given, thanklessauthor and plainauthor are the same. As you can see on the last page of the example, if the thanks is not gobbled, the ...


3

I have some problems compiling your document because of the MinionPro package. But, your problem is caused by the spaces inside \changefont. Replacing \changefont{phv}{b}{n} by \fontfamily{phv}\bfseries works for me: ... \colorbox{red}{\color{black}\fontfamily{phv}\bfseries\thechapter}% ... Alternatively, define your \changefont macro without spaces: ...


3

We now have an Environment (with xparse, but not necessary) that lets everything we need to look like article. Hardest part were the equation nubers because of the lacking beamer font template. You haveto use ~ for the white space in the beamer template names. \makeatletter \NewDocumentEnvironment {EmulateArticle} {} { %Roman Font: \rmfamily ...


2

\documentclass[10pt, a4paper, twoside, openright, titlepage, fleqn, headinclude, footinclude, BCOR5mm, numbers=noenddot, cleardoublepage=emptyast]{scrbook} %classic thesis template \usepackage[eulerchapternumbers, eulermath, pdfspacing, listings, floatperchapter,parts]{classicthesis} \makeatletter ...


2

You can set KOMAoptions at nearly every point in the document, but you have to make sure that they are passed and processed correctly. With the (soon obsolete) package scrpage2 you had to give the option headsepline to the package directly. Using the new scrlayer-scrpage allows you to set the headsepline as a documentclass option. ...


2

The font is indeed bold, as the following test file shows \documentclass{article} \usepackage[T1]{fontenc} \newcommand{\test}[1]{% normal: {#1test} --- bold: {#1\bfseries test}\par\medskip } \begin{document} \sffamily \test{\normalsize} \test{\large} \test{\Large} \test{\LARGE} \test{\huge} \test{\Huge} \fontencoding{OT1}\selectfont ...


2

The correct way is indeed to use index=totoc, but why? Let's take a look at the internals. Flowing down the levels of implementation How is theindex environment defined in book and scrbook? book.cls \newenvironment{theindex} {\if@twocolumn \@restonecolfalse \else \@restonecoltrue ...


2

It's a bug in cnltx-base.sty. The problem is on line 179 of cnltx-base.sty 179 \edef\cnltx@tmpa{\catcode`\%=\the\catcode`\% \catcode`\&=\the\catcode`\&} where the code is not sufficiently defensive; it should be 179 \edef\cnltx@tmpa{\catcode`\noexpand\%=\the\catcode`\% \catcode`\noexpand\&=\the\catcode`\& } so a possible change of ...


2

It may be unrelated, but I had problems with babel when I initially loaded the acro package. I solved them (perhaps fortuitously) by loading acro before babel. \documentclass[a4paper,12pt]{scrreprt} % KOMA report class \usepackage{acro} % Define and list acronyms (load before {babel}) \usepackage[greek, UKenglish]{babel} % Provides language support ...


1

Package csquotes does a great job handling all sorts of quotes and does some magic choosing the language appropiate marks. The package provides hooks to change the appearance of textquotes and blockquotes, but a for enquote seems to be missing. I copied the definition of the outer quote level (quotes can be nested) and added a font switch. The inner level ...


1

Here is a suggestion using the package scrlayer-scrpage \documentclass{scrbook} \usepackage{lipsum} \usepackage[manualmark]{scrlayer-scrpage} \clearpairofpagestyles %%% alternatively: %\usepackage[manualmark]{scrpage2} %\clearscrheadfoot %\pagestyle{scrheadings} \chead{\pagemark} \lehead[\rightmark]{\rightmark}\rohead[\leftmark]{\leftmark} ...


1

I asked you in the comments, if you need to genereate a TOC and was pretty persistent with my request for an answer. There is a pretty good reason for that. Right now, (with this solution/workaround) there are no section titles printed at all (in the classical sense using \@startsection). Everytime you call the new command sectiona the page ist cleared ...


1

The following is almost the same as @werners answer, with a slight difference. With the option appendixprefix you get the prefix appendix just before the number. This contradicts with having the title on the same line (this is the way it is implemented). The main idea is the same, patching \@@makechapterhead as there happens the magic. At first i saved just ...


1

There are options to use hooks for the pagestyles. To ensure that all headers and footers are one half spaced insert \KOMAoptions{onpsinit=\onehalfspacing} after loading the scrlayer-scrpage package. \documentclass[BCOR=10mm,DIV=11]{scrreprt} \usepackage{setspace} \usepackage{microtype} \usepackage{blindtext} \usepackage[ automark, ...


1

Define a new command wich executes \cleardoublepage and changes the color: \newcommand{\changechaptercolor}[1]{% \cleardoublepage% \renewcommand\chaptercolor{#1}% } Then you can use \documentclass[fontsize=12pt]{scrbook} \usepackage[ngerman]{babel} \usepackage{blindtext} \usepackage{xcolor} \newcommand\chaptercolor{red} ...



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