Debian Codegraph @

texmf-dist/doc/latex/skb/user-guide/repository/manual/skbem.tex

raw
1 \opt{text}{\skbheading{Emphasising Text}}
2
3 \DescribeMacro{\skbem}
4 Highlighting or emphasising text is an important aspect of many technical documents. One can use
5 \LaTeX~macros directly to set text in italic or bold. This has the disadvantage that there is no
6 meaningful information given as on why that text is treated in a special way. Furthermore, when
7 the editor requires to change certain highlights, it will be very difficult to go through a large
8 document and figure out which text is to be changed.
9
10 To prevent that from happening, one can use \LaTeX~macros to actually distignguish between different
11 highlighted text. A simple start is provided by the \skbacft{A3DS:SKB}. It is simply because, at the moment, it
12 only supports three different ways and no furhter meaningful information. But it is a start.
13
14 The macro \cmd{\skbem} comes with three different options. The option \skbem[code]{bold} will set the
15 text given in the argument in bold face. Similar, the option \skbem[code]{italic} will set it italic.
16 Last not least, the option \skbem[code]{code} will use another \skbacft{A3DS:SKB} macro (\cmd{\skbcode}) for typesetting
17 the argument text. \opt{note}{This slide shows a few examples along with the resulting type setting}%
18 \opt{text}{The following code shows some examples for the macro: \lstinputlisting[style=generic,language=TeX]{\skbfileroot{examples/skbem}}}%
19 \opt{text}{And here the tinal type setting of that example:
20
21 \skbinput{examples/skbem}}%
22
23 \opt{note}{\skbheading{skbcode}}
24 \DescribeMacro{\skbcode}
25 This macro \cmd{\skbcode} is a facade for calling the macro \cmd{lstinline} from the listing package with a basic style that
26 uses type writer font (ttfamily).