[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

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

2013-02-06 Thread Troy Henderson
,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\frac{1}{6}x

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

2013-02-06 Thread Aditya Mahajan
\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}{4}\right

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

2013-02-06 Thread Aditya Mahajan
\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\cdot\frac{2}{3

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

2013-02-06 Thread Aditya Mahajan
] \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)$ \NC \NR

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-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, Roland

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 interested

Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Wolfgang Schuster
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)) + \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

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 \dfrac

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 Wolfgang Schuster
. 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 (cannot check right now), that the code in MkII used \genfrac

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

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 rule

[NTG-context] Math typesetting problems

2013-01-27 Thread Janne Junnila
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. \startformula -\frac

Re: [NTG-context] Math typesetting problems

2013-01-27 Thread Roland Thiers
to 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] 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

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

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] 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 k...@thevertigo.com: 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

[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

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 mb...@wmi.amu.edu.pl 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

[NTG-context] Odd bug with \startitemize

2012-11-18 Thread Rogers, Michael K
.) 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 - \frac{2}{n}, n \in \naturalnumbers

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

2012-11-17 Thread Otared Kavian
(a): ···date: 2012-11-14, Wednesday···from: Marcin Borkowski··· Dnia 2012-11-10, o godz. 03:23:11 Marcin Borkowski mb...@wmi.amu.edu.pl 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-16 Thread Marcin Borkowski
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

[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] vertical alignment problem in column items

2012-11-16 Thread Otared Kavian
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 \naturalnumbers\}$ \item $ \reals

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

2012-11-14 Thread Marcin Borkowski
Dnia 2012-11-10, o godz. 03:23:11 Marcin Borkowski mb...@wmi.amu.edu.pl 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}$. \stopitemize

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

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

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

2012-11-14 Thread Herbert Voss
,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. Is it a feature or a bug? Hi, could anybody look into it? I tried also \smash-ing the formulae

[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-26 Thread Jeong Dal
(\\frac{1}{2}{\\bf r}_1 \\rightarrow {\\bf r}_1 \\quad\\Rightarrow\\quad) matrixfunction.rowMult(mat, 1, 1/2) context.NC() matrixfunction.print_matrix(mat) context.NR() context.NC() context(-2{\\bf r}_1 + {\\bf r}_4 \\rightarrow {\\bf r}_4 \\quad\\Rightarrow\\quad) matrixfunction.rowMultSum(mat, 4

Re: [NTG-context] \everymath

2012-09-16 Thread Wolfgang Schuster
% to prevent error message from \displaymath \starttext \mathematics {\frac{1}{2}} \displaymathematics{\frac{1}{2}} \inlinemathematics {\frac{1}{2}} \displaymath{\frac{1}{2}} \inlinemath {\frac{1}{2}} \textmath {\frac{1}{2}} \stoptext Wolfgang

[NTG-context] \abovedisplayskip and \belowdisplayskip

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

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

2012-07-28 Thread Marcin Borkowski
)}. 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~prawdopodobieństwem~\math{\frac{5

[NTG-context] startalign broken in latest checkout

2012-07-04 Thread Prashanth
; \NC h \NC= ut + \frac12 gt^2 \NR 6 \stopalign \stopformula 7 8 \stoptext 9 \frac ...acmode \expandafter \math_fractions_auto \or \expandafter \math_fra... l.5 \NC h \NC= ut + \frac 12 gt^2 \NR ! Extra

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

2012-06-29 Thread Marcin Borkowski
{p=\frac{7}{12}}. Zatem gracz~I powinien wybrać~\math{1} z~prawdopodobieństwem \math{\frac{7}{12}}, a~\math{2} z~prawdopodobieństwem~\math{\frac{5}{12}}. Jego przeciętna wygrana wynosi \math{-2\frac{7}{12}+3\frac{5}{12}=3\frac{7}{12}-4\frac{5}{12}=\frac{1}{12

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 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

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

2012-05-27 Thread luigi scarso
][palatino] \setupbodyfont[palatino] \starttext \startformula \int_0^\infty \frac{1}{x} {\rm d} x \stopformula \stoptext confirmed (again) -- luigi ___ If your question is of interest to others as well, please

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

2012-05-27 Thread luigi scarso
? \definetypeface[palatino][rm][serif][palatino] \definetypeface[palatino][mm][math][palatino] \setupbodyfont[palatino] \starttext \startformula \int_0^\infty \frac{1}{x} {\rm d} x \stopformula \stoptext confirmed (again) Stupid question: why we are not using texgyrepagella-math-regular.otf

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

2012-05-27 Thread luigi scarso
(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} {\rm d} x \stopformula \stoptext confirmed

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

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

2012-01-25 Thread Aditya Mahajan
Works in text, \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

[NTG-context] Broken Nightly (2012.01.23)

2012-01-24 Thread Kip Warner
? E You 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

[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] Passing TeX parameters to the lua functions

2011-12-05 Thread Jaroslav Hajtmar
) 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+y_\beta}{z_\gamma}} \stoptext

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 \stopformula \CONTEXT\ \contextmark

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$. \startformula n \choose \frac{n}2

