[NTG-context] Desperate help needed: Formular numbering and List of Formulas

2012-12-16 Thread Zenlima
Hi,

I am closing my dissertation (finally) but I had to realize that
subnumbering of formulas is still not working in mkiv. Unluckily going
back to mkii is not an option for other reasons. For that I really need 
help to bring back a fully working formula numbering. 

I searched the entire wiki and mailing list for possible examples and
put all in one test file - I got non to work but maybe I also made a
mistake somewhere. Additionally I wrote everything on my talk
page of the wiki:

http://wiki.contextgarden.net/User_talk:Zenlima

If every method has to be fixed my priority is the \NR[+][c]-method.
Maybe someone can give additionally hints how to get a proper list
of formulas.

I attached the test file with its pdf result in addition to the wiki
page. 

Thanks
H. 

context-test-mathe.pdf
Description: Adobe PDF document
\usemodule[newmath]

\setupformulas[way=bytext,prefix=no]
\setupsubformulas[conversion=romannumerals]

\starttext
\title{List of formulas}

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

\framed{not ok}

\chapter{Chapter One}

\chapter{Chapter Two}

\subject{math - formula}

Expected formular number: (1):

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

\framed{ok}

\subject{math - subformula}

Expected formular numbers: (2a) and (2b):

\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

\framed{not ok}

\subject{math - align - formula}

Expected formular numbers: (3a) and (3b) and a reference to formular (3b):

\startsubformulas
\startformulas
\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[a]
\stopalign
\stopformula
\stopformulas
\stopsubformulas

\framed{not ok}

Expected formular numbers: (4) and (5)

\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

\framed{ok}


\subject{math - align - subformula}

Expected formular numbers: (6.1), (6.2) and (6.c) plus referece on (6.1) and (6.2):

\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]
\NC R_{PM} \NC = \NC \{ A, B, C, D, E\} \NR[+][c]
\stopalign
\stopformula

\framed{not ok}

Expected formular numbers: (8a) and (8b) plus reference on (8a and 8b):

\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

\framed{not ok}

\subject{math - eqalignno - formula}

Taken from wiki and removed the subformulanumber. Expected formular numbers: (11), (12), (13) and (14):

\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

\framed{ok}

\subject{math - eqalignno - subformula}

Directly taken form wiki. Expected formular numbers:

%\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

\framed{not ok (does not work. subformularnumber is unknown)}

\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
___

Re: [NTG-context] Desperate help needed: Formular numbering and List of Formulas

2012-12-16 Thread Andreas Mang
Hi,

The minimal example below works for me (ConTeXt  ver: 2012.12.10 23:20 MKIV; 
I've added some stuff of your preamble to check).

Cheers  Gruss
Andreas

%%% MINIMAL EXAMPLE %%%
\usemodule[newmath]

\setupformulas[way=bytext,prefix=no]
\setupsubformulas[conversion=romannumerals]

\starttext

\startsubformulas[eq:ax=b]
\placeformula
\startformula
\startalign[n=3]
\NC A x\NC = b,\NR[eq:example-one][a]
\NC A x\NC = b,\NR[eq:example-two][a]
\stopalign
\stopformula
\stopsubformulas

\stoptext
%%% MINIMAL EXAMPLE %%%


Am Dec 16, 2012 um 8:16 PM schrieb Zenlima p...@zenlima.eu:

 Hi,
 
 I am closing my dissertation (finally) but I had to realize that
 subnumbering of formulas is still not working in mkiv. Unluckily going
 back to mkii is not an option for other reasons. For that I really need 
 help to bring back a fully working formula numbering. 
 
 I searched the entire wiki and mailing list for possible examples and
 put all in one test file - I got non to work but maybe I also made a
 mistake somewhere. Additionally I wrote everything on my talk
 page of the wiki:
 
   http://wiki.contextgarden.net/User_talk:Zenlima
 
 If every method has to be fixed my priority is the \NR[+][c]-method.
 Maybe someone can give additionally hints how to get a proper list
 of formulas.
 
 I attached the test file with its pdf result in addition to the wiki
 page. 
 
 Thanks
 H. 
 context-test-mathe.pdfcontext-test-mathe.tex___
 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
 ___

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


Re: [NTG-context] Desperate help needed: Formular numbering and List of Formulas

2012-12-16 Thread Zenlima
Hi Andreas,

thanks for your example.. I also got it to work - so my desperate case
is half solved. I added it also to the working cases:

http://wiki.contextgarden.net/User_talk:Zenlima#align_-_subformular_.5B.2B.5D

In order to prevent unnecessary frustration I added a warning at the
two related math pages. 

I tried to extend your example with named subformulas in different ways
but as a result the numbers vanished or the table of formulas messed
up. Also I found the note in str-math.mkiv that a rewrite is needed. 

Ciao
H. 

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