ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* formla: listing and subnumbering
@ 2010-08-27 12:27 Peter Schorsch
  2010-08-27 22:40 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Schorsch @ 2010-08-27 12:27 UTC (permalink / raw)
  To: ntg-context

Hi,

in my work I have a lot of formulas inkl. subformulas. Doing the examples at 
the wiki two questions came up:
 a) how to generate a table of formulas?
 b) what is the right/better way for subnumbering?

a) I tried the example for generating a table of formulas from the wiki
(http://wiki.contextgarden.net/Math/Display#List_of_Formulas) but instead of 
a list I get in the pdf a »no list method«. What do I missed here?

b) I found two descriped ways how to create formula (sub-)numbering:
     1) using \formulanumber and \subformulanumber (third example from 
http://wiki.contextgarden.net/Math/Display#The_Manual_Method). But context 
always reports here: ! Undefined control sequence.
<argument> ...^{\vfrac {1}{2}} &\subformulanumber 
                                                  {b}\cr a^2 + b^2 &= c^2 
&\...
      2) using the \NR[..] like it is described on 
http://wiki.contextgarden.net/Multiline_equations#Working_with_equation_numbering 
and http://dl.contextgarden.net/myway/mathalign.pdf. This way compiles 
through. 

But which way is the future context way? In which way can I combine 
subnumbering and including to list some (not all) subformulas?

Thanks for your help

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: formla: listing and subnumbering
  2010-08-27 12:27 formla: listing and subnumbering Peter Schorsch
@ 2010-08-27 22:40 ` Hans Hagen
  2010-09-10 19:38   ` formula: " Peter Schorsch
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2010-08-27 22:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 27-8-2010 2:27, Peter Schorsch wrote:
> Hi,
>
> in my work I have a lot of formulas inkl. subformulas. Doing the examples at
> the wiki two questions came up:
>   a) how to generate a table of formulas?

i'll have a look at it


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: formula: listing and subnumbering
  2010-08-27 22:40 ` Hans Hagen
@ 2010-09-10 19:38   ` Peter Schorsch
  2010-09-10 19:50     ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Schorsch @ 2010-09-10 19:38 UTC (permalink / raw)
  To: ntg-context

> Hans Hagen wrote:
> i'll have a look at it

Did you found anything?

I tried to figure out which command in the examples of the wiki work/dont 
work (I used mkiv stable). So far:

\formulanumber -> works in mkii and mkiv
\subformulanumber -> works only in mkii
\placenamedsubformula -> works only in mkii
\placesubformula & \NR[+] -> mkii & mkiv, but (1.name) as number
\placeformula & \NR[+] -> works in mkii and mkiv, but (1.name) as number

I have a real problem to transform my formula from mkii to mkiv. In mkii I 
had following:

\placesubformulawithnumber[gleichung1]
\startformula
\startalign[n=3, align={right,middle,left}]
\NC PM \xrightarrow{aaa} \NC R_{PM} \NC \xrightarrow{bbb} PM 
\NR[gleichung1a][.1]
\NC R_{PM} \NC = \NC \{ K, F \} \NR[gleichung1b][.2]
\stopalign
\stopformula

Can anyone help me to transform this to mkiv, please?

Thanks
P.


___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: formula: listing and subnumbering
  2010-09-10 19:38   ` formula: " Peter Schorsch
@ 2010-09-10 19:50     ` Hans Hagen
  2010-09-14 20:22       ` Peter Schorsch
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2010-09-10 19:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 10-9-2010 9:38, Peter Schorsch wrote:
>> Hans Hagen wrote:
>> i'll have a look at it
>
> Did you found anything?
>
> I tried to figure out which command in the examples of the wiki work/dont
> work (I used mkiv stable). So far:
>
> \formulanumber ->  works in mkii and mkiv
> \subformulanumber ->  works only in mkii
> \placenamedsubformula ->  works only in mkii
> \placesubformula&  \NR[+] ->  mkii&  mkiv, but (1.name) as number
> \placeformula&  \NR[+] ->  works in mkii and mkiv, but (1.name) as number

- can you post your examples (so that they can be added to the test suite)

- can you also test this with the current beta

> I have a real problem to transform my formula from mkii to mkiv. In mkii I
> had following:
>
> \placesubformulawithnumber[gleichung1]
> \startformula
> \startalign[n=3, align={right,middle,left}]
> \NC PM \xrightarrow{aaa} \NC R_{PM} \NC \xrightarrow{bbb} PM
> \NR[gleichung1a][.1]
> \NC R_{PM} \NC = \NC \{ K, F \} \NR[gleichung1b][.2]
> \stopalign
> \stopformula
>
> Can anyone help me to transform this to mkiv, please?
>
> Thanks
> P.
>
>
> ___________________________________________________________________________________
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: formula: listing and subnumbering
  2010-09-10 19:50     ` Hans Hagen
