a
> \startcases
> \NC x = a \NR[+]
> \NC y = b \NR[+]
> \stopcases\stopformula\stoptext
>
> This only prints (2) on the right of the whole cases system. If I use
> \placesubformula, the behavior remains exactly the same. It also yields
> the same ou
ormula\stoptext
This only prints (2) on the right of the whole cases system. If I use
\placesubformula, the behavior remains exactly the same. It also yields the
same output with live ConTeXt. The ConTeXt version I am using is 2018.01.19
13:42
Has there been a change in the behavior since the
more intuitive during the writing.
Also. this way the commands:
placesubformula
placenamedformula
placenamedsubformula
startstopsubformulas
subformulanumber
will become needless.
For the "why" and examples please look at:
http://wiki.context
\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
does not result in what is described there:
>>
>> \starttext
>> \placesubformula
>> \startformula \startalign
>> \NC a_1 x + b_1 y \NC = c_1 \NR[eq:c][c]
>> \NC a_2 x + b_2 y \NC = c_2 \NR[eq:d][d]
>> \stopalign \stopformula
>> (\in[eq:c]) and (\in[eq:d]) form a linea
described there:
\starttext
\placesubformula
\startformula \startalign
\NC a_1 x + b_1 y \NC = c_1 \NR[eq:c][c]
\NC a_2 x + b_2 y \NC = c_2 \NR[eq:d][d]
\stopalign \stopformula
(\in[eq:c]) and (\in[eq:d]) form a linear system of equations.
\stoptext
Is this a known bug?
I can confirm the bug
Hi Aditya,
It seems that numbering subformulas as described in your « My Way » magazine
entitled « Using \startalign » does not work with mkiv.
The following minimal example taken from page 6 of the above mentioned manual,
does not result in what is described there:
\starttext
\placesubformula
get (1) and (2)
> instead of (1a) and (1b)):
>
> % start example
> \starttext
> % from
> % does not display "subformula numbers""
> \placesubformula
> \startformula \startalign
> \NC a_1 x + b_1 y \NC = c_1 \NR[+][a]
> \NC
Dear all,
I am having problems with subformulas.
The following example does not display a subnumber (i.e. I get (1) and (2)
instead of (1a) and (1b)):
% start example
\starttext
% from
% does not display "subformula numbers""
\placesubformula
\startform
ed as
a_1 = (1,0,0)(1a)
a_2 = (0,1,0)(1b)
a_3 = (0,0,1)(1c)
and then reference them as equation (1).
The example from Aditya's document says the following:
\placesubformula
\startformula \startalign
\NC a_1 x + b_1 y \NC = c_1 \NR[+][a]
\NC a_2 x + b_2 y \NC = c_2 \NR[+][b]
On 30-11-2010 8:10, Wolfgang Schuster wrote:
Hi Hans,
a fix for strc-mat.mkiv
\unexpanded\def\placeformula
- {\doglobal\settrue\insideplaceformula
+ {\global\settrue\insideplaceformula
\settrue\incrementformulanumber
\dodoubleempty\doplaceformula}
\unexpanded\def\placesubformula
Hi Hans,
a fix for strc-mat.mkiv
\unexpanded\def\placeformula
- {\doglobal\settrue\insideplaceformula
+ {\global\settrue\insideplaceformula
\settrue\incrementformulanumber
\dodoubleempty\doplaceformula}
\unexpanded\def\placesubformula
- {\doglobal\settrue\insideplacesubformula
+ {\global
a 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
\sta
rks 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
ula -> 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:
\placesubformu
pparently, the \makesectionnumber and \rawreference macros have be
>>> removed.
>>>
>>> I wonder if anyone can give pointers on how to fix this.
>>>
>>
>> A cleaner way to achieve the same output is
>>
>> \starttext
>>
>> \start
Apparently, the \makesectionnumber and \rawreference macros have be
removed.
I wonder if anyone can give pointers on how to fix this.
A cleaner way to achieve the same output is
\starttext
\startsubformulas[eq:sub]
\placesubformula
Sorry, this should have been \placeformula.
\startformula \startalign
macros have be removed.
I wonder if anyone can give pointers on how to fix this.
A cleaner way to achieve the same output is
\starttext
\startsubformulas[eq:sub]
\placesubformula
\startformula \startalign
\NC a_1 x + b_1 y \NC = c_1 \NR[eq:1]
\NC a_2 x + b_2 y \NC = c_2 \NR[eq:2]
\stopali
kesectionnumber[formula]
\iffirstargument
\rawreference{for}{#1}{\composedsectionnumber}
\fi\placesubformula}
\placesubformulawithnumber
\startformula \startalign
\NC a_1 x + b_1 y \NC = c_1 \NR[+][a]
\NC a_2 x + b_2 y \NC = c_2 \NR[+][b]
\stopalign \stopformula
\placelayer
\placelegend{text}{text}
\placelist[names][settings]
\placelistoffloats
\placelistofsorts
\placelistofsynonyms
\placelocalfootnotes[settings]
\placelogos[names]
\placeongrid[settings{text}
\placeontopofeachother{text}{text}
\placereferencelist[names]
\placeregister[name][settings]
\pl
n2]
\startformula
f(x) = \sum_{n = - \infty}^{+\infty} c_{n} e^{\displaystyle i n
\frac{\pi}{L} x} \quad \text{,} \quad c_{n} = \frac{1}{2L}
\int\limits_{-L}^{L} f(x) \ms e^{- \displaystyle in\frac{\pi}{L} x }
dx
\stopformula
Formula number is not right aligned with the previous formula
\placesubformu
} f(x) \ms e^{-
\displaystyle in\frac{\pi}{L} x } dx
\stopformula
Formula number is not right aligned with the previous formula
\placesubformula
\startformula
\startalign[n=2,m=2,distance=2em]
%\startalign[n=3]
\NC f(x) \NC = \frac{1}{2\pi} \int\limits_{-\infty}^{+\infty} g(y) \ms
e^{i y x} \ms dy \
spread them out.
I tried to use the distance parameter but this setting is ignored. I
also experimented with the startmatrix/stopmatrix
but I need the sub formula numbering.
Any help appreciated
Wim
\def\ms{\,}
\starttext
\placesubformula
\startformula
\startalign[n=3]
\NC f(x) \NC = \frac{1}{2
; \setupinteraction[state=start]
> >
> > \placebookmarks[chapter,section,subsection]
> >
> > \abbreviation [UK] {UK}{United Kingdom of Great Britain and
> > Northern
> > Ireland}
> >
> > \starttext
> > \plac
[UK] {UK}{United Kingdom of Great Britain and
> Northern
> Ireland}
>
> \starttext
> \placelist[formula]
> \chapter{Math formulae}
>
>\placenamedformula
> [eq:well_known]
> {Well known equalities}
> \s
[UK] {UK}{United Kingdom of Great Britain and Northern
Ireland}\starttext\placelist[formula]\chapter{Math formulae} \placenamedformula [eq:well_known] {Well known equalities} \startformula \stopformula \placesubformula[eq:first]{a}
\startformula 1+0=1 \stopfo
ed Kingdom of Great Britain and Northern
Ireland}
\starttext
\placelist[formula]
\chapter{Math formulae}
\placenamedformula
[eq:well_known]
{Well known equalities}
\startformula
\stopformula
\placesubformula[eq:first]{a}
\startformula
1+0=1
On Tue, 8 Aug 2006, Aditya Mahajan wrote:
[ A long list of feature requests ]
Here is something that was not in my original list: subformula
numbering.
Context allows one to number subformulas by specifying the subnumber.
Thus, if I want (1a) (1b) and (1c), I need to do
\placesubformula[+]{a
awithnumber[#1][#2]%#2 gobbles spaces
>> {\iffirstargument
>> \incrementnumber[\v!formula]
>> \makesectionnumber[\v!formula]
>> \rawreference{\s!for}{#1}{\composedsectionnumber}
>> \else
>> \incrementnumber[\v!formula]
>> \fi\placesubformula}
>> \prot
\else
\incrementnumber[\v!formula]
\fi\placesubformula}
\protect
\starttext
%% > \incrementnumber[formula]
%% > \placesubformula
\placesubformulawithnumber[eqn1] %I need to think of a smaller name
\startformula
\startalign
\NC div \vec{E} \NC = \epsilon_{0}^{-1} \rho \NR[eqn1:A]
mber}
\else
\incrementnumber[\v!formula]
\fi\placesubformula}
\protect
> \starttext
%% > \incrementnumber[formula]
%% > \placesubformula
\placesubformulawithnumber[eqn1] %I need to think of a smaller name
> \startformula
> \startalign
> \NC div \vec{E} \NC = \epsilon_{0}^{-1} \rho
equations
like
\starttext
\incrementnumber[formula]
\placesubformula
\startformula
\startalign
\NC div \vec{E} \NC = \epsilon_{0}^{-1} \rho \NR[eqn1:A][a]
\NC rot \vec{E} \NC = 0 \NR
\NC div \vec{B} \NC = 0 \NR[eqn1:B][b]
\NC rot \vec{B} \NC = \mu_{0} \vec{j} \NR
\stopalign
\stopformu
32 matches
Mail list logo