Re: [NTG-context] beta

2013-04-16 Thread Hans Hagen
On 4/16/2013 1:04 PM, Marco Patzer wrote: On 2013–04–16 Hans Hagen wrote: - frac fixed Thanks. - fixed more restrictive tex file lookup in run context s-pre-17.mkiv still works on my machine. I'm fine with that, just want to let you know, it might not be the intended behaviour.

Re: [NTG-context] beta

2013-04-16 Thread Marco Patzer
On 2013–04–16 Hans Hagen wrote: > - frac fixed Thanks. > - fixed more restrictive tex file lookup in run context s-pre-17.mkiv still works on my machine. I'm fine with that, just want to let you know, it might not be the intended behaviour. Marco signature.asc Descripti

[NTG-context] beta

2013-04-16 Thread Hans Hagen
Hi, I uploaded a beta: - combinations extended cf mails on this list - new windows stubs (might need testing) - frac fixed - fixed more restrictive tex file lookup in run Hans - Hans

Re: [NTG-context] \frac broken in current beta

2013-04-16 Thread Hans Hagen
On 4/16/2013 9:52 AM, Marco Patzer wrote: Hi, \starttext \math{\frac12} \stoptext gives ! LuaTeX error [string "\directlua "]:1: attempt to call field 'math_frac' (a n il value) stack traceback: [string "\directlua "]:1: in main chunk. ah, missing file, i'll upload a new zip (fir

Re: [NTG-context] \frac broken in current beta

2013-04-16 Thread Alan BRASLAU
On Tue, 16 Apr 2013 09:52:08 +0200 Marco Patzer wrote: > Hi, > > \starttext > \math{\frac12} > \stoptext > > gives > > ! LuaTeX error [string "\directlua "]:1: attempt to call field > 'math_frac' (a n il value) > stack traceback: > [string "\directlua "]:1: in main chunk. > > > Mar

[NTG-context] \frac broken in current beta

2013-04-16 Thread Marco Patzer
Hi, \starttext \math{\frac12} \stoptext gives ! LuaTeX error [string "\directlua "]:1: attempt to call field 'math_frac' (a n il value) stack traceback: [string "\directlua "]:1: in main chunk. Marco signature.asc Description: Digital signature _

Re: [NTG-context] math: size of sqrt to small for fractions

2013-04-09 Thread Hans Hagen
Oh, I didn't know that. For my feelings, all variables should have the same size here (a,b and c). Hopefully ok now ... I also made the mathstyle more conformant the new math style mechanism and added coloring of the fraction rule. \definemathfraction[innerfrac][frac][alternative=inner

[NTG-context] math: size of sqrt to small for fractions

2013-04-09 Thread Xenia
v lua stats > fonts load time: 0.249 seconds mkiv lua stats > luatex banner: this is luatex, version beta-0.75.0-2013031411 (tex live 2013/dev)(rev 4589) mkiv lua stats > control sequences: 36706 of 65536 + 10 mkiv lua stats > current memory usage: 26 MB (ctx: 26 MB) mkiv lua stats >

Re: [NTG-context] Math typesetting problems

2013-04-06 Thread Hans Hagen
On 1/29/2013 12:20 AM, Khaled Hosny wrote: On Mon, Jan 28, 2013 at 09:33:52PM +0100, Wolfgang Schuster wrote: The \frac command uses \vcenter for the content while \dfrac and \tfrac only set the mathstyle before placing the content with the \over primitive. The use of \vcenter seems odd here

Re: [NTG-context] Bug in \column

2013-03-22 Thread Xan
\startmathalignment \NC 3x + 7y \NC = -23 \NR[+] \NC 5x + 4y \NC = -23 \NR \stopmathalignment \stopformula \stopexercici \stopcolumns \subject{Opció A} \startexercici Resoleu pel mètode que vulgueu: \placeformula \startformula \startmathalignment \NC \frac{x}{3} + \frac{4y}{5} - 3(x+y) \NC = -

[NTG-context] Bug in \column

2013-03-18 Thread Xan
tode de reducció: \placeformula \startformula \startmathalignment \NC 3x + 7y \NC = -23 \NR[+] \NC 5x + 4y \NC = -23 \NR \stopmathalignment \stopformula \stopexercici \stopcolumns \subject{Opció A} \startexercici Resoleu pel mètode que vulgueu: \placeformula \startformula \startmathalignment \N

[NTG-context] vertical position in itemize and math

2013-03-01 Thread Mikael P. Sundqvist
Hi, I have two problems with vertical position, one in itemize and one in math. The example below show them both. \starttext \startitemize[n] \item \startitemize[a][left={},right={)},stopper=] \item Bla bla $\theta = \arctan\bigl(\frac{\bar{y}^2}{\bar{x}^2}\bigr)$ % comment this line out to see

[NTG-context] new tricks in beta

