}
\breakhere
\stoptexdefinition
\protect
\starttext
\section{Old alignment}
\samplefile{knuth}
\placeformula\startformula\startalign
\NC \text{something} + \text{really} + \text{really} + \text{long} \NC= \sqrt{x} \NR[+]
\intertext{\samplefile{knuth}}
en Sie sich die
Bedeutung der beiden Aussagen klar.
\par
\startitemize[n]
\item \m{\forall m ∈ M : ∃f ∈ F : h(m, f)} \item ∃f ∈ F : ∀m ∈ M : h(m, f).
\stopitemize
% I changed the above to use \startitemize but have a look at \placeformula as
well
\startGrayBackground
Mitunter ist es aus der Formulierun
etzungen
machen Sie sich die Bedeutung der beiden Aussagen klar.
\par
\startitemize[n]
\item \m{\forall m ∈ M : ∃f ∈ F : h(m, f)}
\item ∃f ∈ F : ∀m ∈ M : h(m, f).
\stopitemize
% I changed the above to use \startitemize but have a look at \placeformula as
well
\startGrayBackground
Mitunter
n help me.
\starttext ... \stoptext is missing!
> This litte example is from the wiki, i wanted to try \placeformula
\starttext
> \placeformula[formula:aformula]
> \startformula
> y=x^2
> \stopformula
> \placeformula
> \startformula
> \int_0^1 x^2 dx
>
On Fri, 3 Nov 2023, Ursula Hermann wrote:
> Dear List,
> i hope somone can help me.
\starttext ... \stoptext is missing!
> This litte example is from the wiki, i wanted to try \placeformula
\starttext
> \placeformula[formula:aformula]
> \startformula
> y=x^2
> \stopfo
Dear List,
i hope somone can help me.
This litte example is from the wiki, i wanted to try \placeformula
\placeformula[formula:aformula]
\startformula
y=x^2
\stopformula
\placeformula
\startformula
\int_0^1 x^2 dx
\stopformula
After compiling there is no PDF Page . But this:
Command Line
le:
>>
>> ConTeXt ver: 2023.09.26 18:19 LMTX
>>
>> \setupinteraction[state=start, color=black]
>>
>> \starttext
>>
>> \placeformula[eq:equation1]
>> \startformula
>> x
>> \stopformula
>>
>> References are red on the fi
software issue but it is
> still the same.
>
> Here is a minimal working example:
>
> ConTeXt ver: 2023.09.26 18:19 LMTX
>
> \setupinteraction[state=start, color=black]
>
> \starttext
>
> \placeformula[eq:equation1]
> \startformula
> x
> \stopformula
\setupinteraction[state=start, color=black]
\starttext
\placeformula[eq:equation1]
\startformula
x
\stopformula
References are red on the first page \in[eq:equation1]
\at{page}[eq:equation1]
\input tufte
\input tufte
\input tufte
\input tufte
\input tufte
Now they become black \in[eq:equation1] \at{page
; james-tanton-web}.
> \placeformula[eq:james-tanton-canvi-de-variables]
> \startformula
> \startalign
> \NC ax^2 + bx + c = 0 \NC \NR
> \NC ax^2 + bx = -c \NC \quad \text{transposem } c\NR
> \NC x^2 + \frac{b}{a} x = - \frac{c}{a} \NC \quad \text{dividim per }a\NR
> \NC x \left( x + \frac{
I have this text and the end of the paragraph:
Definitivament és el mètode més senzill. L'atribució més antiga que conec
d'aquest mètode és de James Tanton \cite{canvi-variable-equacio-segon-grau,
james-tanton-web}.
\placeformula[eq:james-tanton-canvi-de-variables]
\startformula
\startalign
\NC
nk to them within the main context document? In [2], I
found something maybe related but it requires a tuc file.
Example:
inner.tex:
```
\starttext
\startsection[title=References, reference=sec:ref]
Some text
\placeformula[eq:foo]
\startformula
1 + 2 = 3
\stopformula
or:
\startitemize[n]
c^2 = a^2 + b^2 \stopformula
\setupformulas[align=left]
\placeformula \startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=middle]
\placeformula \startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=right]
\placeformula \startformula c^2 = a^2 + b^2 \stopformula
\stoptext
All
]
\startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=middle]
\startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=right]
\startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=left]
\placeformula \startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=middle]
\placeformula
\stopformula
> \setupformulas[align=middle]
> \startformula c^2 = a^2 + b^2 \stopformula
> \setupformulas[align=right]
> \startformula c^2 = a^2 + b^2 \stopformula
> \setupformulas[align=left]
> \placeformula \startformula c^2 = a^2 + b^2 \stopformula
> \setupformulas[align=mi
[align=middle]
\startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=right]
\startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=left]
\placeformula \startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=middle]
\placeformula \startformula c^2
][prefix=yes, prefixsegments=chapter:section]
> >
> > \starttext
> >
> > Equations: \in[eq1], \in[eq2], \in[eq3], \in[eq4]
> >
> > Sections: \in[sec1], \in[sec2], \in[sec3], \in[sec4]
> >
> > Chapters: \in[chap1], \in[chap2], \in[chap3], \in[chap4]
> &
: \in[eq1], \in[eq2], \in[eq3], \in[eq4]
Sections: \in[sec1], \in[sec2], \in[sec3], \in[sec4]
Chapters: \in[chap1], \in[chap2], \in[chap3], \in[chap4]
Remarks: \in[remark1], \in[remark2]
\startbodymatter
\chapter[chap1]{Chapter}
\placeformula[eq1]\startformula x = y\stopformula
\chapter[chap2
s, prefixsegments=chapter:section]
>
> \starttext
>
> Equations: \in[eq1], \in[eq2], \in[eq3], \in[eq4]
>
> Sections: \in[sec1], \in[sec2], \in[sec3], \in[sec4]
>
> Chapters: \in[chap1], \in[chap2], \in[chap3], \in[chap4]
>
> Remarks: \in[remark1], \in[rema
], \in[sec4]
Chapters: \in[chap1], \in[chap2], \in[chap3], \in[chap4]
Remarks: \in[remark1], \in[remark2]
\startbodymatter
\chapter[chap1]{Chapter}
\placeformula[eq1]\startformula x = y\stopformula
\chapter[chap2]{Chapter}
\section[sec1]{Section}
\section[sec2]{Section}
\placeformula[eq1
ed,
> align={1:right,2:left,3:left},
> strut=yes,
> ]
>
> \starttext
>
> \placeformula
> \startformula
> \startpdeproblem
> \NC - \Delta u \NC = 0 \NC \qquad\text{in } \Omega \NR
> \NC \frac{\partial u}{\partial {\bi n}} \NC = V u + \phi \NC
> \qquad\text{on } \p
ents, as it is is shown in the following example.
>
>
> I confirm what you said.
>
> However, if I use \dm{} instead of \displaystyle as following, then the
> output is correct.
>
> \placeformula
> \startformula
> \startalignedcases
> \NC - \Delta u \NC = 0 \NC \qquad\te
use \dm{} instead of \displaystyle as following, then the
> output is correct.
>
> \placeformula
> \startformula
> \startalignedcases
> \NC - \Delta u \NC = 0 \NC \qquad\text{in }\, \Omega \NR
> \NC \dm{\frac{\partial u}{\partial {\bi n}}}
> \NC = V u + \phi \NC \
Dear Otared,
>
> I think there is an issue with the size of math fonts in \frac when used in
> math alignments, as it is is shown in the following example.
>
I confirm what you said.
However, if I use \dm{} instead of \displaystyle as following, then the output
is correct.
\
={\left\{},
right={\right.},
style=\displaystyle]
\starttext
Consider this
\placeformula
\startformula
\startalignedcases
\NC - \Delta u \NC = 0 \NC \qquad\text{in }\, \Omega \NR
\NC \frac{\partial u}{\partial {\bi n}} \NC = V u + \phi \NC \qquad\text{on
}\, \partial\Omega. \NR
\,\right)}]
>
> \starttext
> \placeformula[-]\startformula\startmathalignment
>\NC\
>A \NC=\underbrace{
>\startpmatrix
> \NC 5\NC 5\NR
> \NC -1\NC 7\NR
>\stoppmatrix}\NR
>\NC\NC=\underbrace{
>\startpmatrix
> \NC 2\NC 1\NR
> \N
={\left(\,},right={\,\right)}]
\starttext
\placeformula[-]\startformula\startmathalignment
On Thu, 21 Jul 2022 10:40:01 -0600
Alan via ntg-context wrote:
> undefined link location
> MWE:
>
> \setupinteraction [state=start]
>
> \starttext
>
> \placeformula [eq]
> \startformula
> x = 0
> \stopformula
>
> \page [yes]
>
undefined link location
MWE:
\setupinteraction [state=start]
\starttext
\placeformula [eq]
\startformula
x = 0
\stopformula
\page [yes]
\in{formula} [eq]
\stoptext
___
If your question
Hi Mikael,
Thank you for your reply. For the time being I am not in a hurry to solve the
issue with placeformula (when the numbers are on the right, there is no
problem…).
Best regards: Otared
> On 12 Jul 2022, at 23:08, Mikael Sundqvist via ntg-context
> wrote:
> […]
&g
On Tue, Jul 12, 2022 at 6:34 PM Otared Kavian via ntg-context
wrote:
>
> Dear Hans, dear Mikael,
>
> In my experiments with the new math engine, I noticed that there is an issue
> with \placeformula when one sets the location of the numbers on the left: the
> number
Dear Hans, dear Mikael,
In my experiments with the new math engine, I noticed that there is an issue
with \placeformula when one sets the location of the numbers on the left: the
number is one line above the formula. Here is a minimal example:
% begin bug-placeformula-left.tex
\setupformulas
On Wed, May 25, 2022 at 5:35 AM Luis Montgomery via ntg-context
wrote:
>
> Same issue with
>
> \placeformula
> \startformula
> \startalign[number=auto]
> \NC A_1 x + B_1 y + C_1\NC = 0 \NR[+]
> \NC A_2 x + B_2 y + C_2\NC = 0 \NR[+]
> \stopalign
> \stopformula
>
&
Same issue with
\placeformula
\startformula
\startalign[number=auto]
\NC A_1 x + B_1 y + C_1\NC = 0 \NR[+]
\NC A_2 x + B_2 y + C_2\NC = 0 \NR[+]
\stopalign
\stopformula
and with all the wiki examples on \startmathalignment (
https://wiki.contextgarden.net/Command/_startmathalignment).
L
g: only one statement is numbered even if
> multiple are requested.
>
> The following example does not produce the expected result
> both the equations should be numbered when only the first one is –
>
> \starttext
>
> \placeformula
> \startformula
> \
esult (sample
> attached):
> both the equations should be numbered when only the first one is –
>
> \starttext
>
> \placeformula
> \startformula
> \startmathalignment
> \NC a \NC = b \NR[eq:one]
> \NC c \NC = d \NR[eq:two]
> \stopmatha
example does not produce the expected result (sample attached):
both the equations should be numbered when only the first one is –
\starttext
\placeformula
\startformula
\startmathalignment
\NC a \NC = b \NR[eq:one]
\NC c \NC = d \NR[eq:two]
\stopmathalignment
ealignments. We can use them for example to
> collect some equations with a brace (and give the collection one
> number).
>
> /Mikael
>
> \setupbodyfont[lucidadk]
>
> \definemathsimplealign[collecteqequations][
> left={\startmathfenced[sesac]},
> right=\stopmath
ecteqequations][
left={\startmathfenced[sesac]},
right=\stopmathfenced,
align={1:right,2:left},
]
\starttext
%\showmakeup[mathglue]
${\mathcal ABC}$ and ${\mathscr ABC}$
\placeformula
\startformula
\startcollecteqequations
\NC x \NC = r\sin\theta\cos\phi\NR
\NC y \NC = r\sin\theta\sin\phi \NR
\NC z \NC
On Wednesday, March 2, 2022 1:15 PM Mikael Sundqvist via ntg-context wrote:
> \starttext
> \placeformula
> \startformula
> \startmathalignment[n=7,align={1:right,2:left,3:right,4:left,5:right,6:left,7:righ
> t}] \NC x_1 \NC + \NC x_2 \NC + \NC 6x_3 \NC = \NC 170, \NR
> \NC 3x_
On Wed, Mar 2, 2022 at 2:33 AM śrīrāma via ntg-context
wrote:
>
> Hi,
>
> While setting some rather large set of equations in a document I could not
> achieve proper alignment of columns in mathalignment. Below is a demonstrative
> example:
>
> \starttext
> \p
Hi,
While setting some rather large set of equations in a document I could not
achieve proper alignment of columns in mathalignment. Below is a demonstrative
example:
\starttext
\placeformula
\startformula
\startmathalignment[n=7,align={right,left,right,left,right,left,right}]
\NC x_1 \NC
]
[align={1:right,2:left,3:left}]}
\starttext
\doifelsemode{lmtx}{We are using LMTX}{We are using mkiv}
\placeformula[eq:1]
\startformula
\startalignedcases
\NC \partial_{t} u \NC = \Delta u + \epsilon^{-2}f(u) \NC\qquad\text{in }\,
\Omega\times (0,+\infty) \NR
\NC {\partial\phi(u) \over \partial
emathmatrix[alignedcases]
> [align={right,left,left},
> distance=3pt,
> left={\left\{},
> right={\right.},
> style=\displaystyle]
> \starttext
>
> \placeformula[eq:1]
> \startformula
> \startalignedcases
&g
,
left={\left\{},
right={\right.},
style=\displaystyle]
\starttext
\placeformula[eq:1]
\startformula
\startalignedcases
\NC \partial_{t} u \NC = \Delta u + \epsilon^{-2}f(u) \NC\qquad\text{in }\,
\Omega\times (0,+\infty) \NR
\NC {\partial\phi(u) \over
tgarden.net/Installing_ConTeXt_LMTX_on_MacOS/>
>>>
>>> and using TeXShop on macos as advised.
>>>
>>> However, I like to use STIX2-Fonts for Text and Math and hence my MWE to
>>> test which fonts are going to be embedded (CLI pdffonts):
>>>
>
):
-
\setupbodyfont[stixtwo]
\starttext
Test ß 1lIjJuQ \% § \& ?! VERSAL-ẞ- \|> --- 1234567890 --- //
\placeformula[eqn:def-m]
\startformula
m = \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}}
\stopformula
\stoptext
-
Unfortunately the compiler throws an error — why is there a check of
disappear entirely, and the
placeformula location doesn't seem to take the margin option.
Thanks,
Adam
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context
Hi,
Or would it be possible to just add a "list=" option to placeformula
similar to placefigure? (although that might conflict with the combination
of "title=")
All I am really after is to label or name numbered formulas in the
placelist.
---
\starttext
% 1 This i
)
shows what I would like to have.
Using MKII I get the desired output (1 formulaname ... and 3b formulaname
...) but with MKIV and LMTX I only get the reference from the placeformula
(as 1 and correctly not listed in the placelist) and none of the
placenamedformula numbers. The placeformula number
2020 a la(s) 14:20, Jean-Philippe Rey (
jean-philippe@centralesupelec.fr) escribió:
> Dear list,
>
> \placeformula doesn't seem to work with LMTX.
>
> ==
> \starttext
> \placeformula[F]
> \startformula
> a^2 + b^2 = c^2
> \stopformula
>
&
Dear list,
\placeformula doesn't seem to work with LMTX.
==
\starttext
\placeformula[F]
\startformula
a^2 + b^2 = c^2
\stopformula
The \in[F] formula
\stoptext
==
Thank you for your help.
--
Jean-Philippe Rey
jean-philippe@centralesupelec.fr
91192 Gif-sur
ees that
\placeformula
\startformula
a^2 + b^2 = c^2
\stopformula
which is the Pythagoras theorem. \qed
Another proof of Pythagors theorem is based on the figure below in which one
sees that:
\placeformula
\startformula
(a+b)^2 = c^2 + 2ab \quad \imply \quad a^2 + b^2 = c^2. \qed
\stopformula
\stoptext
%%
Schuster <
wolfgang.schuster.li...@gmail.com> wrote:
> On Mon, 10 Feb 2020 05:58:50 +0800
> Jon Wong wrote:
>
> > MWE:
> >
> > \starttext
> >
> > The famous result (and again) is given by
> > \placeformula[formulalabel]
> > \startformula
On Mon, 10 Feb 2020 05:58:50 +0800
Jon Wong wrote:
> MWE:
>
> \starttext
>
> The famous result (and again) is given by
> \placeformula[formulalabel]
> \startformula
> c^2 = a^2 + b^2.
> \stopformula
> And now we can refer to formula \ref[][formulalabel].
>
MWE:
\starttext
The famous result (and again) is given by
\placeformula[formulalabel]
\startformula
c^2 = a^2 + b^2.
\stopformula
And now we can refer to formula \ref[][formulalabel].
\stoptext
There is a blank where the formula label should be at “now we can refer to
formula ---“.
Regards
://tex.stackexchange.com/questions/518262/context-number-formulas-side-by-side
\placeformula
\startformulas
\startformula
\startalign[number=auto]
\NC a \NC= b \NR
\stopalign
\stopformula
\startformula
\startalign[number=auto]
\NC a \NC= b \NR
\stopalign
\stopformula
FILE
\definereferenceformat[eqref][left=(,right=)]
\starttext
\chapter[title=Foo]
\placeformula[eq:bar]
\startformula
1+1=2
\stopformula
We see in \eqref[eq:bar].
\stoptext
fixed in next beta
=)]
\starttext
\chapter[title=Foo]
\placeformula[eq:bar]
\startformula
1+1=2
\stopformula
We see in \eqref[eq:bar].
\stoptext
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist
ection[title=List of Tables]
\placelistoftables
\stopsection
\startsection[title=List of Symbols]
\placelistofsymbols
\stopsection
\stopfrontmatter
\startbodymatter
\startsection[title=Symbols]
\startsubsection[title=Using the Symbols]
\placeformula
\startsubformulas
\startformula
\startalign
\NC \frac{d
On Mon, Nov 26, 2018 at 8:40 AM adrien Licari
wrote:
> Hi everyone,
>
> I can't get cases subformula to work properly. My MWE, inspired from the
> wiki and the My Way "Using \startalign and friends" by Aditya Mahajan, is :
>
> \starttext\placeformula\startformula
>
Hi everyone,
I can't get cases subformula to work properly. My MWE, inspired from the
wiki and the My Way "Using \startalign and friends" by Aditya Mahajan, is :
\starttext\placeformula\startformula
\startcases
\NC x = a \NR[+]
\NC y = b \NR[+]
\stopcases\stopformul
With this example code from the wiki (slightly modified for use here):
\setuppapersize[A5]
\starttext
\placeformula[eq:pythagoras]
\startformula
a^2+b^2=c^2
\stopformula
This is explained in \in{Equation}{.}[eq:pythagoras]
\stoptext
The following output is obtained
I usually define my own reference formats, “ineq” for equations, “infig”
for figures:
\definereferenceformat[ineq][left=(,right=)]
\definereferenceformat[infig][left=\labeltext{figure}]
\starttext
\starttext
\placeformula
\startformula \startalign
\NC a_1 x + b_1 y \NC = c_1 \NR[eq:1]
\NC
Schuster
> 작성:
>
> When you look at the first example in section 4.1 you can see that the
> parentheses are inserted by hand.
>
> %%
> \starttext
>
> \placeformula
> \startformula \startalign
> \NC a_1 x + b_1 y \NC = c_1 \NR[eq:1]
> \NC a_
When you look at the first example in section 4.1 you can see that the
parentheses are inserted by hand.
%%
\starttext
\placeformula
\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]
\stopalign \stopformula
As seen from (\in[eq:1
[
location=bottom,
title={Residual plot with time $t$ on the x-axis and
residuals $e_{jt}$ on the y-axis},
reference={fig:subject-residual}]
\externalfigure[residuals][height=.242\textheight]
\stopplacefigure
And some more text with $x$ and $y$ and $z$, and \placeformula
\startformula
and
residuals $e_{jt}$ on the y-axis},
reference={fig:subject-residual}]
\externalfigure[residuals][height=.242\textheight]
\stopplacefigure
And some more text with $x$ and $y$ and $z$, and \placeformula
\startformula \startalign
\NC a =\NC b \NR
\NC c =\NC d \NR
\stopalign \stopformula
r\star},{\star\star\star}]
> \defineformula[star][numberconversion=myset]
>
> \starttext
> \placeformula
> \startstarformula
> a^4 + b^4 = c^4.
> \stopstarformula
>
> \placeformula
> \startstarformula
> a^5 + b^5 = c^5.
> \stopstarformula
>
> \placeformula
> \startsta
Hi Mikael,
I learned the following from Aditya some time ago, on his website Random
Determinism: maybe you can adapt it to your needs.
\defineconversion[myset][\star,{\star\star},{\star\star\star}]
\defineformula[star][numberconversion=myset]
\starttext
\placeformula
\startstarformula
a^4 + b
Dear Hans,
Thanks for the patch. It runs without errors again. However, another problem
surfaced. In the MWE
below the second column of the matrix is no longer centred as it should be.
current version: 2017.09.08 17:24
Cheers, Henri
---
\starttext
\placeformula
\startformula
---
\starttext
\placeformula
\startformula
\sum_{\startsubstack
\NC k \NR
\NC \omega_n \NR
\stopsubstack}
\stopformula
\placeformula
\startformula
\startmathmatrix[left=\left|,right=\right|]
\NC 0 \NC 1 \NR
\NC 1 \NC 0 \NR
\stopmathmatrix
= -1 .
\stopformula
\stoptext
Dear devs,
Thank you very much for fixing this one
https://mailman.ntg.nl/pipermail/ntg-context/2017/089790.html
Unfortunately it seems like you broke substack and mathmatrix on the way. MWE
below fails
with version 2017.09.08 17:24
Cheers, Henri
---
\starttext
\placeformula
\startformula
re detailed example where you see the problem?
>
> Best regards: OK
>
> >
> > On 8 Sep 2017, at 06:51, Henri <henrime...@gmail.com> wrote:
> >
> > \define\Up{\mathord\Uparrow}
> > \define\Dn{\mathord\Downarrow}
> >
> > \starttext
ver: 2017.09.05 15:10 MKIV beta).
Can you please give a more detailed example where you see the problem?
Best regards: OK
> On 8 Sep 2017, at 06:51, Henri <henrime...@gmail.com> wrote:
>
> \define\Up{\mathord\Uparrow}
> \define\Dn{\mathord\Downarrow}
>
> \star
}
\define\Dn{\mathord\Downarrow}
\starttext
\placeformula
\startformula
\startmathalignment
\NC \psi_{+,\Up} ...
\startmathmatrix
\stopmathmatrix
\NR
\NC \psi_{+,\Dn} ...
\NR
\stopmathalignment
\stopformula
\stoptext
(or is that maybe included in the new mechanism)?
Best
Mathias
> Am 12.06.2017 um 17:25 schrieb Hans Hagen <pra...@wxs.nl>:
>
> Hi,
>
> experimental in next beta:
>
> \starttext
>
> test
>
> \startbuffer
> \placeformula
> \startformula
>x\dorecu
Hi,
experimental in next beta:
\starttext
test
\startbuffer
\placeformula
\startformula
x\dorecurse{100}{+#1x^{#1x}}=10
\stopformula
test
\startformula
x\dorecurse{100}{+#1x^{#1x}}=10
\stopformula
test
\stopbuffer
\par \setupformula[split=no] \getbuffer \par
\par \setupformula
On 6/6/2017 1:06 AM, Henri Menke wrote:
It seems that \NC in mathalignment is looking ahead for the next \NR, because
when I wrap the matrix
in an explicit brace group it works fine again:
\definemathmatrix
[pmatrix]
[left=\left(,right=\right)]
\starttext
\placeformula
\startformula
On 6/6/2017 1:06 AM, Henri Menke wrote:
It seems that \NC in mathalignment is looking ahead for the next \NR, because
when I wrap the matrix
in an explicit brace group it works fine again:
\definemathmatrix
[pmatrix]
[left=\left(,right=\right)]
\starttext
\placeformula
\startformula
Wow, mathalignment is completely screwed in beta and TL2017. Hans, please fix!
---
\starttext
\placeformula
\startformula
\startmathalignment[m=2]
\NC a^2 + b^2 \NC= c^2 \NC a^2 + b^2 \NC= c^2 \NR
\stopmathalignment
\stopformula
\stoptext
On Tue, 2017-06-06 at 11:06 +1200, Henri
It seems that \NC in mathalignment is looking ahead for the next \NR, because
when I wrap the matrix
in an explicit brace group it works fine again:
\definemathmatrix
[pmatrix]
[left=\left(,right=\right)]
\starttext
\placeformula
\startformula
\startmathalignment
\NC \sigma_x \NC
sion, I want to bring attention to this
> issue once again, in the hope of getting it resolved.
>
> Formula numbers are not placed at the far end when in RTL. Here is a MWE:
>
>
> \starttext
>
> \input knuth
>
> \placeformula
> \startformula
> E = mc^2.
> \stopfo
numbers are not placed at the far end when in RTL. Here is a MWE:
\starttext
\input knuth
\placeformula
\startformula
E = mc^2.
\stopformula
\righttoleft
\placeformula
\startformula
E = mc^2.
\stopformula
\stoptext
Attached is the result from context version 2017.05.14 19:09. Using
I had this code:
99 \placeformula\startformula
100 \eqalignno{
101 >> H(I,J) &= H(I) + H(J|I)\qquad&\hbox{\ineq[eq:equivoc]}\cr
102 W(I,J) &= H(J) - H(J|I)\qquad&\hbox{\ineq[eq:wedinfo]}\cr
103 }
104 \stopformula
On 26 Apr 2017, at 16:38, Otared Kav
Hi Hans,
Since a few weeks (or months?…) ago the use of \eqno and \eqalignno has been
changed in mkiv.
It is better to use the construction such as:
\placeformula
\startformula
\startalign
\NC H(I,J) \NC = H(I) + H(J|I) \NR[eq:equivoc]
\NC W(I,J) \NC = H(J) - H(J|I) \NR[eq:wedinfo]
\stopalign
This code now fails where before contextbeta had no problems:
tex error > tex error on line 101 in file Info/waarneming.tex: !
Misplaced alignment tab character &
&
l.101 H(I,J) &
= H(I) + H(J|I)\qquad&\hbox{\ineq[eq:equivoc]}\cr
99 \placeformu
rttext
\placeformula
\startformula
j_1(2.387) =
\startluacode
local ffi = require("ffi")
ffi.cdef[[
double _j1(double x);
]]
tex.print(ffi.C._j1(2.387))
\stopluacode
\stopformula
\stoptext
Best,
Akira
___
ll try it in the upcoming week.
Thank you.
Best regards,
Lukas
I hope that you can again load your lua DLL modules in a few days.
Further, standard C functions can be used in ffi without
loading a C DLL. For example, my previous example can
be changed as follows:
%
% context test.tex
%
\starttext
\placef
DLL. For example, my previous example can
be changed as follows:
%
% context test.tex
%
\starttext
\placeformula
\startformula
j_1(2.387) =
\startluacode
local ffi = require("ffi")
ffi.cdef[[
double _j1(double x);
]]
tex.print(ffi.C._j1(2.387))
\stopluacode
\stopformula
\stoptext
B
ith context test.tex.
%
% context test.tex
%
\starttext
\placeformula
\startformula
j_1(2.387) =
\startluacode
local ffi = require("ffi")
ffi.cdef[[
double _j1(double x);
]]
local mscrt = ffi.load("msvcrt")
tex.print(mscrt._j1(2.387))
\stopluacode
\stopformula
\stoptext
\defineconversion[dummyconversion][\dummyconversion]
>> \setupformulas[conversion=dummyconversion]
>> \placeformula[#1]}
>>
>> \starttext
>> \placeformulatag[tag]{test} \startformula
>>E = mc^2
>> \stopformula
>> See \in formu
ula]
> \def\dummyconversion##1{#2}
> \defineconversion[dummyconversion][\dummyconversion]
> \setupformulas[conversion=dummyconversion]
> \placeformula[#1]}
>
> \starttext
> \placeformulatag[tag]{test} \startformula
>E = mc^2
> \s
merals 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]
> \star
erconversion (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.
Pa
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
t under the formula but as
> text next to it.
>
> \starttext
> \placeformula
> \startformula
> \chemical{(C_2H_5)_2Zn}{DEZ}
> \chemical{PLUS}
> % \chemical{2H^\oplus} {waterstof (zuur)}
> \chemical{GIVES}
> \chemical{Zn^{2\oplus}}{zi
is, that the {DEZ} does not appear. Further the {zinkion} and
{ethan} appear not as text under the formula but as text next to it.
\starttext
\placeformula
\startformula
\chemical{(C_2H_5)_2Zn}{DEZ}
\chemical{PLUS}
% \chemical{2H^\oplus} {waterstof (zuur)}
\chemical{GIVES}
\chemical
]
\starttext
\inright{Text}
Text
\inright{0em}
\placeformula[-]\startformula a^2+b^2=c^2 \stopformula
\setupformulas[leftmargin=2em]
\inright{2em}
\placeformula[-]\startformula a^2+b^2=c^2 \stopformula
\setupformulas[leftmargin=4em]
\inright{4em}
\placeformula[-]\startformula a^2+b^2=c^2
, and/or (even better) a possible fix?
Thanks a lot!
Florian
MWE:
\defineframed[Framed][width=\textwidth, height=5cm, align=normal]
\starttext
This formula is preceded by normal spacing:
\placeformula[-]\startformula
1+1=2
\stopformula
\Framed{
This formula somehow is preceded by too much spacing
1 - 100 of 652 matches
Mail list logo