[NTG-context] \setupreferencestructureprefix and numberconversionset

Idris Samawi Hamid ادريس سماوي حامد Idris.Hamid at colostate.edu
Sat Jun 30 22:42:10 CEST 2018


Dear gang,

Chapter numbers are indicated roman numerals (conversion=R), all  
subsectioning by decimal numerals. See attached and below:

=======
\setuphead[chapter]   [alternative=normal,conversion=R]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
                        textdistance=0.7em,
                        sectionstopper=.,
                        criterium=local]

\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
                                [prefixstopper=\zerowidthspace,
                                 numberconversionset=OLIE]

% \setupreferencestructureprefix [chapter] [default]
                                % [prefixstopper=\zerowidthspace,
                                 % numberconversionset=OLIE]

\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward

See \in{Sections}[reference3] and \in{Section}[reference4].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsubsection[title={},reference={reference4}]
\input ward
\stopsubsubsection
\startsubsection[title={},reference={reference5}]
\input ward

See \in{Sections}[reference1] and \in{Section}[reference2].
\stopsubsection
\stopchapter
\stoptext
=======

So, e.g., Chapter II, Subsection 1, Subsubsection 1

In the references we get

2.1.1

But what we want is

II.1.1

Adding the following to the preamble doesn't appear to work:

\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
                                [prefixstopper=\zerowidthspace,
                                 numberconversionset=OLIE]
What am I missing? Thanks in advance for any guidance.

Best wishes
Idris
-- 
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scratch.tex
Type: application/x-tex
Size: 1439 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180630/239361a7/attachment-0001.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scratch.pdf
Type: application/pdf
Size: 12755 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180630/239361a7/attachment-0001.pdf>


More information about the ntg-context mailing list