* Formula numbering conversion
@ 2017-02-27 15:55 Antoine Cailliau
2017-02-27 16:18 ` Pablo Rodriguez
0 siblings, 1 reply; 5+ messages in thread
From: Antoine Cailliau @ 2017-02-27 15:55 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 368 bytes --]
The following code is documented to change the numbering of the equations.
However, this still use numerals for the equations.
\setupformulas[conversion=characters]
\starttext
\placeformula[test]
\startformula E = mc^2 \stopformula
\stoptext
Is this a bug ? Is it the correct way to change the numbering ?
Any help is welcome. Thank you in advance,
Antoine C.
[-- Attachment #1.2: Type: text/html, Size: 603 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] 5+ messages in thread
* Re: Formula numbering conversion
2017-02-27 15:55 Formula numbering conversion Antoine Cailliau
@ 2017-02-27 16:18 ` Pablo Rodriguez
2017-02-27 16:28 ` Antoine Cailliau
0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez @ 2017-02-27 16:18 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 02/27/2017 04:55 PM, Antoine Cailliau wrote:
> The following code is documented to change the numbering of the equations.
> However, this still use numerals for the equations.
> [...]
> Is this a bug ? Is it the correct way to change the numbering ?
Hi Antoine,
it’s numberconversion (as it reads in “ConTeXt Commands”):
\setupformulas[numberconversion=greek]
\setupbodyfont[dejavu]
\starttext
\placeformula[test]
\startformula E = mc^2 \stopformula
\stoptext
BTW, if this is wrong documented in the wiki, please correct it for
future reference.
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Formula numbering conversion
2017-02-27 16:18 ` Pablo Rodriguez
@ 2017-02-27 16:28 ` Antoine Cailliau
2017-02-27 18:22 ` Antoine Cailliau
0 siblings, 1 reply; 5+ messages in thread
From: Antoine Cailliau @ 2017-02-27 16:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1316 bytes --]
Thanks.
I updated the wiki.
On 27 February 2017 at 17:18, Pablo Rodriguez <oinos@gmx.es> wrote:
> On 02/27/2017 04:55 PM, Antoine Cailliau wrote:
> > The following code is documented to change the numbering of the
> equations.
> > However, this still use numerals for the equations.
> > [...]
> > Is this a bug ? Is it the correct way to change the numbering ?
>
> Hi Antoine,
>
> it’s numberconversion (as it reads in “ConTeXt Commands”):
>
> \setupformulas[numberconversion=greek]
> \setupbodyfont[dejavu]
> \starttext
> \placeformula[test]
> \startformula E = mc^2 \stopformula
> \stoptext
>
> BTW, if this is wrong documented in the wiki, please correct it for
> future reference.
>
> 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
> ____________________________________________________________
> _______________________
[-- Attachment #1.2: Type: text/html, Size: 2369 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] 5+ messages in thread
* Re: Formula numbering conversion
2017-02-27 16:28 ` Antoine Cailliau
@ 2017-02-27 18:22 ` Antoine Cailliau
2017-03-02 6:59 ` Antoine Cailliau
0 siblings, 1 reply; 5+ messages in thread
From: Antoine Cailliau @ 2017-02-27 18:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 3323 bytes --]
I try to replicate the following :
https://mailman.ntg.nl/pipermail/ntg-context/2006/021038.html (i.e. the
equivalent of \tag in latex/amsmath). More precisely this:
> %------------------------8<--------------------------
> \def\placeformulatag%
> {\dosingleempty\doplaceformulatag}
> \def\doplaceformulatag[#1]#2%
> {\let\normalstopformula\stopformula
> \def\stopformula%
> {\normalstopformula
> \restorenumber[formula]
> \egroup
> \let\stopformula\normalstopformula}
> \bgroup
> \savenumber[formula]
> \def\dummyconversion##1{#2}
> \defineconversion[dummyconversion][\dummyconversion]
> \setupformulas[conversion=dummyconversion]
> \placeformula[#1]}
>
> \starttext
> \placeformulatag[tag]{test} \startformula
> E = mc^2
> \stopformula
> See \in formula[tag] for a tagged formula
> \stoptext
> %----------------------------8<-------------------------
However, the following (simpler) code produce an "Undefined control
sequence" when using \in command.
\starttext
> {
> \def\a#1{test}
> \defineconversion[a][\a]
> \setupformulae[numberconversion=a]
> \placeformula[test]
> \startformula E = mc^2 \stopformula
> }
> This is my reference: \in{formula}[test].
> \stoptext
The following code, does not produce the error, but is not practical for
the reproducing the \tag command.
>
> \starttext
> {
> \def\a#1{test}
> \defineconversion[a][\a]
> \setupformulae[numberconversion=a]
> \placeformula[test]
> \startformula E = mc^2 \stopformula
> This is my reference: \in{formula}[test].
> }
> \stoptext
What am I doing wrong? I guess the command \a is no longer defined when the
compiler hit \in but how can I ensure that such local definition stay
accessible ?
Thank you in advance,
Antoine C.
On 27 February 2017 at 17:28, Antoine Cailliau <antoinecailliau@gmail.com>
wrote:
> Thanks.
>
> I updated the wiki.
>
> On 27 February 2017 at 17:18, Pablo Rodriguez <oinos@gmx.es> wrote:
>
>> On 02/27/2017 04:55 PM, Antoine Cailliau wrote:
>> > The following code is documented to change the numbering of the
>> equations.
>> > However, this still use numerals for the equations.
>> > [...]
>> > Is this a bug ? Is it the correct way to change the numbering ?
>>
>> Hi Antoine,
>>
>> it’s numberconversion (as it reads in “ConTeXt Commands”):
>>
>> \setupformulas[numberconversion=greek]
>> \setupbodyfont[dejavu]
>> \starttext
>> \placeformula[test]
>> \startformula E = mc^2 \stopformula
>> \stoptext
>>
>> BTW, if this is wrong documented in the wiki, please correct it for
>> future reference.
>>
>> 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/list
>> info/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: 5352 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] 5+ messages in thread
* Re: Formula numbering conversion
2017-02-27 18:22 ` Antoine Cailliau
@ 2017-03-02 6:59 ` Antoine Cailliau
0 siblings, 0 replies; 5+ messages in thread
From: Antoine Cailliau @ 2017-03-02 6:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 3648 bytes --]
Does anyone have a tip for me? I really want these tags in my document.
Many thanks in advance,
On 27 February 2017 at 19:22, Antoine Cailliau <antoinecailliau@gmail.com>
wrote:
> I try to replicate the following : https://mailman.ntg.nl/
> pipermail/ntg-context/2006/021038.html (i.e. the equivalent of \tag in
> latex/amsmath). More precisely this:
>
>> %------------------------8<--------------------------
>> \def\placeformulatag%
>> {\dosingleempty\doplaceformulatag}
>> \def\doplaceformulatag[#1]#2%
>> {\let\normalstopformula\stopformula
>> \def\stopformula%
>> {\normalstopformula
>> \restorenumber[formula]
>> \egroup
>> \let\stopformula\normalstopformula}
>> \bgroup
>> \savenumber[formula]
>> \def\dummyconversion##1{#2}
>> \defineconversion[dummyconversion][\dummyconversion]
>> \setupformulas[conversion=dummyconversion]
>> \placeformula[#1]}
>>
>> \starttext
>> \placeformulatag[tag]{test} \startformula
>> E = mc^2
>> \stopformula
>> See \in formula[tag] for a tagged formula
>> \stoptext
>> %----------------------------8<-------------------------
>
>
> However, the following (simpler) code produce an "Undefined control
> sequence" when using \in command.
>
> \starttext
>> {
>> \def\a#1{test}
>> \defineconversion[a][\a]
>> \setupformulae[numberconversion=a]
>> \placeformula[test]
>> \startformula E = mc^2 \stopformula
>> }
>> This is my reference: \in{formula}[test].
>> \stoptext
>
>
> The following code, does not produce the error, but is not practical for
> the reproducing the \tag command.
>
>>
>> \starttext
>> {
>> \def\a#1{test}
>> \defineconversion[a][\a]
>> \setupformulae[numberconversion=a]
>> \placeformula[test]
>> \startformula E = mc^2 \stopformula
>> This is my reference: \in{formula}[test].
>> }
>> \stoptext
>
>
> What am I doing wrong? I guess the command \a is no longer defined when
> the compiler hit \in but how can I ensure that such local definition stay
> accessible ?
>
> Thank you in advance,
>
> Antoine C.
>
>
> On 27 February 2017 at 17:28, Antoine Cailliau <antoinecailliau@gmail.com>
> wrote:
>
>> Thanks.
>>
>> I updated the wiki.
>>
>> On 27 February 2017 at 17:18, Pablo Rodriguez <oinos@gmx.es> wrote:
>>
>>> On 02/27/2017 04:55 PM, Antoine Cailliau wrote:
>>> > The following code is documented to change the numbering of the
>>> equations.
>>> > However, this still use numerals for the equations.
>>> > [...]
>>> > Is this a bug ? Is it the correct way to change the numbering ?
>>>
>>> Hi Antoine,
>>>
>>> it’s numberconversion (as it reads in “ConTeXt Commands”):
>>>
>>> \setupformulas[numberconversion=greek]
>>> \setupbodyfont[dejavu]
>>> \starttext
>>> \placeformula[test]
>>> \startformula E = mc^2 \stopformula
>>> \stoptext
>>>
>>> BTW, if this is wrong documented in the wiki, please correct it for
>>> future reference.
>>>
>>> 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/list
>>> info/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: 6110 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] 5+ messages in thread
end of thread, other threads:[~2017-03-02 6:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-27 15:55 Formula numbering conversion Antoine Cailliau
2017-02-27 16:18 ` Pablo Rodriguez
2017-02-27 16:28 ` Antoine Cailliau
2017-02-27 18:22 ` Antoine Cailliau
2017-03-02 6:59 ` Antoine Cailliau
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).