Changes

Jump to navigation Jump to search
Example, category, etc
{{Reference
|name=definestrcutureconversionsetdefinestructureconversionset
|attributes=
}}
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\definestrcutureconversionsetdefinestructureconversionset<span class="first">[name]</span><span class="second">[...''conversion'',list''conversion'',...]</span><span class="third">[''default'']</span>
</td>
</tr>
<tr valign="top" class="first">
<td>[name]</td>
<td><i>''Name of the conversion set</i>''</td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[list''conversion'',''conversion'',...]</td> <td><i>List with explicit settings ''Conversions for certain headings</i>{{cmd|part}}, {{cmd|chapter}}, {{cmd|section}}, etc.''</td>
</tr>
<tr valign="top" class="third">
<td class="cmd">[''default'']</td> <td><i>''Default setting if no explicit conversion is set</i>''</td>
</tr>
<!-- -->
The command defines conversion of internal counters.
The first argument is just the name which is used as argument for sectionconverionset {{code|sectionconversionset}} in <code>\{{cmd|setuphead</}}, and for {{code> for prefixconverionset |prefixconversionset}} in <code>\{{cmd|setupcaption</code>}}, <code>\setupenumeration</code> {{cmd|setupenumerations}} etc. The name of the conversion can be prefixed with the name of a sectionblock, e.g. <{{code>|\definestructureconverionsetdefinestructureconversionset|[bodypart:myconversion][A,I,n,R][numbers]</code>}}.
With the second argument you can set a conversion of the counter for the headings, the . The list always starts always with at the <code>\{{cmd|part</code> }} level and continues with <code>\{{cmd|chapter</code> }} etc. but it’s possible to leave entries empty.
With the third argument one can set a default value which is used when no value for a heading is set with the second argument.
== Example ==
<!-- Please fill in an example if you can --context mode=mkiv source=yes>% mode=mkiv \setuppapersize[A5] \definestructureconversionset[myconversion] [A, % part: capital letters KR, % chapter: small caps Roman , % section: none defined (use fallback) m, % subsection: medieaval, a.k.a. oldstyle R] % subsubsection: capital Roman [r] \setupheads [part,chapter,section,subsection,subsubsection] [before={}, after={}, sectionconversionset=myconversion] \part{Part}\chapter{Chapter}\section{Section}\subsection{Subsection}\subsubsection{Subsubsection}</context>
== See also ==
<!-- something like * {{cmd|gotodefineconversion}} -->* [[Category:Command/Conversions]]* [http://http://www.ntg.nl/pipermail/ntg-context/2012/065245.html Wolfgang's answer in the mail archive]
== Help from ConTeXt-Mailinglist/Forum ==
{{Forum|{{SUBPAGENAME}}}}
[[Category:ConversionCommand/Conversions|definestrcutureconversionsetdefinestructureconversionset]][[Categry:Command/MkIV only|definestructureconversionset]]

Navigation menu