[NTG-context] equivalent to \newcommand{...}{\ensuremath{...}}

2014-12-09 Thread j. van den hoff
something like \def\km{\math{K_m}} We can now use \km\ in the body text but get sytnax errors when putting it in this \startformula \km = 1 \stopformula formula. but this fails for obvious reasons (as would using `$$' instead of `ensuremath' in the `latex' case). so what I need is a way

Re: [NTG-context] equivalent to \newcommand{...}{\ensuremath{...}}

2014-12-09 Thread Wolfgang Schuster
as in this \begin{equation} \km = 1 \end{equation} display equation. in `context'? I've tried something like \def\km{\math{K_m}} We can now use \km\ in the body text but get sytnax errors when putting it in this \startformula \km = 1 \stopformula formula. but this fails for obvious reasons

Re: [NTG-context] equivalent to \newcommand{...}{\ensuremath{...}}

2014-12-09 Thread j. van den hoff
it in this \startformula \km = 1 \stopformula formula. but this fails for obvious reasons (as would using `$$' instead of `ensuremath' in the `latex' case). so what I need is a way of defining (potentially complex) math-expressions via some shortcuts/definitions/macros/abbreviations (whatever) which I can

Re: [NTG-context] equivalent to \newcommand{...}{\ensuremath{...}}

2014-12-09 Thread Wolfgang Schuster
something like \def\km{\math{K_m}} We can now use \km\ in the body text but get sytnax errors when putting it in this \startformula \km = 1 \stopformula formula. but this fails for obvious reasons (as would using `$$' instead of `ensuremath' in the `latex' case). so what I need is a way

Re: [NTG-context] equivalent to \newcommand{...}{\ensuremath{...}}

2014-12-09 Thread j. van den hoff
as in this \begin{equation} \km = 1 \end{equation} display equation. in `context'? I've tried something like \def\km{\math{K_m}} We can now use \km\ in the body text but get sytnax errors when putting it in this \startformula \km = 1 \stopformula formula. but this fails for obvious reasons (as would using

Re: [NTG-context] equivalent to \newcommand{...}{\ensuremath{...}}

2014-12-09 Thread Aditya Mahajan
: \definesynonyms[mathnotation][mathnotations][\infull] \mathnotation [KM] {\mathematics{K_m}} {Viscosity of membrane} \starttext \placelistofmathnotations \section{Test} We can use \KM\ to denote \infull{KM}. \startformula \KM = 10 \stopformula \stoptext This way, you get a list

Re: [NTG-context] equivalent to \newcommand{...}{\ensuremath{...}}

2014-12-09 Thread j. van den hoff
][mathnotations][\infull] \mathnotation [KM] {\mathematics{K_m}} {Viscosity of membrane} \starttext \placelistofmathnotations \section{Test} We can use \KM\ to denote \infull{KM}. \startformula \KM = 10 \stopformula \stoptext really thanks a lot for this tip. this seems to be the way to go for any

[NTG-context] prime accent not behaving properly

2014-11-25 Thread Mojca Miklavec
produce accents of different sizes.) Minimal example: \starttext \startformula s_i' s'_i s_i^2 s^2_i \stopformula \stoptext The first two symbols should look the same, but they don't. They should also be treated in the same way as ^2. With ConTeXt from 17th November the second example (s'_i) seems

Re: [NTG-context] prime accent not behaving properly

2014-11-25 Thread Hans Hagen
November. (In TL 2014 the two example below produce accents of different sizes.) Minimal example: \starttext \startformula s_i' s'_i s_i^2 s^2_i \stopformula \stoptext The first two symbols should look the same, but they don't. They should also be treated in the same way as ^2. With ConTeXt from

Re: [NTG-context] position of qed symbol in proofs

2014-11-10 Thread Otared Kavian
. \stopproof \startproof This is another simple proof that ends with a formula \startformula 1+2=3. \stopformula \stopproof \stoptext %% end proof-qed.tex Neither does the use of displaymath, that is $$1+2=3.$$ Best regards: OK On 10 Nov 2014, at 10:08, Hans Hagen pra...@wxs.nl wrote: On 11/10/2014

Re: [NTG-context] position of qed symbol in proofs

2014-11-10 Thread Hans Hagen
] \starttext \startproof This is a simple proof. \stopproof \startproof This is another simple proof that ends with a formula \startformula 1+2=3. \stopformula \stopproof \stoptext %% end proof-qed.tex Neither does the use of displaymath, that is $$1+2=3.$$ Best regards: OK On 10 Nov 2014, at 10:08

Re: [NTG-context] position of qed symbol in proofs

2014-11-09 Thread Mikael P. Sundqvist
=no, closesymbol=\mathematics{\square}, closecommand=\ifmmode\eqno\else\wordright\fi] \starttext \startproof This is a simple proof. \stopproof \startproof This is another simple proof that ends with a formula \startformula 1+1=2. \stopformula \stopproof \stoptext I don’t know when

Re: [NTG-context] position of qed symbol in proofs

2014-11-08 Thread Mikael P. Sundqvist
\startproof This is another simple proof that ends with a formula \startformula 1+1=2. \stopformula \stopproof \stoptext to get the \square at the end of proofs, and it worked out well. But with the latest beta (and some previous one(s)), the \square is not placed at the same line as the formula