2013-02-20 Thread Hans Hagen
Hi Aditya, I made a mathstyle mechanism ... used in fences first: \starttext \startTEXpage[offset=1ex] \def\TestMe#1% {\NC \ttbf #1 \NC \ruledhbox{$\setupmathstyle[#1]x + x_j^2 + x_i^{e^2} + \frac{1}{x}$} \NC \ruledhbox{$\setupmathstyle[#1,small]x + x_j^2 + x_i^{e^2} + \frac{1}{x

[NTG-context] beta

2013-02-19 Thread Hans Hagen
This is experimental in upcoming beta: \starttext \definemathfence [fancybracket] [bracket] [command=yes,color=blue] test $|x|$ test \par test $||x||$ test (replaced) \par test $a\left|\frac{1}{b}\right|c$ test \par test $a\left||\frac{1}{b}\right||c$ test (kept) \par \startbuffer test $a

Re: [NTG-context] \setlayer on \startalign row

2013-02-06 Thread Aditya Mahajan
table:math] \NC $\displaystyle \frac{2}{3}x-\frac{3}{4}$ \NC $\displaymath {}= \frac{1}{6}x+\frac{21}{4}$ \NC \NR \NC $\displaystyle \left(12\cdot\frac{2}{3}x\right) - \left(12\cdot\frac{3}{4}\right) $ \NC $\displaystyle{}= \left(12\cdot\frac{1}{6}x\right) + \left(12\cdot\frac{21}{4}\right

Re: [NTG-context] \setlayer on \startalign row

2013-02-06 Thread Aditya Mahajan
e 3. Troy \StartStepping{10} \startformula \startalign[n=4,align={right,right,middle,left}] \STEP{1}{\NC \NC \frac{2}{3}x-\frac{3}{4} \NC = \NC \frac{1}{6}x+\frac{21}{4} \NR} \STEP{2}{\NC 12\times\NC \NC \NC \NR} \STEP{3}{\NC \NC \left(12\c

Re: [NTG-context] \setlayer on \startalign row

2013-02-06 Thread Aditya Mahajan
artformula \startalign[n=4,align={right,right,middle,left}] \STEP{1}{\NC \NC \frac{2}{3}x-\frac{3}{4} \NC = \NC \frac{1}{6}x+\frac{21}{4} \NR} \STEP{2}{\NC 12\times\NC \NC \NC \NR} \STEP{3}{\NC \NC \left(12\cdot\frac{2}{3}x\right) - \left(12\cdot\frac{3

Re: [NTG-context] \setlayer on \startalign row

2013-02-06 Thread Troy Henderson
ight,right,middle,left}] \STEP{1}{\NC \NC \frac{2}{3}x-\frac{3}{4} \NC = \NC \frac{1}{6}x+\frac{21}{4} \NR} \STEP{2}{\NC 12\times\NC \NC \NC \NR} \STEP{3}{\NC \NC \left(12\cdot\frac{2}{3}x\right) - \left(12\cdot\frac{3}{4}\right) \NC = \NC \left(12\cdot\f

Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Khaled Hosny
On Mon, Jan 28, 2013 at 09:33:52PM +0100, Wolfgang Schuster wrote: > > The \frac command uses \vcenter for the content while \dfrac and > \tfrac only set the mathstyle before placing the content with the > \over primitive. The use of \vcenter seems odd here as it means the fraction

Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Aditya Mahajan
On Mon, 28 Jan 2013, Otared Kavian wrote: Hi Janne, Personnally I prefer to use the Plain TeX alternative \over (which works fine in ConTeXt), that is ${a \over b}$ instead of $\frac{a}{b}$ Compare the following two outputs in the example you want to typeset: I think the

Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Wolfgang Schuster
;> should behave in the same manner. >> >> The \frac command uses \vcenter for the content while \dfrac and \tfrac only >> set the mathstyle before placing the content with the \over primitive. > > Then something has been lost in the MkII -> MkIV transition. I am pretty sure

Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Otared Kavian
Hi Janne, Personnally I prefer to use the Plain TeX alternative \over (which works fine in ConTeXt), that is ${a \over b}$ instead of $\frac{a}{b}$ Compare the following two outputs in the example you want to typeset: I think the second is more or less what you want \starttext

Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Aditya Mahajan
On Mon, 28 Jan 2013, Wolfgang Schuster wrote: I'll look into fractions later this week. All the fraction macros of ConTeXt were based on \genfrac macro from AMSTeX so, in principle, they should behave in the same manner. The \frac command uses \vcenter for the content while \dfra

Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Wolfgang Schuster
m, since I wish to also use fractions with >>> script-size or scriptscript-size (\xfrac, \xxfrac). The specific >>> formula I have is >>> \startformula >>> f_{B_t | B_s = S, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t) + >>> U(t-s))

Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Aditya Mahajan
formula I have is \startformula f_{B_t | B_s = S, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t) + U(t-s)) + \frac{(S(u-t) + U(t-s))^2}{(u-s)}}{2(t-s)(u-t)}}}{\sqrt{2\pi\frac{(t-s)(u-t)}{u-s}}} \stopformula Thanks, Janne OK ! So you need an expert, I'm just a newbie :) I would be interest

Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Roland Thiers
, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t) + U(t-s)) + \frac{(S(u-t) + U(t-s))^2}{(u-s)}}{2(t-s)(u-t)}}}{\sqrt{2\pi\frac{(t-s)(u-t)}{u-s}}} \stopformula Thanks, Janne OK ! So you need an expert, I'm just a newbie :) I would be interested to know how to do that. Best, R

Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Janne Junnila
Indeed it seems like the alignment is good with \dfrac, but this does not solve my problem, since I wish to also use fractions with script-size or scriptscript-size (\xfrac, \xxfrac). The specific formula I have is \startformula f_{B_t | B_s = S, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t

Re: [NTG-context] Math typesetting problems

2013-01-27 Thread Roland Thiers
illustrate my point. The result seems to be independent of the font in use. \startformula -\frac{e^{\frac{4}{5}}}{4} \stopformula Janne Hi Janne, With \dfrac it looks good. With \fraction the minus sign is on the top of the fraction. Best regards, Roland

[NTG-context] Math typesetting problems

2013-01-27 Thread Janne Junnila
problem I have is related to the positioning of minus signs in front of fractions. I would expect the minus sign to align with the horizontal line of the fraction, as it does on LaTeX. Below is an example formula to illustrate my point. The result seems to be independent of the font in use. \star

Re: [NTG-context] Equivalent commands for \big \Big etc. in mathmode

2013-01-23 Thread Devendra Ghate
On 01/23/2013 09:27 PM, Aditya Mahajan wrote: On Wed, 23 Jan 2013, Devendra Ghate wrote: If I want to say that dy/dx is calculated at z then in latex I can write \frac{dy}{dx}\Big|_z The \Big is to scale | according to the size of the \frac. I am using newmat and amsl modules that have

Re: [NTG-context] Equivalent commands for \big \Big etc. in mathmode

2013-01-23 Thread Aditya Mahajan
On Wed, 23 Jan 2013, Devendra Ghate wrote: If I want to say that dy/dx is calculated at z then in latex I can write \frac{dy}{dx}\Big|_z The \Big is to scale | according to the size of the \frac. I am using newmat and amsl modules that have supported the native math mode commands till now

[NTG-context] Equivalent commands for \big \Big etc. in mathmode

2013-01-23 Thread Devendra Ghate
If I want to say that dy/dx is calculated at z then in latex I can write \frac{dy}{dx}\Big|_z The \Big is to scale | according to the size of the \frac. I am using newmat and amsl modules that have supported the native math mode commands till now. But context does not recognise \Big. What is

Re: [NTG-context] big vertical distance

2013-01-13 Thread Hans Hagen
-6y-xy)$ \item $\B (-0{,}5x)\cdot (3y-5x)$ \item $\B (2z-3x+5)\cdot (0{,}5z+x)$ \item $\B 8ac\cdot 3\frac{1}{4}ax$ \item $\B 2\frac{1}{2}ab\cdot 6ax$ \item $\B \frac{2}{3}ax\cdot 1\frac{1}{2}by$ \item $\B 7\frac{1}{2}ay\cdot 1\frac{3}{5}ax$ \item $\B (+4ab)\cdot (-15xy)$ \stopitemize \stoptext now

