When a text is printed over a background, it is much more readable with a contour around in overprinting the background. This contour may be white. This way, there would be a nice clearance around the text.
Another utilization would be to improve the visibility of the text with very light color for better reading on a white background.
Let's see how to achieve that.
Our example will use yellow color for chapter headings in a book. This is hardly readable, so we will add a contour to improve it:
We will use the
scrbook
class, so start your document with the following:\documentclass{scrbook}
Load the
contour
package. Specify the thickness of the contour and a number that stands for text copies internally used for overprinting.\usepackage{contour} \contourlength{1.5pt} \contournumber{25}
Define a macro for the new font style for our chapter:
\newcommand{\chapterfont}[1]{% \contour{black}{\textcolor{yellow}{#1}}}
Apply the style that we just selected:
\setkomafont{chapter...