* Desperate help needed: Formular numbering and List of Formulas
@ 2012-12-16 19:16 Zenlima
2012-12-16 19:42 ` Andreas Mang
0 siblings, 1 reply; 3+ messages in thread
From: Zenlima @ 2012-12-16 19:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 777 bytes --]
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.
[-- Attachment #2: context-test-mathe.pdf --]
[-- Type: application/pdf, Size: 25815 bytes --]
[-- Attachment #3: context-test-mathe.tex --]
[-- Type: text/x-tex, Size: 2932 bytes --]
\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
[-- Attachment #4: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Desperate help needed: Formular numbering and List of Formulas
2012-12-16 19:16 Desperate help needed: Formular numbering and List of Formulas Zenlima
@ 2012-12-16 19:42 ` Andreas Mang
2012-12-17 0:02 ` Zenlima
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Mang @ 2012-12-16 19:42 UTC (permalink / raw)
To: mailing list for ConTeXt users
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 <post@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.pdf><context-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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Desperate help needed: Formular numbering and List of Formulas
2012-12-16 19:42 ` Andreas Mang
@ 2012-12-17 0:02 ` Zenlima
0 siblings, 0 replies; 3+ messages in thread
From: Zenlima @ 2012-12-17 0:02 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-12-17 0:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-16 19:16 Desperate help needed: Formular numbering and List of Formulas Zenlima
2012-12-16 19:42 ` Andreas Mang
2012-12-17 0:02 ` Zenlima
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).