ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \setupreferencestructureprefix and numberconversionset
@ 2018-06-30 20:42 Idris Samawi Hamid ادريس سماوي حامد
  2018-07-02  7:08 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2018-06-30 20:42 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 2071 bytes --]

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

[-- Attachment #2: scratch.tex --]
[-- Type: application/x-tex, Size: 1439 bytes --]

[-- Attachment #3: scratch.pdf --]
[-- Type: application/pdf, Size: 12755 bytes --]

[-- Attachment #4: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-07-02 12:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-30 20:42 \setupreferencestructureprefix and numberconversionset Idris Samawi Hamid ادريس سماوي حامد
2018-07-02  7:08 ` Wolfgang Schuster
2018-07-02 12:38   ` Idris Samawi Hamid ادريس سماوي حامد

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).