per sekund $ \frac{d\nu}{dt} $ Absolut fel $ \delta \nu'=\sqrt{\nu} $
a b c d
\stopTSV
\processseparatedfile[TSV][sndfall.dat]
\eTABLE
\stoptext
TeXExec | processing document 'tsvmall.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing
) -- (1.5,0) node[right] {$x$} coordinate(x axis);
\draw[-] (0,-1.5) -- (0,1.5) node[above] {$y$} coordinate(y axis);
\foreach \x/\xtext in {-1, -.5/-\frac{1}{2}, 1}
\draw[xshift=\x cm] (0pt,1pt) -- (0pt,-1pt) node[below,fill=white]
{$\xtext$};
\foreach \y/\ytext in {-1, -.5/-\frac{1}{2
\{$1\}
matchbrace:\{#\}=\{#\}
matchbrace:\\Y1=\\$1
Save it as footnote.gema and then run
gema -f footnote.gema tex-file output-file
It handles these expressions correctly:
\footnote{{This $\frac{a}{b^{c+d}}$ is a strange footnote}}
\footnote{{This $\frac{a}{b^{c+d}}$ is a strange footnote
{{something}} to \footnote{something}
:\\footnote\W\{\{matchbrace\}\}=\\footnote\{$1\}
matchbrace:\{#\}=\{#\}
matchbrace:\\Y1=\\$1
Save it as footnote.gema and then run
gema -f footnote.gema tex-file output-file
It handles these expressions correctly:
\footnote{{This $\frac{a}{b^{c+d
[EMAIL PROTECTED] wrote:
Hi everyone,
This topic has already been discussed on the list, but I didn't clearly
understand the conclusion, so I'm asking again... It is not clear to me why
the
following
\everymath{\displaystyle}
\starttext
\startformula \frac{1}{A'} \stopformula
$\frac
Hi Steffen,
I don't really know regex, but how does your double brace work with
the following
\footnote{{This $\frac{a}{b^{c+d}}$ is a strange footnote}}
note the double }} in the math formula.
/Micke P
On Jan 21, 2008 3:45 PM, Steffen Wolfrum [EMAIL PROTECTED] wrote:
Hi,
I would like
{{This $\frac{a}{b^{c+d}}$ is a strange footnote}}
note the double }} in the math formula.
/Micke P
On Jan 21, 2008 3:45 PM, Steffen Wolfrum [EMAIL PROTECTED]
wrote:
Hi,
I would like to use in my documents double braces for the footnote –
for easily matching entire footnotes with RegEx (thus
Sorry, I don't understand what the problem is!
I have a problem with
\startitemize[columns,a]
\item $a_n=2+\frac{1}{n+1}$
\item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$
\stopitemize
Hi,
this did not wotk because the second formula is than the first
2007/10/30, Wolfgang Werners-Lucchini [EMAIL PROTECTED]:
Sorry, I don't understand what the problem is!
It is related to ConTeXt's multicolumn Output Routine.
I have a problem with
\startitemize[columns,a]
\item $a_n=2+\frac{1}{n+1}$
\item $a_n=\frac{(-1)^n}{\sqrt{n}}-3
I have a problem with
\startitemize[columns,a]
\item $a_n=2+\frac{1}{n+1}$
\item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$
\stopitemize
Hi,
this did not wotk because the second formula is than the first
and
-^ (what
{\vphantom{\big)}} (replace \big by \bigg, \Big, to suit
your need). If you really want something big you can try
\def\bigmathstrut{\vphantom{\frac{\displaystyle\sum_{(}^{)}}{\displaystyle\sum_{)}^{(}}}
Usually things do not grow bigger than this.
Aditya
Hallo,
I have a problem with
\startitemize[columns,a]
\item $a_n=2+\frac{1}{n+1}$
\item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$
\stopitemize
which is NOT in columns.
\startitemize[columns,a]
\item one
\item two
\stopitemize
works!
How can I solve this?
Wolfgang
2007/10/29, Wolfgang Werners-Lucchini [EMAIL PROTECTED]:
Hallo,
I have a problem with
\startitemize[columns,a]
\item $a_n=2+\frac{1}{n+1}$
\item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$
\stopitemize
which is NOT in columns.
\startitemize[columns,a]
\item one
\item two
\stopitemize
works
\vec u = 0
\stopformula
\placeformula[eq:NS]
\startformula
\frac{D\vec u}{Dt} =
\OnSteps[2-...][reserve]{-{\red \frac1\rho \vec\nabla p}}
\OnSteps[3-...][reserve]{+\;{\green \vec g}}
\OnSteps[4-...][reserve]{+\;{\blue \frac1\rho \vec\nabla\cdot S}}
\stopformula
\vec u = 0
\stopformula
\placeformula[eq:NS]
\startformula
\frac{D\vec u}{Dt} =
\OnSteps[2-...][reserve]{-{\red \frac1\rho \vec\nabla p}}
\OnSteps[3-...][reserve]{+\;{\green \vec g}}
\OnSteps[4-...][reserve]{+\;{\blue \frac1\rho \vec\nabla\cdot S}}
\stopformula
. How can I force the sub formula numbering to be
right aligned ?
Thanks
Wim
\def\ms{\,}
\starttext
\placeformula[calcb-chapter4-eqn2]
\startformula
f(x) = \sum_{n = - \infty}^{+\infty} c_{n} e^{\displaystyle i n \frac{\pi}{L}
x} \quad \text{,} \quad c_{n} = \frac{1}{2L} \int\limits_{-L}^{L} f(x
}^{+\infty} c_{n} e^{\displaystyle i n
\frac{\pi}{L} x} \quad \text{,} \quad c_{n} = \frac{1}{2L}
\int\limits_{-L}^{L} f(x) \ms e^{- \displaystyle in\frac{\pi}{L} x }
dx
\stopformula
Formula number is not right aligned with the previous formula
\placesubformula
\startformula
\startalign[n=2,m=2
, treated as zero.
to be read again
\relax
\dogenfrac ...{\begingroup #4\endgroup #2#3\relax
#5}}
\mathematics #1-\relax \ifmmode #1
\else $#1$\fi
l.216 $ \frac{81}{125
}
\stopformula
If $c$ is any number other than zero, then
\placeformula[-]
\startformula
\frac ac=\frac bc.\index{equations+division}
\stopformula
\stopproperty
Where property is defined:
\defineframedtext[MyBox]
\definemeasure[BoxWidth][\textwidth]
\defineblank[BoxBlank][medium]
\setupframedtexts
On Wed, 4 Jul 2007, David Arnold wrote:
Here is another example, this time not within a block, but within an
enumeration again:
The newmat module seems to be the culprit. After loading newmat add
\unexpanded\def\frac#1#2{\mathematics{\genfrac{}{}{}\donothing{#1}{#2}}}
and it should work fine
On Wed, 4 Jul 2007, Aditya Mahajan wrote:
On Wed, 4 Jul 2007, David Arnold wrote:
Here is another example, this time not within a block, but within an
enumeration again:
The newmat module seems to be the culprit. After loading newmat add
\unexpanded\def\frac#1#2{\mathematics{\genfrac
:57 PM, Aditya Mahajan wrote:
On Wed, 4 Jul 2007, David Arnold wrote:
Here is another example, this time not within a block, but within an
enumeration again:
The newmat module seems to be the culprit. After loading newmat add
\unexpanded\def\frac#1#2{\mathematics{\genfrac{}{}{}\donothing{#1
\unexpanded\def\frac#1#2{\mathematics{\genfrac{}{}{}\donothing{#1}
{#2}}}
and it should work fine. I do not really understand why this is
failing.
Aditya,
Thanks for the reply. As far as I know, we don't explicitly import
newmat in our environment files:
trunk $ grep usemodule *
bookenv
not within a block, but
within an
enumeration again:
The newmat module seems to be the culprit. After loading newmat add
\unexpanded\def\frac#1#2{\mathematics{\genfrac{}{}{}\donothing{#1}
{#2}}}
and it should work fine. I do not really understand why this is
failing.
Aditya,
Thanks
{
a = \left(\frac{b+c}{d+e}\cr
\phantom{=~} + \frac{g}{h}\cr}
\stopformula
\stoptext
If I change \left and \right to \big, it compiles successfully. But I
think \left and \right are more convenient. Are there some solutions to
use \left and \right in this situation ?
Regards,
Xiao Jianfeng
://dl.contextgarden.net/myway/mathalign.pdf page 21.
2) It seems that \left and \right cannot be used on separate groups.
Here is a simple example:
\starttext
\placeformula \startformula
\eqalign{
a = \left(\frac{b+c}{d+e}\cr
\phantom{=~} + \frac{g}{h}\cr}
\stopformula
\stoptext
Is there another macro in Context called \frac and if so how is it
called?
I use (e)grep in this situations, it's more texnician.
luigi
___
If your question is of interest to others as well, please add an entry
Knuth defines a macro for simple fractions such as 3/4 etc. and calls
it \frac:
\def\frac#1/#2{\leavevmode
\kern.1em \raise .5ex \hbox{\the\scriptfont0 #1}%
\kern-.1em $/$%
\kern -.15em \lower .25ex \hbox{\the\scriptfont0 #2}}%
The call is e.g., \frac 3/4.
This works fine in Context. However
On 4/22/07, John R. Culleton [EMAIL PROTECTED] wrote:
Knuth defines a macro for simple fractions such as 3/4 etc. and calls
it \frac:
\def\frac#1/#2{\leavevmode
\kern.1em \raise .5ex \hbox{\the\scriptfont0 #1}%
\kern-.1em $/$%
\kern -.15em \lower .25ex \hbox{\the\scriptfont0 #2}}%
The call
On Sun, 22 Apr 2007, John R. Culleton wrote:
Knuth defines a macro for simple fractions such as 3/4 etc. and calls
it \frac:
\def\frac#1/#2{\leavevmode
\kern.1em \raise .5ex \hbox{\the\scriptfont0 #1}%
\kern-.1em $/$%
\kern -.15em \lower .25ex \hbox{\the\scriptfont0 #2}}%
The call is e.g
{-}{q_2})+q_1 \frac{dp}{dQ} - Cm_1(q_1) = 0
? X
I have this:
\usemodule[amsl]
\usemodule[newmat]
\usemodule[nath]
doesn't seem enough, and I'm sure the solution is right there :-(
tia
___
ntg-context mailing list
over a letter in math mode; in LaTeX the
| command is something like \overset{-}{q}; but ConTeXt doesn't like it:
|
| ! Undefined control sequence.
| l.1869 p(q_1 + \overset
| {-}{q_2})+q_1 \frac{dp}{dQ} - Cm_1(q_1) = 0
| ? X
|
| I have this:
|
| \usemodule
Hi all,
I cannot find how to type a bar over a letter in math mode; in LaTeX the
command is something like \overset{-}{q}; but ConTeXt doesn't like it:
! Undefined control sequence.
l.1869 p(q_1 + \overset
{-}{q_2})+q_1 \frac{dp}{dQ} - Cm_1(q_1) = 0
? X
I have
On Fri, 26 Jan 2007, Taco Hoekwater wrote:
Hubertus wrote:
Hi all again,
I try to do something like 1/2 with an upper 1 and a lower 2. The code below
still doesn't quite work.
\def\nfrac#1#2{\leavevmode\kern.1em%
\raise.5ex\hbox{\scriptsize #1}%
\kern-.1em/\kern-.15em%
Hi all again,
I try to do something like 1/2 with an upper 1 and a lower 2. The code below
still doesn't quite work.
\def\nfrac#1#2{\leavevmode\kern.1em%
\raise.5ex\hbox{\scriptsize #1}%
\kern-.1em/\kern-.15em%
\lower.25ex\hbox{\scriptsize #2}}
Help would be very much appreciated!
Hubertus wrote:
Hi all again,
I try to do something like 1/2 with an upper 1 and a lower 2. The code below
still doesn't quite work.
\def\nfrac#1#2{\leavevmode\kern.1em%
\raise.5ex\hbox{\scriptsize #1}%
\kern-.1em/\kern-.15em%
\lower.25ex\hbox{\scriptsize #2}}
Such a macro is
\nu } - \frac{1}{2} R - \Lambda g_{\mu \nu} =
\kappa T_{\mu \nu}$} ;
p := p scaled 3;
draw p withcolor red;
\stopMPcode
\stoptext
Version info
This is pdfeTeX, Version 3.141592-1.30.3-2.2 (Web2c 7.5.5)
\write18 enabled.
ConTeXt ver: 2006.11.29 09:55 MK II fmt: 2006.12.2 int: english
why one is the default value now
either.
% example code
\setupcolors[state=start]
\starttext
\startMPcode
picture p;
p := \sometxt{$R_{\mu \nu } - \frac{1}{2} R - \Lambda g_{\mu \nu} =
\kappa T_{\mu \nu}$} ;
p := p scaled 3;
draw p withcolor red;
\stopMPcode
\stoptext
]
\startsubformulas[Maxwell]
\placeformula \startformulas
\startformula \startalign
\NC \nabla\cdot\bf E \NC = \frac{\rho}{\varepsilon_0}
\NR[Maxwell 1]
\NC \nabla\times\bf E \NC = - \frac{\partial\bf B}{\partial t}
\NR[Maxwell II]
\stopalign \stopformula
, what is happening here ???
\startformula
[ {Q} , {R} ] \rightarrow \frac{1}{i \hslash} [ {Q} , {R} ]
\stopformula
\stoptext
Kind regards
Wim
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
, but the
right side with $[Q,R]$ does show, what is happening here ???
\startformula
\relax
[ {Q} , {R} ] \rightarrow \frac{1}{i \hslash} [ {Q} , {R} ]
\stopformula
\stoptext
\startformula, like most commands in context, accepts an optional
argument, so [...] immediately after \startformula
side with $[Q,R]$ does show, what is happening here ???
\startformula
[ {Q} , {R} ] \rightarrow \frac{1}{i \hslash} [ {Q} , {R} ]
\stopformula
\stoptext
Not a bug, but a price that you have to pay for having optional
parameters. Adding \relax after \startformula solves the problem.
Mojca
with $[Q,R]$ does not show, but the
right side with $[Q,R]$ does show, what is happening here ???
\startformula
\relax
[ {Q} , {R} ] \rightarrow \frac{1}{i \hslash} [ {Q} , {R} ]
\stopformula
\stoptext
Should have seen this coming. Thanks.
\startformula, like most commands
a x = b
\stopformula
\placetaggedformula[b]{*} \startformula
x = \frac {b}{a}
\stopformula
should come out as
a x = b (1)
x = b/a (*)
Notice that ( and ) correspond to left and right in setupformulas. It
should also be possible to place a tag
amsmath's
behaviour and hope that Hans can come up with the context way of doing
such things.
Occasionally, one wants to tag a formula, e.g.
\placefomrula[a] \startformula
a x = b
\stopformula
\placetaggedformula[b]{*} \startformula
x = \frac {b}{a}
\stopformula
should come out as
a x
\bigfrac{\genfrac{}{}{2pt}\displaystyle}
\starttext
\startformula
\bigfrac{100}{200} \text{ vs } \frac{100}{200}
\stopformula
\stoptext
Adjust 2pt to something that suits you.
Aditya
On Jul 2, 2006, at 4:00 AM, Taco Hoekwater wrote:
David Arnold wrote:
All,
How can I extend the main
. Anything similar in Context?
m-newmat.tex defines genfrac.
\usemodule[newmat]
\def\bigfrac{\genfrac{}{}{2pt}\displaystyle}
\starttext
\startformula
\bigfrac{100}{200} \text{ vs } \frac{100}{200}
\stopformula
\stoptext
Adjust 2pt to something that suits you.
Aditya
On Jul
?
There is a genfrac command in amslatex. Anything similar in Context?
m-newmat.tex defines genfrac.
\usemodule[newmat]
\def\bigfrac{\genfrac{}{}{2pt}\displaystyle}
\starttext
\startformula
\bigfrac{100}{200} \text{ vs } \frac{100}{200}
\stopformula
\stoptext
Adjust 2pt to something
} \text{ vs } \frac{100}{200}
\stopformula
\stoptext
Adjust 2pt to something that suits you.
Aditya
On Jul 2, 2006, at 4:00 AM, Taco Hoekwater wrote:
David Arnold wrote:
All,
How can I extend the main fraction bar in the following expression,
making it a tad longer?
Just add
\dfrac=\frac)
The most easy solutions is probably to put a \ or \, before and after
the content (if I understood your question correctly).
\dfrac{\dfrac{9+3x-2x^2}{x^2-16}}{\ \dfrac{4x^3-9x}{2x^2+5x-12}\ }.
If you use that a lot, something like \def\mainfrac#1#2{\frac{\ #1\
}{\ #2\ }} might be helpful
is not
present. \boldsymbol{\sum} does not work.
2. Does not take care of the math spacing
\formula{ a \boldsymbol{=} a } does not look correct.
3. Does not take care of delimiters
\formula { \boldsymbol{\left(}\frac 1n\right)} does not work.
4. bm.sty goes into some trouble to define bold accents. So
Hi,
I am simply trying out different math fonts available, and found
iwona-heavy to be strange. Look at the output of
\usetypescript [iwona-heavy][ec]
\setupbodyfont[iwona-heavy,ss,11pt]
\starttext
This is some test
\startformula
\Pr(A = B) = \frac 12
\stopformula
\stoptext
The math
$
\Pr(A = B) = \frac ab
$
\stoptext
The math is much bolder than the text. Is this by design?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
= \left| \frac{x^3}{3} - \frac{3}{2} x^2 \right|_0^1
+ \left| \frac {x ^3}{3} - 7 \frac{5}{2} x^2 + 6x \right|_1^2 \NR
\NC \NC = \left| - \frac{7}{6} \right| + \left|\frac{14}{3} -
\frac{23}{6}\right| = \frac{7}{6} + \frac{5}{6} = 2 \NR
\stopalign \stopformula
There is too much space
|
+ \left| \int_1^2 (x^2 -5x + 6)\, dx \right| \NR
\startintertext
Take limis of both integrals %\input tufte
\stopintertext
\NC \NC = \left| \frac{x^3}{3} - \frac{3}{2} x^2 \right|_0^1
+ \left| \frac {x ^3}{3} - 7 \frac{5}{2} x^2 + 6x \right|_1^2 \NR
\NC \NC = \left| - \frac{7
code
\def\mathrm#1{ {\rm #1}}
\def\done#1#2{ \frac{ \mathrm{d} #1}{\mathrm{d} \mathrm{#2}} }
\def\dtwo#1#2{ \frac{\mathrm{d}^{2} #1}{\mathrm{d} \mathrm{#2}^{2}} }
\starttext
Als op het tijdstip $t_{0}$ plaats $\vec{r}_{0}$ en snelheid $v_{0}$ zijn gegeven,
dan kan de plaats $\vec{r}$ van een
[varoiiintclockwise] [op] [mc] [46] [mc] [47]
\starttext
The integral equation
\startformula
\frac{d}{dt} \iiint_{\Omega} f \,dV
= \iiint_{\Omega} Q \,dV
- \oiint_{\partial\Omega} \vec J \cdot \vec{da}
\stopformula
can be written under the differential form
\startformula
\frac{\partial f}{\partial t
Conisder
\setupcolors[state=start]
\setuptyping[option=anything] %Any value that is not a valid option
% none, color, normal, commands, slanted
\starttext
\startbuffer
$\sum_{i=1}^n \frac{1}{2} n \cdot (n+1)$
\stopbuffer
\typebuffer
\stoptext
The text is typed
{
\wdiv \vec{E} = \frac{\rho}{\epsilon_{0}} \formulanumber{.a} \cr
\rot \vec{B} = \mu_{0} \:\vec{j} \subformulanumber{.b} \cr
\wdiv \vec{B} = 0 \subformulanumber{.c} \cr
\rot \vec{E} + \frac{\partial \vec{B} }{\partial t} = 0 \subformulanumber{.d} \cr}
\stopformula
How can I refer
~/Library/Fonts/WarnockPro-Regular.otf
aaltAccess All Alternates
c2scSmall Capitals From Capitals
caseCase-Sensitive Forms
cpspCapital Spacing
cswhContextual Swash
dligDiscretionary Ligatures
dnomDenominators
finaTerminal Forms
fracFractions
histHistorical
Hi all,
I use \setupindenting[medium,yes] in my document.
When I use:
\placeformula[GiPivel]
\startformula
\frac{\overrightarrow{G_iP_i}}{\Delta T} = \frac{d_i.\vec{y_i} +
\delta_i.\vec{t_i}}{\Delta T} = -\dot
,distance=5em]
\frac5{21}-\frac3{21}=\frac{5-3}{21}
\frac{2}{x+2}-\frac{x-3}{x+2}=\frac{2-(x-3)}{x+2}\\
=\frac2{21} =\frac{2-x+3}{x+2}\\
=\frac{5-x}{x+2}
\stopalign
\stopformula
\startbuffer[1]
\framed[frame=on,width=fit]
{\startformula
\eqalign{
\frac{5}{21}-\frac{3
\startalign[m=2,distance=5em]
\frac5{21}-\frac3{21}=\frac{5-3}{21}
\frac{2}{x+2}-\frac{x-3}{x+2}=\frac{2-(x-3)}{x+2}\\
=\frac2{21} =\frac{2-x+3}{x+2}\\
=\frac{5-x}{x+2}
\stopalign
\stopformula
\startbuffer[1]
\framed[frame=on,width=fit]
{\startformula
\eqalign
Hans, Taco, et al,
If I do something like this:
\placeformula[-]
\startformula
\startalign[m=2,distance=7em]
\frac5{21}-\frac3{21}=\frac{5-3}{21}
\frac{2}{x+2}-\frac{x-3}{x+2}=\frac{2-(x-3)}{x+2}\\
=\frac2{21} =\frac{2-x+3}{x+2}\\
=\frac{5-x}{x+2}
\stopalign
\stopformula
David Arnold wrote:
Hans, Taco, et al,
If I do something like this:
\placeformula[-]
\startformula
\startalign[m=2,distance=7em]
\frac5{21}-\frac3{21}=\frac{5-3}{21}
\frac{2}{x+2}-\frac{x-3}{x+2}=\frac{2-(x-3)}{x+2}\\
=\frac2{21} =\frac{2-x+3}{x+2}\\
=\frac{5-x}{x+2
All,
Anyone have a nice technique to strike out the common primes using
the color red?
\placeformula[-]
\startformula
\frac{12}{18}=\frac{2\cdot2\cdot3}{2\cdot3\cdot3}=\frac23
\stopformula
___
ntg-context mailing list
ntg-context@ntg.nl
http
The final test is:\startformula \theta = \sin^{-1} \left( \frac{a}{c} \right).\stopformulaAll done!\stoptextOn 11/22/05,
Randall Skelton [EMAIL PROTECTED] wrote:
Hi all, I have created a typescript for one of that defines the Utopia expert font along with a few others and tries to make use
\startformula
\mframed[offset=.3em,rulethickness=1pt]{
I=x-\sqrt2\,\arctan\frac{x}{\sqrt2}+C}
\stopformula
it does typeset a displayed formula. However, you could still force
displayed style by adding a \displaystyle command at the beginning of
your \mframed argument.
That's ok now
[offset=.3em,rulethickness=1pt]{a^2 + b^2 = c^2}
\stopformula
and:
\mframed[offset=.3em,rulethickness=1pt]{a^2 + b^2 = c^2}
give the same result, as in text mode.
Is there a way to get, for example, the output of:
\startformula
I=x-\sqrt2\,arctg\frac{x}{\sqrt2}+C
\stopformula
boxed?
Thank you
Jilani,
Thank you for your answer. I seems that \startformula .. \stopformula
doesn't have any effect to produce a dispaly mode formula.
When I try:
\startformula
\mframed[offset=.3em,rulethickness=1pt]{
I=x-\sqrt2\,\arctan\frac{x}{\sqrt2}+C}
\stopformula
it does typeset a displayed
While I'm thinking about it, here are a couple more things from LaTeX's
math stuff that might be useful to include in m-newmat:
The \stackrel command is listed as a disguise for plain TeX's \buildrel,
much like \frac is a disguise for \over:
\def\stackrel#1#2{\mathrel{\mathop{#2}\limits
Here a short example how to use math with this module(you can use inline
math with $ some math $ ):
\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
you've already set the main language (after that
language is used for local language switching)
\setuppapersize[A4]
\setupbodyfont[ss]
\starttext
Some text, we can read it without serifs. But the formula: $ \frac{1}{x-2} $
is not in the same font.
\stoptext
for that you need a ss math font
]
\definefontsynonym [MathRoman] [Sans]
\definefontsynonym [MathItalic] [SansItalic]
\stopfontclass
% initialize the typeface
\setupbodyfont[modern,ss]
\starttext
Some text, we can read it without serifs. But the formula: $ \frac{1}{x-2}
$ is not in the same font.
\stoptext
you
[ss]
\starttext
Some text, we can read it without serifs. But the formula: $ \frac{1}{x-2} $
is not in the same font.
\stoptext
BTW is there another way to have units like g/(cm^3) as to set them as
tex-formula. I dont no if the module units do such things.
Thanks,
Kai
Friday, December 3, 2004 David Munger wrote:
Hello Giuseppe,
I think I found a bug in the nath module. Try the following:
\usemodule[nath]
\starttext
\[ e^{f(x)} \]
\stoptext
And by the way, fractions in exponents are typeset too big:
\usemodule[nath]
\starttext
\[ e^{\frac{1
, and the backslashes were printed, and didn't act as escapes.
Am I missing something in the correct usage, or is support incomplete?
This is a sample file, showing how I've been trying to use it:
\useXMLfilter[mml]
\starttext
\startXMLdata
formula
t+3+x+t\neq m\alpha\frac\theta\hbar
/formula
were printed, and didn't act as escapes.
Am I missing something in the correct usage, or is support incomplete?
This is a sample file, showing how I've been trying to use it:
\useXMLfilter[mml]
\starttext
\startXMLdata
formula
t+3+x+t\neq m\alpha\frac\theta\hbar
/formula
\stopXMLdata
\stoptext
replace [nath] with just [amsl], you'll get different
alignment of the formula.
BTW: my TeX doesn't seem to like DOS-style newlines in t-amsl.tex, so I
had to convert them to Unix-style ones.
David
\usemodule [nath]
\enableregime [utf]
\starttext
\completecontent
\section{Mathmatiques}
\[ f(x)= \frac
\stopformula
\placeformula[eq:NS]
\startformula
\frac{D\vec u}{Dt} =
\FromStep[2][reserve]{-{\red \frac1\rho \vec\nabla p}}
\FromStep[3][reserve]{+\;{\green \vec g}}
\FromStep[4][reserve]{+\;{\blue \frac1\rho \vec\nabla\cdot S}}
\stopformula
Momentum transport: \NextStep
\item
*}
\FromStep[4] {\item Item 2}
\stopitemize
\StopSteps
\StartSteps[Navier||Stokes equation]
\startformula
\frac{D\vec u}{Dt} =
\FromStep[2][reserve]{-{\red \frac1\rho \vec\nabla p}}
\FromStep[3][reserve]{+\;{\green \vec g}}
\FromStep[4][reserve]{+\;{\blue \frac1\rho \vec\nabla\cdot S
\OnlyStep[2] {\item (oops!)}
\UntilStep[4] {\item Item 2*}
\FromStep[4] {\item Item 2}
\stopitemize
\StopSteps
---
And here is a mixed example:
---
\StartSteps[Navier||Stokes equation]
\[
\frac{D\vec u}{Dt
, nested parentheses and stuff that produces implicit
parentheses don't scale correctly. In fact, \left and \right don't seem
to work either:
\usemodule[nath]
\starttext
\[ (\frac{a}{b})^2 \]
versus
\[ \left(\frac{a}{b}\right)^2 \]
\stoptext
This works here :\
Ok, looks like my version of nath
in
LaTeX, so for multiline you might have more luck using the
nath module, which is available on CTAN. There is no manual,
but you can use the LaTeX package manual as a reference.
For an example of the sorts of things I end up
doing:
\begin{equation}
\begin{split}
\lefteqn{
\frac
latest tetex.
It works like that? Excellent.
It seems I spoke too soon. It does in fact not work.
In the meantime, I'm thinking along the lines of something like
\def\over{%
[EMAIL PROTECTED] command \string\over }
{No more a valid command. Replace {A \over B} with \frac A B.}%
\let
Hi Brooks,
Then, a couple of lines after that, there's the second definition for
\frac, which is the one that needed patching. This one, unlike the
first definition, is wrapped in \mathematics so that it can work outside
math mode.
So I'm wondering why only \frac has this second definition
Hi Brooks
The following simple file works fine if I comment out the
\usemodule[newmat] line, but crashes if I put it in.
\usemodule[newmat]
\starttext
\placeformula
\startformula
\eqalign{\frac{1}{2} \cr}
\stopformula
\stoptext
ah ... the alignment lookahead problem, i think we
At 01:40 PM 8/2/2004, you wrote:
ah ... the alignment lookahead problem, i think we can safely patch
\mathematics to catch lookahead as well as make frac more robust for
unwanted expansion
\usemodule[newmat]
\unexpanded\def\frac#1#2{\mathematics{\genfrac{}{}{}\donothing{#1}{#2}}}
\def
Brooks Moses wrote:
At 01:40 PM 8/2/2004, you wrote:
ah ... the alignment lookahead problem, i think we can safely patch
\mathematics to catch lookahead as well as make frac more robust for
unwanted expansion
\usemodule[newmat]
\unexpanded\def\frac#1#2{\mathematics{\genfrac{}{}{}\donothing{#1
to support using math constructs such as \frac
do they need patching? they don't use \mathematics afaik
They don't need patching in the sense of fixing a bug, no -- it's more a
matter of consistency in behavior.
What I see is that there's a list of definitions for \frac, \dfrac,
\tfrac
The following simple file works fine if I comment out the
\usemodule[newmat] line, but crashes if I put it in.
\usemodule[newmat]
\starttext
\placeformula
\startformula
\eqalign{\frac{1}{2} \cr}
\stopformula
\stoptext
- Brooks
___
ntg
a comma); indeed, the code
\[
a=b, \dots c=d \dots
\]
will give you \ldots in the first case and \cdots in the second
case. Do you have some example of when it doesn't work?
Furthermore,
[EMAIL PROTECTED] command \string\over }
{No more a valid command. Replace {A \over B} with \frac A B
} with \frac A
[EMAIL PROTECTED]
[EMAIL PROTECTED] command \string\atop }
{No more a valid command. Use array [EMAIL PROTECTED]
[EMAIL PROTECTED] command \string\choose }
{No more a valid command. Replace {A \choose B} with \binom A
[EMAIL PROTECTED]
Ah, of course...
nikolai
--
::: name
}
{No more a valid command. Replace {A \over B} with \frac A
[EMAIL PROTECTED]
[EMAIL PROTECTED] command \string\atop }
{No more a valid command. Use array [EMAIL PROTECTED]
[EMAIL PROTECTED] command \string\choose }
{No more a valid command. Replace {A \choose B} with \binom
--
\usemodule[nath]
\starttext
$ y = (1 + \frac{}{a}{b}) $
$ y = (1 + \frac{a}{b}) $
$ y = (1 + a\frac{b}{c}{d})$
$$ y = (1 + \frac{}{a}{b}) $$
$$ y = (1 + \frac{a}{b}) $$
$$ y = (1 + a\frac{b}{c}{d})$$
\stoptext
The latest nath (submitted to CTAN, you can retrieve
--
\usemodule[nath]
\starttext
$ y = (1 + \frac{}{a}{b}) $
$ y = (1 + \frac{a}{b}) $
$ y = (1 + a\frac{b}{c}{d})$
$$ y = (1 + \frac{}{a}{b}) $$
$$ y = (1 + \frac{a}{b}) $$
$$ y = (1 + a\frac{b}{c}{d})$$
\stoptext
___
ntg-context
I'm having all kinds of issues with
nath (even without any preamble at all), like \binom{\frac 12}{a} not
working, \to, \ot and \otto arrows not adjusting to the lengths of
their subscripts, etc... and I can hardly imagine that all of these are
nath bugs, so maybe something's wrong with my TeX
( or [ should automatically adjust to the
formula they contain, but (\sum_{something}
\frac{something}{something}) only produces standard parentheses.
Commands like \lbrace or \lbrack work as expected, though.
If these problems are unknown, I can post a small example file and my
logfile.
Best
the \frac.
Hello David, sorry for the delay.
The problem is caused by \frac being defined in the newmat
module as
%D Better:
\def\frac#1#2{\mathematics{\genfrac{}{}{}\donothing{#1}{#2}}}
If you comment that line, it will compile flawlessly.
Hans, why would you want to allow \frac in text mode
Hello Giuseppe,
I'm having a little trouble with the cases in amsl.
Compiling this:
\[
f(x) =
\startcases
0 \text{if $x -\epsilon$} \\
\frac12 \text{if $x \epsilon$}
\stopcases
\]
results in an error around the \frac. Changing it to \dfrac makes the
input compile ok
601 - 700 of 711 matches
Mail list logo