Changes

Jump to navigation Jump to search
1,599 bytes added ,  19:48, 12 September 2023
new
<cd:commandgroup name="definestyle" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc><!-- a short command summary goes here -->
The command <tt>\definestyle</tt> is used to define a custom text style.
</cd:shortdesc>
<cd:variants>
<cd:command category="fonts" file="font-sty.mkvi" interfacedate="2020-07-14T09:24" interfacefile="i-fonts.xml" level="style" name="definestyle" variantnumber="1">
<cd:arguments>
<cd:keywords ordinal="1">
<cd:keywordsdoc>name of new style</cd:keywordsdoc>
<cd:constant type="cd:name"></cd:constant>
</cd:keywords>
<cd:keywords optional="yes" ordinal="2">
<cd:keywordsdoc>parent style (inheritance)</cd:keywordsdoc>
<cd:constant type="cd:name"></cd:constant>
</cd:keywords>
<cd:assignments list="yes" optional="yes" ordinal="3">
<cd:assignmentsdoc><code>\definestyle[MyStyle][method=command]</code> also creates a command <code>\MyStyle</code>, otherwise you can use the new style only in <code>style</code> assignments.</cd:assignmentsdoc>
<cd:inherit name="setupstyle"></cd:inherit>
</cd:assignments>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description><!-- the long description of the command goes here -->
</cd:description>
<cd:examples></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<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="style"></cd:commandref></cd:seealso>
</cd:commandgroup>

Navigation menu