Open main menu

Changes

2,114 bytes added ,  19:41, 12 September 2023
new
<cd:commandgroup name="style" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc><!-- a short command summary goes here -->
The command <tt>\style</tt> is generally usable to change the font style.
</cd:shortdesc>
<cd:variants>
<cd:command category="fonts" file="font-sty.mkvi" interfacedate="2020-07-14T09:24" interfacefile="i-fonts.xml" level="document" name="style" variantnumber="1">
<cd:arguments>
<cd:assignments list="yes" ordinal="1">
<cd:assignmentsdoc></cd:assignmentsdoc>
<cd:inherit name="setupstyle"></cd:inherit>
</cd:assignments>
<cd:keywords delimiters="braces" ordinal="2">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:text"></cd:constant>
</cd:keywords>
</cd:arguments>
</cd:command>
<cd:command category="fonts" file="font-sty.mkvi" interfacedate="2020-07-14T09:24" interfacefile="i-fonts.xml" level="document" name="style" variant="argument" variantnumber="2">
<cd:arguments>
<cd:keywords ordinal="1">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:name"></cd:constant>
<cd:constant type="cd:font"></cd:constant>
</cd:keywords>
<cd:keywords delimiters="braces" ordinal="2">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:text"></cd:constant>
</cd:keywords>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description><!-- the long description of the command goes here -->
</cd:description>
<cd:examples><cd:example title="simple use">You can use it as a command or as a switch:

<context source="yes">
Some normal text.
\style[bold]{A bold move.}

More normal text.
{\style[bolditalic]Another bold move, but more moving.}
</context></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:commandref name="definestyle" originator="system"></cd:commandref>
<cd:commandref name="setupstyle" originator="system"></cd:commandref>
<cd:source file="font-sty.mkvi" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Fonts"></cd:wikipage>
<cd:commandref name="emph"></cd:commandref></cd:seealso>
</cd:commandgroup>