[NTG-context] Wiki - question about Command/ pages which start with a space character
Hi all, Is it on purpose that 128 pages "https://wiki.contextgarden.net/Command/ " start with a space character ? I didn't find an explanation in https://wiki.contextgarden.net/Command For example, these two pages exist : - https://wiki.contextgarden.net/Command/startbuffer - https://wiki.contextgarden.net/Command/_startbuffer If it is on purpose: - What is the purpose, and which page should contain which documentation? If it is not: - Is there a way to automatically merge the content of the couple of pages, and to remove the "wrong" pages, or should it be done manually ? Thanks for your help. List : Command/ attachment Command/ background Command/ bar Command/ beginblock Command/ button Command/ characterkerning Command/ comment Command/ completecombinedlist Command/ completelistoffloats Command/ completelistofsorts Command/ completelistofsynonyms Command/ completeregister Command/ copylabeltext Command/ ctxfunction Command/ ctxfunctiondefinition Command/ currentlabel Command/ delimitedtext Command/ description Command/ enumeration Command/ fence Command/ fraction Command/ framed Command/ framedtext Command/ getbuffer Command/ hbox Command/ help Command/ high Command/ highlight Command/ label Command/ labellanguage Command/ labeltext Command/ labeltexts Command/ language Command/ leftlabeltext Command/ linenote Command/ low Command/ lowhigh Command/ lowmidhigh Command/ margindata Command/ mathcommand Command/ mathdoubleextensible Command/ mathextensible Command/ mathframed Command/ mathmatrix Command/ mathornament Command/ mathoverextensible Command/ mathovertextextensible Command/ mathradical Command/ mathtriplet Command/ mathunderextensible Command/ mathundertextextensible Command/ mathunstacked Command/ nextparagraphs Command/ note Command/ ornament Command/ paragraphs Command/ placecombinedlist Command/ placefloat Command/ placelistoffloats Command/ placelistofsorts Command/ placelistofsynonyms Command/ placement Command/ placepairedbox Command/ placeregister Command/ presetlabeltext Command/ referenceformat Command/ register Command/ rightlabeltext Command/ script Command/ section Command/ seeregister Command/ setupcombinedlist Command/ setupitemgroup Command/ setuplabeltext Command/ setuppairedbox Command/ setupregister Command/ shift Command/ sorting Command/ startattachment Command/ startbackground Command/ startbuffer Command/ startcolumnset Command/ startcomment Command/ startdelimitedtext Command/ startdescription Command/ starteffect Command/ startenumeration Command/ startfittingpage Command/ startfloattext Command/ startformula Command/ startframedtext Command/ starthelp Command/ startindentedtext Command/ startitemgroup Command/ startlabeltext Command/ startlinenote Command/ startlines Command/ startmakeup Command/ startmathalignment Command/ startmathcases Command/ startmathmatrix Command/ startmixedcolumns Command/ startnarrower Command/ startnote Command/ startpagecolumns Command/ startparagraphs Command/ startparallel Command/ startplacefloat Command/ startplacepairedbox Command/ startsection Command/ startsectionblock Command/ startstartstop Command/ startstop Command/ startstyle Command/ starttabulate Command/ starttextbackground Command/ starttyping Command/ startviewerlayer Command/ startxtable Command/ stoplinenote Command/ style Command/ synonym Command/ textbackground Command/ textnote Command/ tooltip Command/ type Command/ typebuffer Command/ unit ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Issue : compilation error when using mathcases with pagella fonts (and others)
On 9/24/2023 5:17 PM, Pablo Rodriguez wrote: On 9/24/23 15:49, Mikael Sundqvist wrote: Hi, Not that it helps you much, but your example works fine here, and it gives the expected result. Hi Mikael, I get exactly the same compilation error as Vicent. I tried a brand new installation (with http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip) and I got the same error again. Just in case it might help, Pablo PS: here is the error again: tex error > tex error on line 10 in file ./a.tex: lua error: run callback [44]: ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: table index is nil stack traceback: ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: in metamethod 'index' ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:104: in function <...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:62> [C]: in upvalue 'builders_kernel_mlisttohlist' [string "local tonut = nodes.tonut..."]:43: in function <[string "local tonut = nodes.tonut..."]:18> (...tail calls...) ...ext/tex/texmf-context/tex/context/base/mkxl/math-noa.lmt:2986: in function <...ext/tex/texmf-context/tex/context/base/mkxl/math-noa.lmt:2984> 1 \setupbodyfont[pagella] 2 3 \starttext 4 \startformula 5 \delta_{ij} = 6 \startmathcases 7 \NC 1 \NC \text{if } i = j \NR 8 \NC 0 \NC \text{otherwise} \NR 9 \stopmathcases 10 >> \stopformula 11 \stoptext i'll check it tomorrow (witk mikael who has a newer bin and first we need to test some other math things) ... i probably need some temp hack because the build farm is still down (an extra callback argument was added a while ago) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Issue : compilation error when using mathcases with pagella fonts (and others)
On 9/24/23 15:49, Mikael Sundqvist wrote: > Hi, > > Not that it helps you much, but your example works fine here, and it > gives the expected result. Hi Mikael, I get exactly the same compilation error as Vicent. I tried a brand new installation (with http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip) and I got the same error again. Just in case it might help, Pablo PS: here is the error again: tex error > tex error on line 10 in file ./a.tex: lua error: run callback [44]: ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: table index is nil stack traceback: ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: in metamethod 'index' ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:104: in function <...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:62> [C]: in upvalue 'builders_kernel_mlisttohlist' [string "local tonut = nodes.tonut..."]:43: in function <[string "local tonut = nodes.tonut..."]:18> (...tail calls...) ...ext/tex/texmf-context/tex/context/base/mkxl/math-noa.lmt:2986: in function <...ext/tex/texmf-context/tex/context/base/mkxl/math-noa.lmt:2984> 1 \setupbodyfont[pagella] 2 3 \starttext 4 \startformula 5 \delta_{ij} = 6 \startmathcases 7 \NC 1 \NC \text{if } i = j \NR 8 \NC 0 \NC \text{otherwise} \NR 9 \stopmathcases 10 >> \stopformula 11 \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Issue : compilation error when using mathcases with pagella fonts (and others)
Hi, Not that it helps you much, but your example works fine here, and it gives the expected result. /Mikael On Sun, Sep 24, 2023 at 1:42 PM Vincent Picard wrote: > > Hello, > > Since ConTexT last upgrade (ltmx 2023.09.18 21:13), I have a document that > won't compile with ConTexT. The problem seems to occur when using mathcases > with some ConTeXt provided fonts, including pagella. This is a minimal not > working example : > > \setupbodyfont[pagella] > > \starttext > \startformula > \delta_{ij} = > \startmathcases > \NC 1 \NC \text{if } i = j \NR > \NC 0 \NC \text{otherwise} \NR > \stopmathcases > \stopformula > \stoptext > > The error is : > run callback [44]: > ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: table index > is nil\nstack traceback:\n > ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: in metamethod > 'index'\n ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:104: in > function <...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:62>\n > [C]: in upvalue 'builders_kernel_mlisttohlist'\n [string \"local tonut = > nodes.tonut...\"]:43: in function <[string \"local tonut = > nodes.tonut...\"]:18>\n (...tail calls...)\n > ...ext/tex/texmf-context/tex/context/base/mkxl/math-noa.lmt:2986: in function > <...ext/tex/texmf-context/tex/context/base/mkxl/math-noa.lmt:2984> > > My system is : FreeBSD 64bits > > Thank you for any help. > Sincerely, > Vincent Picard > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Issue : compilation error when using mathcases with pagella fonts (and others)
Hello, Since ConTexT last upgrade (ltmx 2023.09.18 21:13), I have a document that won't compile with ConTexT. The problem seems to occur when using mathcases with some ConTeXt provided fonts, including pagella. This is a minimal not working example : \setupbodyfont[pagella] \starttext \startformula \delta_{ij} = \startmathcases \NC 1 \NC \text{if } i = j \NR \NC 0 \NC \text{otherwise} \NR \stopmathcases \stopformula \stoptext The error is : run callback [44]: ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: table index is nil\nstack traceback:\n ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: in metamethod 'index'\n ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:104: in function <...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:62>\n [C]: in upvalue 'builders_kernel_mlisttohlist'\n [string \"local tonut = nodes.tonut...\"]:43: in function <[string \"local tonut = nodes.tonut...\"]:18>\n (...tail calls...)\n ...ext/tex/texmf-context/tex/context/base/mkxl/math-noa.lmt:2986: in function <...ext/tex/texmf-context/tex/context/base/mkxl/math-noa.lmt:2984> My system is : FreeBSD 64bits Thank you for any help. Sincerely, Vincent Picard ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] All Equations
Since I never used math with ConTeXt, I tried to replicate XKCD 2034 as an exercise (see below and attached). I’d like to put it on the wiki and in my book. I know this is nonsense, but I’d like to do it right. In some cases I’m unsure which symbol the author meant, e.g. p or \rho, 0 or O, 1 or I or | ... Yes, I could have used proper Unicode characters (ρ, π etc.). Can you answer my questions (%? in the source)? (Partly TeX related, partly math/physics related.) """ \setupinteraction[state=start] \starttext \subject{All equations\footnote{according to \goto{XKCD}[url(https://xkcd.com/2034/)]}...} ... of Kinematics: \startformula E = K_0t + \frac{1}{2}\rho vt^2 \stopformula % ? Should it be v or \nu? ... of Number Theory: \startformula K_\Lambda = \sum^\infty_{i=0}\sum^\infty_{\pi=0}(n-\pi)(i+e^{\pi-\infty})\stopformula ... of Fluid Dynamics: \startformula \frac{\delta}{\delta_t}\nabla\cdot\rho = \frac{8}{23}\oiint\rho d_s d_t\cdot\rho\frac{\delta}{\delta_\nabla}\stopformula % ? Would ds dt be better than d_s d_t? ... of Quantum Mechanics: \startformula I\Psi_{x,y}>=A(\Psi)A(I\times>\oplus Iy>)\stopformula % ? Should those be I, 1 or |, > or some angle bracket? ... of Chemistry: \startformula CH_4 + OH + HEAT \rightarrow H_2O + CH_2 + H_2EAT\stopformula % ? Should we something different for chem. formulae? ... of Quantum Gravity: \startformula SU(2)U(I) \times SU(U(2))\stopformula % It’s not even an equation... ... of Gauge Theory: \startformula S_g = \frac{-I}{2\bar{\epsilon}} i \delta \left( \xi_{\delta_0} \mathring{+} \rho_\epsilon \rho_v^{abc}\cdot\eta_0 \right) f_a^0 a\lambda(\rotate[rotation=180,location=high]{\xi})\Psi(O_a) \stopformula % ? I guess the first \delta should be crossed somehow? % ? Is it possible to get \hat accents over the brackets? \hat{\left(} doesn’t work. % ? What’s that symbol after \right) ? (f with two bars, maybe kind of integral?) ... of Cosmology: \startformula h(t) + \Omega + G \cdot \Lambda ... \startmathcases \NC ... > 0 \TC (Hubble Model) \NR \NC ... = 0 \TC (Flat Squere Model) \NR \NC ... < 0 \TC (Bright Dark Matter Model) \NR \stopmathcases \stopformula ... of Truly Deep Physics: \startformula \hat{H} - \c{u}_0 = O\stopformula % ? How can I get a cedilla under the u? \c{u} is wrong. \page \subject{Original} \externalfigure[https://imgs.xkcd.com/comics/equations.png][width=\textwidth] \stoptext """ Hraban allformula.tex Description: TeX document allformula.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Math cases and text in math mode
Hi, I have two separate issues here. First, I'm struggling to get math cases to work. The wiki suggests that the following code \starttext \startformula f(x) = \startmathcases \NC x, \NC if $0 \le x \le \frac12$ \NR \NC 1-x ,\NC if $\frac12 \le x \le 1$ \NR \stopmathcases \stopformula \stoptext should typeset everything after the \NC in text mode, but when I compile it's still in math mode. Is this a bug or is the wiki out of date? Secondly, how can I enter text mode whilst in a formula, whilst also only using the roman font? For example, I would like it so that even if the whole text is wrapped in {\em ...}, the text in the formulae are in roman font. I've tried the following: \starttext {\em \startformula \startalign[align=left] \NC {\rm multiple words of text} \NR % Does not provide spacing \NC \mathrm{multiple words of text} \NR % Does not provide spacing \NC \text{multiple words of text} \NR % Still italicised % \NC \text{\rm multiple words of text} \NR % Error % \NC {\rm \text{multiple words of text}} \NR % Error \stopalign \stopformula } \stoptext Thanks, Jack ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Alignment
Fabrice Couvreur schrieb am 13.05.2019 um 22:45: Hi, Not having too many ideas, I did this: is there not a more elegant way ? \definemathmatrix [pmatrix] [matrix:parentheses] [simplecommand=MATRIX] \starttext \startformula \startmathalignment \NC P \times M = P \NC \iff \MATRIX{x,y} \times \MATRIX{0.22,0.78;0.53,0.47} = \MATRIX{x,y} \NR \NC \NC \iff \startmathcases \NC 0.22x + 0.53y = x \NR \NC 0.78x + 0.47y = y \NR \stopmathcases \NR \NC \NC \iff 0.78x - 0.53y = 0 \NR \NC \NC \iff 78x - 53y = 0 \NR \stopmathalignment \stopformula \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Alignment
Hi, Not having too many ideas, I did this: is there not a more elegant way ? Thank you. Fabrice \definemathmatrix [pmatrix][matrix:parentheses][simplecommand=MATRIX] \starttext \startmidaligned \startxtable[align={middle,lohi},frame=off,offset=0.8ex] \startxrow \startxcell \m{P\times M=P} \stopxcell \startxcell \math{\iff} \stopxcell \startxcell \m{\MATRIX{x,y}\times \MATRIX{0.22,0.78;0.53,0.47}=\MATRIX{x,y}} \stopxcell \stopxrow \startxrow \startxcell \stopxcell \startxcell \m{\iff} \stopxcell \startxcell[align=right] \math{\startmathcases \NC 0.22x+0.53y=x\NR \NC 0.78x+0.47y=y \NR \stopmathcases} \stopxcell \stopxrow \startxrow \startxcell \stopxcell \startxcell \m{\iff} \stopxcell \startxcell[align=right] \m{0.78x-0.53y=0} \stopxcell \stopxrow \startxrow \startxcell \stopxcell \startxcell \m{\iff} \stopxcell \startxcell[align=right] \m{78x-53y=0} \stopxcell \stopxrow \stopxtable \stopmidaligned \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Strange behavior with the command \inframed{}
\startxcell 4 \stopxcell \startxcell 11 \stopxcell \stopxrow \startxrow[frame=off] \startxcell \stopxcell \startxcell \stopxcell \startxcell \stopxcell \startxcell \stopxcell \startxcell[frame=on] \bf Moyenne 9 \stopxcell \stopxrow \stopxtable } Trois lycéens comparent leurs relevés de notes à un concours d'entrée d'une école. Ils souhaitent retrouver les coefficients \m{a}, \m{m}, \m{c} et \m{e} associés à chaque matière dans le calcul de la moyenne sachant que la somme des coefficients fait 10. \startitemize[packed] \item Montrer que cette situation peut être modélisée par le système d'équations : \startformula (S) \startmathcases \NC 12a+14m+8c+11e = 118 \NR \NC 13a+15m+10c+16e = 145 \NR \NC 9a+8m+4c+11e = 90 \NR \NC a+m+c+e = 10 \NR \stopmathcases \stopformula \item \startitemize \item Montrer que résoudre le système \m{(S)} revient à résoudre l'équation matricielle \m{A\times X=B} où \m{A} est une matrice carrée d'ordre 4, \m{X} la matrice colonne des coefficients et \m{B} une matrice colonne de dimension \m{4\times 1}.\par \item Ci dessous, les étapes de résolution de l'équation matricielle \m{A\times X=B} ont été mélangées. Les remettre dans l'ordre. \dontleavehmode\inframed{\m{I\times X=A^{-1}\times B}} ; \inframed{\m{A^{-1}\times A \times X=A^{-1}\times B}} ; \inframed{\m{A\times X=B}} ; \inframed{\m{X=A^{-1}\times B}} ; \inframed{Vérifier que \m{A^{-1}} existe.}\par \item En déduire, avec une calculatrice, les coefficients \m{a}, \m{m}, \m{c} et \m{e}. \stopitemize \stopitemize \stoptext___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Math mode: Vertical space between cases.
Dear list. How can I increase vertical space between cases? \startformula f(x)= \startmathcases[style=\displaystyle] \NC \frac{3}{10}\;, \NC if \math{x=2} \NR \NC \frac{k+9}{6}\;, \NC if \math{x=3} \NR \NC \frac{h}{16}\;, \NC if \math{x=4} \NR \stopmathcases \stopformula ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bug in \placeformula
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 \startformula f(\mu,t) := \startmatrix[left={\left\{\,},right={\right.}] \NC 0 \NC \mu > 2t \NR \NC \pi/2 \NC \mu = 2t \NR \NC \pi \NC \mu < 2t \NR \stopmatrix \stopformula \stoptext Best regards: OK > On 2 Sep 2016, at 11:18, Henri Menke <henrime...@gmail.com> wrote: > > 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, Henri > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Bug in \placeformula
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, Henri ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math alignment
On 7 Jul 2015, at 16:47, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: I get errors when using \MC - see example below. The \NR before \stopmathcases is missing in all your examples. OK. Though I know it, it is hard to get used to, coming from LaTeX. But the spacing is wrong: too much between the two components. These are not cases, but aligned formulas: one might have a number of alignments, not just one. And I just happen to use left braces on them. Take a look at my previous example where I changed the distance between both columns with the distance key. I missed that. It fixes the spaces within the formula, but adds space between the two sets relative both TeX and AMS-LaTeX (which has about the same as TeX), cf. example below. In AMS-LaTeX one can have more than one alignment, though when trying it between the “-“ and the “ω” in the second (right-most) set, it adds a lot of space, rather than just trying to align a compactly as possible. In ConTeXt, nothing happens with extra alignments; in TeX, there is an error. So using \startmathcases is a workaround: trying to force it to do something it wasn’t intended for. \starttext \def\equlb#1{\left\{\eqalign{#1}\right.} %equation left braced \startformula J^j:\startmathcases[distance=\spaceamount]\NC ω^0 \MC ↦ 0 \NR \NC ω^j \MC ↦ 0 \NR \stopmathcases \quad \startmathcases[distance=\spaceamount] \NC ω^k \MC ↦ \MC ω^l \NR \NC ω^l \MC ↦ -\MC ω^k \NR \stopmathcases \stopformula \startformula J^j:\equlb{ω^0 ↦ 0 \cr ω^j ↦ 0} \quad \equlb{ω^k ↦ ω^l \cr ω^l ↦ -ω^k} \stopformula \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math alignment
On 7 Jul 2015, at 04:46, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: The spacing is different in cases - TeX also has such a variation. Specifically, there is extra space before the conditionals. In addition, it seems \startmathcases ... \stopmathcases is not working with UTF-8: in the example below, the ω’s on the second line, after the arrows, disappear in my PDF. This is explained in section 8 of the document: FYI, the TeX Live 2015 version from 2007 called context-latex-math.pdf does not have ch. 8. There are two ways of specifying the second column — \MC (Math Column) and \NC (New Column). If \MC is used, the second column is in \math mode, with \NC it is in ‘text mode’. I get errors when using \MC - see example below. But the spacing is wrong: too much between the two components. These are not cases, but aligned formulas: one might have a number of alignments, not just one. And I just happen to use left braces on them. \starttext \startformula J^j:\startmathcases\NC ω^0 \MC → 0 \NR \NC ω^j \MC → 0 \stopmathcases \quad \startmathcases \NC ω^k \MC → ω^l \NR \NC ω^l \MC → -ω^k \stopmathcases \stopformula \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math alignment
Hans Aberg mailto:haber...@telia.com 7. Juli 2015 18:23 On 7 Jul 2015, at 16:47, Wolfgang Schusterschuster.wolfg...@gmail.com wrote: I get errors when using \MC - see example below. The \NR before \stopmathcases is missing in all your examples. OK. Though I know it, it is hard to get used to, coming from LaTeX. But the spacing is wrong: too much between the two components. These are not cases, but aligned formulas: one might have a number of alignments, not just one. And I just happen to use left braces on them. Take a look at my previous example where I changed the distance between both columns with the distance key. I missed that. It fixes the spaces within the formula, but adds space between the two sets relative both TeX and AMS-LaTeX (which has about the same as TeX), cf. example below. In AMS-LaTeX one can have more than one alignment, though when trying it between the “-“ and the “ω” in the second (right-most) set, it adds a lot of space, rather than just trying to align a compactly as possible. In ConTeXt, nothing happens with extra alignments; in TeX, there is an error. So using \startmathcases is a workaround: trying to force it to do something it wasn’t intended for. You can set the alignment for each column in a matrix with the align key. \definemathmatrix [aligned] [n=2, align={right,left}, distance=\spaceamount] \starttext \startformula J^j: \startaligned[left=\left\{,right=\right.] \NC ω^0 \NC ↦ 0 \NR \NC ω^j \NC ↦ 0 \NR \stopaligned \quad \startaligned[n=3,align={right,middle,left},left=\left\{,right=\right.] \NC ω^k \NC ↦ \NC ω^l \NR \NC ω^l \NC ↦ \NC -ω^k \NR \stopaligned \stopformula \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math alignment
Hans Aberg mailto:haber...@telia.com 7. Juli 2015 10:30 On 7 Jul 2015, at 04:46, Wolfgang Schusterschuster.wolfg...@gmail.com wrote: The spacing is different in cases - TeX also has such a variation. Specifically, there is extra space before the conditionals. In addition, it seems \startmathcases ... \stopmathcases is not working with UTF-8: in the example below, the ω’s on the second line, after the arrows, disappear in my PDF. This is explained in section 8 of the document: FYI, the TeX Live 2015 version from 2007 called context-latex-math.pdf does not have ch. 8. There are two ways of specifying the second column — \MC (Math Column) and \NC (New Column). If \MC is used, the second column is in \math mode, with \NC it is in ‘text mode’. I get errors when using \MC - see example below. The \NR before \stopmathcases is missing in all your examples. But the spacing is wrong: too much between the two components. These are not cases, but aligned formulas: one might have a number of alignments, not just one. And I just happen to use left braces on them. Take a look at my previous example where I changed the distance between both columns with the distance key. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math alignment
[I do not get copies from the list, though having signed up.] Wolfgang Schuster wrote: On 6 Jul 2015, at 11:24, Hans Aberg haber...@telia.com wrote: The example below shows the intended output when using original TeX code (compiled with ‘context' of TeX Live 2015): a pair of left braced formulas. The first comment shows what works in AMS-LaTeX. However, when trying similar ConTeXt commands, I get the error shown in the comment below. What ConTeXt command might use here? Take a look at the wiki page [1] for multiline equations and also the linked PDF at the start of the page. [1] http://wiki.contextgarden.net/Multiline_equations#Cases The spacing is different in cases - TeX also has such a variation. Specifically, there is extra space before the conditionals. In addition, it seems \startmathcases ... \stopmathcases is not working with UTF-8: in the example below, the ω’s on the second line, after the arrows, disappear in my PDF. \startformula J^j:\startmathcases\NC ω^0 \NC→ 0 \NR \NC ω^j \NC→ 0 \stopmathcases \quad \startmathcases \NC ω^k \NC→ ω^l \NR \NC ω^l \NC→ -ω^k \stopmathcases \stopformula ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math alignment
Hans Aberg mailto:haber...@telia.com 7. Juli 2015 01:46 [I do not get copies from the list, though having signed up.] The spacing is different in cases - TeX also has such a variation. Specifically, there is extra space before the conditionals. In addition, it seems \startmathcases ... \stopmathcases is not working with UTF-8: in the example below, the ω’s on the second line, after the arrows, disappear in my PDF. This is explained in section 8 of the document: There are two ways of specifying the second column — \MC (Math Column) and \NC (New Column). If \MC is used, the second column is in \math mode, with \NC it is in ‘text mode’. \startformula J^j:\startmathcases\NC ω^0 \NC→ 0 \NR \NC ω^j \NC→ 0 \stopmathcases \quad \startmathcases \NC ω^k \NC→ ω^l \NR \NC ω^l \NC→ -ω^k \stopmathcases \stopformula Please send always working minimal examples like this: \starttext \startformula J^j : \startmathcases[distance=\spaceamount] \NC ω^0 \MC → 0 \NR \NC ω^j \NC → 0 \NR \stopmathcases \quad \startmathcases[distance=\spaceamount] \NC ω^k \MC → ω^l \NR \NC ω^l \MC → -ω^k \NR \stopmathcases \stopformula \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] enumeration of equations containing \mathcases
Hi Joerg, I use a math align environment, like the following: begin %% analogous to \cases \definemathmatrix[alignedcases] %% ——— here you can give whatherver name you wish [align={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 \startformula K_1 \rightarrow \startalignedcases \NC f \NC \mbox{ for }\, f \ll PS, \quad\mbox{(flow limited transport)} \NR \NC PS \NC \mbox{ for }\, f \gg PS,\quad \mbox{(diffusion limited transport)} \NR \stopalignedcases \stopformula bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \stoptext end However I don’t know how to number each subcases. Best regards: OK On 10 Feb 2015, at 17:32, j. van den hoff veedeeh...@googlemail.com wrote: hi list, admittedly I've posted this problem two times 6-8 weeks ago already but since I did not get a single response (not even RTFM...) I try it now a third time (hoping this is not considered spamming the list ...): question: how can I get properly aligned enumeration of equations 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 limited transport) \NR \NC PS \NC for $f \gg PS$ (diffusion limited transport) \NR[+] \stopmathcases \stopformula bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \stoptext 8-- does subcases enumeration in the second case but this is not aligned with the right text margin so it can not be used easily to fake the enumeration of the whole equation. \placeformula on the other hand does not print an equation number at all (contrary to what it usually does. I'm at a loss how to solve this... thx,joerg ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] enumeration of equations containing \mathcases
hi list, admittedly I've posted this problem two times 6-8 weeks ago already but since I did not get a single response (not even RTFM...) I try it now a third time (hoping this is not considered spamming the list ...): question: how can I get properly aligned enumeration of equations 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 limited transport) \NR \NC PS \NC for $f \gg PS$ (diffusion limited transport) \NR[+] \stopmathcases \stopformula bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \stoptext 8-- does subcases enumeration in the second case but this is not aligned with the right text margin so it can not be used easily to fake the enumeration of the whole equation. \placeformula on the other hand does not print an equation number at all (contrary to what it usually does. I'm at a loss how to solve this... thx,joerg ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] enumeration of equations containing \mathcases
On Tue, 10 Feb 2015 18:25:25 +0100, Otared Kavian ota...@gmail.com wrote: Hi Joerg, hi otared, I use a math align environment, like the following: begin %% analogous to \cases \definemathmatrix[alignedcases] %% ——— here you can give whatherver name you wish [align={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 \startformula K_1 \rightarrow \startalignedcases \NC f \NC \mbox{ for }\, f \ll PS, \quad\mbox{(flow limited transport)} \NR \NC PS \NC \mbox{ for }\, f \gg PS,\quad \mbox{(diffusion limited transport)} \NR \stopalignedcases \stopformula bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \stoptext end ah yes. that works... very good. However I don’t know how to number each subcases. I do not need these, actually, right now. so you solved my problem just fine. @devs: what about the original \mathcases problem? should equation numbering not work for that command, too? but anyway: really thanks a lot for this solution! joerg Best regards: OK On 10 Feb 2015, at 17:32, j. van den hoff veedeeh...@googlemail.com wrote: hi list, admittedly I've posted this problem two times 6-8 weeks ago already but since I did not get a single response (not even RTFM...) I try it now a third time (hoping this is not considered spamming the list ...): question: how can I get properly aligned enumeration of equations 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 limited transport) \NR \NC PS \NC for $f \gg PS$ (diffusion limited transport) \NR[+] \stopmathcases \stopformula bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \stoptext 8-- does subcases enumeration in the second case but this is not aligned with the right text margin so it can not be used easily to fake the enumeration of the whole equation. \placeformula on the other hand does not print an equation number at all (contrary to what it usually does. I'm at a loss how to solve this... thx,joerg ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Using Opera's revolutionary email client: http://www.opera.com/mail/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \mathcases and equation numbering
I posted a similar question a few days ago without success/response but since I have not found a solution anywhere I would like to ask this again: how can I get properly enumerated equations using `\mathcases'? this example does not work: \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 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$ (diffusion limited transport) \NR[+] \stopmathcases \stopformula bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \stoptext since (as I now have discovered myself) the `\NR[+]' is here intended for subcases enumeration (which are, thus not aligned with the right margin0, rather than (like with \mathalign) for whole equation numbering. but omitting the `[+]' does not help either since \placeformula simply does not put an equation number at all. so, simple question: how to get a properly numbered equation using \mathcases? thx,joerg ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] misalignment of equation numbers
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 f \NC for \NC $f \ll PS$ \NC {\rm (flow limited transport)} \NR \NC PS \NC for \NC $f \gg PS$ \NC {\rm (diffusion limited transport),} \NR[+] \stopmathcases \stopformula bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \stoptext the label `(2)' of the second equation is not aligning properly with the right margin of the body text (and the previous equation label). what am I doing wrong here? joerg -- Using Opera's revolutionary email client: http://www.opera.com/mail/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \startmathcases ... \stopmathcases
Hello All! I order to design a genealogical table I found \startmathcases ... \stopmathcases in [1]. It is, what I need, at least partially, with a single left brace adjusting itself in height to the corresponding right text. I know that I'm misusing mathcases as my data are pure text and no formulae. But even worse, mathcases seem to have a centering environment which makes it difficult to adjust the data of father, mother, grandfather, grandmother and so on in there placement relativ to each other on the page. In the following simple code example there is to be seen, that I had to use \hskip and \vskip by trial and error to dock the second vbox with the first one. That's rather discouraging when thinking of all the rest of genealogical people in 6 generations. Is there a way to make mathcases more tame (i.e. without there behaviour to be centered) or do you suggest a complete other method? Rudolf [1] My Way, Aditya Mahajan, http://dl.contextgarden.net/myway/context-latex-math.pdf http://dl.contextgarden.net/myway/mathalign.pdf --- # ConTeXt ver: 2013.06.10 22:51 MKIV beta fmt: 2013.6.21: \setuppapersize[A4] \setuplayout[backspace=45pt,topspace=35pt,width=535pt,height=760pt,footer=0pt,header=0pt, rightmargin=0pt,leftmargin=0pt] \showframe \definefontstyle [rm,roman,serif,regular] [rm] \definefont[StufeFFont][rm at 6pt][.75] \definefont[StufeEFont][rm at 7pt][.80] \definebodyfontswitch [vii] [7pt] \definebodyfontswitch [vi] [6pt] \starttext \hbox{ \vbox{ \rm\vii \startformula \startmathcases \NC Bahr, Rudolf\NR \NC *1867\ \dag 1923\NR \noalign{\vskip8mm} \NC *1881\NR \NC Supan, Josefa\NR \stopmathcases \stopformula } \hskip-.45\textwidth \vbox{ \rm\vi \startformula \startmathcases \NC Bahr, Franz\NR \NC \starteffect[hidden]1800\stopeffect\NR \noalign{\vskip4mm} \NC *1833\NR \NC Diwald, Katharina\NR \stopmathcases \stopformula \vskip11.5mm } } \stoptext --- ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mathcases look different in mathalign and formula
On 3/28/2013 6:00 PM, Tobias Columbus wrote: Hi all, While playing with \startmathcases, I discovered some strange (maybe wanted?) behaviour of \startmathcases and \stopmathcases: - The interline spacing in mathcases is different depending on whether the mathcases are used in a mathalignment or a formula environment. - Lucida OpenType math has some nice curly brace that is also used in cases environments. However, if \startmathcases, \stopmathcases is used in some mathalignment environment and the cases contain subscripts, the curly brace disappears and some straight brace is used instead. a lucida issue (already looked into) - When using superscripts instead of subscripts, the curly brace reappears but the cases look like not vertically centered in both formula and mathalignment environments. I've added struts to the text column. This can be turned off with \setupmathcases[strut=no] The heights and depths and therefore the size of the curly braces is more consistent that way. I produced an example demonstrating the above observations. In my opinion, the disappearing curly brace is worst of all of them since one frequently has formulas both with and without subscripts on the same page and different braces are quite easily spotted. I'll clean up those macros (a bit more control and efficiency) when we're gone current (remind me). Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mathcases look different in mathalign and formula
Hi all, While playing with \startmathcases, I discovered some strange (maybe wanted?) behaviour of \startmathcases and \stopmathcases: - The interline spacing in mathcases is different depending on whether the mathcases are used in a mathalignment or a formula environment. - Lucida OpenType math has some nice curly brace that is also used in cases environments. However, if \startmathcases, \stopmathcases is used in some mathalignment environment and the cases contain subscripts, the curly brace disappears and some straight brace is used instead. - When using superscripts instead of subscripts, the curly brace reappears but the cases look like not vertically centered in both formula and mathalignment environments. I produced an example demonstrating the above observations. In my opinion, the disappearing curly brace is worst of all of them since one frequently has formulas both with and without subscripts on the same page and different braces are quite easily spotted. Tobias mathcases-2013.03.28.pdf Description: Adobe PDF document mathcases-2013.03.28.tex Description: TeX document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] about \startformula\startalign error
Dear all, In the following sample file, an error occurs in \startformula\startalign ... \stopalign\stopformula. The similar error occurs if I use \startformula\startmathcases. but \startmatrix works well. Did I do something wrong? Thank you for reading. Best regards, Dalyoung %% \starttext \starttable[|c|c|w4cm|w4cm|] \HL \NC A \VL B \VL C \VL D \NC\SR \HL \NC $x$ \VL \startmatrix \NC x' = \NC \NR \NC y' = \NC \NR \stopmatrix \VL \VL \NC\FR \HL \NC $y$ \VL \startformula\startalign \NC x' = \NC \NR \NC y' = \NC \NR \stopalign\stopformula \VL \VL \NC\LR \HL \stoptable \stoptext Log file mtx-context | run 1: luatex --fmt=/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en --jobname=test1 --lua=/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui --no-parse-first-line --c:currentrun=1 --c:input=./test1.tex --c:kindofrun=1 cont-yes.mkiv This is LuaTeX, Version beta-0.70.2-2012052309 (TeX Live 2012) ... ... fonts fallback modern rm 12pt is loaded ! Missing } inserted. system tex error on line 16 in file test1.tex: Missing ... 6 \starttable[|c|c|w4cm|w4cm|] 7 \HL 8 \NC A \VL B \VL C \VL D \NC\SR 9 \HL 10 \NC $x$ \VL \startmatrix 11 \NC x' = \NC \NR 12 \NC y' = \NC \NR 13 \stopmatrix \VL \VL \NC\FR 14 \HL 15 \NC $y$ \VL \startformula\startalign 16 \NC x' = \NC \NR 17 \NC y' = \NC \NR 18 \stopalign\stopformula \VL \VL \NC\LR 19 \HL 20 \stoptable inserted text } to be read again \halign \math_both_eqalign_no_aligned ...fi \fi #1\halign \ifcase \eqalignmode \or t... to be read again \NC l.16 \NC x' = \NC \NR ? x mkiv lua stats used config file ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] about \startformula\startalign error
On 2012-07-22, at 8:21 AM, dalyoung hak...@me.com wrote: Dear all, In the following sample file, an error occurs in \startformula\startalign ... \stopalign\stopformula. The similar error occurs if I use \startformula\startmathcases. but \startmatrix works well. Did I do something wrong? Thank you for reading. Best regards, Dalyoung %% \starttext \starttable[|c|c|w4cm|w4cm|] \HL \NC A \VL B \VL C \VL D \NC\SR \HL \NC $x$ \VL \startmatrix \NC x' = \NC \NR \NC y' = \NC \NR \stopmatrix \VL \VL \NC\FR \HL \NC $y$ \VL \startformula\startalign \NC x' = \NC \NR \NC y' = \NC \NR \stopalign\stopformula \VL \VL \NC\LR \HL \stoptable \stoptext %%% \startformula must occur inside a vbox. So, use a matrix environment as you are doing, or wrap the formula inside a \framed[align=normal]. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] curly bracket different values (entries)
Hi, with \startmathcases ... \stopmathcases you get a curly bracket to the left of ..., see [1]. If you just want to have multiline equations, then \startalign ... \stopalign could be want you need (it's also on page [1]). There's also a My Way [2] about mathalign. HTH, Stefan [1] http://wiki.contextgarden.net/Multiline_equations#Cases [2] http://dl.contextgarden.net/myway/mathalign.pdf On 15.02.2011 18:13, Vyatcheslav Yatskovsky wrote: Hi, Sorry for stealing the tread, but what mathcases do and how it is different from mathalign? Sometimes, I need to typeset multiline equations, and have to admit that this an obscure subject. Regards, Vyatcheslav ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] curly bracket different values (entries)
Thank you for the clear answer. The only thing I wish that there was more information about mathcolumn (/MC) command on the wiki. with \startmathcases ... \stopmathcases you get a curly bracket to the left of ..., see [1]. If you just want to have multiline equations, then \startalign ... \stopalign could be want you need (it's also on page [1]). There's also a My Way [2] about mathalign. -- Best Regards, Vyatcheslav Yatskovsky ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] curly bracket different values (entries)
\startformula \phi^{N(n)}_m = \startmathcases \NC \phi^{R(n)}_m \MC \text{inside the worldtube}\NR \MC \text{outside the worldtube}\NR \NC 1 \stopmathcases \stopformula Oh, thanks a lot, man! On 14 February 2011 20:27, Pau vim.u...@googlemail.com wrote: Hello, I am trying to get something like the x_n equation here (second one): http://latex.knobs-dials.com/images/47c5c3f63c4c9dcbdf4b4b4e362b01d00b8cb62b.100.png but I am failing... this is my pathetic trial... any help would be appreciated. Thanks! \placeformula \startformula \phi^{N(n)}_m = \left{ \eqalign{ \phi^{R(n)}_m {\rm inside the worldtube}\,, \cr \phi_m {\rm outside the worldtube} \,, } \stopformula ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [***SPAM***] Bug? \getmarking fails under some circumstances
Hello, I'm new to ConTeXt, so this is perhaps not a bug but a fault on my side. Under some circumstances, the living column heads fail to refer to the subsubject. As you can see from the attached minimal example \startsetups[header] \getmarking[subject]\ $\cdot$ \getmarking[subsubject] \stopsetups will yield something like »Mikrotypografie *«, though it should be »Mikrotypografie * Absatzumbruch«. If you uncomment the \subsubject-line at the end of the example, everything works as expected unless you uncomment the former line, too. A workaround is to add a \vfill\eject just before the next \subject. Best regards, olli You probably can ignore the environments used in the minimal example, they are copied from the document from which I ran into the problem and are just dummy text. I hope I have stripped down the preamble to an acceptable amount of lines. --- % interface=en output=pdftex \usetypescript[fourier][ec] \setupbodyfont[fourier,12pt] \setuppapersize [A4][A4] \usemodule[layout] \chardef\charwidthmethod=3 \def\charwidthlanguage{\currentmainlanguage} \setuplayout [width=70\averagecharwidth, height=middle, grid=yes] \startsetups[header] \hfill \getmarking[subject]\ $\cdot$ \getmarking[subsubject] \hfill \stopsetups \setupheadertexts[\setups{header}] \setuphead [title] [before=\hairline, after=\blank\leftline{\tfa Ein Beispieldokument}\blank\leftline{\tfa Oliver Heins \ss$\langle$\from[email]$\rangle$} \bigskip\hairline] \definehead[subject][section] \setuphead[subject][number=no] \definehead[subsubject][subsection] \setuphead[subsubject][number=no] \setuphead [subject] [style=\tfb] % Text \starttext \startlinecorrection \title{Mikrotypografie und Interaktivität} \stoplinecorrection \setupindenting[medium, yes] \setupwhitespace[none] \vskip-\baselineskip \subject{Mikrotypografie} Besonderes Augenmerk legt scriptorium adp auf die typografische Qualität der erzeugten Dokumente. Die von uns verwendeten Textsatzsysteme aus der Programmfamilie \TeX{} ermöglichen einen besonders hochwertigen Satz. \subsubject{Mathematiksatz} Der Mathematiksatz von \TeX{} ist legendär. Kein Wunder, wurde \TeX{} doch vom amerikanischen Informatikprofessor und Turing-Preisträger Donald Knuth entwickelt, der mit der immer schlechter werdenden Qualität seiner Buchreihe \quotation{The Art of Computer Programming} unzufrieden war, seit von Hand- auf Fotosatz umgestellt worden war. Von 1977 bis 1986 entwickelte Knuth \TeX{}: {\en\quotation{Ever since those beginnings in 1977, the TeX research project that I embarked on was driven by two major goals. The first goal was quality: we wanted to produce documents that were not just nice, but actually the best. {\dots} The second major goal was archival: to create systems that would be independent of changes in printing technology as much as possible. When the next generation of printing devices came along, I wanted to be able to retain the same quality already achieved, instead of having to solve all the problems anew. I wanted to design something that would be still usable in 100 years.}}\footnote{Donald E. Knuth, {\it Digital typography.} Stanford, Calif.: CSLI Publications, 1999, S.~559.} \TeX{} stellt im engeren Sinn lediglich eine Programmiersprache bereit, mit der sich Textsatzsysteme entwickeln lassen. Knuth entwickelte ein erstes mit dem sogenannten plain-\TeX-Format, weitere wie {\LaTeX} oder {\ConTeXt} folgten. scriptorium adp setzt die beiden letztgenannten Formate ein. Hier ein Beispiel für den Mathematiksatz von \TeX{}: \startlinecorrection \vskip-.5\baselineskip \placeformula \startformula \startmathalignment[m=2,distance=2em]%Notice distance=2em \NC \nabla\cdot \bf E \NC= \frac{\rho}{\varepsilon_0}, \NC \nabla\times \bf E \NC= -\frac{\partial \bf B}{\partial t}, \NR[+] \NC \nabla\cdot \bf B \NC= 0, \NC \nabla\times \bf B \NC= \mu_0{\bf j}+\varepsilon_0\mu_0 \frac{\partial \bf E}{\partial t}. \NR[+] \stopmathalignment \stopformula \vskip-.5\baselineskip \stoplinecorrection Auch im Fließtext ist Mathematik problemlos möglich. \startlinecorrection \placeformula \startformula f(x) = \startmathcases[style=\displaystyle] \NC \int_0^x g(y)\,dy,\NC if $x \ge 0$; \NR \NC \int_{-x}^0 g(y)\,dy, \NC otherwise.\NR \stopmathcases \stopformula \stoplinecorrection \subsubject{Absatzumbruch} Hervorzuheben ist insbesondere der absatzbasierte {\it Total|-|Fit}|-|Umbruchalgorithmus: nach einem raffinierten Optimierungsverfahren werden alle möglichen Zeilenumbrüche (inklusive Worttrennung) im Absatz gleichzeitig bestimmt und bewertet. Der Umbruch, der den besten optischen Gesamteindruck verspricht, wird dann vom System benutzt. Im Vergleich mit dem verbreiteten {\it First|-|Fit}|-|Algorithmus, der die Zeilenumbrüche Zeile für Zeile
[NTG-context] incorrect spacing in mathcases
Hi, the following example shows space missing after the inequality sign: \startformula i = \startmathcases \NC i, \NC \text{if} i = j, \NR \NC j, \NC \text{if} i \neq j. \NR \stopmathcases \stopformula An extra '\ ' after \neq solves this, but I think this shouldn't be necessary since $i \neq j$ does not require this fix. Maarten-Jan ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] incorrect spacing in mathcases
On Thu, 2 Nov 2006, M.J. Kallen wrote: the following example shows space missing after the inequality sign: \startformula i = \startmathcases \NC i, \NC \text{if} i = j, \NR \NC j, \NC \text{if} i \neq j. \NR \stopmathcases \stopformula If you look carefully, you will notice that i and j are also not in math mode. This is because \startcases has two variants, with \NC ... \NC the second column is in text mode. So you can write \NC i, \NC if $i = j$ \NR The second variant is \NC ... \MC (MC = Math Column) in which the second column is in math mode. So you can write \NC i, \MC \text{if } i = j \NR You can mix between the two in differnt lines of cases environment. See My Way on \startalign for all different options with cases. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context