Changes

Jump to navigation Jump to search
no edit summary
}}
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>definestructureconversionset</syntax>
== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
The command defines conversion of internal counters.
The first argument is just the name which is used as argument for {{code|sectionconversionset}} in {{cmd|setuphead}}, and for {{code|prefixconversionset}} in {{cmd|setupcaption}}, {{cmd|setupenumerations}} etcin MkII, and for {{code|numberconversionset}} for the same purpose in MkIV. The name of the conversion can be prefixed with the name of a sectionblock, e.g. {{code|\definestructureconversionset|[bodypart:myconversion][A,I,n,R][numbers]}}.
With the second argument you can set a conversion of the counter for the headings. The list always starts at the {{cmd|part}} level and continues with {{cmd|chapter}} etc. but it’s possible to leave entries empty.
\subsection{Subsection}
\subsubsection{Subsubsection}
</context>
 
 
Be careful not to let a whitespace after {{code|myconversion}}, or it is taken as a part of it :
 
<context mode=mkiv source=yes>
% mode=mkiv
 
\definestructureconversionset[questionNums][n,n,a,a][n]
\defineenumeration[question]
\setupenumeration[% some setups
style=normal,
numberconversionset=questionNums % this does not work : add a comma or close bracket here
]
</context>
== See also ==
* {{cmd|defineconversion}}
* [[:Category:Command/Conversions|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 ==

Navigation menu