Tag Info

Hot answers tagged koma-script

8

For the part entries in the page header I will modify my example from scrpage2: Three “marks” for headings. Note that there must be no unstarred \automark command after the redefinition of \partmark because this would reset this definition. To get serif font in the section titles you can change font element disposition \setkomafont{disposition}{\...

8

Use the option the KOMA-bundle provides to get the old font commands back. The option was considered deprecated when implemented, hence you are still getting a warning for using it (once). \documentclass[enabledeprecatedfontcommands]{scrartcl} \usepackage{tex4ht} \begin{document} \it Wombat \bf Capybara \end{document} It should be mentioned though, that ...

6

As you may know, old-style font commands like \rm and \it are deprecated in LaTeX. The answer at Does it matter if I use \textit or \it, \bfseries or \bf, etc explains some of the pitfalls of the old-font commands. The more modern approach uses the notions of font family, series, and shape as three orthogonal vectors of a font's definition. Examples of ...

5


5

2016-06-26 edit This bug in typearea.sty got fixed in Komascript 3.21 which was released on 2016-06-17. Update your TeX distribution and the Problem should be gone. original post It is a simple typo in typearea.sty (missing backslashes) which will be corrected with the next update. As a workaround use the option pagesize=false as suggested in http://www....

4

A possible solution working for article and scrartcl (i.e. without using features of KOMA) The page numbers are still right justified, but the width of the page number slot at the right margin is too small, because Roman numbers need more space to be typeset than arabic figures. Increasing the value of \@pnumwidth will solve this problem, however, this ...

3


3

If you do not change the BCOR inside the document it may be better to use \newcommand\myBCOR{10cm} \KOMAoptions{BCOR=\myBCOR} Note that \ta@bcor is an undocument internal length. So its name can be changed in the future.

3

You can enlarge DIV. Example: \documentclass[...,DIV=10]{scrartcl} Then the margins are smaller but with the same ratio. The default value for fontsize=10pt and paper=a4 is DIV=8. But you will get a warning by the KOMA-Script package typearea: Package typearea Warning: Bad type area settings! (typearea) The detected line width is about ...

3

You can reduce the white space of the page by setting the offsets in preamble. For e.g. \usepackage[a4paper,left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry}

3

You should use \leavevmode before the color command. This will avoid that a page break can occur between the color and the title of the section. \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{xcolor} \usepackage{scrlayer-scrpage} \addtokomafont{section}{\leavevmode\color{red}} \addtokomafont{pageheadfoot}{\color{...

3

Perhaps KOMA classes provide better ways, but \@currentlabelname has to be set (alternativle \NR@gettitle) to be effective with nameref, i.e. use the optional argument value #2 as content of \@currentlabelname! \documentclass{scrreprt} \usepackage{hyperref} \usepackage{cleveref} \usepackage{xparse} \makeatletter \let\latex@@section\section \...

2

Try this and see if it works for you \documentclass[mpinclude=true]{scrbook} \IfFileExists{luatex85.sty}{\usepackage{luatex85}}{} \usepackage{scrlayer-scrpage} \pagestyle{scrheadings} \usepackage{scrlayer-notecolumn} \begin{document} This is \makenote{margin note} test. \end{document}

2

With a KOMA-Script class you can use \addsec. Then it is possible to define a short title in the optional argument. \documentclass{scrreprt} \usepackage{hyperref} \usepackage{cleveref} \begin{document} \tableofcontents \chapter{chapter} \section[short title 1]{Long Title Section One}\label{sec:One} In \cref{sec:One} (\nameref{sec:One}) I refer to \nameref{...

2

The bug is fixed in KOMA-Script Version 3.21 which is the current version on CTAN, in TeX Live 2016 and in MiKTeX. \documentclass{scrartcl}[2016/06/14] \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{xcolor} \usepackage{scrlayer-scrpage} \addtokomafont{section}{\color{red}} \addtokomafont{pageheadfoot}{\color{blue}} \begin{document} ... \\...

2

Since KOMA-Script version 3.20 there are new possiblities to format the TOC and list entries. You can use \newcommand\fontintoc[1]{\sffamily\footnotesize #1} \RedeclareSectionCommands[ tocentryformat=\usekomafont{disposition}\fontintoc, tocpagenumberformat=\usekomafont{disposition}\fontintoc ]{part,section} \RedeclareSectionCommands[ ...

2

Class scrbook is designed to have a titlepage, then a new page is started with headings and text or table of contents etc. Usually a book starts on page 1 (the title page) or page I (roman number, often not printed for title page). Most of books start a new chapter on the right (odd) page and class scrbook reflect this behaviour. The binding correction ...

2

You may also use the titling package. With it you can access the \title \author and \date variables in the title page. This worked fine for me: \documentclass[a4paper,oneside,11pt]{book} \usepackage{graphicx} \usepackage{titling} \title{The Lord of the Rings} \author{John Tolkien} \date{\today} \begin{document} \begin{titlingpage} %This starts the title ...

2

The correct definition of \deffootnote is \deffootnote[<mark width>]{<indent>}{<parindent>}{<definition>} (Note that the indent is set in the argument before parindent.) You have to decide how much space is needed for the footnotenumbers. I will use 1.5em in the following example \makebox[1.5em][l]{\thefootnote.} Then you can ...

2

Update The bug was fixed in KOMA-Script version 3.21 which is already on CTAN, in TeX Live 2016 and MiKTeX. This is now a known issue of KOMA-Script version 3.20 (German). The official workaround at the moment is loading package caption as I suggested in a comment.

2

The \closing is a very special tabular environment. Boiling down to the absolute minimum, the following MWE comes up: \documentclass{article} \usepackage{mdframed} %\surroundwithmdframed[linewidth=2pt]{tabular} \begin{document} \newlength{\faheem} \settowidth{\faheem}{% \begin{mdframed} \begin{tabular}{l} lala \end{tabular} \end{...

2

Nicola Talbot implemented this fix in the package glosssaries-extra \usepackage[nomain,acronym,xindy,style=long]{glossaries} \usepackage{glossaries-extra}

2

One can create a 3 column paracol using \setcoumnwidth with the first column acting as a spacer. I didn't have much luck trying to adjust the gaps between columns, so I just included \columnsep in the calculations. \documentclass[parskip=full,showframe]{scrartcl} \usepackage{blindtext} \usepackage{paracol} \newlength{\tempwidth} \begin{document} \...

2

All \rm are to be changed to \mathrm, for example {\rm d} should be \textrm{d} (oberve the different position of {...}) and all \it's removed, because they are \mathit in math mode and \mathit is a presumption in this mode for letters.

2

You can redifine the sectioning commands: \let\chapter\section \let\section\subsection \let\subsection\subsubsection \let\subsubsection\paragraph \let\paragraph\relax and enter the four new sections as \chapters.

1

The code at the bottom leads to the next image. \documentclass[fromphone=true]{scrlttr2} \usepackage{xcolor} \usepackage{lipsum} \setkomavar{fromname}{Pietro} \setkomavar{fromaddress}{Strawberry fields\\ Land of jam} \setkomavar{fromphone}{555-jam} \addtokomafont{fromaddress}{\color{red!70!black}} \addtokomafont{fromname}{\color{red!70!black}} \begin{...

1


1

Starting with KOMA-Script version 3.20 you can use \documentclass{scrbook}[2016/10/05] \RedeclareSectionCommands[tocdynnumwidth]{chapter,section} \RedeclareSectionCommands[tocpagenumberbox=\pagenumberbox] {part,chapter,section,subsection,subsubsection,paragraph,subparagraph} \newcommand\pagenumberbox[1]{% \makebox{\enskip #1}% } \begin{document} \...

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