[NTG-context] Re: does \setuplayout[grid=yes] require \startformula[split=line] ?

2025-01-28 Thread Mikael Sundqvist
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

[NTG-context] does \setuplayout[grid=yes] require \startformula[split=line] ?

2025-01-27 Thread garulfo
\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

[NTG-context] Re: Luametatex: nesting alignments in display math formulas

2024-11-10 Thread ntg-contextmailingli.expedited080--- via ntg-context
duction.tex ~ > > > > \define\lbr {\lbrace \mkern 0.9mu} > > \define\rbr {{}\mkern 0.9mu \rbrace} > > \define\∀ {∀\mkern1mu} > > \define\∃ {∃\mkern2mu} > > > > \startdocument > > > > \startplaceformula > > \startformul

[NTG-context] Re: Luametatex: nesting alignments in display math formulas

2024-11-10 Thread Mikael Sundqvist
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] >

[NTG-context] Luametatex: nesting alignments in display math formulas

2024-11-09 Thread ntg-contextmailingli.expedited080--- via ntg-context
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

[NTG-context] Re: equation to right margin

2024-10-12 Thread Alan Bowen
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

[NTG-context] Re: equation to right margin

2024-10-10 Thread Otared Kavian
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

[NTG-context] Re: equation to right margin

2024-10-09 Thread Mikael Sundqvist
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. > >

[NTG-context] Re: equation to right margin

2024-10-09 Thread Alan Braslau via ntg-context
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 > > >

[NTG-context] Re: equation to right margin

2024-10-09 Thread Alan Bowen
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=□

[NTG-context] Re: equation to right margin

2024-10-09 Thread Mikael Sundqvist
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)\

[NTG-context] Re: equation to right margin

2024-10-09 Thread Alan Bowen
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

[NTG-context] Re: equation to right margin

2024-10-09 Thread Mikael Sundqvist
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

[NTG-context] equation to right margin

2024-10-07 Thread Alan Bowen
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

[NTG-context] Re: Numbered equation

2024-08-27 Thread Fabrice Couvreur
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

[NTG-context] Re: Numbered equation

2024-08-27 Thread Henning Hraban Ramm
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

[NTG-context] Numbered equation

2024-08-27 Thread 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 ? Thanks Fabrice ___ If your

[NTG-context] upload

2024-04-01 Thread Hans Hagen
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

[NTG-context] Re: Math alignment issue

2024-01-17 Thread Otared Kavian
] [left={\startmathfenced[cases]}, right=\stopmathfenced, align={1:right,2:left,3:left}, strut=yes] \setupformula [location=left] \starttext \samplefile{knuthmath} \startplaceformula \startformula \startalignedcases

[NTG-context] Re: Math alignment issue

2024-01-17 Thread Otared Kavian
{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)                            

Re: [NTG-context] upload

2022-03-30 Thread Otared Kavian via ntg-context
=(,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

Re: [NTG-context] Converting LaTeX math to ConTeXt

2021-10-13 Thread Jason Ross via ntg-context
-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 "//*[

Re: [NTG-context] Formulanumbers in margin

2021-03-23 Thread Adam Reviczky
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

Re: [NTG-context] Formulanumbers in margin

2021-03-21 Thread Adam Reviczky
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

[NTG-context] Formulanumbers in margin

2021-03-21 Thread Adam Reviczky
[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

Re: [NTG-context] Formula numbering including all prefix segments

2021-03-21 Thread Adam Reviczky
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

Re: [NTG-context] Formula numbering including all prefix segments

2021-03-21 Thread Hans Hagen
,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

[NTG-context] Formula numbering including all prefix segments

2021-03-20 Thread Adam Reviczky
,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

[NTG-context] (no subject)

2021-03-20 Thread Adam Reviczky
,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

Re: [NTG-context] placenamedformula in placelist (MKII vs MKIV/LMTX)

2021-03-17 Thread Adam Reviczky
. . . . . . . . . 1 \startplaceformula[reference=eq:one,title={Mass-energy equivalence}] \startformula e=mc^2 \stopformula \stopplaceformula % 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 % list option could g

Re: [NTG-context] Arbitrary equation tags... again

2021-02-23 Thread Jairo A. del Rio
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

Re: [NTG-context] Arbitrary equation tags... again

2021-02-22 Thread Jairo A. del Rio
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

Re: [NTG-context] Arbitrary equation tags... again

2021-02-22 Thread Jairo A. del Rio
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

Re: [NTG-context] Arbitrary equation tags... again

2021-02-22 Thread Hans Hagen
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

Re: [NTG-context] Issue with LMTX and placeformula

2020-11-25 Thread Jairo A. del Rio
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

Re: [NTG-context] Override MathML formula label

2019-07-28 Thread Duncan Hothersall
ef\mmlformulatitle{\xmlatt{#1}{title}} > \doifsomethingelse {\mmlformulalabel\mmlformulatitle} { > > \startplaceformula[reference=\mmlformulalabel,title=\mmlformulatitle] > \startformula > \xmlfirst{#1}{/mml:math} > \stop

Re: [NTG-context] Override MathML formula label

2019-07-28 Thread Hans Hagen
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

[NTG-context] Formula number misplaced

2019-04-23 Thread Henri Menke
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

[NTG-context] Reference links with focus=standard option

2018-04-11 Thread Lawrence Bell
    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

Re: [NTG-context] Strange result with formulaframed

2016-06-22 Thread Hans Hagen
[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

[NTG-context] Strange result with formulaframed

2016-06-22 Thread Otared Kavian
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 }\

Re: [NTG-context] Flushleft formula

2016-06-18 Thread Hans Hagen
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

Re: [NTG-context] Flushed right formula numbers in cases environment

2014-09-22 Thread Aditya Mahajan
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

[NTG-context] Flushed right formula numbers in cases environment

2014-09-14 Thread Maggyero
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

Re: [NTG-context] Euler with fallback

2014-02-16 Thread Wolfgang Schuster
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 _

Re: [NTG-context] Hyphen as separator for formulas

2013-08-10 Thread Wolfgang Schuster
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

[NTG-context] Formulas include chapter number

2012-09-17 Thread Marco Patzer
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