Tag Info

Hot answers tagged

5

Using enumitem makes for easy adjustment within a regular list (description) environment: \documentclass{scrartcl} \usepackage{enumitem} \begin{document} \begin{description}[leftmargin=7em, labelwidth=7em, labelsep=0pt] \item[OBJECTIVE] A position in the field of computers with special interests in business applications programming, information ...


5

As @cfr mentioned in a comment, KOMA-script can do stuff pretty good on its own. Here an example using labeling. You can change the font of the labeling label using the addtokomafont mechanism. The indent is taken by the length of the argument of the labeling environment. Markus Kohm suggests some further improvements, like putting the \MakeUppercase to a ...


5

In order for the patching to work as expected, you need to understand how the function you're patching is constructed. Here is \@part as it's defined in scrreprt.cls: \def\@part[#1]#2{% \ifnum \scr@osectarg=\z@ \@scr@tempswafalse \else \scr@istest#1=\@nil \fi \if@scr@tempswa \setkeys{KOMAarg.section}{tocentry={#2},head={#2},#1}% \else ...


5

\documentclass{scrreprt} \begin{document} \tableofcontents \chapter{Chapter 1} \section{Something} \subsection{Subsection 1} At this point I'd like to refer to an Image and a short text in the attachment. See here: \ref{my_reference}. \chapter{Chapter 2} \section{\ldots} \chapter{Chapter 3} \chapter{Chapter 4} \chapter{Chapter 5} ...


4

Define a caption style: \documentclass{scrreprt} \usepackage[document]{ragged2e} % for creating ragged right edge etc \usepackage{caption}% for creating figures in figures \setlength{\RaggedRightParindent}{2em}% sets the indent size of the first line \DeclareCaptionFormat{komaflush}{\noindent\hspace{-\RaggedRightParindent}#1#2#3\par} ...


4

In report the page style for \chapter is plain by default. To change this you either need to change the plain page style, which may well have undesired side effects for other formatting in your document, or to patch the \chapter command to use your own style: \usepackage{etoolbox} \patchcmd{\chapter}{plain}{ChapterStyle}{}{} If you had been using ...


4

You can find a suggestion by Markus Kohm on komascript.de. % see http://www.komascript.de/node/1766 \documentclass[headings=appendixprefix]{scrreprt} \usepackage{blindtext} \usepackage{etoolbox} \providecommand*{\appendixmore}{}% Falls Option headings=appendixprefix nicht verwendet wurde. \newcommand*{\SavedOriginaladdchaptertocentry}{} ...


3

You could set the value of \RaggedRightParindent to zero for all figure and table environments by adding the following three lines of code in the preamble: \usepackage{etoolbox} \AtBeginEnvironment{figure}{\setlength{\RaggedRightParindent}{0em}} \AtBeginEnvironment{table}{\setlength{\RaggedRightParindent}{0em}} A full MWE: \documentclass{scrreprt} ...


2

Loading scrpage2 in a scrlttr2 document is not useful because \opening sets the pagestyle to empty. You can use the class option fromrule=below to get a line below of the header: \documentclass[SN,fromrule=below]{scrlttr2} \usepackage[english]{babel} \usepackage{xcolor} \addtokomafont{fromrule}{\color{purple}}% change the line color \makeatletter ...


2

If you use the \mbinom command, from the nccmath package (medium-sized \binom, ~80 % of display style), it looks much better, in my opinion: \documentclass[fontsize=8pt, a4paper, DIV12]{scrbook} \usepackage{amsmath, nccmath} \begin{document} \[ e^t = x^{(5)} - 2x^{(3)} + \dot{x} = ∑_{k = 0}⁵ \mbinom{5}{k} p^{(k)}(t) e^t -2∑_{k = 0}³ \mbinom{3}{k} ...


2

It is a guess, but I think he did only a basic installation of KOMA-Script on Windows. The standard methode of MiKTeX is to download only the basic version and to install on the fly missing packages (runs only if you have a permanent internet conection). You can use the package manager of MiKTeX (click start -- all programs -- MiKTeX 2.9 -- Maintanance -- ...


2

With your current setup, it's sufficient to patch \chaptermark At the Beginning of the Document to call \@mkboth with only the left mark used; keeping the right mark empty: \usepackage{etoolbox} \makeatletter \AtBeginDocument{% \patchcmd{\chaptermark}% <cmd> {\@mkboth}% <search> {\chaptermkboth}% <replace> {}{}% ...


2

Note that scrpage2 is depreciated. The successor is scrlayer-scrpage. You can use \ifstr from the scrbase package: \ohead{\ifstr{\leftmark}{\rightmark}{}{\rightmark}} The package scrbase is loaded by the KOMA-Script class and the command is explained in the KOMA-Script documentation scrguien.pdf: \ifstr{<string>}{<string>}{<then ...


2

You have to run this twice for it to work, since the first run is used to write to the aux file. \documentclass[fontsize=10pt,ngerman,paper=a4]{scrbook} \usepackage{everypage} \usepackage{blindtext} \newlength{\tempdima} \newlength{\tempdimb} \newcommand{\maxfootnotemark}{} \newcommand{\ThisFootnotemark}{\thefootnotemark} \makeatletter ...


2

I suspect that many readers will be quite confused when they encounter a cross-reference to an object numbered "6.1.1" even though no single object in the document is actually numbered "6.1.1". Is it reasonable to assume that your readers will figure out that the object being cross-referenced is an unnumbered subsection? I understand that hyperref will be ...


2

This (trial of a) solution adds an additional optional argument to the \chapter command, which will hold the subtitle and will display it in the next line, using a somewhat smaller fontsize. If not present, there is no subtitle and everything behaves as usual. In my point of view, it's no good idea, to get the subtitle into the page headers, as it will skew ...


2

A good general replacement for komavar is \csdef, \csuse from etoolbox as explained here: http://tex.stackexchange.com/a/37429/11820 A usage scenario is this: \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{simplevar}[2014/11/27 simplevar package] \RequirePackage{etoolbox} % Set a value for a key \newcommand\setVar[2]{\csdef{simpleVarValue#1}{#2}} % Get the ...


1

A very basic version could be the following. But to make it bullet proof, more information are needed. \documentclass[oneside]{scrbook} \newkomafont{chapsubtitle}{\normalsize\bfseries} \newcommand{\chapsubvskip}{\vspace{\baselineskip}} \newcommand{\chapsubtitle}[1]{% \begingroup% \usekomafont{disposition}\usekomafont{chapsubtitle}#1\par\endgroup% ...


1

KOMA-Script provides all the features of the package appendix. So don't use this package under a KOMA-Script class. The appendix is not an environment, it's a command. Just write \appendix at its start. The KOMA-Script manual has a lot of documentation about the appendix.



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