Re: [NTG-context] position of qed symbol in proofs

2014-11-08 Thread Otared Kavian
\wordright\fi] \starttext \startproof This is a simple proof. \stopproof \startproof This is another simple proof that ends with a formula \startformula 1+1=2. \stopformula \stopproof \stoptext I don’t know when the change occurred, but at least it worked last year (which for ConTeXt means

[NTG-context] position of qed symbol in proofs

2014-11-03 Thread Mikael P. Sundqvist
Hi, I once used \defineenumeration[proof][ text=Proof, closesymbol=\mathematics{\square}, closecommand=\ifmmode\eqno\else\wordright\fi, ] \starttext \startproof This is a simple proof. \stopproof \startproof This is another simple proof that ends with a formula \startformula 1+1=2

Re: [NTG-context] displaymath, grid, vertical spacing, setupformulas

2014-10-19 Thread Mikael P. Sundqvist
=, %] \starttext \dorecurse{10}{This is a statement. } \startformula 1+2+\cdots+(n-1)+n=\frac{1+n}{2}n. \stopformula \dorecurse{10}{This is a statement. } \startformula 1+2+\cdots+(n-1)+n=\tfrac{1+n}{2}n. \stopformula \dorecurse{10}{This is a statement. } \stoptext Sorry for answering my question

[NTG-context] displaymath, grid, vertical spacing, setupformulas

2014-10-18 Thread Mikael P. Sundqvist
. Is there a configure to get both of these to occupy three lines? I use the latest standalone. /Mikael \setuplayout[ grid=tolerant, ] \showgrid %\setupformulas[ %spacebefore=, %spaceafter=, %] \starttext \dorecurse{10}{This is a statement. } \startformula 1+2+\cdots+(n-1)+n=\frac{1+n}{2}n

Re: [NTG-context] \setupformulas and \frac give small symbols

2014-10-16 Thread Mikael P. Sundqvist
smaller letters in \frac if \setupformulas[align=flushleft] is applied. The test file below generates the attached pdf. /Mikael \starttext \startformula z=\frac{x}{y} \stopformula \setupformulas[align=flushleft] \startformula z=\frac{x}{y} \stopformula \stoptext

Re: [NTG-context] \setupformulas and \frac give small symbols

