[NTG-context] Defining \qed (was: Bug with \wordright...)

2020-08-08 Thread Otared Kavian
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 %%

Re: [NTG-context] Referencing formulas doesn't work?

2020-02-09 Thread Exp
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

Re: [NTG-context] Referencing formulas doesn't work?

2020-02-09 Thread Wolfgang Schuster
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]. >

[NTG-context] Referencing formulas doesn't work?

2020-02-09 Thread Jon Wong
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

[NTG-context] Some questions regarding math typesetting

2019-12-06 Thread TeXnician
://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

Re: [NTG-context] Referencing equation, missing dot

2019-11-14 Thread Hans Hagen
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

[NTG-context] Referencing equation, missing dot

2019-11-13 Thread Mikael P. Sundqvist
=)] \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

Re: [NTG-context] List of Symbols/Abbreviations/Glosses with more then two entries

2019-10-11 Thread Thomas Welter
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

Re: [NTG-context] Subformula numbering

2018-11-26 Thread luigi scarso
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 >

[NTG-context] Subformula numbering

2018-11-25 Thread adrien Licari
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

[NTG-context] referencing is broken in version: 2018.08.15 18:45

2018-08-15 Thread Rik Kabel
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

Re: [NTG-context] referencing the equation

2018-08-09 Thread Henri Menke
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

Re: [NTG-context] referencing the equation

2018-08-09 Thread Jeong Dal
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_

Re: [NTG-context] referencing the equation