@ 2010-09-14 20:22       ` Peter Schorsch
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Schorsch @ 2010-09-14 20:22 UTC (permalink / raw)
  To: ntg-context

Hans Hagen wrote:
> - can you post your examples (so that they can be added to the test suite)
> - can you also test this with the current beta

done.. you can find the test file for formulas with mkiv attached to this 
email. 

I ran it with the latest beta. A couple of things are working.. but e.g. 
most ways for subformulas not.

The listing is half working.. only the formulas names are missing and the 
order with the only example with working subformulas is strange. 

If I made any mkiv mistake please excuse... I tried to figure out / guessed 
the right mkiv ways. 

I hope this test files helps you to identify the problem areas.

---------8<-------------------

\starttext
\title{List of formulas}

Strange: Missing name of first formula and strange order of .. 2.a, 2, 
2.b...

\placelist[formula][criterium=all,alternative=c]

\subject{math - formula}

This works fine.

\placenamedformula[one]{Der einfache Test}
\startformula
c^2 = a^2 + b^2.
\stopformula

\subject{math - subformula}

This works fine.

\startsubformulas[eq:1]
\placeformula[eq:first]
\startformula
PM \xrightarrow R_{PM} \xrightarrow PM
\stopformula

\placeformula[eq:second]
\startformula
R_{PM} = \{ K, F, Z, U, I, J\}
\stopformula
\stopsubformulas

\subject{math - align - formula}

Works.

\placeformula
\startformula
\startalign[n=3, align={right,middle,left}]
\NC PM \xrightarrow \NC R_{PM} \NC \xrightarrow PM \NR[gleichung1a]
\NC R_{PM} \NC = \NC \{ A, B, C, D, E\} \NR[gleichung1b]
\stopalign
\stopformula

Also works.

\placeformula
\startformula
\startalign[n=3, align={right,middle,left}]
\NC PM \xrightarrow \NC R_{PM} \NC \xrightarrow PM \NR[+]
\NC R_{PM} \NC = \NC \{ A, B, C, D, E\} \NR[+]
\stopalign
\stopformula

\subject{math - align - subformula}

Does not work: no subformula numbers

\placesubformula
\startformula
\startalign[n=3, align={right,middle,left}]
\NC PM \xrightarrow \NC R_{PM} \NC \xrightarrow PM \NR[gleichung1a][.1]
\NC R_{PM} \NC = \NC \{ A, B, C, D, E\} \NR[gleichung1b][.2]
\stopalign
\stopformula

Does not work: no subformula numbers

\placesubformula
\startformula
\startalign[n=3, align={right,middle,left}]
\NC PM \xrightarrow \NC R_{PM} \NC \xrightarrow PM \NR[gleichung1a][+]
\NC R_{PM} \NC = \NC \{ A, B, C, D, E\} \NR[gleichung1b][+]
\stopalign
\stopformula

\subject{math - eqalignno - formula}

Taken from wiki and removed the subformulanumber

\placeformula
\startformula
\eqalignno{
  c^2 &= a^2 + b^2  &\formulanumber \cr
  c &= \left(a^2 + b^2\right)^{\vfrac{1}{2}} &\formulanumber\cr
  a^2 + b^2 &= c^2  &\formulanumber \cr
  d^2 &= e^2        &\formulanumber \cr}
\stopformula

\subject{math - eqalignno - subformula}

Directly taken form wiki - does not work: subformulanumber is unknown.

%\placeformula
%\startformula
%\eqalignno{
%  c^2 &= a^2 + b^2  &\formulanumber{a} \cr
%  c &= \left(a^2 + b^2\right)^{\vfrac{1}{2}} &\subformulanumber{b}\cr
%  a^2 + b^2 &= c^2  &\subformulanumber{c} \cr
%  d^2 &= e^2        &\formulanumber\cr}
%\stopformula

\stoptext


___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2010-09-14 20:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-27 12:27 formla: listing and subnumbering Peter Schorsch
2010-08-27 22:40 ` Hans Hagen
2010-09-10 19:38   ` formula: " Peter Schorsch
2010-09-10 19:50     ` Hans Hagen
2010-09-14 20:22       ` Peter Schorsch

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).