On 08/27/2017 12:29 PM, Fabrice Couvreur wrote:
> Hi Pablo,
>
> " You have to define a new conversion set and use it for the prefix
> segments "
> It seems to me that's what I did.
Hi Fabrice,
I don’t think so. Two different conversion sets are required: one for
\setupheads[sectionconversionset=numbers] and a different one for
\defineenumeration[remark][prefixconversionset=digits].
If there is no different conversion set for the enumeration, you get the
default for the head.
Here is the full sample:
\mainlanguage[fr]
\setuphead[chapter][commandbefore={: }] \setuplabeltext[fr][chapter=
\setuphead[section][distance=\zeropoint,
commandbefore={\space\endash\space}]
Chapitre ]
\definestructureconversionset
[structure]
[n, R, n, n, n]
\definestructureconversionset
[digits]
[n, n, n, n, n]
\setupheads[sectionconversionset= prefixconversionset=digits,structure]
\defineenumeration
[remark]
[
text=Remark,
location=serried,
width=fit,
right={.~},
prefix=yes,
prefixsegments=chapter,
%~ prefixsegments=section
]
\setupnumber[remark][way=bychapter]
\starttext
\dorecurse{3}{\startchapter
[title={First chapter}]
\dorecurse{3}{\startsection
[title={First section}]
\dorecurse{3}{\startremark \input ward \stopremark}
\stopsection}
\stopchapter}
\stoptext
I hope it is clear now. Let me know if it isn’t.
Cheers,
Pablo
--
http://www.ousia.tk
____________________________________________________________ _______________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
____________________________________________________________ _______________________