2018-08-09 Thread Wolfgang 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_2 x + b_2 y \NC = c_2 \NR[eq:2] \stopalign \stopformula As seen from (\in[eq:1

Re: [NTG-context] Word and character count excluding TeX-directives

2018-01-16 Thread Rik Kabel
[     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

[NTG-context] Word and character count excluding TeX-directives

2018-01-16 Thread Dr . Thomas Möbius
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

Re: [NTG-context] Arbitrary tag of displayed formula

2017-11-08 Thread Mikael P. Sundqvist
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

Re: [NTG-context] Arbitrary tag of displayed formula

2017-11-08 Thread Otared Kavian
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

Re: [NTG-context] mathmatrix vs substack

2017-09-14 Thread Henri
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

Re: [NTG-context] mathmatrix vs substack

2017-09-11 Thread Hans Hagen
--- \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

[NTG-context] mathmatrix vs substack

2017-09-10 Thread Henri
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: [NTG-context] mathalignment vs mathmatrix

2017-09-08 Thread Henri
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

Re: [NTG-context] mathalignment vs mathmatrix

2017-09-08 Thread Otared Kavian
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

[NTG-context] mathalignment vs mathmatrix

2017-09-07 Thread Henri
} \define\Dn{\mathord\Downarrow} \starttext \placeformula \startformula   \startmathalignment \NC \psi_{+,\Up} ... \startmathmatrix \stopmathmatrix \NR \NC \psi_{+,\Dn} ... \NR   \stopmathalignment \stopformula \stoptext

Re: [NTG-context] next beta

2017-06-12 Thread Mathias Schickel
(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

[NTG-context] next beta

2017-06-12 Thread Hans Hagen
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

Re: [NTG-context] Strange interaction between mathalignment and mathmatrix

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

Re: [NTG-context] Strange interaction between mathalignment and mathmatrix

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

Re: [NTG-context] Strange interaction between mathalignment and mathmatrix

2017-06-05 Thread Henri Menke
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

Re: [NTG-context] Strange interaction between mathalignment and mathmatrix

2017-06-05 Thread Henri Menke
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

Re: [NTG-context] Formula numbers in RTL mode

2017-05-25 Thread Mohammad Hossein Bateni
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

[NTG-context] Formula numbers in RTL mode

2017-05-15 Thread Mohammad Hossein Bateni
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

Re: [NTG-context] eqalignno failin

2017-04-27 Thread Meer, Hans van der
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

Re: [NTG-context] eqalignno failing

2017-04-26 Thread Otared Kavian
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

[NTG-context] eqalignno failing

2017-04-26 Thread Meer, Hans van der
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

Re: [NTG-context] Problem loading a DLL with the latest Ctx beta

2017-04-18 Thread Procházka Lukáš Ing .
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 ___

Re: [NTG-context] Problem loading a DLL with the latest Ctx beta

2017-04-11 Thread Procházka Lukáš Ing .
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

[NTG-context] Problem loading a DLL with the latest Ctx beta

2017-04-08 Thread Akira Kakuto
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

[NTG-context] Problem loading a DLL with the latest Ctx beta

2017-04-06 Thread Akira Kakuto
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

Re: [NTG-context] Formula numbering conversion

2017-03-01 Thread Antoine Cailliau
\defineconversion[dummyconversion][\dummyconversion] >> \setupformulas[conversion=dummyconversion] >> \placeformula[#1]} >> >> \starttext >> \placeformulatag[tag]{test} \startformula >>E = mc^2 >> \stopformula >> See \in formu

Re: [NTG-context] Formula numbering conversion

2017-02-27 Thread Antoine Cailliau
ula] > \def\dummyconversion##1{#2} > \defineconversion[dummyconversion][\dummyconversion] > \setupformulas[conversion=dummyconversion] > \placeformula[#1]} > > \starttext > \placeformulatag[tag]{test} \startformula >E = mc^2 > \s

Re: [NTG-context] Formula numbering conversion

2017-02-27 Thread Antoine Cailliau
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

Re: [NTG-context] Formula numbering conversion

2017-02-27 Thread Pablo Rodriguez
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

[NTG-context] Formula numbering conversion

2017-02-27 Thread Antoine Cailliau
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

Re: [NTG-context] Chemical reaction...

2016-11-10 Thread Alan BRASLAU
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

[NTG-context] Chemical reaction...

2016-11-08 Thread Willi Egger
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

[NTG-context] Side effect of leftmargin for formulas on \inright

2016-10-19 Thread Florian Leupold
] \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

[NTG-context] text–formula separation inside a frame

2016-10-05 Thread Florian Leupold
, 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

[NTG-context] text–formula separation inside a frame

2016-09-25 Thread Florian Leupold
=\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: \placeformula[-]\startformula 1+1=2 \stopformula } \stoptext signature.asc Description: Message

Re: [NTG-context] Problem with \leqalignno

2016-09-11 Thread Otared Kavian
Hi Mingranina, For displayed aligned formulas it is better to use \startalign…\stopalign, instead of the plain TeX construction \leqalignno. Please have a look at the following: Best regards: OK %%% begin align-equations.tex \starttext \placeformula \startformula \startalign \NC c^2 \NC= a^2

Re: [NTG-context] Problem with \leqalignno

2016-09-10 Thread Aditya Mahajan
On Sun, 11 Sep 2016, Mingranina Gingranina wrote: Hello All, I am trying to compile the following example (from http://wiki.contextgarden.net/Math/Display) with context: \starttext \placeformula \startformula \leqalignno{c^2 &= a^2 + b^2 &\formulanumber{a} \cr a^2 + b^

[NTG-context] Problem with \leqalignno

2016-09-10 Thread Mingranina Gingranina
Hello All, I am trying to compile the following example (from http://wiki.contextgarden.net/Math/Display) with context: \starttext \placeformula \startformula \leqalignno{c^2 &= a^2 + b^2 &\formulanumber{a} \cr a^2 + b^2 &= c^2 &\subformulanumber{b} \cr

Re: [NTG-context] Placement of numbers in numbered equations on the left

2016-09-10 Thread Otared Kavian
[location=right]} one gets: \placeformula \startformula \startalign \NC \exp(t_1)\exp(t_2)\NC = x_1x_2=\exp(\log(x_1x_2))\NR[eq:explag0] \NC \NC =\exp(\log x_1+\log x_2) = \exp(t_1+t_2).\NR[eq:explag1] \stopalign \stopformula \placeformula \startformula 1+1=2 \stopformula \setupformulas[location

[NTG-context] Placement of numbers in numbered equations on the left

2016-09-07 Thread Otared Kavian
of numbers in equations numbered in an aligned environment and those which are by themselves. Please have a look at the attached PDF which is the result of the following example (using ConTeXt ver: 2016.09.06 19:11 MKIV beta). Best regards: OK %%% begin math-align.tex \starttext \placeformula

Re: [NTG-context] Bug in \placeformula

2016-09-02 Thread Otared Kavian
Hi Henri, Your are right there is an issue with \startmathcases…\stopmathcases: the equations are not numbered when using this structure. As a temporary solution you can use \startmatrix…\stopmatrix as in the following, or you can define your own \startalignedcases. \starttext \placeformula

[NTG-context] Bug in \placeformula

2016-09-02 Thread Henri Menke
Dear list, this formula is not numbered even though it should be. Please fix. \starttext \placeformula \startformula \startmathcases \NC 0 \NC $\mu > 2t$ \NR \NC \pi/2 \NC $\mu = 2t$ \NR \NC \pi \NC $\mu < 2t$ \NR \stopmathcases \stopformula \stoptext Cheers,

Re: [NTG-context] \startalign \stopalign equation number placement seems wrong

2016-08-28 Thread Mikael P. Sundqvist
P. Sundqvist <mic...@gmail.com> wrote: >> >> Hi, >> >> The test file >> >> \starttext >> \placeformula >> \startformula >> \startalign >> \NC \exp(t_1)\exp(t_2)\NC =x_1x_2=\exp(\ln(x_1x_2))\NR >> \NC \NC =\exp(\ln x_1+\ln x_2)=\

Re: [NTG-context] \startalign \stopalign equation number placement seems wrong

2016-08-17 Thread Otared Kavian
with startalign, and it seemed to me that Hans fixed it. But it appeared again with the beta 2016.08.11 13:56. Best regards: OK > On 17 Aug 2016, at 14:20, Mikael P. Sundqvist <mic...@gmail.com> wrote: > > Hi, > > The test file > > \starttext > \placeformula > \startfor

[NTG-context] \startalign \stopalign equation number placement seems wrong

2016-08-17 Thread Mikael P. Sundqvist
Hi, The test file \starttext \placeformula \startformula \startalign \NC \exp(t_1)\exp(t_2)\NC =x_1x_2=\exp(\ln(x_1x_2))\NR \NC \NC =\exp(\ln x_1+\ln x_2)=\exp(t_1+t_2).\NR[eq:explag1] \stopalign \stopformula \placeformula \startformula 1+1=2 \stopformula \stoptext gives the attached pdf

Re: [NTG-context] Wrap figures and equations

2016-07-13 Thread Otared Kavian
Hi Hans, I was going to report a similar issue with \placeformula and floats in general, as in the example below. However the trick suggested by Wolfgang does not solve all the problems and in fact in my real size document it triggers an error message saying

Re: [NTG-context] Bug in placeformula with framed text

2016-07-05 Thread Otared Kavian
Hi Hans, Thanks a lot for having fixed the issue I was reporting. Unfortunately I found another issue related to placeformula and alignment in math mode. In the following example the use of \startalign in a \placeformula triggers a weird behavior in the sense that the following instance

Re: [NTG-context] Bug in placeformula with framed text

2016-07-05 Thread Hans Hagen
On 7/4/2016 11:11 AM, Otared Kavian wrote: Below is an example (sorry if it is not absolutely minimal: I ran into this bug when updating a lecture notes which uses a left frame around \proclaim stuff). I attach the PDF showing the problem. I wonder whether this is related to the new features

[NTG-context] Bug in placeformula with framed text

2016-07-04 Thread Otared Kavian
Hi Hans, It seems that there is a bug in the latest beta (ConTeXt vesion: 2016.07.01 16:28) when using \placeformula with a framed text environment. The numbers for the formulas are placed incorrectly, on the left as well as on the right. Also, as one may see in the example below the numbering

[NTG-context] Fonts inside eqno{}

2016-04-29 Thread Freddy Omar López Quintero
expression \placeformula \startformula y = Z \beta_1 + Y \beta_2 + u \stopformula that changes to % \placeformula \startformula y = Z \beta_1 + Y \beta_2 + W_1\tau + u \eqno{ (1')} \stopformula \stoptext ​%%​ ​I would like the (1') ​keep the same kind of font than (1). Any

Re: [NTG-context] Vim snippets

2016-02-22 Thread Aditya Mahajan
') || finish endif let st = g:snip_start_tag let et = g:snip_end_tag let cd = g:snip_elem_delim let bt = st.et let si = IMAP_GetPlaceHolderStart() let ei = IMAP_GetPlaceHolderEnd() exec "Snippet for \\startformula".st.et."\\stopformula".si.ei exec "Snippet pfor \\p

[NTG-context] Formula-numbering and \setuphead[...][number=no]

2016-01-11 Thread Alias 1
] \setuphead[section][number=no] \starttext \chapter{foo} \placeformula \startformula E=mc^2 \stopformula \section{bar} \placeformula \startformula a^2+b^2=c^2 \stopformula \stoptext The second formula has only the formula number 2. I would expect the formula number 1.2 (or at least I would

Re: [NTG-context] Formula numbering

2015-09-08 Thread Wolfgang Schuster
Mari Voipio <mailto:mari.voi...@iki.fi> 8. September 2015 13:40 Hello! I recently had to reformat a document that contains mathematical notation and I was surprised how easy it was once I got the hang of it. There's only one tiny problem: I have one equation inserted with \placef

[NTG-context] Formula numbering

2015-09-08 Thread Mari Voipio
Hello! I recently had to reformat a document that contains mathematical notation and I was surprised how easy it was once I got the hang of it. There's only one tiny problem: I have one equation inserted with \placeformula. Currently this formula gets numbered as equation 2.1 as it is in chapter

Re: [NTG-context] Numbering subformulas

2015-08-06 Thread Otared Kavian
-formulas by invoking (\in[mylabel]), but if one wishes to refer to any individual sub-formula one has to give a label inside the structure \start—\stop—subformulas, at the level of \placeformula for that sub-formula. Below is your example, with these remarks. Thanks for your attention and help: OK

Re: [NTG-context] Numbering subformulas

2015-08-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
\c_strc_formulas_inside_formulas_sub + \the\everyresetformulas % to be checked \dorechecknextindentation} % here ? begin example \usemodule[visual] \starttext \placeformula \startformula \fakeformula \stopformula %\startsubformulas[+] % These two options for \subformulas

Re: [NTG-context] Numbering subformulas

2015-08-06 Thread Otared Kavian
{Cha1} \section{A} \placeformula\startformula\fakeformula\stopformula \section{B} \placeformula\startformula\fakeformula\stopformula \subsection{Ba} \placeformula\startformula\fakeformula\stopformula \stoptext gives numbers in form of (1.1), (1.2

Re: [NTG-context] Numbering subformulas

2015-08-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
, prefixsegments=part, way=bysection, %way=bytext, %location=right, ] \def\fakeformula{a^2 + b^2 = c^2} \starttext \part{P1} \chapter{Cha1} \section{A} \placeformula\startformula\fakeformula\stopformula % 1.1 | 1.1 be part 1, formula #1 in the part \section{B

Re: [NTG-context] Numbering subformulas

2015-08-05 Thread Wolfgang Schuster
} % here ? begin example \usemodule[visual] \starttext \placeformula \startformula \fakeformula \stopformula %\startsubformulas[+] % These two options for \subformulas %\startsubformulas[mylabel] % enable subnumbers for the formulas \startsubformulas \placeformula \startformula

Re: [NTG-context] Numbering subformulas

2015-08-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
] \placeformula \startformula \startalign \NC a_1 x + b_1 y \NC = c_1 \NR[eq:11] \NC a_2 x + b_2 y \NC = c_2 \NR[eq:12] \stopalign \stopformula \stopsubformulas \in{eq:11}[eq:11] \in{eq:12}[eq:12] \placeformula

[NTG-context] Numbering subformulas broken?

2015-08-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, the following example (based on http://wiki.contextgarden.net/Math/Display#Automatic_Sub-Formula_Numbering ): \starttext \startsubformulas[eq:1] \placeformula[eq:1a] \startformula c^2 = a^2 + b^2 \stopformula \placeformula[eq:1b] \startformula

[NTG-context] Math alignment

2015-07-06 Thread Hans Aberg
. %\def\equlb#1{\left\{ \startalign #1 \stopalign\right.} %\def\equlb#1{\left\{ \startmathalignment #1 \stopmathalignment\right.} \startformula \placeformula[JcoordDef] J^j:\equlb{ω^0 → 0 \cr ω^j → 0} \quad \equlb{ω^k → ω^l \cr ω^l → -ω^k} \stopformula \stoptext

Re: [NTG-context] Weird position of equation numbers for long equations

2015-05-16 Thread Mojca Miklavec
On Fri, May 15, 2015 at 7:07 PM, luigi scarso wrote: a patch is available in trunk, rev. 5244 (not in TeXLive 2015) . Thank you, but something seems wrong. \starttext \hsize=2cm \dorecurse{10}{hi } $$a\eqno(a)$$ \placeformula \startformula a \stopformula $$a^2+b^2=c^2\eqno(b

[NTG-context] Weird position of equation numbers for long equations

2015-05-14 Thread Mojca Miklavec
problematic example: \starttext \placeformula \startformula \dorecurse{28}{a+} \stopformula \stoptext Thank you, Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg

Re: [NTG-context] Weird position of equation numbers for long equations

2015-05-14 Thread luigi scarso
that this positioning on the left is intentional: is there any way or setting to force the equation number to be moved to the right? This is a bug in luatex: http://tracker.luatex.org/view.php?id=807 Aditya isn't the the formula simply too long ? \starttext \placeformula \startformula 0

[NTG-context] Changing coversion of formulas

2015-04-27 Thread Aditya Mahajan
Hi, How does one change the numberconversion for math formulas? The old method: \setupformulas[numberconversion=set 1] \starttext \placeformula \startformula E = mc^2 \stopformula \stoptext does not appear to work. Thanks, Aditya

Re: [NTG-context] Changing coversion of formulas

2015-04-27 Thread Hans Hagen
On 4/27/2015 11:24 AM, Aditya Mahajan wrote: Hi, How does one change the numberconversion for math formulas? The old method: \setupformulas[numberconversion=set 1] \starttext \placeformula \startformula E = mc^2 \stopformula \stoptext does not appear to work. \setupcounter[formula

Re: [NTG-context] Changing coversion of formulas

2015-04-27 Thread Aditya Mahajan
On Mon, 27 Apr 2015, Hans Hagen wrote: On 4/27/2015 11:24 AM, Aditya Mahajan wrote: Hi, How does one change the numberconversion for math formulas? The old method: \setupformulas[numberconversion=set 1] \starttext \placeformula \startformula E = mc^2 \stopformula \stoptext does

Re: [NTG-context] Changing coversion of formulas

2015-04-27 Thread Wolfgang Schuster
\placeformula \startformula E = mc^2 \stopformula \stoptext does not appear to work. \setupcounter[formula][numberconversion=set 1] Using `characters` as numberconversion works, but `set 1` does not. Your original example with \setupformulas[numberconversion=set 1] works for me

Re: [NTG-context] Changing coversion of formulas

2015-04-27 Thread Aditya Mahajan
[numberconversion=set 1] \starttext \placeformula \startformula E = mc^2 \stopformula \stoptext does not appear to work. \setupcounter[formula][numberconversion=set 1] Using `characters` as numberconversion works, but `set 1` does not. Your original example with \setupformulas

Re: [NTG-context] Changing coversion of formulas

2015-04-27 Thread Aditya Mahajan
for math formulas? The old method: \setupformulas[numberconversion=set 1] \starttext \placeformula \startformula E = mc^2 \stopformula \stoptext does not appear to work. \setupcounter[formula][numberconversion=set 1] Using `characters` as numberconversion works, but `set 1` does not. Your

[NTG-context] Writing between lines

2015-04-13 Thread Otared Kavian
{\darkgray{\infofont #1}}}\atop{}}\atop{}}$} \def\placeformularef[#1]{\doifmode{proofreading}% {\inrightmargin{\infofont #1}}% \placeformula[#1]} \definereferenceformat[Eqref][left=(,right=)] \def\eqref[#1]{\betweenlines{#1}\Eqref[#1]} \setupformulas[location=right] \enablemode

Re: [NTG-context] Writing between lines

2015-04-13 Thread Hans Hagen
}% {\inrightmargin{\infofont #1}}% \placeformula[#1]} \definereferenceformat[Eqref][left=(,right=)] \def\eqref[#1]{\betweenlines{#1}\Eqref[#1]} \setupformulas[location=right] \enablemode[proofreading] \starttext We have \placeformularef[eq:Square] \startformula a^2 + 2ab + b^2 = (a + b)^2

Re: [NTG-context] A couple of setupcaptions questions revisited

2015-04-11 Thread Rik Kabel
{Subsection} \placeformula \startformula a^2+b^2=c^2 \stopformula \stoptext This bug appears to still be with us. Has a solution since been proffered? If not, is a resolution in sight? -- Rik Kabel ___ If your

Re: [NTG-context] \version[temporary] in mkiv

2015-04-11 Thread Otared Kavian
of the formula). The output is attached. % begin placeformula-ref.tex \def\placeformularef[#1]{\doifmodeelse{proofreading}% {\inrightmargin{\tt\txx #1}\placeformula[#1]}% {\placeformula[#1]}} \definereferenceformat[eqref][left=(,right=),text={formula }] \setupformulas[location

Re: [NTG-context] \version[temporary] in mkiv

2015-04-11 Thread Hans Hagen
to write in the margin next to the number of the formula). The output is attached. % begin placeformula-ref.tex \def\placeformularef[#1]{\doifmodeelse{proofreading}% {\inrightmargin{\tt\txx #1}\placeformula[#1]}% {\placeformula[#1]}} less code \def\placeformularef[#1

[NTG-context] Help wanted: cross referencing

2015-04-08 Thread Otared Kavian
=bysection,location=left] \def\eqref#1{(\in[eq:#1])} \starttext \startchapter[title=Introduction to sequences of numbers] \startsection[title=On sequences,reference=sec:Sequences] \placeformula[eq:Number-e] \startformula a_{n} := \sum_{k=0}^n {1 \over n!} \stopformula \stopsection The sequence

Re: [NTG-context] Different renderings of cross references

2015-04-04 Thread Otared Kavian
{(\in[eq:#1])} \starttext \startchapter[title=Introduction to sequences of numbers] \startsection[title=On sequences,reference=sec:Sequences] \placeformula[eq:Number-e] \startformula a_{n} := \sum_{k=0}^n {1 \over n!} \stopformula \stopsection The sequence defined in equation \eqref{Number-e

[NTG-context] Different renderings of cross references

2015-04-03 Thread Otared Kavian
])} \starttext \startchapter[title=Introduction to sequences of numbers] \startsection[title=On sequences,reference=sec:Sequences] \placeformula[eq:Number-e] \startformula a_{n} := \sum_{k=0}^n {1 \over n!} \stopformula \stopsection The sequence defined in equation \eqref{Number-e} cannot converge

Re: [NTG-context] enumeration of equations containing \mathcases

2015-02-10 Thread Otared Kavian
\{}, right={\right.}, style=\displaystyle] \starttext bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \placeformula \startformula K_1 \rightarrow \startalignedcases \NC f \NC \mbox{ for }\, f \ll PS

[NTG-context] enumeration of equations containing \mathcases

2015-02-10 Thread j. van den hoff
that use `\mathcases'. example: 8-- bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \placeformula \startformula K_1 \rightarrow \startmathcases \NC f \NC for $f \ll PS$ (flow

Re: [NTG-context] enumeration of equations containing \mathcases

2015-02-10 Thread j. van den hoff
={right,left,left}, distance=3pt, left={\left\{}, right={\right.}, style=\displaystyle] \starttext bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \placeformula

[NTG-context] \mathcases and equation numbering

2014-12-31 Thread j. van den hoff
bla bla bla bla bla bla bla bla bla bla bla bla bla bla \placeformula \startformula E(f) = \frac {K_1(f)} {f} \stopformula \placeformula \startformula K_1 \rightarrow \startmathcases \NC f \NC for $f \ll PS$ (flow limited transport) \NR \NC PS \NC for $f \gg PS

[NTG-context] misalignment of equation numbers

2014-12-27 Thread j. van den hoff
in this example: \starttext bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \placeformula \startformula K_1 \rightarrow E(f) = \frac {K_1(f)} { f}\,. \stopformula \placeformula \startformula K_1 \rightarrow \startmathcases \NC

[NTG-context] Subformula numbering problem

2014-08-18 Thread Maggyero
No. Wolfgang This used to work, how is it possible that it does not work anymore? \starttext \startsubformulas[eq:equation] \placeformula[eq:first] \startformula c^2 = a^2 + b^2 \stopformula \placeformula[eq:second] \startformula c^2 = a^2 + b^2 \stopformula \stopsubformulas

[NTG-context] Subformula numbering problem

2014-08-13 Thread Maggyero
The second formula has NO NUMBER (example taken from the ConTeXt Garden's Math/Display page): \starttext \startsubformulas[eq:1] \placeformula[eq:first] \startformula c^2 = a^2 + b^2 \stopformula \placeformula[eq:second] \startformula c^2 = a^2 + b^2 \stopformula \stopsubformulas Formula

  1   2   3   4   5   6   7   >