New answers tagged

1

You can use the command \defineunderbar. See example: \setuplayout [width=9.4cm] \definebar [foobar] [color=yellow, rulethickness=1.2em, offset=1.2, continue=yes, order=background] \starttext There must be \foobar{a way to set the background color when I need to highlight multiple lines of text. And then return to normal mode} without ...


1

You can redefine \sectionlinesformat (needs KOMA-Script Version 3.19 or newer) and \subsectionformat. \documentclass[a5paper]{scrbook}[2015/10/03] \usepackage{xcolor,soul} \sethlcolor{black} \makeatletter \renewcommand\sectionlinesformat[4]{% \ifstr{#1}{subsection}% only subsections should be changed {\@hangfrom{\hskip#2 #3}{\hl{#4}}}% subsection ...


2

Edit: For an axis of arbitrary width, you can compute the width and store that value as described in this answer. Combining that approach with a new command (which I call \bgimage), you can insert a background image with width equal to the axis width. In the example below I've duplicated the plot to the right, but made it smaller to show the image scales ...



Top 50 recent answers are included