Hi Wolfgang,
On Mon, 02 Jul 2018 01:08:23 -0600, Wolfgang Schuster
Hi Idris,
you get the correct reference numbers when you apply the conversion of the section numbers with the sectionconversionset-key, this does also mean you have to remove “conversion=R” from chapter setup.
====== \defineconversionset [OLIE] [n,R,n,n,n,n] [n]
\setuphead[sectionconversionset=OLIE] ======
Amazing and elegant. Many thanks! Best wishes Idris
Idris Samawi Hamid ادريس سماوي حامد mailto:Idris.Hamid@colostate.edu 30. Juni 2018 um 22:42 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512