000 250 100
> \clubpenalties 3 5000 250 100
> \stopsetups
>
> \setupformula
> [split=mathincontext]
>
> \starttext
> Text
>
> \startplaceformula
> \startformula
> c^2 = a^2 + b^2
> \stopformula
> \stopplaceformula
>
> \setuplayout[grid=yes]
> \page
> Te
\setuppapersize[A6,landscape]
\enabletrackers[math.showmargins.less]
\startsetups[math:penalties:mathincontext]
\shapingpenaltiesmode \zerocount
\widowpenalties 3 5000 250 100
\clubpenalties 3 5000 250 100
\stopsetups
\setupformula
[split=mathincontext]
\starttext
Text
\startplaceformula
\startformula
c^2
duction.tex ~
> >
> > \define\lbr {\lbrace \mkern 0.9mu}
> > \define\rbr {{}\mkern 0.9mu \rbrace}
> > \define\∀ {∀\mkern1mu}
> > \define\∃ {∃\mkern2mu}
> >
> > \startdocument
> >
> > \startplaceformula
> > \startformul
kern 0.9mu}
> \define\rbr {{}\mkern 0.9mu \rbrace}
> \define\∀ {∀\mkern1mu}
> \define\∃ {∃\mkern2mu}
>
> \startdocument
>
> \startplaceformula
> \startformula [split=yes, align=flushleft, margin=standard,
> interlinespace=1ex]
> \bgroup \setupinterlinespace [line=1ex]
>
Lamport's 2006 "Lower Bounds for
Asynchronous Consensus":
~~~ transitive_reduction.tex ~
\define\lbr {\lbrace \mkern 0.9mu}
\define\rbr {{}\mkern 0.9mu \rbrace}
\define\∀ {∀\mkern1mu}
\define\∃ {∃\mkern2mu}
\startdocument
\startplaceformula
\startformula [spli
line separately/independently.
> > > > Grouping on the left with a brace and numbering one line to the
> > > > right is, even if we see that often, not really logical.
> > > >
> > > > If there is a large request for doing this, I can talk to Hans about
> > > > i
is, even if we see that often, not really logical.
>>>>
>>>> If there is a large request for doing this, I can talk to Hans about
>>>> it, maybe it is easy on the code side to support it. But I remember
>>>> from when we were messing with numbering, and in parti
is a large request for doing this, I can talk to Hans about
> > > it, maybe it is easy on the code side to support it. But I remember
> > > from when we were messing with numbering, and in particular when
> > > there are alignments, that it is a bit complicated.
> >
t; >
> > On Wed, Oct 9, 2024 at 5:19 PM Alan Bowen
> > wrote:
> > >
> > > Thank you, Mikael. That is very helpful and much appreciated.
> > >
> > > What I now have is:
> > > \startplaceformula
> > > \startformula
> > >
te:
> >
> > Thank you, Mikael. That is very helpful and much appreciated.
> >
> > What I now have is:
> > \startplaceformula
> > \startformula
> > \startalign
> > \NC \[21-(9 - n^2)\NC =□^\prime\] \NR[eq:1]
> > \NC n^2+12 \NC=□
alignments, that it is a bit complicated.
/Mikael
On Wed, Oct 9, 2024 at 5:19 PM Alan Bowen wrote:
>
> Thank you, Mikael. That is very helpful and much appreciated.
>
> What I now have is:
> \startplaceformula
> \startformula
> \startalign
> \NC \[21-(9 - n^2)\
Thank you, Mikael. That is very helpful and much appreciated.
What I now have is:
\startplaceformula
\startformula
\startalign
\NC \[21-(9 - n^2)\NC =□^\prime\] \NR[eq:1]
\NC n^2+12 \NC=□^\prime. \NR[eq:2]
\stopalign
\stopformula
\stopplaceformula
which put the
Hi,
On Mon, Oct 7, 2024 at 11:45 PM Alan Bowen wrote:
>
> I have the following which works, except for the fact that the equation
> number does not go to the right margin.
>
> \startplaceformula
> \startformula[align=middle, prefix=no]
> \startcases[distance=2pt]
&g
I have the following which works, except for the fact that the equation
number does not go to the right margin.
\startplaceformula
\startformula[align=middle, prefix=no]
\startcases[distance=2pt]
\NC \[21-(9 - n^2)\NC =□^\prime\]\NR
\NC\hfill n^2+12 \NC=□^\prime.\NR[eq04]
\stopcases
\stopformula
n the first chapter, using \startplaceformula ...
> > \stopplaceformula induces a numbered equation (1.1), (1.2), etc
> > How to get (1), (2), etc ?
>
> Try \setupformula[prefix=no]
>
> Otherwise look into the options of
> https://wiki.contextgarden.net/Command/setupcounter, e.g. p
Am 27.08.24 um 17:10 schrieb Fabrice Couvreur:
Numbered equation
Hello,
Assuming i am working in the first chapter, using \startplaceformula ...
\stopplaceformula induces a numbered equation (1.1), (1.2), etc
How to get (1), (2), etc ?
Try \setupformula[prefix=no]
Otherwise look into the
Numbered equation
Hello,
Assuming i am working in the first chapter, using \startplaceformula ...
\stopplaceformula induces a numbered equation (1.1), (1.2), etc
How to get (1), (2), etc ?
Thanks
Fabrice
___
If your
le
and silly
things like the Pythagorean theorem: \m {a^2 + b^2 = c^2}, or even with more
advanced
math like geometric series: \m {\sum_{k = 0}^{+\infty} x^k = 1/(1 - x)}?
We will not support complicated nonsense stuff like:
\startplaceformula
\startformula
F__{1}{2}(a,b;b;z) = (1 - z)^{-a}
\stopfo
]
[left={\startmathfenced[cases]},
right=\stopmathfenced,
align={1:right,2:left,3:left},
strut=yes]
\setupformula
[location=left]
\starttext
\samplefile{knuthmath}
\startplaceformula
\startformula
\startalignedcases
{knuthmath}\startplaceformula \startformula \startalignedcases \NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = 0 \NC \mtext{bla bla bla} \NR \NC u(x,0) \NC = u_0(x) \NC \mtext{bla bla} \NR \NC u(t,\sigma)
=(,right=),text=]
\def\eqref#1{\informula[eq:#1]}
\starttext
Using \type{\startmathfenced} and \type{\startalign} we can number each
equation, but the left brace is too far from the formula:
\startplaceformula
\startformula
\startmathfenced[cases]
\startalign[n=3,align={1:right,2:left,3:left}]
\NC
-math.tex \
| xmlstarlet ed -d "//*[local-name()='annotation']" \
| xmlstarlet sel -t -c "/p/*" \
| xmlstarlet ed -m "//*[local-name()='semantics']/*" \
"//*[local-name()='math']" \
| xmlstarlet ed -d "//*[
p\inrightmargin]
\startplaceformula \startformula c^2 = a^2 + b^2
\stopformula \stopplaceformula
\stoptext
Adam
On Sun, Mar 21, 2021 at 8:41 PM Adam Reviczky wrote:
> Thanks Hraban,
>
> That should be fine, I've tried to increase the margins as well, but not
> sure that's the iss
showlayout
\setupcaption[figure][location={rightmargin}]
\startplacefigure[title=Cow] \externalfigure[cow] \stopplacefigure
\define[1]\MyFormulaNumber{\inleftmargin{#1}}
\setupformula[numbercommand=\MyFormulaNumber]
\inleftmargin{Left Margin Text}
\inrightmargin{Right Margin Text}
\startpl
[title=Cow] \externalfigure[cow] \stopplacefigure
% this makes the formulanumber disappear
% \setupformulas[location={rightmargin}]
\startplaceformula[reference=eq1,location={rightmargin}] \startformula c^2
= a^2 + b^2 \stopformula \stopplaceformula
\stoptext
But the setupformulas will make the number
gt; > \starttext
> > \setupcaption[figure][way=bytext,prefixsegments=1:*]
> > \setupformulas[way=bytext,prefixsegments=1:*]
> > \startsection[title=Section]
> > \startsubsection[title=SubSection]
> > \startplacefigure[list=cow] \externalfigure[cow] \stopplacefigur
,prefixsegments=1:*]
\setupformulas[way=bytext,prefixsegments=1:*]
\startsection[title=Section]
\startsubsection[title=SubSection]
\startplacefigure[list=cow] \externalfigure[cow] \stopplacefigure
\startplaceformula[reference=eq1] \startformula c^2 = a^2 + b^2
\stopformula \stopplaceformula
\stopsubsection
,prefixsegments=1:*]
\startsection[title=Section]
\startsubsection[title=SubSection]
\startplacefigure[list=cow] \externalfigure[cow] \stopplacefigure
\startplaceformula[reference=eq1] \startformula c^2 = a^2 + b^2
\stopformula \stopplaceformula
\stopsubsection
\stopsection
\placelistoffigures[criterium=all
,prefixsegments=1:*]
\startsection[title=Section]
\startsubsection[title=SubSection]
\startplacefigure[list=cow] \externalfigure[cow] \stopplacefigure
\startplaceformula[reference=eq1] \startformula c^2 = a^2 + b^2
\stopformula \stopplaceformula
\stopsubsection
\stopsection
\placelistoffigures[criterium=all
. . . . . . . . . 1
\startplaceformula[reference=eq:one,title={Mass-energy equivalence}]
\startformula e=mc^2 \stopformula \stopplaceformula
% 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . 1
% list option could g
I found a workaround for anyone interested:
\setupinteraction[state=start,focus=standard]
\starttext
\startplaceformula[title=$\alpha$,reference=alpha]
\startformula
1 + 1 = 2
\stopformula
\stopplaceformula
\dorecurse{20}{\samplefile{knuth}}
I'm in \in{$\alpha$}[alpha] %so the refe
Hi again. The following doesn't work (the tag is missing):
\startTEXpage[offset=2bp]
\startplaceformula[title=A,reference=alpha]
\startformula
1 + 1 = 2
\stopformula
\stopplaceformula
I'm in \in[alpha]
\stopTEXpage
Jairo
El lun, 22 de feb. de 2021 a la(s) 09:00, Ja
hat nilled at the user level and only use it deep down. It was
> never meant as user command.
>
> > I imagine some things have changed in 2021 and I hope a better solution
> > is feasible nowadays.
>
> \startTEXpage[offset=2bp]
> \star
lled at the user level and only use it deep down. It was
never meant as user command.
I imagine some things have changed in 2021 and I hope a better solution
is feasible nowadays.
\startTEXpage[offset=2bp]
\startplaceformula[title=A]
\startformula
1 + 1 = 2
\stopformula
\sto
Hi, Jean-Philippe.
This seems to be a bug, indeed. In the meantime, you could use the
preferred \start ... \stop variant.
\starttext
\startplaceformula[F] % works
\startformula
a^2 + b^2 = c^2
\stopformula
\stopplaceformula
The \in[F] formula
\stoptext
Cordially,
Jairo
El mié, 25 de nov. de
ef\mmlformulatitle{\xmlatt{#1}{title}}
> \doifsomethingelse {\mmlformulalabel\mmlformulatitle} {
>
> \startplaceformula[reference=\mmlformulalabel,title=\mmlformulatitle]
> \startformula
> \xmlfirst{#1}{/mml:math}
> \stop
f-sequence or
differently formatted number.
Thanks as ever for any help.
\usemodule[mathml]
\startxmlsetups mml:formula
\edef\mmlformulalabel{\xmlatt{#1}{label}}
\edef\mmlformulatitle{\xmlatt{#1}{title}}
\doifsomethingelse {\mmlformulalabel\mmlformulatitle} {
\startplaceformula
lmtx. It can be "fixed", however, by replacing
\start...\stopTEXpage by \start...\stoptext, so this might not represent
the most generic incarnation.
Cheers, Henri
---
\startTEXpage
\samplefile{ward} Thus
\startplaceformula
\startformula
\int_a^b f(x) \, \diff x = F(b) - F(a) .
\s
state=start,
% focus=standard,
]
\starttext
\startchapter[title=Some Title, reference=pt:ref]
Lorem ipsum dolor sit amet, \periods
\startplaceformula[reference=eq:ref]
\startformula
c^2 = a^2 + b^2.
\stopformula
\stopplaceformula
Lorem ipsum dolor sit amet, \periods
[option=frame,color=blue]
\starttext
\startplaceformula
\startformula
f(x) := \left\{
\startalign
\NC = -1\NC\quad \mbox{if }\, x < 0 \NR
\NC = +1\NC\quad \mbox{if }\, x > 0 \NR
\stopalign\right.
\stopformula
\stopplaceformula
\stoptext
% end framed-frormula.tex
it's not
Aditya was
asking?
% begin framed-frormula.tex
\setupformulaframed[framecolor=red,frame=on,offset=1ex]
\setupformula[option=frame,color=blue]
\starttext
\startplaceformula
\startformula
f(x) := \left\{
\startalign
\NC = -1\NC\quad \mbox{if }\, x < 0 \NR
\NC = +1\NC\quad \mbox{if }\
beta ...
\starttext
\setupformulaframed[framecolor=red,frame=on,offset=1ex]
\setupformula[option=frame,color=blue]
\setupformula[numbercommand={\inframed[framecolor=green]}]
\startplaceformula
\startformula
2 + 2 = 3 + 1
\stopformula
\stopplaceformula
\stoptext
see framed-002.tex
On Mon, 15 Sep 2014, Maggyero wrote:
I want to have the formula numbers of cases environment flushed on the
right like for regular formulas (not the default
numberdistance=2.5\emwidth). How can I do that?
\starttext
\startplaceformula
\startformula
\startcases
\NC x = 1
I want to have the formula numbers of cases environment flushed on the
right like for regular formulas (not the default
numberdistance=2.5\emwidth). How can I do that?
\starttext
\startplaceformula
\startformula
\startcases
\NC x = 1 \NR[+]
\NC y = 1 \NR
reuler] [default]
\setupbodyfont[mainface,10.5pt]
\appendtoks \rm \to \everymathematics
\setupmathematics[lcgreek=normal, ucgreek=normal]
\starttext
\input knuth
\startplaceformula
\startformula
a^2 + b^2 = c^2.
\stopformula
\stopplaceformula
\stoptext
Wolfgang
_
ments=1:*]
\starttext
\chapter{Formulas}
\section{Indeed}
\startplaceformula
\startformula
c^2 = a^2 + b^2
\stopformula
\stopplaceformula
\stoptext
Wolfgang
___
If your question is of interest to
Hi,
the last beta includes the chapter number in formulas, former betas
didn't. Example:
\starttext
\startchapter [title=Foo]
\startplaceformula
\startformula
E=mc^2
\stopformula
\stopplaceformula
\stopchapter
\stoptext
∙ Is this intended?
∙ How to remove the chapter n
47 matches
Mail list logo