esdd
  • Member for 8 years, 1 month
  • Last seen this week
  • Germany
How to shade text in different colors?
Accepted answer
52 votes

Here is another suggestion: \documentclass[varwidth,margin=5mm]{standalone} \usepackage{tikz} \usetikzlibrary{fadings} \newcommand\fadingtext[3][]{% \begin{tikzfadingfrompicture}[name=fading ...

View answer
How to change the color of ONLY Table of Contents from red to black?
Accepted answer
50 votes

You can change the settings locally using { \hypersetup{linkcolor=black} \tableofcontents } or { \hypersetup{hidelinks} \tableofcontents } Code: \documentclass{report} \usepackage{...

View answer
Adjusting spacing around section/subsection titles with koma-script
Accepted answer
42 votes

Update KOMA-Script version 3.26 introduces two new keys to \RedeclareSectionCommand and \RedeclareSectionCommands: runin and afterindent. Possible values for both keys are bysign, true and false. ...

View answer
How do I fill the corner of an irregular shape in TikZ?
Accepted answer
38 votes

You could use path picture: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} \begin{document} \begin{tikzpicture} \draw[bend right=10] [path picture={\fill[...

View answer
If-then-else inside TikZ graph?
Accepted answer
32 votes

\ifthenelse is "normal" LaTeX code. Therefore you can not use this command inside a TikZ path specification. But since the node text is put in a normal TeX box you can use \ifthenelse inside the node ...

View answer
\cmidrule one column wide
Accepted answer
31 votes

\cmidrule needs a start and an end column number even if they are the same. That's why you have to use \cmidrule(lr){1-1} if only the first column should be underlined. Code: \documentclass{...

View answer
Reducing the huge space before the first line of the KOMA letter class
30 votes

The scrlttr2 class loads the file DIN.lco as default. This file contains a parameter set for A4 paper and German window envelopes C4, C5, C6 and C6 long. But there is another Letter Class Option file ...

View answer
Using pause without increasing page number
Accepted answer
28 votes

Use frame number instead page number in \setbeamertemplate{footline}[frame number]{} Code: \documentclass{beamer} \usetheme{Warsaw} \setbeamertemplate{navigation symbols}{} \setbeamertemplate{...

View answer
TIKZ: only fill 75% of the node-background with color
Accepted answer
22 votes

You can use path picture and path picture bounding box: \documentclass[tikz,margin=5mm]{standalone} \usetikzlibrary{calc} \begin{document} \tikz \node[draw] [path picture={ \fill[gray!30](path ...

View answer
DIV and BCOR setting in KOMA (best practices)
Accepted answer
21 votes

Note that the KOMA-Script class loads the package typearea itself and the text block and the margins are calculated immediately for the first time. The first and the second version are the same (if ...

View answer
Headers and font in KOMA-script
Accepted answer
18 votes

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 ...

View answer
Only one caption under multiple subfigures
Accepted answer
18 votes

You can put all figures of a row in only one subfigure environment. Example (assuming package subcaption is used): \documentclass{article} \usepackage{subcaption} \usepackage[demo]{graphicx} \begin{...

View answer
Place a ruler somewhere on a page
Accepted answer
18 votes

Maybe package layout will help. It provides the command \layout which inserts one (onesided document) or two (twosided documents) pages that show the relevant sizes of the current page layout. \...

View answer
Giving headlines a background color spanning across the entire typearea
17 votes

Here is a suggestion redefining the new command \sectionlinesformat that is explained in the documentation of version 3.19 or newer: \documentclass{scrartcl}[2015/09/15] \usepackage{blindtext}% dummy ...

View answer
Why does KOMA-Script mix serifs and sans-serifs?
17 votes

Update Since version 3.12 there is an undocumented value standardclasses for the heading option defined that changes the font of all section heading levels to serif. Note that with headings=...

View answer
Draw curved path inside circle
Accepted answer
17 votes

I suggest to use named circle nodes. If the red one is called hdm you can use something like \draw[red,looseness=1.5] (hdm.west) to[out=70,in =110] (hdm.center) to [out=-70,in=-110](hdm.east); to ...

View answer
Conflict between titlesec package and scrbook class after most recent update of TeXLive2019
Accepted answer
16 votes

titlesec does not support KOMA-Script classes. So do not combine them. To change the layout of the chapter, section etc. titles you can use KOMA-Script options and \RedeclareSectionCommand & Co ...

View answer
\subsubsubsection for scrbook
Accepted answer
16 votes

Update (needs KOMA-Script version 3.26b) The original answer below is still correct. But there are the new command \RedeclareSectionCommands, the new options runin and afterindent. And there are some ...

View answer
Why do we have to explicitly append the unit for xshift and yshift?
Accepted answer
16 votes

You could use shift={(1,2)} or shift={(1,0)},shift={(0,2)}. Both result in Code: \documentclass[tikz,border=12pt]{standalone} \begin{document} \begin{tikzpicture} \draw[gray!50] (-4,-4) grid (4,...

View answer
KOMA-Script: How to style the title of a chapter
Accepted answer
16 votes

Second update Here is a new and in my opinion better suggestion that needs KOMA-Script Version 3.19 or newer. In version 3.19 there is a new command \chapterlineswithprefixformat that could be ...

View answer
How can i change the font size of label of node uniformly in tikz
Accepted answer
16 votes

I am not sure if I understand the question, but every label/.append style={text=red, font=\scriptsize} works for me. \documentclass[tikz,border=3mm]{standalone} \begin{document} \begin{tikzpicture} ...

View answer
PGFPlots - Fill area between two curves
15 votes

Since pgfplots version 1.10 you can load library fillbetween: \documentclass{article} \usepackage{pgfplotstable} \pgfplotsset{compat=1.15}% current version is 1.15 \usepgfplotslibrary{fillbetween} \...

View answer
KOMA-Script and sidenotes : how to format side (margin) caption and its caption label?
Accepted answer
14 votes

The sidenotes package uses package caption to define a caption style sidecaption. You can redeclare this style: \documentclass{scrartcl} \usepackage[T1]{fontenc}% <- added \usepackage{lipsum} \...

View answer
Understanding headers in scrartcl
Accepted answer
14 votes

You can only use one of the packages scrlayer-scrpage, scrpage2 (predecessor of scrlayer-scrpage), fancyhdr, ... The recommended package for use with a KOMA-Script class is scrlayer-scrpagebecause ...

View answer
Table with alternating row colours and rounded corners
Accepted answer
14 votes

Set rounded corners=.5em as a option for the whole tikzpicture and use clip as node option. If you want to change the line width you have to set the new value also as an option of the tikzpicture. ...

View answer
Beamer template with different style options for frames
Accepted answer
14 votes

You can define two different templates and reset the headline to the default style before a new frame starts. \documentclass{beamer} \usepackage{etoolbox} \defbeamertemplate{headline}{mydefault}{% ...

View answer
Remove space before chapter title - with KOMA script (scrbook)
13 votes

Update Since KOMA-Script version 3.26 you can option afterindent=false to avoid the paragraph indentation of the first text line after the chapter title. \documentclass{scrbook} \usepackage{...

View answer
Shading a region between two polar curves
13 votes

You could use intersection segments: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.15}% <- added!! \usepgfplotslibrary{fillbetween}% <- changed \begin{document} \begin{...

View answer
How to make "This page intentionally left blank." in KOMA script
13 votes

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}{% \...

View answer
How to keep useless zeros in SIUNITX
Accepted answer
13 votes

You can use the options minimum-integer-digits \documentclass{article} \usepackage{siunitx} \begin{document} \noindent\verb+\num{5}+: \num{5}\\ \verb+\num{05.0}+: \num[minimum-integer-digits=2]{...

View answer
1
2 3 4 5
64