[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] 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 regards, Dalyoung

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

2011-11-11 Thread Christian
=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 \definefontfeature[lnum][default][lnum=yes

[NTG-context] \unit problem

2011-11-03 Thread Romain Diss
: 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} 106: \unit{2.21

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

2011-09-27 Thread Hans Hagen
$ 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 interfere Hans

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

2011-09-26 Thread Mojca Miklavec
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 can always use $\frac{\text{1

Re: [NTG-context] math signs in itemize

2011-09-26 Thread Wolfgang Schuster
Am 26.09.2011 um 00:23 schrieb 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

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. How about: \definetypeface [xits] [mm] [math] [xits] [default

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 write the fraction as “1/40”. ¼÷10, 0.025

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}} With `{\setff{frac}1/40

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 demonstrate the behavior? XITS

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-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

Re: [NTG-context] beta

2011-06-12 Thread Otared Kavian
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 kelvin

[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
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} \biggr) %D \stopformula %D %D and %D %D \startformula %D \Pr\left(\frac {3}{4} \right) \qquad \hbox{ vs } \qquad %D \Pr

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

2011-05-24 Thread Aditya Mahajan
is 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
frac= 1/#List if (oldFrac + frac = 1) then frac = 0 oldFrac = 1 gtk.main_quit() end gtk.progress_bar_set_fraction(bar, oldFrac + frac) end function Progressbar() local progress = gtk.progress_bar_new() gtk.progress_bar_set_text(progress

[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 control

[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 also

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

2011-04-26 Thread Hans Hagen
$) 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 is available in context Hans - Hans

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

2011-04-26 Thread Matthieu Stigler
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[offset

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

2011-04-26 Thread Hans Hagen
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 I tried

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

2011-04-26 Thread Christoph Redecker
, 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: \gform{x_2 = \frac{a}{b

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

2011-04-26 Thread Matthieu Stigler
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[newmat] and compile

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

2011-04-26 Thread Andreas Harder
? 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 command) btw, in mkiv there is no m-newmath I

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

2011-04-26 Thread Matthieu Stigler
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 command) btw, in mkiv

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] Grid typesetting and inline math

2011-04-21 Thread Christoph Redecker
=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 into the following line. Regards

[NTG-context] Grid typesetting and inline math

2011-04-20 Thread Christoph Redecker
=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 half a line, but it isn't

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

2011-04-20 Thread Khaled Hosny
,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 this one by half a line, but it isn't. Testing inline math: \gform[-]{x_2 = \frac{a}{b

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 sign reaches

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

2011-03-11 Thread Mojca Miklavec
, 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{}{} instead of \over. There are discussions about disabling \over in luatex (or at least

Re: [NTG-context] odd end-of-line error w/ Minion Pro

2011-02-11 Thread Christian
][default][dlig=yes] % Discretionary Ligatures: Activates uncommon ligatures \definefontfeature[frac][default][frac=yes,numr=yes] % Fractions e.g. 3/4 \definefontfeature[pnum][default][pnum=yes] % Proportional Figures \definefontfeature[tnum][default][tnum=yes] % Tabular Figures \definefontfeature[hist

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

2011-02-11 Thread Andreas Harder
,maxheight:1.4,strut] \setuplayout[grid=verytolerant] % \setuplayout[grid=tolerant] \setupbodyfont[palatino] \starttext test\crlf $b = \frac p q$\crlf test \stoptext Andreas ___ If your question is of interest

Re: [NTG-context] Inconsistent handling of ligatures

2011-02-10 Thread Christian
=yes,trep=yes,init=yes,size=yes] \definefontfeature[dlig][default][dlig=yes] % Discretionary Ligatures: Activates uncommon ligatures \definefontfeature[frac][default][frac=yes,numr=yes] % Fractions e.g. 3/4 \definefontfeature[pnum][default][pnum=yes] % Proportional Figures \definefontfeature[tnum

Re: [NTG-context] math: `\overbar` with fractions and subscripts

2011-02-07 Thread Paul Menzel
Dear Otared, Am Freitag, den 04.02.2011, 20:45 +0100 schrieb Otared Kavian: I think one should use \overline instead of \overbar in your example. For me the following works fine with mkiv: \starttext \startformula \overline{q} = \frac{\overline{q}}{\overline{α_0

[NTG-context] math: `\overbar` with fractions and subscripts

2011-02-04 Thread Paul Menzel
Dear ConTeXt folks, I do have some problem with the following example (also attached, executed with `context test`). \starttext \startformula \overbar{q} = \frac{\overbar{q}}{\overbar{α_0}} \stopformula In text $\overbar{q} = \frac{\overbar{q}}{\overbar

Re: [NTG-context] math: `\overbar` with fractions and subscripts

2011-02-04 Thread Otared Kavian
Hi Paul, I think one should use \overline instead of \overbar in your example. For me the following works fine with mkiv: \starttext \startformula \overline{q} = \frac{\overline{q}}{\overline{α_0}} \stopformula In text $\overline{q} = \frac{\overline{q

[NTG-context] Wrong location of mframed

2011-01-22 Thread Aditya Mahajan
Hi, In MkIV, \mframed does not place the result in the middle of the math axis. Consider, \starttext \startformula f(x) = \mframed{\frac{1}{2}}^{\mframed{\frac{1}{2}}} \stopformula \stoptext The MkII and MkIV results are attached. Adityaattachment: test-mkii.pngattachment: test

Re: [NTG-context] Issues with cross reference

2010-12-12 Thread Hans Hagen
On 11-12-2010 1:58, views63 wrote: Hi all, cross reference is not worked in latest beta (MkIV) example: \starttext \placeformula[f] \startformula {\bf d}(t)=(1-t)^2{\bf b}_{0,0}+2(1-t)t\Big[\frac{1}{2}{\bf b}_{0,1}+\frac{1}{2}{\bf b}_{1,0}\Big]+t^2{\bf b}_{1,1}. \stopformula see (\in[f

Re: [NTG-context] Issues with cross reference

2010-12-12 Thread views63
\Big[\frac{1}{2}{\bf b}_{0,1}+\frac{1}{2}{\bf b}_{1,0}\Big]+t^2{\bf b}_{1,1}. \stopformula see (\in[f]) \stoptext it took me a while to figure out that I had rename a low level function wrongly .. fixed asap

[NTG-context] Issues with cross reference

2010-12-10 Thread views63
Hi all, cross reference is not worked in latest beta (MkIV) example: \starttext \placeformula[f] \startformula {\bf d}(t)=(1-t)^2{\bf b}_{0,0}+2(1-t)t\Big[\frac{1}{2}{\bf b}_{0,1}+\frac{1}{2}{\bf b}_{1,0}\Big]+t^2{\bf b}_{1,1}. \stopformula see (\in[f]) \stoptext -- Best regards, Huang

Re: [NTG-context] Using Bold SmallCaps in LuaTeX - typescript

2010-11-29 Thread Florian Wobbe
][default][dlig=yes] % Discretionary Ligatures: Activates uncommon ligatures \definefontfeature[frac][default][frac=yes,numr=yes] % Fractions e.g. 3/4 \definefontfeature[sups][default][sups=yes] % Superscript \definefontfeature[subs][default][subs=yes] % Subscript and access the font features

Re: [NTG-context] Using Bold SmallCaps in LuaTeX - typescript

2010-11-29 Thread Ch. B.
be accessed via \setff{feature}, I guess. Yes, you can define for instance \definefontfeature[dlig][default][dlig=yes] % Discretionary Ligatures: Activates uncommon ligatures \definefontfeature[frac][default][frac=yes,numr=yes] % Fractions e.g. 3/4 \definefontfeature[sups][default][sups=yes

Re: [NTG-context] Using Bold SmallCaps in LuaTeX - typescript

2010-11-29 Thread Khaled Hosny
\definefontfeature[frac][default][frac=yes,numr=yes] % Fractions e.g. 3/4 \definefontfeature[sups][default][sups=yes] % Superscript \definefontfeature[subs][default][subs=yes] % Subscript and access the font features with \setff{dlig}, \setff{subs} etc. Florian Wonderfull! I'm starting to get

Re: [NTG-context] Using Bold SmallCaps in LuaTeX - typescript

2010-11-29 Thread Ch. B.
\definefontfeature[dlig][default][dlig=yes] % Discretionary Ligatures: Activates uncommon ligatures \definefontfeature[frac][default][frac=yes,numr=yes] % Fractions e.g. 3/4 \definefontfeature[sups][default][sups=yes] % Superscript \definefontfeature[subs][default][subs=yes

[NTG-context] OpenType Math

2010-10-13 Thread Andreas Harder
Hi all, there are still some problems with OpenType math. I've collected some: % \setupbodyfont[palatino] % reference % \setupbodyfont[cambria] % \setupbodyfont[euler] \setupbodyfont[asana] \startTEXpage[offset=1ex] $n\choose k$ \crlf $1+\cdots+n$ \crlf $1+\frac{a}{b}$ \crlf $(a+b

Re: [NTG-context] rotated (landscape) pages in portrait document

2010-10-03 Thread Mojca Miklavec
{lm}\NR \NC 0 \NC\NC 0\NC\NC s \NC \frac{1}{2}\sqrt{\frac{ 1}{π}} \NR \NC 1 \NC\NC 0\NC\NC p_z \NC \frac{1}{2}\sqrt{\frac{ 3}{π}}\frac{z}{r} \NR \NC 1 \NC\NC \pm1 \NC\NC p_x \NC \frac{1}{2}\sqrt{\frac{ 3}{π}}\frac{x}{r} \NR \NC

<    1   2   3   4   5   6   7   8   >