Changes

Jump to navigation Jump to search
m
Add the case of enumerations in MkIV, as was discussed on the texexchange forum
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>

Navigation menu