[NTG-context] Problem with TSV tables

2008-06-10 Thread Jan-Erik Hägglöf
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

Re: [NTG-context] colors in pgf within context

2008-02-18 Thread Jesse Alama
) -- (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

Re: [NTG-context] {{ double braces }}

2008-02-12 Thread Thomas A. Schmitz
\{$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

Re: [NTG-context] {{ double braces }}

2008-02-05 Thread Aditya Mahajan
{{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

Re: [NTG-context] \everymath and ' accent

2008-01-31 Thread Hans Hagen
[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

Re: [NTG-context] {{ double braces }}

2008-01-21 Thread Mikael Persson
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

Re: [NTG-context] {{ double braces }}

2008-01-21 Thread Steffen Wolfrum
{{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

Re: [NTG-context] itemize and math

2007-10-30 Thread Wolfgang Werners-Lucchini
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

Re: [NTG-context] itemize and math

2007-10-30 Thread Wolfgang Schuster
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

Re: [NTG-context] itemize and math

2007-10-30 Thread Wolfgang Werners-Lucchini
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

Re: [NTG-context] itemize and math

2007-10-30 Thread Aditya Mahajan
{\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

[NTG-context] itemize and math

2007-10-29 Thread Wolfgang Werners-Lucchini
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

Re: [NTG-context] itemize and math

2007-10-29 Thread Wolfgang Schuster
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

[NTG-context] presentation `s-pre-13' conflicts with `rsteps' module?

2007-09-25 Thread Ruini Xue
\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

[NTG-context] rsteps module conflicts with s-pre-13?

2007-09-24 Thread Ruini Xue
\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

Re: [NTG-context] Math align question

2007-08-26 Thread WN
. 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

Re: [NTG-context] Math align question

2007-08-26 Thread Aditya Mahajan
}^{+\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

[NTG-context] We have a problem --- Old file no longer compiles

2007-07-04 Thread David Arnold
, 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

Re: [NTG-context] We have a problem --- Old file no longer compiles

2007-07-04 Thread David Arnold
} \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

Re: [NTG-context] We have a problem --- Old file no longer compiles

2007-07-04 Thread Aditya Mahajan
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

Re: [NTG-context] We have a problem --- Old file no longer compiles

2007-07-04 Thread Aditya Mahajan
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

Re: [NTG-context] We have a problem --- Old file no longer compiles

2007-07-04 Thread David Arnold
: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

Re: [NTG-context] We have a problem --- Old file no longer compiles

2007-07-04 Thread Aditya Mahajan
\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

Re: [NTG-context] We have a problem --- Old file no longer compiles

2007-07-04 Thread David Arnold
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

[NTG-context] questions about math formula

2007-06-06 Thread [EMAIL PROTECTED]
{ 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

Re: [NTG-context] questions about math formula

2007-06-06 Thread Aditya Mahajan
://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

Re: [NTG-context] The \frac macro.

2007-04-23 Thread luigi scarso
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

[NTG-context] The \frac macro.

2007-04-22 Thread John R. Culleton
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

Re: [NTG-context] The \frac macro.

2007-04-22 Thread Mojca Miklavec
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

Re: [NTG-context] The \frac macro.

2007-04-22 Thread Aditya Mahajan
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

Re: [NTG-context] overset in ConTeXt

2007-02-19 Thread Sytse Knypstra
{-}{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

Re: [NTG-context] overset in ConTeXt

2007-02-19 Thread Jean Magnan de Bornier
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

[NTG-context] overset in ConTeXt

2007-02-18 Thread Jean Magnan de Bornier
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

Re: [NTG-context] how to do something like ^1/_2 with frac?

2007-01-29 Thread Aditya Mahajan
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%

[NTG-context] how to do something like ^1/_2 with frac?

2007-01-26 Thread Hubertus
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!

Re: [NTG-context] how to do something like ^1/_2 with frac?

2007-01-26 Thread Taco Hoekwater
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

[NTG-context] Context, Metapost \sometxt and color

2006-12-02 Thread Wim Neimeijer
\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

Re: [NTG-context] Context, Metapost \sometxt and color

2006-12-02 Thread Mojca Miklavec
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

Re: [NTG-context] formula, bookmarks and misc

2006-10-29 Thread Aditya Mahajan
] \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

[NTG-context] Strange math error (bug ??)

2006-08-25 Thread WN
, 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

Re: [NTG-context] Strange math error (bug ??)

2006-08-25 Thread Aditya Mahajan
, 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

Re: [NTG-context] Strange math error (bug ??)

2006-08-25 Thread Mojca Miklavec
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

Re: [NTG-context] Strange math error (bug ??)

2006-08-25 Thread WN
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

Re: [NTG-context] New math feature requests

2006-08-24 Thread Aditya Mahajan
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

[NTG-context] New math feature requests

2006-08-07 Thread Aditya Mahajan
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

Re: [NTG-context] Extend the fraction bar

2006-07-04 Thread Aditya Mahajan
\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

Re: [NTG-context] Extend the fraction bar

2006-07-04 Thread David Arnold
. 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

Re: [NTG-context] Extend the fraction bar

2006-07-04 Thread David Arnold
? 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

Re: [NTG-context] Extend the fraction bar

2006-07-04 Thread Aditya Mahajan
} \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

Re: [NTG-context] Extend the fraction bar

2006-07-02 Thread Mojca Miklavec
\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

Re: [NTG-context] small caps italic and font switching inside math

2006-06-28 Thread Aditya Mahajan
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

[NTG-context] Iwona Heavy and Math

2006-06-25 Thread Aditya Mahajan
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

Re: [NTG-context] Iwona Heavy and Math

2006-06-25 Thread Aditya Mahajan
$ \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

Re: [NTG-context] intertext for aligned equations

2006-03-28 Thread Aditya Mahajan
= \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

[NTG-context] intertext for aligned equations

2006-03-26 Thread Aditya Mahajan
| + \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

Re: [NTG-context] Help : Unknown references

2006-03-22 Thread WN
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

[NTG-context] New math collection ?

2006-03-08 Thread WN
[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

[NTG-context] Unexpected behaviour of setuptyping

2006-03-05 Thread Aditya Mahajan
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

[NTG-context] math tests - subformula ref's and symbols \oiint \oiiint like in Latex AMS

2006-02-17 Thread Wim Neimeijer
{ \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

Re: [NTG-context] OpenType and XeConTeXt

2006-02-14 Thread Adam Lindsay
~/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

[NTG-context] setupindenting and formula

2006-01-27 Thread Renaud AUBIN
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

Re: [NTG-context] math align

2006-01-16 Thread David Arnold
,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

Re: [NTG-context] math align

2006-01-16 Thread Hans Hagen
\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

Re: [NTG-context] math align

2006-01-16 Thread David Arnold
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

Re: [NTG-context] math align

2006-01-16 Thread Hans Hagen
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

[NTG-context] Canceling common primes with strikeout

2006-01-13 Thread David Arnold
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

[NTG-context] Re: Math typescript question

2005-11-22 Thread Randall Skelton
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

Re: [NTG-context] Boxed formula

2005-10-01 Thread Jilani Khaldi
\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

Re: [NTG-context] Boxed formula

2005-09-30 Thread Jilani Khaldi
[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

Re: [NTG-context] Boxed formula

2005-09-30 Thread David Munger
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

[NTG-context] A couple more suggestions for m-newmat.

2005-07-31 Thread Brooks Moses
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

Re: [NTG-context] International characters in math

2005-06-28 Thread Wolfgang Zillig
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

Re: [NTG-context] Textfont in math-formulas?

2005-04-07 Thread Hans Hagen
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

[NTG-context] Re: ntg-context Digest, Vol 10, Issue 21

2005-04-07 Thread Kai Straube
]    \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

[NTG-context] Textfont in math-formulas?

2005-04-06 Thread Kai Straube
[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

Re: [NTG-context] nath bug

2004-12-21 Thread Giuseppe Bilotta
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

Re: [NTG-context] XML formulas

2004-12-10 Thread h h extern
, 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

[NTG-context] XML formulas

2004-12-09 Thread Adam Lindsay
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

Re: [NTG-context] Updated math modules

2004-11-22 Thread David Munger
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

Re: [NTG-context] \presentationstep

2004-11-08 Thread David Munger
\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

Re: [NTG-context] \presentationstep

2004-11-07 Thread David Munger
*} \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

Re: [NTG-context] \presentationstep

2004-11-06 Thread David Munger
\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

Re: [NTG-context] Re: Re: Re: nath catcode issues

2004-08-25 Thread Giuseppe Bilotta
, 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

Re: [NTG-context] Converting math from LaTeX to ConTeXt

2004-08-08 Thread Giuseppe Bilotta
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

[NTG-context] Re: Re: Re: nath catcode issues

2004-08-08 Thread Nikolai Weibull
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

Re: [NTG-context] Bug report, \frac as redefined in m-newmat.tex

2004-08-04 Thread Hans Hagen
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

Re: [NTG-context] Bug report, \frac as redefined in m-newmat.tex

2004-08-03 Thread Hans Hagen
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

Re: [NTG-context] Bug report, \frac as redefined in m-newmat.tex

2004-08-03 Thread Brooks Moses
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

Re: [NTG-context] Bug report, \frac as redefined in m-newmat.tex

2004-08-03 Thread Hans Hagen Outside
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

Re: [NTG-context] Bug report, \frac as redefined in m-newmat.tex

2004-08-03 Thread Brooks Moses
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

[NTG-context] Bug report, \frac as redefined in m-newmat.tex

2004-08-02 Thread Brooks Moses
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

Re: [NTG-context] nath catcode issues

2004-07-05 Thread Giuseppe Bilotta
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

[NTG-context] Re: nath catcode issues

2004-07-05 Thread Nikolai Weibull
} 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

[NTG-context] Re: Re: nath catcode issues

2004-07-05 Thread Nikolai Weibull
} {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

Re[6]: [NTG-context] Known nath bugs?

2004-06-05 Thread Giuseppe Bilotta
-- \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

Re: Re[4]: [NTG-context] Known nath bugs?

2004-06-01 Thread Gary Pajer
-- \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

Re: Re[4]: [NTG-context] Known nath bugs?

2004-05-30 Thread Sebastian Sturm
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

[NTG-context] Known nath bugs?

2004-05-28 Thread Sebastian Sturm
( 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

Re: [NTG-context] amsl: startcases/stopcases

2004-05-25 Thread Giuseppe Bilotta
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

[NTG-context] amsl: startcases/stopcases

2004-05-20 Thread David Munger
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

<    2   3   4   5   6   7   8   >