[NTG-context] big vertical distance

2013-01-12 Thread Wolfgang Werners-Lucchini
+5)\cdot (0{,}5z+x)$ \item $\B 8ac\cdot 3\frac{1}{4}ax$ \item $\B 2\frac{1}{2}ab\cdot 6ax$ \item $\B \frac{2}{3}ax\cdot 1\frac{1}{2}by$ \item $\B 7\frac{1}{2}ay\cdot 1\frac{3}{5}ax$ \item $\B (+4ab)\cdot (-15xy)$ \stopitemize \stoptext now with LuaTeX I get very large vertical distances. Much more

Re: [NTG-context] Euler Constant and limit

2012-11-25 Thread Wolfgang Schuster
Am 25.11.2012 um 02:13 schrieb Kip Warner : > Hey list, > > I am trying to typeset the Verhulst equation which contains a Euler > constant which I cannot get to display correctly: > > \placeformula[formula:Verhulst equation] > \startformula > \math{P(t) = \fr

[NTG-context] Euler Constant and limit

2012-11-24 Thread Kip Warner
Hey list, I am trying to typeset the Verhulst equation which contains a Euler constant which I cannot get to display correctly: \placeformula[formula:Verhulst equation] \startformula \math{P(t) = \frac{K P_0 \Eulerconst^{rt}} {K + P_0(\Eulerconst^{r t} - 1)}} \stopformula The

Re: [NTG-context] \startitemize[columns] once again...

2012-11-22 Thread Hans Hagen
On 11/14/2012 11:16 AM, Marcin Borkowski wrote: Dnia 2012-11-10, o godz. 03:23:11 Marcin Borkowski napisał(a): This minimal example behaves in a strange way: \starttext Some text \startitemize[columns,two,joinedup] \item abc% $\frac{x^2-x+3}{x^2+x-3}$; \item xyz% $\frac{x^5-3}{x

[NTG-context] Odd bug with \startitemize

2012-11-18 Thread Rogers, Michael K
e, and all itemizations will appear.) Michael MWE: \starttext %Some text \dorecurse{10}{ \startitemize \item Find a well-ordered set. \startitemize[n, columns, four][stopper=,left=(, right=)] \item $\{ 2 + \frac{1}{n}, n \in\naturalnumbers\}$ \item $[0, 1)$ \item $\{3 -

Re: [NTG-context] \startitemize[columns] once again...

2012-11-17 Thread Otared Kavian
> Dnia 2012-11-10, o godz. 03:23:11 >>> Marcin Borkowski napisał(a): >>> >>>> This minimal example behaves in a strange way: >>>> >>>> \starttext >>>> Some text >>>> \startitemize[columns,two,joinedup] >&g

Re: [NTG-context] vertical alignment problem in column items

2012-11-16 Thread Otared Kavian
t output both in mkii and mkiv \item sub-one \item sub-two \item sub-three \item sub-four \stopitemize \hairline \startitemize[n=4] % <--- gives correct output in mkii, but not in mkiv \item $\{ 2 + \frac{1}{n}, n \in\naturalnumbers\}$ \item $[0, 1)$ \item $\{3 - \frac{2}{n}, n \in \natural

[NTG-context] vertical alignment problem in column items

2012-11-16 Thread Jeong Dal
, columns, four][stopper=,left=(, right=)] \item $\{ 2 + \frac{1}{n}, n \in\naturalnumbers\}$ \item $[0, 1)$ \item $\{3 - \frac{2}{n}, n \in \naturalnumbers\}$ \item $ \reals$ \stopitemize \stopitemize \stoptext ___ If your

Re: [NTG-context] \startitemize[columns] once again...

2012-11-16 Thread Marcin Borkowski
> Some text > > > \startitemize[columns,two,joinedup] > > > \item abc% $\frac{x^2-x+3}{x^2+x-3}$; > > > \item xyz% $\frac{x^5-3}{x^3+x-2}$. > > > \stopitemize > > > \stoptext > > > > > > If we remove the percentage signs in t

Re: [NTG-context] \startitemize[columns] once again...

2012-11-14 Thread Herbert Voss
Am 14.11.2012 11:38, schrieb Philipp Gesang: · Dnia 2012-11-10, o godz. 03:23:11 Marcin Borkowski napisał(a): This minimal example behaves in a strange way: \starttext Some text \startitemize[columns,two,joinedup] \item abc% $\frac{x^2-x+3}{x^2+x-3}$; \item xyz% $\frac

Re: [NTG-context] \startitemize[columns] once again...

2012-11-14 Thread Philipp Gesang
· > Dnia 2012-11-10, o godz. 03:23:11 > Marcin Borkowski napisał(a): > > > This minimal example behaves in a strange way: > > > > \starttext > > Some text > > \startitemize[columns,two,joinedup] > > \item abc% $\frac{x^2-x+3}{x^2+

Re: [NTG-context] \startitemize[columns] once again...

2012-11-14 Thread Marcin Borkowski
Dnia 2012-11-10, o godz. 03:23:11 Marcin Borkowski napisał(a): > This minimal example behaves in a strange way: > > \starttext > Some text > \startitemize[columns,two,joinedup] > \item abc% $\frac{x^2-x+3}{x^2+x-3}$; > \item xyz% $\frac{x^5-3}{x^3+x-2}$. >

[NTG-context] \startitemize[columns] once again...

2012-11-09 Thread Marcin Borkowski
This minimal example behaves in a strange way: \starttext Some text \startitemize[columns,two,joinedup] \item abc% $\frac{x^2-x+3}{x^2+x-3}$; \item xyz% $\frac{x^5-3}{x^3+x-2}$. \stopitemize \stoptext If we remove the percentage signs in the items, an additional vertical skip appears

Re: [NTG-context] using variable for subscript in math+lua

2012-10-25 Thread Jeong Dal
NC() context("{\\bf r}_1 \\leftrightarrow {\\bf r}_3 \\quad\\Rightarrow\\quad") matrixfunction.rowChange(mat, 1, 3) context.NC() matrixfunction.print_matrix(mat) context.NR() context.NC() context("\\frac{1}{2}{\\bf r}_1 \\rightarrow {\\bf r}_1 \\quad\\Rightarrow\\quad") matrixf

Re: [NTG-context] \everymath

2012-09-16 Thread Wolfgang Schuster
lstopdmath\Ustopdisplaymath % to prevent error message from \displaymath \starttext <\mathematics {\frac{1}{2}}> <\displaymathematics{\frac{1}{2}}> <\inlinemathematics {\frac{1}{2}}> <\displaymath{\frac{1}{2}}> <\inlinem

[NTG-context] \abovedisplayskip and \belowdisplayskip

2012-09-06 Thread Troy Henderson
} \usepackage[paperwidth=600pt,paperheight=450pt]{geometry} \def\adjustdisplay#1 { \ifnum#1>0 \newdimen\mydimen \mydimen\abovedisplayskip \abovedisplayskip\mydimen \mydimen\belowdisplayskip \belowdisplayskip\mydimen \fi } \def\foo{ \vskip0.5ex \[\frac{x}{1} = \frac{1}{x-1}\] \vskip0.5ex \[

[NTG-context] A strange problem, probably with \startitemize[columns]

2012-07-28 Thread Marcin Borkowski
i \math{-2p+3(1-p)}. Jeśli II wybierze~\math{2}, przeciętna wygrana~I wynosi~\math{3p-4(1-p)}. Aby wartości te były równe, musi być \math{p=\frac{7}{12}}. Zatem gracz~I powinien wybrać~\math{1} z~prawdopodobieństwem \math{\frac{7}{12}}, a~\math{2} z~prawdopod

[NTG-context] startalign broken in latest checkout

2012-07-04 Thread Prashanth
gn 4 \NC v \NC = u + at \NR 5 >> \NC h \NC= ut + \frac12 gt^2 \NR 6 \stopalign \stopformula 7 8 \stoptext 9 <template> \endtemplate \math_alignment_NC ->\aligntab l.5 \NC h \NC = ut + \frac12 gt^2 \NR ! Use of \expandafter doesn't match its

Re: [NTG-context] itemize in two columns and pagebreaks

2012-06-29 Thread Marcin Borkowski
yznaczymy~\math{p} tak, żeby gracz~I wygrywał przeciętnie {\em tyle samo}, obojętnie, co zrobi gracz~II. Jeśli gracz~II wybierze~\math{1}, przeciętna wygrana~I wynosi \math{-2p+3(1-p)}. Jeśli II wybierze~\math{2}, przeciętna wygrana~I wynosi~\math{3p-4(1-p)}.

Re: [NTG-context] Small integral signes with Palatino

2012-05-28 Thread Hans Hagen
] \quittypescriptscanning \stoptypescript \protect \usetypescript[PalatinoTest] \setupbodyfont[PalatinoTest,12pt] \starttext \input knuth \par \startformula \int_0^\infty \frac{1}{x} {\rm d} x \stopformula \stoptext In this case \int and \sum are of the same size, so it appears as a design choice

Re: [NTG-context] Small integral signes with Palatino

2012-05-27 Thread Aditya Mahajan
\protect \usetypescript[PalatinoTest] \setupbodyfont[PalatinoTest,12pt] \starttext \input knuth \par \startformula \int_0^\infty \frac{1}{x} {\rm d} x \stopformula \stoptext In this case \int and \sum are of the same size, so it appears as a design choice, and more importantly, we can patch the

Re: [NTG-context] Small integral signes with Palatino

2012-05-27 Thread luigi scarso
s perfectly. Am I doing something wrong here? >>> >>> \definetypeface[palatino][rm][serif][palatino] >>> \definetypeface[palatino][mm][math][palatino] >>> >>> \setupbodyfont[palatino] >>> >>> \starttext >>> >>> \sta

Re: [NTG-context] Small integral signes with Palatino

2012-05-27 Thread luigi scarso
netypeface[palatino][rm][serif][palatino] >> \definetypeface[palatino][mm][math][palatino] >> >> \setupbodyfont[palatino] >> >> \starttext >> >> \startformula >> \int_0^\infty \frac{1}{x} {\rm d} x >> \stopformula >> >> \stoptext > co

Re: [NTG-context] Small integral signes with Palatino

2012-05-27 Thread luigi scarso
[math][palatino] > > \setupbodyfont[palatino] > > \starttext > > \startformula > \int_0^\infty \frac{1}{x} {\rm d} x > \stopformula > > \stoptext confirmed (again) -- luigi ___ If your question is

Re: [NTG-context] Small integral signes with Palatino

2012-05-27 Thread Tim Steenvoorden
Still get a small integral sign in the latest beta (2012.05.26 16:40). Times works perfectly. Am I doing something wrong here? \definetypeface[palatino][rm][serif][palatino] \definetypeface[palatino][mm][math][palatino] \setupbodyfont[palatino] \starttext \startformula \int_0^\infty \frac{1}{x

[NTG-context] \doteq math symbol is hidden in standalone minimals

2012-04-03 Thread Jaroslav Hajtmar
0,102 \cdot \frac{2 \cdot F \cdot \sin\frac{θ}{2}}{d^2} \doteq 0,1891 \cdot \frac{F}{d^2} \stopformula \stoptext Thanx Jaroslav Hajtmar ___ If your question is of interest to others as well, please add an entry to

Re: [NTG-context] "overscored" or "overlined" text … (or whatever it should be called)

2012-01-25 Thread Aditya Mahajan
, \strike{two}too! \stoptext Don't use {... \over ...} as it will mess up the calculation of math style. \frac{...}{...} is more robust. Aditya ___ If your question is of interest to others as well, please a

[NTG-context] formulas (display math) and grid

2012-01-24 Thread Peter Park Nelson
tufte\par \placeformula\startformula q = \delta \frac{\partial p}{\partial x} = \delta(\phi) p_{vsat}(\theta) \frac{\partial \phi}{\partial x} = \left[ \frac{\delta_a}{\mu(\theta)} p_{vsat}(\theta) \right] \frac{\partial \phi}{\partial x} \stopformula \input tufte\par Thanks, -- Peter Park Nelson

[NTG-context] Broken Nightly (2012.01.23)

2012-01-24 Thread Kip Warner
u want to edit file Source/Terms_and_Concepts/Terms_and_Concepts.tex at line 120 The line it is referring to is the last line of the following code snippet: ... \placeformula[formula:Verhulst equation] \startformula \math{P(t) = \frac{K P_0 {\it e}^{rt}} {K + P_0({\it e}^{r

[NTG-context] Passing TeX parameters to the lua functions

2011-12-05 Thread Jaroslav Hajtmar
nction testfun(param) debug:write(param) -- tex.print(param) end \stopluacode \def\testmac#1{\directlua{testfun('#1')}} \starttext $\frac{x_\alpha+y_\beta}{z_\gamma}$ \testmac{\frac{x_\alpha+

Re: [NTG-context] [solved] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled

2011-12-04 Thread Paul Menzel
Am Sonntag, den 04.12.2011, 09:52 +0100 schrieb Wolfgang Schuster: > Am 03.12.2011 um 19:56 schrieb Paul Menzel: > > using the following minimal example > > > >\starttext > >Using \type{\choose} in text $n \choose \frac{n}2$. > > > >

Re: [NTG-context] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled

2011-12-04 Thread Wolfgang Schuster
Am 03.12.2011 um 19:56 schrieb Paul Menzel: > Dear ConTeXt folks, > > > using the following minimal example > >\starttext >Using \type{\choose} in text $n \choose \frac{n}2$. > >\startformula >n \choose \frac{n}2 >

Re: [NTG-context] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled

2011-12-03 Thread dalyoung
Dear Paul, > using the following minimal example > >\starttext >Using \type{\choose} in text $n \choose \frac{n}2$. > Please try $\displaystyle{n \choose \frac{n}2}$. It is working for me. I hope it is what you are looking for. best reg

[NTG-context] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled

2011-12-03 Thread Paul Menzel
Dear ConTeXt folks, using the following minimal example \starttext Using \type{\choose} in text $n \choose \frac{n}2$. \startformula n \choose \frac{n}2 \stopformula \CONTEXT\ \contextmark\ \contextversion\ with \texenginename

Re: [NTG-context] Fonts in Mk IV -- \definefontalternative documentation?

2011-11-11 Thread Christian
s,palt=yes,tlig=yes,trep=yes,init=yes,size=yes] %some default features \definefontfeature[frac][default][frac=yes] % opentype 'frac' feature for nice fractions \definefontfeature[sups][default][sups=yes] \definefontfeature[onum][default][onum=yes] % old-style figures \definefontfeatur

[NTG-context] \unit problem

2011-11-03 Thread Romain Diss
\unit{crap} 29: 30 \unit{AC} 30: $\frac{10 \unit{m/s}}{20 \unit{m/s}} $ 31: {\ss 30 \unit{kilo pascal square meter / second kelvin}} 32: \unit{123.22^-3 km/s} 33: \unit{123.22e-3 km/s} 100: \unit{10 mm} 101: \unit{10 km} 102: \unit{10,2 mA} 103: \unit{123 kA} 104: \unit{0,001 MA} 105: \unit{1 dal}

Re: [NTG-context] handling fonts with missing math (was: math signs in itemize)

2011-09-27 Thread Hans Hagen
issing $\bullet$ and one can always use $\frac{\text{1}}{\text{2}}$ or something similar :). there is some fall back mechanism that does that but as soon as one defined his/her own typescript that can i

Re: [NTG-context] math signs in itemize

2011-09-26 Thread R. Ermers
Thanks all, for your reactions. I tried them all, but the process still stops at the \frac, which I changed now into \frac{1}{40}, whatever I do. The gentium font does not load properly; the file is typeset in Times instead. I get these strange references to gentium instead. Regards, Robert

Re: [NTG-context] math signs in itemize

2011-09-26 Thread Khaled Hosny
On Mon, Sep 26, 2011 at 11:31:09AM +0200, Paul Menzel wrote: > Am Montag, den 26.09.2011, 11:01 +0200 schrieb Wolfgang Schuster: > > \definefontfeature[frac][frac=yes,script=latn] > > > > \setupbodyfont[cambria] > > Is there a font in Standalone which can be used to

Re: [NTG-context] math signs in itemize

2011-09-26 Thread Paul Menzel
Am Montag, den 26.09.2011, 11:01 +0200 schrieb Wolfgang Schuster: > \definefontfeature[frac][frac=yes,script=latn] > > \setupbodyfont[cambria] Is there a font in Standalone which can be used to demonstrate the behavior? > \starttext > 1/40 {\setff{frac}1/40} \m{\frac{1}{40}} Wit

Re: [NTG-context] math signs in itemize

2011-09-26 Thread Wolfgang Schuster
Am 26.09.2011 um 10:49 schrieb Alan Braslau: > On Mon, Sep 26, 2011 at 09:34:45AM +0200, Wolfgang Schuster wrote: >>>> Any suggestions? >>> >>> Use text mode fractions! \frac{1}{40}. >> >> This is still typeset in math mode. A alternative is to

Re: [NTG-context] math signs in itemize

2011-09-26 Thread Alan Braslau
On Mon, Sep 26, 2011 at 09:34:45AM +0200, Wolfgang Schuster wrote: > >> Any suggestions? > > > > Use text mode fractions! \frac{1}{40}. > > This is still typeset in math mode. A alternative is to write the fraction as > “1/40”. "¼÷10", "0.025&qu

Re: [NTG-context] math signs in itemize

2011-09-26 Thread Wolfgang Schuster
y suggestions? > > Use text mode fractions! \frac{1}{40}. This is still typeset in math mode. A alternative is to write the fraction as “1/40”. Wolfgang ___ If your question is of interest to others as well, please add

[NTG-context] handling fonts with missing math (was: math signs in itemize)

2011-09-25 Thread Mojca Miklavec
some font doesn't provide accompanying math glyphs instead of giving up in the middle of the run? Of course that will give suboptimal result (in particular everything inside $math$ will be in LM as opposed to original font), but at least it won't complain about a missing $\bullet$ and one ca

Re: [NTG-context] math signs in itemize

2011-09-25 Thread Aditya Mahajan
On Mon, 26 Sep 2011, R. Ermers wrote: My one and only math item -- $\frac1{40}$ -- does cause a problem though. Apparently there is no math fallback. Hard to say without an example. Any suggestions? Use text mode fractions! \frac{1}{40}. Aditya

[NTG-context] Problem with integral limits with Pagella

2011-08-03 Thread Marcin Borkowski
Hi, this gives a very bad result (the limits overlap the integral sign): \usetypescript[pagella] \setupbodyfont[pagella] \starttext \startformula \int_a^b\frac{dx}{x^2+1} \stopformula \stoptext A similar thing happens with termes, but with LM it's okay. Am I doing something

Re: [NTG-context] beta

2011-06-11 Thread Otared Kavian
er per second} > 10 \su{cubic meter / second} > $10 \su{cubic meter / second}$ > 30 \su{kilo pascal } > 30 \su{kilo pascal square meter / second} > 30 \su{kilo pascal square meter / kelvin second} > \su{30 kilo pascal square meter / kelvin second} > $30 \su{kilo pascal square m

[NTG-context] beta

2011-06-11 Thread Hans Hagen
} 30 \su{kilo pascal square meter / second} 30 \su{kilo pascal square meter / kelvin second} \su{30 kilo pascal square meter / kelvin second} $30 \su{kilo pascal square meter / kelvin second }$ 30 \su{crap} 30 \su{AC} $ \frac{10 \su{m/s}}{20 \su{m/s}} $ {\ss 30 \su{kilo pascal square meter / second

Re: [NTG-context] math: too big space between function and argument

2011-05-25 Thread Paul Menzel
> > %D The \type{\left} and \type{\right} generate a math atom of type inner, > %D while for math sets, we want a math open atom. To see the difference, > %D consider > %D > %D \startbuffer > %D \startformula > %D 2\left(\frac {3}{4} \right) \qquad \hbox{ vs } \qquad >

Re: [NTG-context] math: too big space between function and argument

2011-05-24 Thread Aditya Mahajan
not viewable now. %D The \type{\left} and \type{\right} generate a math atom of type inner, %D while for math sets, we want a math open atom. To see the difference, %D consider %D %D \startbuffer %D \startformula %D 2\left(\frac {3}{4} \right) \qquad \hbox{ vs } \qquad %D 2\biggl( \frac {3}{4

Re: [NTG-context] [t-rst] inclusion into Minimals, i. e. installation using `./first-setup.sh --extras='t-rst'`

2011-05-08 Thread Marco
'stuff', 'for', 'demonstration', } local function UpdateProgressBar(bar) local oldFrac = gtk.progress_bar_get_fraction(bar) local frac= 1/#List if (oldFrac + frac >= 1) then frac = 0 oldFrac = 1 gtk.main_quit() e

[NTG-context] AMSTeX compatibility: `\dotsb` is not defined

2011-05-03 Thread Paul Menzel
+ 3 + \dotsb + n = \frac{n}{2} (n + 1) \stopformula \stoptext This is the error. […] system > begin file dotsb.tex at line 1 ! Undefined control sequence. system > tex > error on line 5 in file dotsb.tex: Undefined

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Hans Hagen
On 26-4-2011 5:17, Matthieu Stigler wrote: MTXrun | current version: 2009.11.26 16:2 that's rather old for a luatex/context combination on the wiki you can find how to install minimals (takes a few minutes only, no compilation needed) Hans -

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Matthieu Stigler
compile a file with the code you sent... you didn't? Would you be so nice and send complete file, so I can check what is wrong? I saw also that, as you mention, context has a \frac: http://wiki.contextgarden.net/Math_with_newmat indeed, \frac is already there for a long time (ams compatible c

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Andreas Harder
; ok, so I was using the right compiler I get a mystake while trying to > compile a file with the code you sent... you didn't? Would you be so nice and > send complete file, so I can check what is wrong? > > >>> I saw also that, as you mention, context has a \frac:

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Matthieu Stigler
file, so I can check what is wrong? I saw also that, as you mention, context has a \frac: http://wiki.contextgarden.net/Math_with_newmat indeed, \frac is already there for a long time (ams compatible command) btw, in mkiv there is no m-newmath I tried then to simply add \usemodule[newm

Re: [NTG-context] Grid typesetting and inline math

2011-04-26 Thread Christoph Redecker
described in details.pdf, and I want halfline spacing around formulas in text, because a full line is definitely too much. This is what I'm compiling: \setupbodyfont[10pt,serif] % should be lm? \setuplayout[grid=yes] \setuptextformulas[step=halfline] \starttext \showgrid Testing inline math:

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Hans Hagen
linux ubuntu). no, use the 'context' command as texexec is for mkii I saw also that, as you mention, context has a \frac: http://wiki.contextgarden.net/Math_with_newmat indeed, \frac is already there for a long time (ams compatible command) btw, in mkiv there is no m-newmath

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Matthieu Stigler
s you mention, context has a \frac: http://wiki.contextgarden.net/Math_with_newmat I tried then to simply add \usemodule[newmat] and compile with context, but did not work... Code below, error message below below... Thanks a lot Matthieu Code: \usemodule[newmat] \starttext \setupMPpage[o

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Hans Hagen
"$\sigma_t$") scaled 1.00, (0, 10)); label.top(textext("$\displaystyle \frac{\sigma_t}{a}$") scaled 1.00, (1, 1)); works ok (only tested mkiv); also \frac

[NTG-context] Context and metapost: using \frac

2011-04-26 Thread mat
Hi I am using context to run a metapost graph. I am however unable to insert a label with \frac, since this is not pure Tex but Latex. This seems to be a known problem for metapost: -Seems for metapost only, one should add %&latex (http://ryanmlayer.wordpress.com/tag/metapost/). -I saw

Re: [NTG-context] Grid typesetting and inline math

2011-04-21 Thread Christoph Redecker
ggestion! With grid=on, I get a different result, but it's not better. Code: Testing inline math: \gform{x_2 = \sqrt{\frac{a}{b_2}}}. The following line should be seperated from this one with half a line, but it isn't. In this case, there is no space and the root sign reaches deeply int

Re: [NTG-context] Grid typesetting and inline math

2011-04-20 Thread Christoph Redecker
Thanks for the suggestion! With grid=on, I get a different result, but it's not better. Code: Testing inline math: \gform{x_2 = \sqrt{\frac{a}{b_2}}}. The following line should be seperated from this one with half a line, but it isn't. In this case, there is no space and the root si

Re: [NTG-context] Grid typesetting and inline math

2011-04-20 Thread Khaled Hosny
definitely too much. This is what I'm compiling: > > \setupbodyfont[10pt,serif] % should be lm? > \setuplayout[grid=yes] > \setuptextformulas[step=halfline] > \starttext > \showgrid > Testing inline math: \gform{x_2 = \frac{a}{b}}. The following line > should be seperated from t

[NTG-context] Grid typesetting and inline math

2011-04-20 Thread Christoph Redecker
tuptextformulas[step=halfline] \starttext \showgrid Testing inline math: \gform{x_2 = \frac{a}{b}}. The following line should be seperated from this one by half a line, but it isn't. Testing inline math: \gform[-]{x_2 = \frac{a}{b}}. The following line should be seperated from this one by

Re: [NTG-context] writing physical quantities in maths mode

2011-03-11 Thread Mojca Miklavec
} (or \text{force}_{\text{G}}) With \rm you stay in math mode, but use roman. You should not use \rm for "force" since you would get mathematical spacing instead of proper kerning. > \startformula > {\forceQA \over \massQA} = \accelerationQA > \stopformula Try to use \frac{}{} i

Re: [NTG-context] grid=verytolerant causes overlapping

2011-02-11 Thread Andreas Harder
efined verytolerant in order to get some fractions on grid. \definegridsnapping[verytolerant][maxdepth:1.6,maxheight:1.4,strut] \setuplayout[grid=verytolerant] % \setuplayout[grid=tolerant] \setupbodyfont[palatino] \starttext test\crlf $b = \frac p q$\crlf test \stoptext Andreas ___

<    1   2   3   4   5   6   7   8   >