* \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
* Re: \setupreferencestructureprefix and numberconversionset
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 ادريس سماوي حامد
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2018-07-02 7:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 3029 bytes --]
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]
======
Wolfgang
> 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
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 4934 bytes --]
[-- Attachment #2: 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
* Re: \setupreferencestructureprefix and numberconversionset
2018-07-02 7:08 ` Wolfgang Schuster
@ 2018-07-02 12:38 ` Idris Samawi Hamid ادريس سماوي حامد
0 siblings, 0 replies; 3+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2018-07-02 12:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi Wolfgang,
On Mon, 02 Jul 2018 01:08:23 -0600, Wolfgang Schuster
<schuster.wolfgang@gmail.com> wrote:
> 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
___________________________________________________________________________________
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).