Changes

Jump to navigation Jump to search
63 bytes added ,  19:34, 27 September 2013
Avoiding confusing usage of the term 'alternative'
In ConTeXt there are four ways to switch fonts:
* font style /alternative commands ({{cmd|rm}}, {{cmd|ss}}, etc.),* font size commands ({{cmd|tfa}}, {{cmd|tfb}}, etc.),* alternative font style mnemonic command aliases ({{cmd|bold}}, {{cmd|sans}}, etc.),
* a complete font change ({{cmd|setupbodyfont}}, {{cmd|switchtobodyfont}}).
<code>style</code> option.
== Alternative Mnemonic font styles switches ==
While learning a document markup language like ConTeXt, it can be hard to
remember all the commands. ConTeXt provides other, easy -to -remember alternativefontfont stylesswitches. So for bold you can use {{cmd|bold}}, for italic you can use
{{cmd|italic}}, for slanted you can use {{cmd|slanted}}, and so on. You can
probably guess what the following do:
{{cmd|bigbodyfont}} can be used to change the font size.
These alternative mnemonic font styles switches are pretty smart. You can either use them as
font style switches inside a { ''group'' }, or as a font changing command that takes an
argument. For example,
<context source="yes">
This is {\bold bold} and so is \bold{this}. But this is not.
</context>
These alternative mnemonic font styles switches can also be used for all <code>style=...</code>
options, and while using them as style options, you can just give the command
name, for without the backslash. For example:
<texcode>
\setuphead[section][style=bold]
53

edits

Navigation menu