2014-10-16 Thread Mikael P. Sundqvist
...@gmail.com wrote: Hi, with a standalone installation updated today, I get smaller letters in \frac if \setupformulas[align=flushleft] is applied. The test file below generates the attached pdf. /Mikael \starttext \startformula z=\frac{x}{y} \stopformula \setupformulas[align=flushleft

[NTG-context] \setupformulas and \frac give small symbols

2014-10-15 Thread Mikael P. Sundqvist
Hi, with a standalone installation updated today, I get smaller letters in \frac if \setupformulas[align=flushleft] is applied. The test file below generates the attached pdf. /Mikael \starttext \startformula z=\frac{x}{y} \stopformula \setupformulas[align=flushleft] \startformula z=\frac{x

Re: [NTG-context] \setupformulas and \frac give small symbols

2014-10-15 Thread Otared Kavian
. The test file below generates the attached pdf. /Mikael \starttext \startformula z=\frac{x}{y} \stopformula \setupformulas[align=flushleft] \startformula z=\frac{x}{y} \stopformula \stoptext sffrac.pdf___

[NTG-context] multi-line equations with \left( and \right.

2014-10-07 Thread Xan
Hi, I try to do that \startformula \startalign[left={\left(\,},right={\,\right.}] \NC x - 2y + 2z \NC = 1 \NR \NC 2 x + y - z \NC = 2 \NR \NC 4 x - 3y + 6z \NC = 7 \NR \stopalign \stopformula but it does not work. Can anyone help me? Thanks, Xan PS: Please CCme

Re: [NTG-context] multi-line equations with \left( and \right.

2014-10-07 Thread Wolfgang Schuster
Am 07.10.2014 um 10:59 schrieb Xan dxpubl...@telefonica.net: Hi, I try to do that \startformula \startalign[left={\left(\,},right={\,\right.}] \NC x - 2y + 2z \NC = 1 \NR \NC 2 x + y - z \NC = 2 \NR \NC 4 x - 3y + 6z \NC = 7 \NR \stopalign \stopformula but it does not work. Can

Re: [NTG-context] multi-line equations with \left( and \right.

2014-10-07 Thread Xan
Mm... I thought I could use mathalign instead. Thanks, On Tue, 7 Oct 2014 11:23:13 +0200 Wolfgang Schuster schuster.wolfg...@gmail.com ha escrit: Am 07.10.2014 um 10:59 schrieb Xan dxpubl...@telefonica.net: Hi, I try to do that \startformula \startalign[left={\left(\,},right

Re: [NTG-context] multi-line equations with \left( and \right.

2014-10-07 Thread Otared Kavian
={\right.}, style=\displaystyle] \starttext \startformula \startalignedcases \NC x - 2y + 2z \NC = 1 \NR \NC 2 x + y - z \NC = 2 \NR \NC 4 x - 3y + 6z \NC = 7 \NR \stopalignedcases \stopformula \stoptext Best regards: OK On 07 Oct 2014, at 12:22, Xan dxpubl...@telefonica.net wrote

Re: [NTG-context] Animation captions (was: error in animation)

2014-10-06 Thread Otared Kavian
are cut. Here is the example: \usemodule[animation] \setuppapersize[S6][S6] \setupinteraction[state=start] \definepairedbox[animationtext][location=top,align=middle,width=\textwidth] \starttext \startanimation {\placeanimationtext{Sine norm, and}{\startformula \int_{0}^{2\pi}\sin^2(x)dx

Re: [NTG-context] math \prime with subscripts

2014-09-24 Thread Yuri Teixeira
. plain tex: $$1T\prime + 2T^\prime + 3T\prime_{rs} + 4T_{rs}\prime + 5T^{{}^\prime}_{rs} + 6T_{rs}^\prime + 7T^\prime_{rs}$$ $$8T' + 9T^{'} + 10T^{'}_{rs} + 11T'_{rs} + 12T_{rs}' $$ context: \starttext \startformula 13T\prime + 14T^\prime + 15T\prime_{rs} + 16T^\prime_{rs} + 17T_{rs}\prime

Re: [NTG-context] math \prime with subscripts

2014-09-22 Thread Aditya Mahajan
On Sun, 21 Sep 2014, Yuri Teixeira wrote: Hi is there a way for \prime not get smaller when used with sub/superscripts? Or realigned somehow? Without font changes would be nice. \starttext \startformula \frac13T\prime_{rs}T\prime_{st}T\prime_{tr} \stopformula \startformula \frac13T_{rs

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

2014-09-22 Thread Aditya Mahajan
On Mon, 15 Sep 2014, Maggyero wrote: I want to have the formula numbers of cases environment flushed on the right like for regular formulas (not the default numberdistance=2.5\emwidth). How can I do that? \starttext \startplaceformula \startformula \startcases \NC x = 1

[NTG-context] math \prime with subscripts

2014-09-21 Thread Yuri Teixeira
Hi is there a way for \prime not get smaller when used with sub/superscripts? Or realigned somehow? Without font changes would be nice. \starttext \startformula \frac13T\prime_{rs}T\prime_{st}T\prime_{tr} \stopformula \startformula \frac13T_{rs}\prime T_{st}\prime T_{tr}\prime \stopformula

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

2014-09-14 Thread Maggyero
I want to have the formula numbers of cases environment flushed on the right like for regular formulas (not the default numberdistance=2.5\emwidth). How can I do that? \starttext \startplaceformula \startformula \startcases \NC x = 1 \NR[+] \NC y = 1 \NR

Re: [NTG-context] Is there a convenient way to annotate equations?

2014-09-10 Thread Wolfgang Schuster
Am 09.09.2014 um 18:44 schrieb seasoul bioseas...@gmail.com: Is there an already-exsting or easy way to add annotations to equations, just something like annotation1.png You can use the \underbrace and \overbrace commands. \starttext \startformula \underbrace{f(n)}_{\text{Output

Re: [NTG-context] Bussproofs or derivation trees

2014-09-05 Thread Trond Thorbjørnsen
\emspaceamount] \startformula \startalign \NC \borderdttop{\neg P \vdash \neg Q, P \text{\hspace[spacedt]}} \NC \borderdttop{ \hspace[spacedt] Q, \neg P \vdash \neg Q} \NR \NC \borderdt{(P\pil Q), \neg P} \NC \borderdt{\vdash \neg Q}\NR \NC \borderdt{(P\pil Q)} \NC \borderdt{\vdash (\neg P\pil

[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

Re: [NTG-context] Leave out reference to page if on the same page?

2014-07-24 Thread Otared Kavian
\smartref{equation}[eq:Fermat]. \startplacefigure [reference=fig:alpha] \externalfigure \stopplacefigure \startplacefigure [reference=fig:beta] \externalfigure \stopplacefigure \input knuth.tex \placeformula[eq:Fermat] \startformula a,b,c \in {\Bbb N}^*, \quad n \geq 3, \quad a^n + b^n = c^n \imply

Re: [NTG-context] underbraces get progressively more misaligned (w/ minimal example)

2014-07-04 Thread Hans Hagen
lines overflow are ok) It does also depend on the width of the text because when I use 48pt in the example below the height of the brace is always the same but with 49pt the height increases after the first page. \starttext \dorecurse{100} {\startformula \mathord {%\setbox\scratchbox

Re: [NTG-context] underbraces get progressively more misaligned (w/ minimal example)

2014-07-03 Thread Wolfgang Schuster
of the text because when I use 48pt in the example below the height of the brace is always the same but with 49pt the height increases after the first page. \starttext \dorecurse{100} {\startformula \mathord {%\setbox\scratchbox\mathstylehbox{\Umathaccent\fam\zerocountFE3DF{\hskip48pt

Re: [NTG-context] Mixed subscripts and superscripts

2014-07-01 Thread Wolfgang Schuster
-21_22:04 on debian testing so excuse me if this has been changed. \starttext \startformula T_\alpha {}^\beta {}_\gamma \stopformula \stoptext Wolfgang ___ If your question is of interest to others as well, please

Re: [NTG-context] Mixed subscripts and superscripts

2014-07-01 Thread Yuri Teixeira
read, and I get a less optimal spacing in this case \m{T^{i~k~m}_{~j~l~n}} in which the 'm' appears to be after the 'n'. I'm using version 2014-05-21_22:04 on debian testing so excuse me if this has been changed. \starttext \startformula T_\alpha {}^\beta {}_\gamma \stopformula \stoptext

[NTG-context] underbraces get progressively more misaligned (w/ minimal example)

2014-06-29 Thread Sanjoy Mahajan
the problem (I am using 2014.05.17 MkIV): \setupformulas[indentnext=auto, spacebefore=none, spaceafter=none] \starttext \dorecurse{3000}{ \placeformula\startformula \underbrace{\hbox{}}_{\rho} = \underbrace{\hbox{ }}_{\rho} \stopformula } \stoptext It'll produce a 162-page file

[NTG-context] Tagged PDF - Math

2014-05-30 Thread Christoph Reller
root results in an empty dictionary key with corresponding value \Span. A minimal example is: \setuptagging[state=start] \starttext \startformula \sqrt{A} \stopformula \stoptext 2. Structure element contains index of type real number: According to the PDF Reference V 1.7 (see Table 10.10) a structure

Re: [NTG-context] Tagged PDF - Math

2014-05-30 Thread Hans Hagen
to a corrupt RoleMap, e.g., the usage of a square root results in an empty dictionary key with corresponding value \Span. A minimal example is: \setuptagging[state=start] \starttext \startformula \sqrt{A} \stopformula \stoptext 2. Structure element contains index of type real number: According

Re: [NTG-context] Simple command with variable number of arguments

2014-05-24 Thread Jeong Dal
fine. Here is a sample file. \environment MatrixLuacode \starttext \getbuffer[luaMatrix] \startformula\startalign \startluacode local mat = {{0, 2, 4, -4, 1},{0, 0, 2, 3 , 4}, {2, 2, -6, 2, 4 }, {2,0 , -6, 9, 7},{2, 2, -6, 2, 4 },{2, 2, -6, 2, 4 }} -- local mat = {{1,2,3},{3,4,5},{3,4,5},{3,4,5

Re: [NTG-context] I'm too studpid for Context...

2014-05-24 Thread Werner Hintze
] [math] [Cambria Math] \setupbodyfont[myfontcollection] \starttext {\rm\input ward } {\ss\input ward } {\tt\input ward } \startformula c^2 = a^2 + b^2 \stopformula \stoptext Wolfgang ___ If your question

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Matthias Weber
\processcommalist[#1]\dorowvector \stoppmatrix} \starttext \startformula \columnvector{1,2,3} \stopformula \startformula \rowvector{4,5} \stopformula \stoptext On May 23, 2014, at 6:08 AM, Otared Kavian ota...@gmail.com wrote: Hi, Some time ago Wolfgang S. gave a solution to a similar problem

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Matthias Weber
Thanks Aditya,but out of the box the following\usemodule[simplematrix]\definesimplematrix[MATRIX][fence=bracket]\starttext\startformula\MATRIX{1,2,3}\MATRIX{1;2;3}\stopformula\stoptextgives me texshop_image.pdf Description: Adobe PDF document MatthiasOn May 23, 2014, at 6:56 AM, Aditya Mahajan

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Aditya Mahajan
On May 23, 2014, at 7:14 AM, Matthias Weber matwe...@indiana.edu wrote: Thanks Aditya, but out of the box the following \usemodule[simplematrix] \definesimplematrix[MATRIX][fence=bracket] \starttext \startformula \MATRIX{1,2,3} \MATRIX{1;2;3} \stopformula \stoptext

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread luigi scarso
{document.matthias.lua_columnvector(#1)}} \starttext \startformula \columnvector{{1,2,3}} %% watch the double { ! \stopformula \stoptext -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Matthias Weber
() end document.matthias.lua_columnvector = document.matthias.lua_columnvector or lua_columnvector \stopluacode \def\columnvector#1{\ctxlua{document.matthias.lua_columnvector(#1)}} \starttext \startformula \columnvector{{1,2,3}} %% watch the double { ! \stopformula \stoptext

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Jeong Dal
{document.matthias.lua_columnvector(#1)}} \starttext \startformula \columnvector{{1,2,3}} %% watch the double { ! \stopformula \stoptext -- luigi -- next part -- An HTML attachment was scrubbed... URL: http://www.ntg.nl/pipermail/ntg-context/attachments/20140523/569165d6

Re: [NTG-context] I'm too studpid for Context...

2014-05-23 Thread Wolfgang Schuster
[myfontcollection] \starttext {\rm\input ward } {\ss\input ward } {\tt\input ward } \startformula c^2 = a^2 + b^2 \stopformula \stoptext Wolfgang ___ If your question is of interest to others as well, please add

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Hans Hagen
{document.matthias.lua_columnvector(#1)}} \starttext \startformula \columnvector{{1,2,3}} %% watch the double { ! \stopformula \stoptext -- luigi -- next part -- An HTML attachment was scrubbed... URL: http://www.ntg.nl/pipermail/ntg-context/attachments/20140523/569165d6

Re: [NTG-context] numerator is too high in \frac{3}{4}, in palatino

2014-05-17 Thread Sanjoy Mahajan
. However, the settings don't seem to affect fractions inside square roots. Here's an example (the 20pt setting is to exaggerate the possible effect), using 2014.05.17 beta. \starttext \placeformula\startformula \dfrac{ag}{bcd}\quad{ag\over bcd} \stopformula \placeformula\startformula \sqrt{1\over

[NTG-context] workaround for another too-low symbol in Pagella?

2014-05-09 Thread Sanjoy Mahajan
to the top of the H or E. \setupbodyfont[palatino] \starttext \placeformula\startformula \text{P}( H\,|\, E ) \stopformula \stoptext Again, I don't think it's a ConTeXt problem, but rather a Pagella problem. But is there a recommended ConTeXt workaround? Maybe a metafun symbol? -Sanjoy

Re: [NTG-context] workaround for another too-low symbol in Pagella?

2014-05-09 Thread Otared Kavian
in the surrounding text, to show how it's used (in probability, as P(H|E)). I think the bottom of the bar is correct, but the tip of the bar doesn't reach to the top of the H or E. \setupbodyfont[palatino] \starttext \placeformula\startformula \text{P}( H\,|\, E ) \stopformula \stoptext Again

[NTG-context] How to place a verbatim environment in the text such that the following paragraph is not indented?

2014-05-07 Thread Thomas Möbius
] \input ward You can use the following syntax \startR f - function(x) x^2 \stopR to define a function. (Begging of line should not be indented.) \input ward Have a look at \startformula f(x) = x^2 \stopformula where $f$ is a function. (No indent as expected.) \input ward \stoptext

Re: [NTG-context] numerator is too high in \frac{3}{4}, in palatino

2014-05-06 Thread Hans Hagen
On 5/2/2014 4:46 AM, Sanjoy Mahajan wrote: I've noticed the following issue with how high the numerator is placed, but only when using Palatino: \setupbodyfont[palatino] \starttext \startformula {3\over4}\quad {1\over2} \stopformula \stoptext The 3 and the 1 sit quite high above the division

Re: [NTG-context] numerator is too high in \frac{3}{4}, in palatino

2014-05-05 Thread Sanjoy Mahajan
I just compared MkII and MkIV in this respect, and the MkII fraction looks more symmetric (more correct) than the MkIV version. Here is the MkII code: \usetypescript[palatino][ec] \setupbodyfont[palatino] \starttext \startformula {3\over4}\quad {1\over2} \stopformula \stoptext I've attached

[NTG-context] numerator is too high in \frac{3}{4}, in palatino

2014-05-01 Thread Sanjoy Mahajan
I've noticed the following issue with how high the numerator is placed, but only when using Palatino: \setupbodyfont[palatino] \starttext \startformula {3\over4}\quad {1\over2} \stopformula \stoptext The 3 and the 1 sit quite high above the division line, esp. in comparison with the gap below

[NTG-context] How to do font fallback for math?

2014-04-29 Thread Darksair
] \stoptypescript \usetypescript[Test] \setupbodyfont[Test] \starttext \startformula \Omega = \int_0^x \sin 2x\, {\rm d}x \stopformula \stoptext But in the generated PDF, the “0” and “2” are both typed in Euler. What should I do to get them fallback to lmr? Thanks! -- Darksair

Re: [NTG-context] \setupmathradical[sqrt] crunches denominator in an \over fraction

2014-04-24 Thread Hans Hagen
\placeformula\startformula \sqrt{k\over m}\quad \sqrt{\displaystyle{k\over m}} \stopformula \setupmathradical[sqrt][alternative=mp] \placeformula\startformula \sqrt{k\over m}\quad \sqrt{\displaystyle{k\over m}} \stopformula \stoptext In the first line, the fractions come out fine. In the second line

[NTG-context] A couple of setupcaptions questions revisited

2014-04-22 Thread Rik Kabel
=chapter] %\setuphead[subsection][number=no] \setuphead[subsection][incrementnumber=no] \starttext \chapter{Chapter 1} \chapter{Chapter 2} \section{Section} \subsection{Subsection} \placeformula \startformula a^2+b^2=c^2 \stopformula \stoptext This bug appears to still

[NTG-context] \setupmathradical[sqrt] crunches denominator in an \over fraction

2014-04-21 Thread Sanjoy Mahajan
I have been trying out the newish \setupmathradical[sqrt][alternative=mp], which has been very nice because of the fine control over the radical sign. I've noticed that it crunches the denominator in \sqrt{a\over b} For example: \starttext \placeformula\startformula \sqrt{k\over m}\quad \sqrt

Re: [NTG-context] \triangledown placed too low in Palatino

2014-04-11 Thread Otared Kavian
Hi, The \triangle operator is used for instance in the « symmetric difference » of two subsets: if $E$ is a set and $A \subset E$, and $B \susbet E$, then one defines \startformula A \triangle B := (A \cup B) \setminus (A \cap B). \stopformula Then the mapping $(A,B) \mapsto A \triangle B

Re: [NTG-context] \triangledown placed too low in Palatino

2014-04-10 Thread Aditya Mahajan
: \startformula \nabla T \quad \triangledown T \quad \mathop{\nabla} T \stopformula From what I remember, I was the one who added the mappings for triangledown as a mathop based on, I believe, unicode-math package in LaTeX. I don't understand what all the triangle operators are supposed to do

[NTG-context] \rm in math mode should give text roman

2014-03-10 Thread Sanjoy Mahajan
[mainface] [tt] [mono] [dejavu] [default] [rscale=0.9] \definetypeface [mainface] [mm] [math] [pagellaovereuler][default] \appendtoks \rm \to \everymathematics \setupmathematics[lcgreek=normal, ucgreek=normal] \setupbodyfont[mainface] \starttext \startformula \arctan x \stopformula \stoptext

Re: [NTG-context] Euler with fallback

2014-03-03 Thread Sanjoy Mahajan
, ucgreek=normal] \starttext \placeformula\startformula M_{\rm Sun}\quad M_{\hbox{\tfx Sun}} \quad M_{\hbox{\tfxx Sun}} \quad M_{\tf Sun} \stopformula \stoptext ___ If your question is of interest to others as well, please

Re: [NTG-context] Euler with fallback

2014-03-03 Thread Sanjoy Mahajan
is symonym with \mathrm etc. The standard way to write this is _{\text{Sun}}. I agree about \rm. However, _{\tf blah} once (in MkII) selected the text font. e.g. \starttext \placeformula\startformula M_{\tf Sun} \stopformula \stoptext Is the II-IV change in \tf semantics intended? It's not hard

[NTG-context] superscripted \circ slightly too low?

2014-02-19 Thread Sanjoy Mahajan
The superscripted degree symbol in $10^\circ$ comes out slightly low. e.g. \starttext \placeformula\startformula 10^\circ \quad 10\mathstrut^\circ \stopformula \placeformula\startformula x^7\quad x\mathstrut^7 \stopformula \stoptext I'm not quite sure what's right, but my eye says

[NTG-context] bug/issue with components and preamble (Re: Euler with fallback)

2014-02-18 Thread Sanjoy Mahajan
, then the problem does not occur.) == test6.tex = \project testproject2 \startcomponent test \input knuth \placeformula\startformula a^2 + b^2 = c^2 \stopformula \stopcomponent == Here is the log file. It says 'result saved in test6.pdf' but no pdf file

Re: [NTG-context] [Math in ConTeXt]

2014-02-18 Thread Matthias Weber
Thanks Otared for the offer to look into math issues. Here are a few I noticed when TeXing an MK2 set of notes with MK4. Matthias \starttext \startformula \text{\bf R}^n = R^n ={\bf R}^n= \mathbb{R}^n \stopformula %spacing of exponent is in Mk4 wider than in Mk2 \startformula \left| \int_{a_

Re: [NTG-context] Euler with fallback

2014-02-16 Thread Sanjoy Mahajan
\placeformula\startformula a^2 + b^2 = c^2. \stopformula \stoptext If I add \appendtoks \rm \to \everymathematics \setupmathematics[lcgreek=normal, ucgreek=normal] just before \starttext, the math is typeset in roman pagella. What am I doing silly? Also, one of my reservations

Re: [NTG-context] Euler with fallback

2014-02-16 Thread Wolfgang Schuster
\setupmathematics[lcgreek=normal, ucgreek=normal] \starttext \input knuth \startplaceformula \startformula a^2 + b^2 = c^2. \stopformula \stopplaceformula \stoptext Wolfgang ___ If your question is of interest

Re: [NTG-context] underbraces slightly too narrow (with MkIV 2013.05.28)

2014-02-15 Thread Sanjoy Mahajan
with 2014.02.14 beta, and it is a big improvement. Again, sorry it took so long to test. If I use hoffset=3pt, it seems that some underbraces get 3-pt borders but others don't. For example, \setupmathstackers[vfenced][hoffset=3pt] \starttext \placeformula\startformula \underbrace{15\,\tf cm

[NTG-context] Problem with integral sign

2014-02-09 Thread Jaroslav Hajtmar
Hello ConTeXist. I googled a long time, but did not come across anything relevant. How can type big integral sign to result looked good? Here is my example: \startformula \int \frac{P_n(x)}{Q_m(x)} \, \mathrm{d}x, \quad nm \stopformula Thanx Jaroslav Hajtmar

Re: [NTG-context] Problem with integral sign

2014-02-09 Thread Marco Patzer
On 2014–02–09 Jaroslav Hajtmar wrote: How can type big integral sign to result looked good? Here is my example: \startformula \int \frac{P_n(x)}{Q_m(x)} \, \mathrm{d}x, \quad nm \stopformula I don't know how to reduce the space between the integral sign and the fraction (I assume that's

[NTG-context] Hat with \widehat is not satisfactory

2014-02-05 Thread Fabrice Couvreur
Dear list, I think the symbol of the angles is too close to the letters. Is it possible to change this ? \enablemode[pxmath] \setupbodyfont[palatino,12pt] \starttext \startformula \sin\widehat{PAM} =\frac{AM}{PA}=\frac{\frac{\sqrt{2}}{4}}{\frac{\sqrt{6}}{2}}=\frac{\sqrt{2}}{4}\times\frac{2}{\sqrt

[NTG-context] Problem with matematics (derivative and brackets combinations) + wrong pagenumbering

2014-02-04 Thread Jaroslav Hajtmar
'$ \blank[big] $\left(f\cdot g\right)'= f'\cdot g + f\cdot g'$ \blank[big] \mathematics{\left(\frac{f}{g}\right)'=\frac{f'\cdot g - f\cdot g'}{g^2}}, $g\neq0$ \blank[big] \startformula \left(\frac{f}{g}\right)'=\frac{f'\cdot g - f\cdot g'}{g^2} \stopformula \blank[big] $\left(c\cdot f

Re: [NTG-context] Problem with matematics (derivative and brackets combinations) + wrong pagenumbering

2014-02-04 Thread Jannik Voges
}}, $g\neq0$ \blank[big] \startformula \left(\frac{f}{g}\right)'=\frac{f'\cdot g - f\cdot g'}{g^2} \stopformula \blank[big] $\left(c\cdot f\right)'=c\cdot f'$ \blank[big] $\left[f\left(g\right)\right]'=f'(g)\cdot g'$ \blank[big] \stoptext

Re: [NTG-context] Problem with matematics (derivative and brackets combinations) + wrong pagenumbering

2014-02-04 Thread Jaroslav Hajtmar
\right)'= f'\pm g'$ \blank[big] $\left(f\cdot g\right)'= f'\cdot g + f\cdot g'$ \blank[big] \mathematics{\left(\frac{f}{g}\right)'=\frac{f'\cdot g - f\cdot g'}{g^2}}, $g\neq0$ \blank[big] \startformula \left(\frac{f}{g}\right)'=\frac{f'\cdot g - f\cdot g'}{g^2} \stopformula \blank[big

Re: [NTG-context] Difficulties with \startformula

2014-01-14 Thread Hans Hagen
] /Ascent 1127 /CapHeight 683 /Descent -280 /ItalicAngle 0 /StemV 91 /XHeight 431 In context, \hbox{\startformula x+y \stopformula} boils down to \hbox{\par $$ x+y $$ \par} plus some more so i decided to turn this into \hbox{\par \Ustartdisplaymath x+y

[NTG-context] \defineframedtext take precedence over \defineframed and add extra padding

2014-01-13 Thread Elspeth McGullicuddy
, I can change the name; But for the extra padding I don't know how to remove it. I could add a \vskip-\baselineskip at the beginning, but there is probably a better solution. (By the way, the construction \blueframed{\startformula hello\stopformula \input knuth} behave badly

[NTG-context] Difficulties with \startformula

2014-01-13 Thread Elspeth McGullicuddy
mouse text selection with Okular (haven't tried with another viewer): When I mouse text select elements of the formula, when the \startformula \stopformula in embeded in a \hbox, what is highlighted looks alright. Instead, when it's in vertical mode, what is highlighted is very very large. It's

Re: [NTG-context] setuphead for in-paragraph head ?

2014-01-09 Thread Otared Kavian
\StartQuestions \q Prove that \startformula \sum_{n=1}^\infty{1 \over n^2} = {\pi^2 \over 6}. \stopformula \q Prove that for any $n \geq 1$ integer one has \startformula \sum_{k=1}^n k^3 = \left({n(n+1) \over 2}\right)^2. \stopformula \StopQuestions \stopexo \stoptext %%% end example-exercise.tex

Re: [NTG-context] setuphead for in-paragraph head ?

2014-01-09 Thread Jaroslav Hajtmar
\startexo \StartQuestions \q Prove that \startformula \sum_{n=1}^\infty{1 \over n^2} = {\pi^2 \over 6}. \stopformula \q Prove that for any $n \geq 1$ integer one has \startformula \sum_{k=1}^n k^3 = \left({n(n+1) \over 2}\right)^2. \stopformula \StopQuestions \stopexo \stoptext %%% end example

Re: [NTG-context] setuphead for in-paragraph head ?

2014-01-09 Thread Otared Kavian
\q Prove that \startformula \sum_{n=1}^\infty{1 \over n^2} = {\pi^2 \over 6}. \stopformula \q Prove that for any $n \geq 1$ integer one has \startformula \sum_{k=1}^n k^3 = \left({n(n+1) \over 2}\right)^2. \stopformula \StopQuestions \stopexo \stoptext %%% end example-exercise.tex

Re: [NTG-context] missing underbrace using palatino with latest beta (2013.12.26)

2014-01-06 Thread Hans Hagen
On 12/27/2013 12:24 PM, Sanjoy Mahajan wrote: A minimal example: --- cut --- \setupbodyfont[palatino,12pt] \starttext \startformula \underbrace{x}_{1} \stopformula \stoptext --- cut --- It works fine with 2013.05.28 00:36 MKIV current

[NTG-context] underbrace under stacked math error with latest beta (2013.12.26)

2013-12-27 Thread Sanjoy Mahajan
A minimal example: --- cut \def\2#1#2{\vcenter{\halign{\hfil ##\hfil\cr #1\cr#2\cr}}} \def\ptwo#1#2{\left(\2{#1}{#2}\right)} \starttext \startformula \underbrace{\ptwo{specific}{heat}}_{1} \stopformula \stoptext --- cut

[NTG-context] missing underbrace using palatino with latest beta (2013.12.26)

2013-12-27 Thread Sanjoy Mahajan
A minimal example: --- cut --- \setupbodyfont[palatino,12pt] \starttext \startformula \underbrace{x}_{1} \stopformula \stoptext --- cut --- It works fine with 2013.05.28 00:36 MKIV current. With 2013.12.26 12:50 MKIV beta, the underbrace disappears

Re: [NTG-context] doublestroke

2013-12-26 Thread Wolfgang Schuster
] [range={uppercasedoublestruck}] %%%,letterlikesymbols}] \definefontfamily [mainface] [mm] [Latin Modern Math] \setupbodyfont[mainface] \starttext \startformula ABC \quad {\blackboard AB[C]DEFG[H]IJKLM[N]O[PQR]STUVWXY[Z]} \stopformula \stoptext letters here in brackets weren't rendered

Re: [NTG-context] doublestroke

2013-12-26 Thread Hans Hagen
] \definefallbackfamily [mainface] [mm] [TeX Gyre Termes Math] [range={uppercasedoublestruck}] %%%,letterlikesymbols}] \definefontfamily [mainface] [mm] [Latin Modern Math] \setupbodyfont[mainface] \starttext \startformula ABC \quad {\blackboard AB[C]DEFG[H]IJKLM[N]O[PQR]STUVWXY[Z]} \stopformula \stoptext letters

Re: [NTG-context] doublestroke

2013-12-26 Thread Elspeth McGullicuddy
[mainface] [mm] [Latin Modern Math] \setupbodyfont[mainface] \starttext \startformula ABC \quad {\blackboard AB[C]DEFG[H]IJKLM[N]O[PQR]STUVWXY[Z]} \stopformula \stoptext letters here in brackets weren't rendered as expected... Because there are holes in the uft table as can be seen

Re: [NTG-context] doublestroke

2013-12-25 Thread Elspeth McGullicuddy
] [Latin Modern Math] \setupbodyfont[mainface] \starttext \startformula ABC \quad {\blackboard AB[C]DEFG[H]IJKLM[N]O[PQR]STUVWXY[Z]} \stopformula \stoptext letters here in brackets weren't rendered as expected... Because there are holes in the uft table as can be seen there: http://www.w3.org/TR

Re: [NTG-context] doublestroke

2013-12-22 Thread Wolfgang Schuster
] [mm] [Latin Modern Math] \setupbodyfont[mainface] \starttext \startformula ABC \quad {\blackboard ABC} \stopformula \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] doublestroke

2013-12-22 Thread Elspeth McGullicuddy
a opentype math font. \definefontfamily [mainface] [rm] [Latin Modern Roman] \definefallbackfamily [mainface] [mm] [TeX Gyre Termes Math] [range=uppercasedoublestruck] \definefontfamily [mainface] [mm] [Latin Modern Math] \setupbodyfont[mainface] \starttext \startformula ABC

Re: [NTG-context] doublestroke

2013-12-22 Thread Elspeth McGullicuddy
] \definefallbackfamily [mainface] [mm] [TeX Gyre Termes Math] [range=uppercasedoublestruck] [force=no] \definefontfamily [mainface] [mm] [TeX Gyre Termes Math] \setupbodyfont[mainface] \starttext \startformula ABC \quad {\blackboard ABC} \stopformula \stoptext Very grateful for this example

Re: [NTG-context] doublestroke

2013-12-22 Thread Elspeth McGullicuddy
] \starttext \startformula ABC \quad {\blackboard ABCN} \char2115 % still Latin Modern Math \stopformula \stoptext Chris On Sun, Dec 22, 2013 at 5:40 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 22.12.2013 um 17:33 schrieb Elspeth McGullicuddy elspethmcgullicu...@gmail.com: I've

Re: [NTG-context] vertical square root upstroke (instead of having a slant)

2013-12-02 Thread Hans Hagen
arrangements of variables (that recur often in my book chapter on springs and piano strings). For example, it goes away after changing the \rho to a b. \starttext \startformula \sqrt{Tb^2\over \rho}. \stopformula \stoptext I know that the big math symbols are constructed differently in MkIV and MkII. Does

Re: [NTG-context] Multi-letter variables in math mode

2013-11-27 Thread Aditya Mahajan
. Is there a way to preserve normal letterspacing locally in a formula? Latex provides a \mathit macro for such variables. From what I understand, this is essentially the same as using \text{\it ...}. For example: \starttext \startformula \startalign \NC efat \NR \NC \text{\it efat} \NR \stopalign

<    5   6   7   8   9   10   11   12   13   14   >