[NTG-context] beta
Hi, I uploaded a beta: - combinations extended cf mails on this list - new windows stubs (might need testing) - frac fixed - fixed more restrictive tex file lookup in run Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] beta
On 2013–04–16 Hans Hagen wrote: - frac fixed Thanks. - fixed more restrictive tex file lookup in run context s-pre-17.mkiv still works on my machine. I'm fine with that, just want to let you know, it might not be the intended behaviour. Marco signature.asc Description: Digital signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] beta
On 4/16/2013 1:04 PM, Marco Patzer wrote: On 2013–04–16 Hans Hagen wrote: - frac fixed Thanks. - fixed more restrictive tex file lookup in run context s-pre-17.mkiv still works on my machine. I'm fine with that, just want to let you know, it might not be the intended behaviour. hm, another attempts *hopefully it doesn't break something else) .. always a bit of a dilemma: be tolerant or strict with the tds tree Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] math: size of sqrt to small for fractions
/lm-rm.map usedmethod=database used file 10: filename=lmroman12-regular filetype=otf format=otf foundname=/home/maja/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database used file 11: filename=latinmodern-math.otf filetype=opentypefonts foundname=/home/maja/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database used file 12: filename=latinmodern-math.otf filetype=otf format=otf foundname=/home/maja/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database used file 13: filename=lpdf-pdx.xml filetype=tex foundname=/home/maja/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml usedmethod=database system files stop used files system options start commandline options used option currentrun=3 used option fulljobname=./sqrt.tex used option input=./sqrt.tex used option kindofrun=2 used option maxnofruns=8 used option no-parse-first-line=true system options stop commandline options system options start commandline files used file 1: ./sqrt.tex system options stop commandline files mkiv lua stats used config file: selfautoparent:/texmf/web2c/texmfcnf.lua mkiv lua stats used cache path: /home/maja/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats resource resolver: loadtime 0.015 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 13 found files, scanned paths: none mkiv lua stats stored bytecode data: 323 modules (0.220 sec), 69 tables (0.000 sec), 392 chunks (0.220 sec) mkiv lua stats cleaned up reserved nodes: 41 nodes, 9 lists of 441 mkiv lua stats node memory usage: 2 glue, 2 penalty, 9 attribute, 28 glue_spec, 3 attribute_list mkiv lua stats node list callback tasks: 6 unique task lists, 6 instances (re)created, 41 calls mkiv lua stats used backend: pdf (backend for directly generating pdf output) mkiv lua stats loaded patterns: en::2 mkiv lua stats jobdata time: 0.002 seconds saving, 0.001 seconds loading mkiv lua stats callbacks: 148 direct, 180 indirect, 328 total mkiv lua stats randomizer: resumed with value 0.066525963166042 mkiv lua stats lxml preparation time: 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls mkiv lua stats result saved in file: sqrt.pdf, compresslevel 3, objectcompreslevel 3 mkiv lua stats loaded fonts: 2 files: latinmodern-math.otf lmroman12-regular.otf mkiv lua stats fonts load time: 0.249 seconds mkiv lua stats luatex banner: this is luatex, version beta-0.75.0-2013031411 (tex live 2013/dev)(rev 4589) mkiv lua stats control sequences: 36706 of 65536 + 10 mkiv lua stats current memory usage: 26 MB (ctx: 26 MB) mkiv lua stats runtime: 0.831 seconds, 1 processed pages, 1 shipped pages, 1.203 pages/second sqrt.pdf Description: Adobe PDF document \starttext \startformula a = \sqrt{\frac{b}{c}} \stopformula \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math: size of sqrt to small for fractions
On 4/9/2013 9:25 PM, Xenia wrote: On 09.04.2013 21:18, Hans Hagen wrote: On 4/9/2013 9:02 PM, Xenia wrote: Hi list, I noticed that the sign for the square root does not adapt to the size of a fraction as in the attached minimal example. In what sense? Sqrt's grow in discrete steps. Oh, I didn't know that. For my feelings, all variables should have the same size here (a,b and c). Hopefully ok now ... I also made the mathstyle more conformant the new math style mechanism and added coloring of the fraction rule. \definemathfraction[innerfrac][frac][alternative=inner,mathstyle=script,color=red] \definemathfraction[outerfrac][frac][alternative=outer,mathstyle=script,color=blue] \starttext \startformula a = \frac{b}{c} = \sqrt{\frac{b}{c}} = \sqrt{{b}\over{c}} a = \frac{b}{c} = \sqrt{\frac{b}{c}} = \sqrt{{b}\over{c}} a = \outerfrac{a}{b} = \innerfrac{a}{b} = \frac{a}{b} \stopformula \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math typesetting problems
On 1/29/2013 12:20 AM, Khaled Hosny wrote: On Mon, Jan 28, 2013 at 09:33:52PM +0100, Wolfgang Schuster wrote: The \frac command uses \vcenter for the content while \dfrac and \tfrac only set the mathstyle before placing the content with the \over primitive. The use of \vcenter seems odd here as it means the fraction rule will no longer guranteed to be centered around the math axis: \starttext \math{-\frac{a^{2^{2^2}}}{a} {a^{2^{2^2}}\over a}} \stoptext Also, why \frac is forcing text style fractions even in display mode? \starttext \startformula -\frac{a^{2^{2^2}}}{a} {a^{2^{2^2}}\over a} \stopformula \stoptext Both behaviours are different from MkII. I redid the mkiv code ... configurable, defineable, inheritable ... the whole lot \starttext \definemathfraction[myfrac] [mathstyle=script] \definemathfraction[myfracx][mathstyle=script,alternative=outer] \startformula {a^{2^{2^2}}\over a} \frac{a^{2^{2^2}}}{a} \frac{a^{2}}{b} \myfrac{a^{2}}{b} \myfracx{a^{2}}{b} \stopformula \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bug in \column
Al 21/03/13 23:58, En/na Wolfgang Schuster ha escrit: Am 21.03.2013 um 09:40 schrieb Xan dxpubl...@telefonica.net: Thanks guys for trying to solve which I definitely tag as a bug ;-). It seems there is no faster solution but surely Hans will find one ;-) By the user perspective it's an annoying behaviour and I have to change manually the paragraphs (adding \{*}skip commands). I think you will find a solution at the end. It's too much technical discussion for me. I'm sorry I can't do anything else. But I'm glad to see this discussion (so mantain me as CC) If I could do anything, please say to me. Can you test your example with the mixedcolumns environment instead of the normal columns environment (use the latest beta). Wolfgang Yes, it works perfectly (I attach my example). Can someone put reference on wiki on such environment? Useful for novice users like me. Thanks for all, Xan. \enableregime[utf] \setupbodyfont [cmr,11pt] \mainlanguage[ca] \setuppagenumbering [location={footer}] \setuppapersize [A4] \setuplayout[topspace=1.5cm,margin=1.5cm,header=1.5cm,footer=1.5cm,width=fit,height=fit,backspace=1.5cm] \setuphead[title][align={center},style={\sca}, after={\medskip}] \setuphead[subject][after={\hrule\medskip}] % AMSTHM \defineenumeration [exercici] [text={Exercici},headstyle=bold,between=\blank,textdistance=1em, stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss,title=yes,titlestyle=\ss,titledistance=.5em] % Heads and footers \setupfootertexts[\pagenumber] \setupfooter[text][before=\hrule] \setupheader[text][after=\hrule] \setupheadertexts[{\tfx \mid IES Binissalem \mid 4t D \mid MAT \mid }][{\tfx Sistemes d'equacions \mid Examen \mid 15/3/2012 \mid}] % underline \setupunderbar[alternative=b] \starttext \title{Examen de Matemà tiques} \bigskip \startframedtext[width=broad, location=middle, before={}] \startalignment[middle] Feis l'opció comuna de totes maneres i, després, trieu entre l'Opció A o l'Opció B \stopalignment \stopframedtext \subject{Part comuna} \startcolumns \startexercici Resoleu emprant el mètode de substitució: \placeformula \startformula \startmathalignment \NC x + 3y \NC = 9 \NR[+] \NC 2x - y \NC = 3 \NR \stopmathalignment \stopformula \stopexercici \startexercici Resoleu pel mètode de reducció: \placeformula \startformula \startmathalignment \NC 3x + 7y \NC = -23 \NR[+] \NC 5x + 4y \NC = -23 \NR \stopmathalignment \stopformula \stopexercici \stopcolumns \subject{Opció A} \startexercici Resoleu pel mètode que vulgueu: \placeformula \startformula \startmathalignment \NC \frac{x}{3} + \frac{4y}{5} - 3(x+y) \NC = -19 \NR[+] \NC \frac{3x}{3} - \frac{1}{3} (y-5) \NC = 3 \NR \stopmathalignment \stopformula \stopexercici \subject{Opció B} \startmixedcolumns \startexercici Resoleu aquest sistema pel mètode que vulgueu: \placeformula \startformula \startmathalignment \NC -2x - y \NC = -11 \NR[+] \NC 3x - y \NC = 9 \NR \stopmathalignment \stopformula \stopexercici %\bigskip \column \startexercici Resoleu el sistema següent pel mètode que considereu oportú: \placeformula \startformula \startmathalignment \NC 2x + \frac{5y}{2} \NC = 7 \NR[+] \NC -3x + y \NC = -1 \NR \stopmathalignment \stopformula \stopexercici \stopmixedcolumns \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Bug in \column
Hi, I found a possibly bug (I attached the doc). With bigskip twocolumns work but with \column it does not. That is, with the diff: 98c98 \bigskip --- %\bigskip 100c100 %\column --- \column it does not work: the last exercise is shown in the first column. Can anyone explain me what happens? Thanks in advance, Xan. PS: Please CCme. \enableregime[utf] \setupbodyfont [cmr,11pt] \mainlanguage[ca] \setuppagenumbering [location={footer}] \setuppapersize [A4] \setuplayout[topspace=1.5cm,margin=1.5cm,header=1.5cm,footer=1.5cm,width=fit,height=fit,backspace=1.5cm] \setuphead[title][align={center},style={\sca}, after={\medskip}] \setuphead[subject][after={\hrule\medskip}] % AMSTHM \defineenumeration [exercici] [text={Exercici},headstyle=bold,between=\blank,textdistance=1em, stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss,title=yes,titlestyle=\ss,titledistance=.5em] % Heads and footers \setupfootertexts[\pagenumber] \setupfooter[text][before=\hrule] \setupheader[text][after=\hrule] \setupheadertexts[{\tfx \mid IES Binissalem \mid 4t D \mid MAT \mid }][{\tfx Sistemes d'equacions \mid Examen \mid 15/3/2012 \mid}] % underline \setupunderbar[alternative=b] \starttext \title{Examen de Matemà tiques} \bigskip \startframedtext[width=broad, location=middle, before={}] \startalignment[middle] Feis l'opció comuna de totes maneres i, després, trieu entre l'Opció A o l'Opció B \stopalignment \stopframedtext \subject{Part comuna} \startcolumns \startexercici Resoleu emprant el mètode de substitució: \placeformula \startformula \startmathalignment \NC x + 3y \NC = 9 \NR[+] \NC 2x - y \NC = 3 \NR \stopmathalignment \stopformula \stopexercici \startexercici Resoleu pel mètode de reducció: \placeformula \startformula \startmathalignment \NC 3x + 7y \NC = -23 \NR[+] \NC 5x + 4y \NC = -23 \NR \stopmathalignment \stopformula \stopexercici \stopcolumns \subject{Opció A} \startexercici Resoleu pel mètode que vulgueu: \placeformula \startformula \startmathalignment \NC \frac{x}{3} + \frac{4y}{5} - 3(x+y) \NC = -19 \NR[+] \NC \frac{3x}{3} - \frac{1}{3} (y-5) \NC = 3 \NR \stopmathalignment \stopformula \stopexercici \subject{Opció B} \startcolumns \startexercici Resoleu aquest sistema pel mètode que vulgueu: \placeformula \startformula \startmathalignment \NC -2x - y \NC = -11 \NR[+] \NC 3x - y \NC = 9 \NR \stopmathalignment \stopformula \stopexercici \bigskip %\column \startexercici Resoleu el sistema següent pel mètode que considereu oportú: \placeformula \startformula \startmathalignment \NC 2x + \frac{5y}{2} \NC = 7 \NR[+] \NC -3x + y \NC = -1 \NR \stopmathalignment \stopformula \stopexercici \stopcolumns \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] vertical position in itemize and math
Hi, I have two problems with vertical position, one in itemize and one in math. The example below show them both. \starttext \startitemize[n] \item \startitemize[a][left={},right={)},stopper=] \item Bla bla $\theta = \arctan\bigl(\frac{\bar{y}^2}{\bar{x}^2}\bigr)$ % comment this line out to see the problem disappear \stopitemize \stopitemize Let \startformula A=I-2\frac{NN^T}{N^TN}\,N=\frac{1}{9}X. \stopformula \stoptext The first one is the vertical position of the a) and the following formula. This is pushed down (because of the formula it seems). What if I want the a) aligned with the 1.? (I wrote about this problem some time ago, and it got solved, but that time no math was included) The second one is the division line in \frac{NN^T}{N^TN} that look pushed down to me. I'm not sure how it should be, but my guess is aligned with the minus sign or so. All this with the latest ConTeXt suite. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] new tricks in beta
Hi Aditya, I made a mathstyle mechanism ... used in fences first: \starttext \startTEXpage[offset=1ex] \def\TestMe#1% {\NC \ttbf #1 \NC \ruledhbox{$\setupmathstyle[#1]x + x_j^2 + x_i^{e^2} + \frac{1}{x}$} \NC \ruledhbox{$\setupmathstyle[#1,small]x + x_j^2 + x_i^{e^2} + \frac{1}{x}$} \NC \NR} \starttabulate[|l|r|l|] \HL \NC \NC \NC \ttbf ...,small \NC \NR \HL \TestMe{text} \TestMe{text,cramped} \TestMe{script} \TestMe{script,cramped} \TestMe{scriptscript} \TestMe{scriptscript,cramped} \TestMe{display} \TestMe{display,cramped} \HL \stoptabulate \stopTEXpage \startTEXpage $x\begingroup\setupmathstyle[script]x\endgroup x$ \par $x{\setupmathstyle[script]x}x$ \par $x\startmathstyle[script]x\stopmathstyle x$ \stopTEXpage \definemathfence [scriptbracket] [bracket] [command=yes,color=red,mathstyle=script] \definemathfence [smallbracket] [bracket] [command=yes,color=green,mathstyle=small] \definemathfence [normalbracket] [bracket] [command=yes,color=blue] \startTEXpage[offset=1ex] \startbuffer test $a\frac{1}{normal}\scriptbracket{\frac{1}{script}}\normalbracket{\frac{1}{normal}}\smallbracket{\frac{1}{small}}c$ test \par \stopbuffer \getbuffer \setupmathfences [color=red] \getbuffer \stopTEXpage \stoptext \starttext \definemathfence [fancybracket] [bracket] [command=yes,color=blue] test $|x|$ test \par test $||x||$ test (okay) \par test $a\left|\frac{1}{b}\right|c$ test \par test $a\left||\frac{1}{b}\right||c$ test (not okay) \par \startbuffer test $a\fenced[bar]{\frac{1}{b}}c$ test \par test $a\fenced[doublebar]{\frac{1}{b}}c$ test \par test $a\fenced[bracket]{\frac{1}{b}}c$ test \par test $a\fancybracket{\frac{1}{b}}c$ test \par \stopbuffer \getbuffer \setupmathfences [color=red] \getbuffer \stoptext Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] beta
This is experimental in upcoming beta: \starttext \definemathfence [fancybracket] [bracket] [command=yes,color=blue] test $|x|$ test \par test $||x||$ test (replaced) \par test $a\left|\frac{1}{b}\right|c$ test \par test $a\left||\frac{1}{b}\right||c$ test (kept) \par \startbuffer test $a\fenced[bar]{\frac{1}{b}}c$ test \par test $a\fenced[doublebar]{\frac{1}{b}}c$ test \par test $a\fenced[bracket]{\frac{1}{b}}c$ test \par test $a\fancybracket{\frac{1}{b}}c$ test \par \stopbuffer \getbuffer \setupmathfences [color=red] \getbuffer \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setlayer on \startalign row
Aditya, Thanks for your steps.tex. The following example does not work as expected. In particular, the first equation moves from page 1 to page 2, and the 12 x moves from page 2 to page 3. Troy \StartStepping{10} \startformula \startalign[n=4,align={right,right,middle,left}] \STEP{1}{\NC \NC \frac{2}{3}x-\frac{3}{4} \NC = \NC \frac{1}{6}x+\frac{21}{4} \NR} \STEP{2}{\NC 12\times\NC \NC \NC \NR} \STEP{3}{\NC \NC \left(12\cdot\frac{2}{3}x\right) - \left(12\cdot\frac{3}{4}\right) \NC = \NC \left(12\cdot\frac{1}{6}x\right) + \left(12\cdot\frac{21}{4}\right) \NR} \STEP{4}{\NC \NC 8x - 9 \NC = \NC 2x + 63 \NR} \STEP{5}{\NC \NC 8x - 9 - 2x \NC = \NC 2x - 2x + 63 \NR} \STEP{6}{\NC \NC 6x - 9 \NC = \NC 63 \NR} \STEP{7}{\NC \NC 6x - 9 + 9 \NC = \NC 63 + 9 \NR} \STEP{8}{\NC \NC 6x \NC = \NC 72 \NR} \STEP{9}{\NC \NC \frac{6x}{6} \NC = \NC \frac{72}{6} \NR} \STEP{10}{\NC \NC x \NC = \NC 12} \stopalign \stopformula \StopStepping ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setlayer on \startalign row
On Wed, 6 Feb 2013, Troy Henderson wrote: Aditya, Thanks for your steps.tex. The following example does not work as expected. In particular, the first equation moves from page 1 to page 2, and the 12 x moves from page 2 to page 3. Troy \StartStepping{10} \startformula \startalign[n=4,align={right,right,middle,left}] \STEP{1}{\NC \NC \frac{2}{3}x-\frac{3}{4} \NC = \NC \frac{1}{6}x+\frac{21}{4} \NR} \STEP{2}{\NC 12\times\NC \NC \NC \NR} \STEP{3}{\NC \NC \left(12\cdot\frac{2}{3}x\right) - \left(12\cdot\frac{3}{4}\right) \NC = \NC \left(12\cdot\frac{1}{6}x\right) + \left(12\cdot\frac{21}{4}\right) \NR} \STEP{4}{\NC \NC 8x - 9 \NC = \NC 2x + 63 \NR} \STEP{5}{\NC \NC 8x - 9 - 2x \NC = \NC 2x - 2x + 63 \NR} \STEP{6}{\NC \NC 6x - 9 \NC = \NC 63 \NR} \STEP{7}{\NC \NC 6x - 9 + 9 \NC = \NC 63 + 9 \NR} \STEP{8}{\NC \NC 6x \NC = \NC 72 \NR} \STEP{9}{\NC \NC \frac{6x}{6} \NC = \NC \frac{72}{6} \NR} \STEP{10}{\NC \NC x \NC = \NC 12} \stopalign \stopformula \StopStepping You need to ensure that the width of the columns does not change from each step. There is no easy way to do this with \startmathalign, but you can try \startTABLE, with explicit values of widths. (Some day, I will check how beamer does this with aligned equations). Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setlayer on \startalign row
On Wed, 6 Feb 2013, Aditya Mahajan wrote: On Wed, 6 Feb 2013, Troy Henderson wrote: Aditya, Thanks for your steps.tex. The following example does not work as expected. In particular, the first equation moves from page 1 to page 2, and the 12 x moves from page 2 to page 3. Troy \StartStepping{10} \startformula \startalign[n=4,align={right,right,middle,left}] \STEP{1}{\NC \NC \frac{2}{3}x-\frac{3}{4} \NC = \NC \frac{1}{6}x+\frac{21}{4} \NR} \STEP{2}{\NC 12\times\NC \NC \NC \NR} \STEP{3}{\NC \NC \left(12\cdot\frac{2}{3}x\right) - \left(12\cdot\frac{3}{4}\right) \NC = \NC \left(12\cdot\frac{1}{6}x\right) + \left(12\cdot\frac{21}{4}\right) \NR} \STEP{4}{\NC \NC 8x - 9 \NC = \NC 2x + 63 \NR} \STEP{5}{\NC \NC 8x - 9 - 2x \NC = \NC 2x - 2x + 63 \NR} \STEP{6}{\NC \NC 6x - 9 \NC = \NC 63 \NR} \STEP{7}{\NC \NC 6x - 9 + 9 \NC = \NC 63 + 9 \NR} \STEP{8}{\NC \NC 6x \NC = \NC 72 \NR} \STEP{9}{\NC \NC \frac{6x}{6} \NC = \NC \frac{72}{6} \NR} \STEP{10}{\NC \NC x \NC = \NC 12} \stopalign \stopformula \StopStepping You need to ensure that the width of the columns does not change from each step. There is no easy way to do this with \startmathalign, but you can try \startTABLE, with explicit values of widths. (Some day, I will check how beamer does this with aligned equations). For display equations, the following will also work (but it is very tedius to type) \environment steps \long\def\gobblebox#1{\phantom{#1}} \long\def\displaybox#1{{#1}} \starttext \StartStepping{3} \startformula \startalign[n=4,align={right,right,middle,left}] \NC \NC \frac{2}{3}x-\frac{3}{4} \NC = \NC \frac{1}{6}x+\frac{21}{4} \NR \NC \HIDE 2{12\times } \NC \NC \NC \NR \NC \NC \HIDE 3 {\left(12\cdot\frac{2}{3}x\right) - \left(12\cdot\frac{3}{4}\right) } \NC \HIDE 3 {=} \NC \HIDE 3 {\left(12\cdot\frac{1}{6}x\right) + \left(12\cdot\frac{21}{4}\right)} \NR \stopalign \stopformula \StopStepping \stoptext Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setlayer on \startalign row
On Wed, 6 Feb 2013, Troy Henderson wrote: Any idea how to put a \framed{ ... } around \NC \NC x \NC = \NC 12 AFAIK, you can't. It's on my TODO list but requires a complete rewrite of math align macros. If you really need it: \startsetups table:math \setupTABLE[frame=off, toffset=0.2ex, boffset=0.2ex] \setupTABLE[column][odd][align=flushright] \setupTABLE[column][even][align=flushleft] \setupTABLE[first][2][leftframe=on] \setupTABLE[last][2][rightframe=on] \setupTABLE[first,last][2][topframe=on, bottomframe=on] \stopsetups \starttext \startTABLE[setups=table:math] \NC $\displaystyle \frac{2}{3}x-\frac{3}{4}$ \NC $\displaymath {}= \frac{1}{6}x+\frac{21}{4}$ \NC \NR \NC $\displaystyle \left(12\cdot\frac{2}{3}x\right) - \left(12\cdot\frac{3}{4}\right) $ \NC $\displaystyle{}= \left(12\cdot\frac{1}{6}x\right) + \left(12\cdot\frac{21}{4}\right)$ \NC \NR \stopTABLE \stoptext Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math typesetting problems
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) + 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 Roland wrote: With \dfrac it looks good. With \fraction the minus sign is on the top of the fraction. Best regards, Roland ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math typesetting problems
Le 28 janv. 13 à 10:11, Janne Junnila a écrit : 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) + 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 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math typesetting problems
On Mon, 28 Jan 2013, Roland Thiers wrote: Le 28 janv. 13 à 10:11, Janne Junnila a écrit : 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) + 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 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. Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math typesetting problems
Am 28.01.2013 um 20:41 schrieb Aditya Mahajan adit...@umich.edu: On Mon, 28 Jan 2013, Roland Thiers wrote: Le 28 janv. 13 à 10:11, Janne Junnila a écrit : 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) + 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 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 and \tfrac only set the mathstyle before placing the content with the \over primitive. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math typesetting problems
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 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 (which is a fancy wrapper around \over \ovewithdelim etc) Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math typesetting problems
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 Using \type{\frac} gives: \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 \blank Using \type{\over} gives: \startformula f_{B_t | B_s = S, B_u = U}(x) = { e^{-{(u-s)x^2 - 2x(S(u-t) + U(t-s)) + {(S(u-t) + U(t-s))^2 \over (u-s)} \over 2(t-s)(u-t)}} \over \sqrt{2\pi {(t-s)(u-t) \over u-s}}} \stopformula \stoptext Best regards: OK On 28 janv. 2013, at 10:11, Janne Junnila janne.junn...@gmail.com wrote: 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) + 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 Roland wrote: With \dfrac it looks good. With \fraction the minus sign is on the top of the fraction. Best regards, Roland ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math typesetting problems
Am 28.01.2013 um 21:48 schrieb Aditya Mahajan adit...@umich.edu: 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 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 (which is a fancy wrapper around \over \ovewithdelim etc) Yes, MkII uses \genfrac but in MkIV the command is no longer available and all fraction commands have been rewritten. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math typesetting problems
On Mon, 28 Jan 2013, Otared Kavian wrote: Hi Janne, Personnally I prefer to use the Plain TeX alternative \over (which works fine in ConTeXt), that is ${a \over b}$ instead of $\frac{a}{b}$ Compare the following two outputs in the example you want to typeset: I think the second is more or less what you want \starttext Using \type{\frac} gives: \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 Formatting and temporary macros (I usually use \1 \2 etc) make a huge difference in readability: \startformula \def\1 {\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)} } % f_{B_t | B_s = S, B_u = U}(x) = \frac { e^{\1} } { \sqrt{2\pi\frac{(t-s)(u-t)}{u-s}} } \stopformula \blank Using \type{\over} gives: \startformula f_{B_t | B_s = S, B_u = U}(x) = { e^{-{(u-s)x^2 - 2x(S(u-t) + U(t-s)) + {(S(u-t) + U(t-s))^2 \over (u-s)} \over 2(t-s)(u-t)}} \over \sqrt{2\pi {(t-s)(u-t) \over u-s}}} \stopformula \stoptext At some stage, we also need to look at nath's automatic conversion of display fractions to inline fractions (e.g., in the numberator \frac{ (S(u-t) + U(t-s))^2 } { (u-s) } should be typeset as (S(u-t) + U(t-s))^2/(u-s) because it is being typeset in \scriptstyle. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math typesetting problems
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 will no longer guranteed to be centered around the math axis: \starttext \math{-\frac{a^{2^{2^2}}}{a} {a^{2^{2^2}}\over a}} \stoptext Also, why \frac is forcing text style fractions even in display mode? \starttext \startformula -\frac{a^{2^{2^2}}}{a} {a^{2^{2^2}}\over a} \stopformula \stoptext Both behaviours are different from MkII. Regards, Khaled ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Math typesetting problems
Hi all, I've run into a couple of problems with math typesetting. (I'm using the latest ConTeXt standalone beta.) The following doesn't print [x,x] at all: \startformula [x,x]_t = x \stopformula It can be fixed by using \left[x,x\right]_t, but I find the behaviour weird. Another problem I have is related to the positioning of minus signs in front of fractions. I would expect the minus sign to align with the horizontal line of the fraction, as it does on LaTeX. Below is an example formula to illustrate my point. The result seems to be independent of the font in use. \startformula -\frac{e^{\frac{4}{5}}}{4} \stopformula Janne ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math typesetting problems
Le 27 janv. 13 à 12:52, Janne Junnila a écrit : Hi all, Another problem I have is related to the positioning of minus signs in front of fractions. I would expect the minus sign to align with the horizontal line of the fraction, as it does on LaTeX. Below is an example formula to illustrate my point. The result seems to be independent of the font in use. \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 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Equivalent commands for \big \Big etc. in mathmode
If I want to say that dy/dx is calculated at z then in latex I can write \frac{dy}{dx}\Big|_z The \Big is to scale | according to the size of the \frac. I am using newmat and amsl modules that have supported the native math mode commands till now. But context does not recognise \Big. What is the native context way of doing this? Regards, Devendra MWE (in case its needed)--- \usemodule[newmat] \usemodule[amsl] \starttext \startformula \frac{dy}{dx}\Big|_z \stopformula \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Equivalent commands for \big \Big etc. in mathmode
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. But context does not recognise \Big. What is the native context way of doing this? Regards, Devendra MWE (in case its needed)--- \usemodule[newmat] \usemodule[amsl] \starttext \startformula \frac{dy}{dx}\Big|_z \stopformula \stoptext In MkIV, you don't need the newmat module and amsl module is deprecated in both MkII and MkIV. \starttext \startformula \left.\frac{dy}{dx}\right|_z \stopformula \stoptext Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Equivalent commands for \big \Big etc. in mathmode
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 supported the native math mode commands till now. But context does not recognise \Big. What is the native context way of doing this? Regards, Devendra MWE (in case its needed)--- \usemodule[newmat] \usemodule[amsl] \starttext \startformula \frac{dy}{dx}\Big|_z \stopformula \stoptext In MkIV, you don't need the newmat module and amsl module is deprecated in both MkII and MkIV. \starttext \startformula \left.\frac{dy}{dx}\right|_z \stopformula \stoptext Aditya Thanks Aditya. Need to read manuals more carefully. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] big vertical distance
On 1/12/2013 10:37 PM, Wolfgang Werners-Lucchini wrote: Hallo, the following was ok with mkII: % coding: utf-8 \def\B{\vphantom{\bigg)}} \setupbodyfont[11pt,sans] \starttext \startitemize[a,columns,three,joinedup][grid=no,width=8mm,right=)] \item $\B 5b\cdot (3a+4b-5c)$ \item $\B 3xy\cdot (2x-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 with LuaTeX I get very large vertical distances. Much more then \bigg(. Why is this? MkIV has a different column mechanism controlled by gridsnapping and \bigg is pretty big in that case Anyhow, there is no grid=no in itemize, at least not now, so you can use: \setupmixedcolumns [itemgroupcolumns] [grid=no] However, we can do this too: \unprotect \setupmixedcolumns [\s!itemgroupcolumns] [\c!grid=\itemgroupparameter\c!grid] \setupitemgroups [\c!grid=\v!tolerant] \protect After which we can say grid=no so I'll add that. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] big vertical distance
Hallo, the following was ok with mkII: % coding: utf-8 \def\B{\vphantom{\bigg)}} \setupbodyfont[11pt,sans] \starttext \startitemize[a,columns,three,joinedup][grid=no,width=8mm,right=)] \item $\B 5b\cdot (3a+4b-5c)$ \item $\B 3xy\cdot (2x-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 with LuaTeX I get very large vertical distances. Much more then \bigg(. Why is this? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Euler Constant and limit
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}} {K + P_0(\Eulerconst^{r t} - 1)}} \stopformula The location for the \Eulerconst just shows up blank with nothing there, so I am assuming this is the wrong command. I am using ConTeXt 2012.11.16 under Ubuntu Precise. You need a font which has the symbol, e.g. Cambria or Lucida OT. In addition, the following formula does not typeset correctly. There is no arrow linking 't' to infinity symbol: \placeformula[formula:Limit of Verhulst equation] \startformula \math{\lim_{t\to\infty} P(t) = K.\,} \stopformula Works for me (Version 2012.11.23). BTW: Why do you use \math inside of \startformula because it’s the command for inline math in normal text? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Euler Constant and limit
Hey list, I am trying to typeset the Verhulst equation which contains a Euler constant which I cannot get to display correctly: \placeformula[formula:Verhulst equation] \startformula \math{P(t) = \frac{K P_0 \Eulerconst^{rt}} {K + P_0(\Eulerconst^{r t} - 1)}} \stopformula The location for the \Eulerconst just shows up blank with nothing there, so I am assuming this is the wrong command. I am using ConTeXt 2012.11.16 under Ubuntu Precise. In addition, the following formula does not typeset correctly. There is no arrow linking 't' to infinity symbol: \placeformula[formula:Limit of Verhulst equation] \startformula \math{\lim_{t\to\infty} P(t) = K.\,} \stopformula PS Please cc me, as I am not on the list currently. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \startitemize[columns] once again...
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 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? was a feature ... gridsnapping in action Hi, could anybody look into it? I tried also \smash-ing the formulae - with no luck. the latest version is a bit more tolerant Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Odd bug with \startitemize
For some reason I used someone's earlier posting to test something about my tex software and accidentally happened upon this odd behavior. If the \startitemize code below is repeated 10 or more times, either with \dorecurse or by pasting it ten times, only one is typeset. If nine times, then all nine are typeset. If Some text is un-commented, then all ten are typeset along with Some text. (If working with the pasted version, the Some text can appear after the first or second iteration, or before any iteration that appears on the first page, and all itemizations will appear.) Michael MWE: \starttext %Some text \dorecurse{10}{ \startitemize \item Find a well-ordered set. \startitemize[n, columns, four][stopper=,left=(, right=)] \item $\{ 2 + \frac{1}{n}, n \in\naturalnumbers\}$ \item $[0, 1)$ \item $\{3 - \frac{2}{n}, n \in \naturalnumbers\}$ \item $ \reals$ \stopitemize \stopitemize } \stoptext This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \startitemize[columns] once again...
Hi Marcin, I think there is a small bug with itemize and columns: in another thread (with Subject « vertical alignment problem in column items» ) Dalyoung reported also an issue, which is related to what you have observed. Please see my message in a reply to Dalyoung's message, where I reported some testings but I am not sure when this bug appeared (in mkii, the behaviour is essentially correct). Best regards: OK On 16 nov. 2012, at 21:00, Marcin Borkowski mb...@wmi.amu.edu.pl wrote: Dnia 2012-11-14, o godz. 11:38:48 Philipp Gesang philipp.ges...@alumni.uni-heidelberg.de napisał(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+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 - with no luck. Hi Marcin, appears like the vertical spacing is extended when content of the item exceeds the line height. The behavior is not restricted to math mode, though I can’t say if there is an official way to prevent or customize it. If you are desperate to get around it, maybe put the content in a box of fixed height. ·· demo · \defineframed[crampy][height=\ht\strutbox,frame=off] \starttext before \thinrule \startitemize[columns,two,joinedup] \item abc \mathematics{\frac{x^2-x+3}{x^2+x-3}}; \item xyz \mathematics{\frac{x^5-3}{x^3+x-2}}. \stopitemize \thinrule after before \thinrule \startitemize[columns,two,joinedup] \item abc \crampy[frame=on]{\mathematics{\frac{x^2-x+3}{x^2+x-3}}}; \item xyz \crampy[frame=on]{\mathematics{\frac{x^5-3}{x^3+x-2}}}. \stopitemize \thinrule after before \thinrule \startitemize[columns,two,joinedup] \item abc \crampy{\mathematics{\frac{x^2-x+3}{x^2+x-3}}}; \item xyz \crampy{\mathematics{\frac{x^5-3}{x^3+x-2}}}. \stopitemize \thinrule after \stoptext · Hth, Philipp Yes it does, thanks! (It helps in some other strange cases, too.) What is especially interesting, is that \strut\smash{...} didn't help. Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \startitemize[columns] once again...
Dnia 2012-11-14, o godz. 11:38:48 Philipp Gesang philipp.ges...@alumni.uni-heidelberg.de napisał(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+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 - with no luck. Hi Marcin, appears like the vertical spacing is extended when content of the item exceeds the line height. The behavior is not restricted to math mode, though I can’t say if there is an official way to prevent or customize it. If you are desperate to get around it, maybe put the content in a box of fixed height. ·· demo · \defineframed[crampy][height=\ht\strutbox,frame=off] \starttext before \thinrule \startitemize[columns,two,joinedup] \item abc \mathematics{\frac{x^2-x+3}{x^2+x-3}}; \item xyz \mathematics{\frac{x^5-3}{x^3+x-2}}. \stopitemize \thinrule after before \thinrule \startitemize[columns,two,joinedup] \item abc \crampy[frame=on]{\mathematics{\frac{x^2-x+3}{x^2+x-3}}}; \item xyz \crampy[frame=on]{\mathematics{\frac{x^5-3}{x^3+x-2}}}. \stopitemize \thinrule after before \thinrule \startitemize[columns,two,joinedup] \item abc \crampy{\mathematics{\frac{x^2-x+3}{x^2+x-3}}}; \item xyz \crampy{\mathematics{\frac{x^5-3}{x^3+x-2}}}. \stopitemize \thinrule after \stoptext · Hth, Philipp Yes it does, thanks! (It helps in some other strange cases, too.) What is especially interesting, is that \strut\smash{...} didn't help. Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] vertical alignment problem in column items
Dear all, In the following example, the vertical alignment of items looks strange. I wonder it is my only problem. Is there anything what I have to do to correct it? Thank you. Best regards, Dalyoung % sample code \starttext \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\}$ \item $ \reals$ \stopitemize \stopitemize \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] vertical alignment problem in column items
Hi Dalyoung, I think that there must be a small bug in mkiv regarding itemize in columns, but at the same time I think that the problem comes from the fact that in your example you use inline maths and fractions: this perturbs the way the horizontal and vertical distances are calculated by mkiv. It seems that mkiv considers there is not enough horizontal space to put the four items in a row. If you use two columns the problem is solved, as you can see in the following examples (please typest it both with mkii and mkiv to see the differences). Best regards: OK %%% begin itemize-dist-bug.tex \starttext \setupitemize[1][n] % first level itemize \setupitemize[2][a,paragraph,columns][stopper=)] % second level itemize %If you want more than two columns by default add n=x \startitemize \item Item one \item Find a well-ordered set: \startitemize[n=4] % --- gives correct output both in mkii and mkiv \item sub-one \item sub-two \item sub-three \item sub-four \stopitemize \hairline \startitemize[n=4] % --- gives correct output in mkii, but not in mkiv \item $\{ 2 + \frac{1}{n}, n \in\naturalnumbers\}$ \item $[0, 1)$ \item $\{3 - \frac{2}{n}, n \in \naturalnumbers\}$ \item $ \reals$ \stopitemize \hairline \startitemize[n=4] % --- gives incorrect output both in mkii and mkiv \item $\{ 2 + n^{-1}, n \in\naturalnumbers\}$ \item $[0, 1)$ \item $\{3 - 2n^{-1}, n \in \naturalnumbers\}$ \item $ \reals$ \stopitemize \hairline \startitemize[n=2] % --- gives correct output both in mkii and mkiv \item sub-one \item sub-two \item sub-three \item sub-four \stopitemize \hairline \startitemize[n=2] % --- gives correct output both in mkii and in mkiv \item $\{ 2 + \frac{1}{n}, n \in\naturalnumbers\}$ \item $[0, 1)$ \item $\{3 - \frac{2}{n}, n \in \naturalnumbers\}$ \item $ \reals$ \stopitemize \hairline \startitemize[n=2] % --- gives correct output both in mkii and mkiv \item $\{ 2 + n^{-1}, n \in\naturalnumbers\}$ \item $[0, 1)$ \item $\{3 - 2n^{-1}, n \in \naturalnumbers\}$ \item $ \reals$ \stopitemize \hairline \stoptext %%% end itemize-dist-bug.tex Best regards: OK On 17 nov. 2012, at 05:03, Jeong Dal hak...@me.com wrote: Dear all, In the following example, the vertical alignment of items looks strange. I wonder it is my only problem. Is there anything what I have to do to correct it? Thank you. Best regards, Dalyoung % sample code \starttext \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\}$ \item $ \reals$ \stopitemize \stopitemize \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \startitemize[columns] once again...
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 \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 - with no luck. Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \startitemize[columns] once again...
···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+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 - with no luck. Hi Marcin, appears like the vertical spacing is extended when content of the item exceeds the line height. The behavior is not restricted to math mode, though I can’t say if there is an official way to prevent or customize it. If you are desperate to get around it, maybe put the content in a box of fixed height. ·· demo · \defineframed[crampy][height=\ht\strutbox,frame=off] \starttext before \thinrule \startitemize[columns,two,joinedup] \item abc \mathematics{\frac{x^2-x+3}{x^2+x-3}}; \item xyz \mathematics{\frac{x^5-3}{x^3+x-2}}. \stopitemize \thinrule after before \thinrule \startitemize[columns,two,joinedup] \item abc \crampy[frame=on]{\mathematics{\frac{x^2-x+3}{x^2+x-3}}}; \item xyz \crampy[frame=on]{\mathematics{\frac{x^5-3}{x^3+x-2}}}. \stopitemize \thinrule after before \thinrule \startitemize[columns,two,joinedup] \item abc \crampy{\mathematics{\frac{x^2-x+3}{x^2+x-3}}}; \item xyz \crampy{\mathematics{\frac{x^5-3}{x^3+x-2}}}. \stopitemize \thinrule after \stoptext · Hth, Philipp Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpCrhMXZEnyO.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \startitemize[columns] once again...
Am 14.11.2012 11:38, schrieb 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}{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 - with no luck. Hi Marcin, appears like the vertical spacing is extended when content of the item exceeds the line height. The behavior is not restricted to math mode, though I can’t say if there is an official way to prevent or customize it. If you are desperate to get around it, maybe put the content in a box of fixed height. with the old context of current TeXLive it works without adding additional space. Herbert ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \startitemize[columns] once again...
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. Is it a feature or a bug? (Also, I encountered a *very* weird error where in some cases a whole page disappears in the pdf; I could not distil it into a minimal example, but I'll try and I'll post it here. I have a very vague suspicion that \startitemize[columns] is again the culprit.) TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] using variable for subscript in math+lua
Thanks to all who gave a nice solutions. To write a big matrix of unknowns A=(a_{ij}) is not a frequent case. In math, there are many occasions to write matrices which need some typing work like \NC 2 \NC 3 \NC 4 \NR So if we have a function which write a matrix when the data is given as a form of table in Lua. There are other benefits. Sometimes, we may have to write a series matrices which are the results of the some row operations in matrix. We can also handle it conveniently because we can do some calculations in Lua. If there is a way to convey some table data from ConTeXt to Lua, it would be more convenient. Here is an example which I did by your help. I hope that you experts can make it more useful. Thank you again. Best regards, Dalyoung \starttext \startluacode matrixfunction = matrixfunction or {} -- recommended: use namespace matrixfunction.print_matrixA = function () context.startmatrix{left = \\left(\\,, right = \\,\\right)} local schema1 = a_{%d%d} -- %d: prints integer part local schema2 = a_{%d%s} local schema3 = a_{%s%d} for i=1, 3 do for j=1, 3 do context.NC() context(schema1, i, j) end context.NC() context(\\cdots) context.NC() context(schema2, i, n) context.NR() end for j = 1, 3 do context.NC() context(\\vdots) end context.NC() context(\\ddots) context.NC() context(\\vdots) context.NR() for i=1, 3 do context.NC() context(schema3, m, i) end context.NC() context(\\cdots) context.NC() context(a_{mn}) context.NR() context.stopmatrix() end matrixfunction.print_matrix = function (t) context.startmatrix{left = \\left(\\,, right = \\,\\right)} for _, r in ipairs(t) do for _, c in ipairs(r) do context.NC(c) end context.NR() end context.stopmatrix() end matrixfunction.rowChange = function(t, i, j) -- interchange two rows(i-th, j-th) t[i] , t[j]= t[j], t[i] end matrixfunction.rowMult = function(t, i, m) -- replace i-th row with m*(i-th row) local len len = #(t[i]) for k = 1, len do t[i][k] = m*t[i][k] end end matrixfunction.rowMultSum = function(t, i, j, m) -- replace i-th row with i-th row + m*(j-th row) local len len = #(t[1]) for k = 1, len do t[i][k] = t[i][k] + m*t[j][k] end end \stopluacode \startformula\startluacode matrixfunction.print_matrixA() \stopluacode\stopformula \startformula\startalign \startluacode local mat = {{0, 2, 4, -4, 1},{0, 0, 2, 3 , 4}, {2, 2, -6, 2, 4 }, {2,0 , -6, 9, 7}} context.NC(\\text{Given matrix}\\quad\\Rightarrow\\quad) context.NC() matrixfunction.print_matrix(mat) context.NR() context.NC() context({\\bf r}_1 \\leftrightarrow {\\bf r}_3 \\quad\\Rightarrow\\quad) matrixfunction.rowChange(mat, 1, 3) context.NC() matrixfunction.print_matrix(mat) context.NR() context.NC() context(\\frac{1}{2}{\\bf r}_1 \\rightarrow {\\bf r}_1 \\quad\\Rightarrow\\quad) 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, 1, -2) context.NC() matrixfunction.print_matrix(mat) context.NR() context.NC() context({\\bf r}_2 \\leftrightarrow {\\bf r}_3 \\quad\\Rightarrow\\quad) matrixfunction.rowChange(mat, 2, 3) context.NC() matrixfunction.print_matrix(mat) context.NR() \stopluacode \stopalign\stopformula \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \everymath
Am 16.09.2012 um 01:32 schrieb Rogers, Michael K mrog...@emory.edu: I often want every math mode (between single $) be \displaystyle. In Plain TeX, you do something like \everymath={\displaystyle} Is the best ConTeXt way to do something like this? \appendtoks\displaystyle\to\everymathematics Or is there a key in \setupmathematics? I don’t think so because I found only the command below the change the appearance of inline formulas and \displaymath/\displaymathematics isn’t what you want because it creates a display formula. \let\normalstopdmath\Ustopdisplaymath % 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 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \abovedisplayskip and \belowdisplayskip
It is my understanding that \abovedisplayskip and \belowdisplayskip should adjust how much (rubber) spacing that is allowed between display math formulas. I have attached a ConTeXt file (bug.tex) that seems to indicate that setting these skips does not affect this (rubber) spacing. I have also translated this ConTeXt file line-by-line to a LaTeX file (bug.ltx) and attached it. Both files produce a PDF (using `context bug.tex` and `pdflatex bug.ltx`) in which the spacing between the formula changes from page 1 to page 2 simply by adding the final formula. However, by changing \adjustdisplay{0} to \adjustdisplay{1}, the LaTeX file produces a 3 page document where the spacing between formula does not change (as expected) on the first two pages and thus requires a third page to typeset the final formula. However, making this same adjustment in the ConTeXt file does not seem to affect the output. I would appreciate any thoughts as to why this is happening, and I would equally appreciate a solution to keeping the spacing the same in the ConTeXt file and thus bumping that last formula to a third page. Troy Henderson bug.tex Description: TeX document \documentclass{minimal} \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-1)=1\] \vskip0.5ex \[x^2-x=1\] \vskip0.5ex \[x^2-x-1=0\] \vskip0.5ex \[x=\frac{1+\sqrt{5}}{2},\frac{1-\sqrt{5}}{2}\] } \begin{document} \pagestyle{empty} \fontsize{20}{24}\selectfont \adjustdisplay{0} \foo \clearpage \foo\vskip0.5ex \[\phi = \frac{x}{1} = x =\frac{1+\sqrt{5}}{2} \approx 1.618\] \end{document} ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] A strange problem, probably with \startitemize[columns]
\startanswer Macierz: \startformula \startmathmatrix[n=2,left={\left(\,},right={\,\right)},align=right] \NC -2 \NC 3 \NR \NC 3 \NC -4 \NR \stopmathmatrix \stopformula Powyższa macierz nie ma strategii dominujÄ cych ani punktów siodÅowych, trzeba wiÄc zastosowaÄ innÄ metodÄ. ZaÅóżmy, że gracz~I wybiera~\math{1} z~prawdopodobieÅstwem~\math{p} i~\math{2} z~prawdopodobieÅstwem~\math{1-p}. Wyznaczymy~\math{p} tak, żeby gracz~I wygrywaÅ przeciÄtnie {\em tyle samo}, obojÄtnie, co zrobi gracz~II. JeÅli gracz~II wybierze~\math{1}, przeciÄtna wygrana~I wynosi \math{-2p+3(1-p)}. JeÅli II wybierze~\math{2}, przeciÄtna wygrana~I wynosi~\math{3p-4(1-p)}. 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}{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}}. ProwadzÄ c podobnÄ analizÄ dla gracza~II widzimy, że ta sama strategia pozwala mu uzyskaÄ przeciÄtnÄ stratÄ~\math{\frac{1}{12}}. Wynika stÄ d, że znalezionej strategii nie da siÄ ulepszyÄ, a~gra nie jest sprawiedliwa (preferuje I~gracza). \stopanswer \stopitem \startitem Rozważmy wariant gry {\em parzyste czy nieparzyste}, w~którym każdy z~graczy wybiera jednÄ z~liczb~\math{\{0,1,2\}}. Spróbujcie znaleÅºÄ optymalnÄ strategiÄ dla pierwszego gracza. \startteacher To zadanie opuszczamy, chyba że mamy grupÄ geniuszy. \stopteacher \startanswer Nie ma ani strategii dominujÄ cych, ani punktów siodÅowych. PostÄpujemy jak w~poprzednim Äwiczeniu; okazuje siÄ, że I~gracz powinien wybieraÄ~\math{1} z~prawdopodobieÅstwem~\math{\frac{1}{2}} i~pozostaÅe liczby z~prawdopodobieÅstwem~\math{\frac{1}{4}}. Uwaga: ta metoda {\em nie dziaÅa dla każdej macierzy}! \stopanswer \stopitem \stopexercises \stopchapter \startchapter[title={Nim-suma liczb caÅkowitych nieujemnych\time{10--15}}] \startteacher PojÄcia nim-sumy {\em nie bÄdzie} na wykÅadzie, trzeba je wprowadziÄ na Äwiczeniach. Jest to dziaÅanie w~zbiorze liczb caÅkowitych nieujemnych okreÅlone nastÄpujÄ co: aby wyliczyÄ nim-sumÄ dwóch liczb, przeliczamy je na ukÅad dwójkowy, dodajemy pisemnie bez przeniesienia (czyli cyfry na każdej pozycji {\em modulo}~\math{2}) i~wynik interpretujemy znów jako liczbÄ w~zapisie dwójkowym. PrzykÅad: \startformula 6\oplus 12=(110)_2\oplus(1100)_2=(1010)_2=10. \stopformula (Okazuje siÄ, że to dziaÅanie jest ÅÄ czne i~przemienne, elementem neutralnym jest~\math{0}, każdy element jest swojÄ przeciwnoÅciÄ , a~ponadto nim-suma ma fundamentalne znaczenie dla analizy gry {\em Nim} i~pewnych innych gier.) \stopteacher \startexercises \startitem Przeliczcie nastÄpujÄ ce liczby w~zapisie dwójkowym na system dziesiÄ tkowy: %\startsimplecolumns \startitemize[a,columns,two,joinedup][stopper=)] \startitem \math{(101)_2} \stopitem \startitem \math{(101011)_2} \stopitem \stopitemize %\stopsimplecolumns \startanswer \startitemize[a,text][stopper=] \startitem \math{(101)_2=2^0+2^2=1+4=5}; \stopitem \startitem \math{(101011)_2=1+2+8+32=43}. \stopitem \stopitemize \stopanswer \stopitem \startitem Przeliczcie nastÄpujÄ ce liczby na system dwójkowy: \startitemize[a,columns,two,joinedup][stopper=)] \startitem \math{10} \stopitem \startitem \math{77} \stopitem \stopitemize \startanswer \startitemize[a] \startitem \math{10=8+2=(1010)_2}; \stopitem \startitem Aby przeliczyÄ na system dwójkowy liczbÄ \math{77}, można np. dzieliÄ jÄ przez~\math{2} (z~resztÄ ) tak dÅugo, aż otrzymamy zero, a~reszty wypisywaÄ jako kolejne (od prawej strony) cyfry dwójkowe: \starttabulate[|r|] \NC \math{77:2=38~\text{r.}~1}\NR \NC \math{38:2=19~\text{r.}~0}\NR \NC \math{19:2=9~\text{r.}~1}\NR \NC \math{9:2=4~\text{r.}~1}\NR \NC \math{4:2=2~\text{r.}~0}\NR \NC \math{2:2=1~\text{r.}~0}\NR \NC \math{1:2=0~\text{r.}~1}\NR \stoptabulate Zatem \math{77=(1001101)_2}. \stopitem \stopitemize \stopanswer \stopitem \startitem Znajdźcie nastÄpujÄ ce nim-sumy: \startitemize[a,columns,two,joinedup,broad,intro][stopper=)] \startitem \math{18\oplus 0} \stopitem \startitem \math{13\oplus 13} \stopitem \startitem \math{10\oplus 77} \stopitem \startitem
[NTG-context] startalign broken in latest checkout
tab has been changed to \cr ... 1 \starttext 2 3 \startformula \startalign 4 \NC v \NC = u + at \NR 5 gt;gt; \NC h \NC= ut + \frac12 gt^2 \NR 6 \stopalign \stopformula 7 8 \stoptext 9 lt;templategt; \endtemplate \math_alignment_NC -gt;\aligntab l.5 \NC h \NC= ut + \frac12 gt^2 \NR ! Extra alignment tab has been changed to \cr. system gt; tex gt; error on line 5 in file demo.context: Extra alignment tab has been changed to \cr ... 1 \starttext 2 3 \startformula \startalign 4 \NC v \NC = u + at \NR 5 gt;gt; \NC h \NC= ut + \frac12 gt^2 \NR 6 \stopalign \stopformula 7 8 \stoptext 9 lt;templategt; \endtemplate \math_alignment_NC -gt;\aligntab l.5 \NC h \NC = ut + \frac12 gt^2 \NR ! Use of \expandafter doesn't match its definition. system gt; tex gt; error on line 5 in file demo.context: Use of ... 1 \starttext 2 3 \startformula \startalign 4 \NC v \NC = u + at \NR 5 gt;gt; \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 alignment tab has been changed to \cr. system gt; tex gt; error on line 5 in file demo.context: Extra alignment tab has been changed to \cr ... 1 \starttext 2 3 \startformula \startalign 4 \NC v \NC = u + at \NR 5 gt;gt; \NC h \NC= ut + \frac12 gt^2 \NR 6 \stopalign \stopformula 7 8 \stoptext 9 lt;templategt; \endtemplate \NR -gt;\aligntab \dostoptagged \dodoubleempty \math_alignment_NR_indeed l.5 \NC h \NC= ut + \frac12 gt^2 \NR ! Use of \expandafter doesn't match its definition. system gt; tex gt; error on line 6 in file demo.context: Use of ... 1 \starttext 2 3 \startformula \startalign 4 \NC v \NC = u + at \NR 5 \NC h \NC= ut + \frac12 gt^2 \NR 6 gt;gt; \stopalign \stopformula 7 8 \stoptext 9 \syst_helpers_inspect_next_optional_character ... \fi lt;to be read againgt; \stopalign l.6 \stopalign \stopformula ! Use of \expandafter doesn't match its definition. system gt; tex gt; error on line 6 in file demo.context: Use of ... 1 \starttext 2 3 \startformula \startalign 4 \NC v \NC = u + at \NR 5 \NC h \NC= ut + \frac12 gt^2 \NR 6 gt;gt; \stopalign \stopformula 7 8 \stoptext 9 \formulaparameter ...er \doformulaparentparameter \csname \??formula \curren... \stopinnermath ...stop \formulaparameter \c!align \endcsname \stopdisplaymath -gt;\stopinnermath $$\par \afterdisplayspace \par \egroup \strc_formulas_stop_formula ...native \v!formula } \dostoptagged \dostoptagge... l.6 \stopalign \stopformula ! Missing \endcsname inserted. system gt; tex gt; error on line 6 in file demo.context: Missing \endcsname inserted ... 1 \starttext 2 3 \startformula \startalign 4 \NC v \NC = u + at \NR 5 \NC h \NC= ut + \frac12 gt^2 \NR 6 gt;gt; \stopalign \stopformula 7 8 \stoptext 9 lt;to be read againgt; \422gt;:parent \formulaparameter ...ormula :\s!parent \endcsname {#1}\fi \endcsname \stopinnermath ...stop \formulaparameter \c!align \endcsname \stopdisplaymath -gt;\stopinnermath $$\par \afterdisplayspace \par \egroup \strc_formulas_stop_formula ...native \v!formula } \dostoptagged \dostoptagge... l.6 \stopalign \stopformula ! Use of \csname\endcsname doesn't match its definition. system gt; tex gt; error on line 6 in file demo.context: Use of ... 1 \starttext 2 3 \startformula \startalign 4 \NC v \NC = u + at \NR 5 \NC h \NC= ut + \frac12 gt^2 \NR 6 gt;gt; \stopalign \stopformula 7 8 \stoptext 9 lt;recently readgt; \422gt;:parent \formulaparameter ...ormula :\s!parent \endcsname {#1}\fi \endcsname \stopinnermath ...stop \formulaparameter \c!align \endcsname \stopdisplaymath -gt;\stopinnermath $$\par \afterdisplayspace \par \egroup \strc_formulas_stop_formula ...native \v!formula } \dostoptagged \dostoptagge... l.6 \stopalign \stopformula ! Display math should end with \Ustopdisplaymath. system gt; tex gt; error on line 6 in file demo.context: Display math should end
Re: [NTG-context] itemize in two columns and pagebreaks
Dnia 2012-06-29, o godz. 23:30:13 Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a): Hello, I encountered a weird problem with \startitemize[columns] Namely, sometimes ConTeXt (MkIV) puts a pagebreak before the itemization. I tried to distill the problem to a minimal example, until now without success, but I'll post a ME if I'm able to reproduce a problem in a small file. OK, so I didn't succeed in isolating this problem. I attach the complete file (it's in Polish, sorry;)). The problem appears at page 3 in the resulting pdf (line 141 of the source file). Anybody encountered this, too? Are there any solutions/workarounds known? I naively tried putting \page[no] in various places around the problematic line, but to no avail. Also, while trying to isolate the problem, for instance by removing things before the itemization, it turned out that it's difficult to reproduce it: often, everything is fine (at the beginning of the page as well as near the end). Any ideas? -- Marcin Borkowski http://mbork.pl % Äwiczenia na Newtona o grach \mainlanguage[pl] \usetypescript[pagella] \setupbodyfont[pagella] \def\todo#1{{\em \kap{do dopisania}: #1}} \enablemode[nauczyciel] \def\startteacher{\grabbufferdata[teacher][startteacher][stopteacher]} \doifmodeelse{nauczyciel}{\def\stopteacher{\getbuffer[teacher]}}{\def\stopteacher{}} \def\startanswer{\grabbufferdata[answer][startanswer][stopanswer]} \doifmodeelse{nauczyciel}{\def\stopanswer{\blank[small]{\sl Odpowiedź.} \getbuffer[answer]}}{\def\stopanswer{}} \def\putdotafter#1{#1.} \setuphead[subsubject][style=bold,after={},alternative=text,distance=0.25em,textcommand=\putdotafter] \setuphead[section][numbercommand=\putdotafter] \setuphead[chapter][numbercommand=\putdotafter,page=no] \defineitemgroup[exercises] \setupitemgroup[exercises][1][n][before={},inbetween={\blank[medium]}] \def\ppauza{\unskip\kern.2em--\hskip.2em\ignorespaces} \starttext \startalignment[middle] \tfb Gry (materiaÅy na Äwiczenia w~czwartek) \par\blank[big] \stopalignment \completecontent \startchapter[title={Gry macierzowe}] \startexercises \startitem Jakie sÄ strategie optymalne dla obu graczy w~grze o~poniższej macierzy? \startformula \startmathmatrix[n=2,left={\left(\,},right={\,\right)},align=right] \NC 1 \NC 2 \NR \NC 3 \NC 4 \NR \stopmathmatrix \stopformula \startanswer Pierwszy gracz, wybierajÄ c drugi wiersz, w~każdym wypadku wygrywa wiÄcej, niż gdyby wybraÅ pierwszy; powinien wiÄc wybraÄ drugi wiersz (dominujÄ cy). Drugi gracz, wybierajÄ c pierwszÄ kolumnÄ, w~każdym przypadku traci mniej, niż gdyby wybraÅ drugÄ ; powinien wiÄc wybraÄ pierwszÄ (dominujÄ cÄ ) kolumnÄ. \stopanswer \stopitem \startitem Rozważmy grÄ z~nastÄpujÄ cÄ macierzÄ : \startformula \startmathmatrix[n=3,left={\left(\,},right={\,\right)},align=right] \NC 4 \NC 1 \NC -1 \NR \NC 0 \NC 1 \NC 6 \NR \NC 3 \NC 2 \NC 5 \NR \stopmathmatrix \stopformula Jaka jest optymalna strategia dla każdego z~graczy? \startanswer Å»aden wiersz ani kolumna nie sÄ dominujÄ ce, ale ponieważ \math{2} w~trzecim rzÄdzie i~drugiej kolumnie jest {\em najmniejszÄ } wartoÅciÄ w~swoim rzÄdzie i~{\em najwiÄkszÄ } wartoÅciÄ w~swojej kolumnie, optymalnÄ strategiÄ dla I~gracza jest trzecia, a~dla II~gracza druga. \stopanswer \stopitem \startitem Gra {\em parzyste czy nieparzyste} polega na tym, że dwóch graczy wybiera (równoczeÅnie) liczbÄ \math{1} lub~\math{2}. JeÅli suma wybranych liczb jest nieparzysta, wygrywa gracz~I; jeÅli jest parzysta, wygrywa gracz~II. Gracz, który przegraÅ, oddaje drugiemu kwotÄ równÄ sumie wybranych liczb. Narysuj macierz tej gry. Jaka jest optymalna strategia każdego z~graczy? Czy gra jest sprawiedliwa? \startanswer Macierz: \startformula \startmathmatrix[n=2,left={\left(\,},right={\,\right)},align=right] \NC -2 \NC 3 \NR \NC 3 \NC -4 \NR \stopmathmatrix \stopformula Powyższa macierz nie ma strategii dominujÄ cych ani punktów siodÅowych, trzeba wiÄc zastosowaÄ innÄ metodÄ. ZaÅóżmy, że gracz~I wybiera~\math{1} z~prawdopodobieÅstwem~\math{p} i~\math{2} z~prawdopodobieÅstwem~\math{1-p}. Wyznaczymy~\math{p} tak, żeby gracz~I wygrywaÅ przeciÄtnie {\em tyle samo}, obojÄtnie, co zrobi gracz~II. JeÅli gracz~II wybierze~\math{1}, przeciÄtna wygrana~I wynosi \math{-2p+3(1-p)}. JeÅli II wybierze~\math{2}, przeciÄtna wygrana~I wynosi~\math{3p-4(1-p)}. 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}{12}}. Jego przeciÄtna wygrana
Re: [NTG-context] Small integral signes with Palatino
On 28-5-2012 01:27, Aditya Mahajan wrote: On Mon, 28 May 2012, luigi scarso wrote: Different, but still wrong \unprotect \starttypescript [\s!math] [palatinomath] \definefontsynonym [PalatinoMath] [\s!file:texgyrepagella-math-regular.otf] \stoptypescript \starttypescript [\s!math] [palatinomath] [\s!name] \definefontsynonym [MathRoman] [PalatinoMath] [\s!features=\s!math\mathsizesuffix] \stoptypescript \starttypescript [PalatinoTest] \definetypeface [\typescriptone] [\s!rm] [\s!serif] [palatino] [\s!default] \definetypeface [\typescriptone] [\s!mm] [\s!math] [palatinomath] [\s!default] \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, and more importantly, we can patch the font to change DisplayOperatorMinHeight. It's really weird ... in the virtual font builder we have DisplayOperatorMinHeight = t . math_operator_size. text_style and there has been a good reason for this otherwise it would not be there. For the normal (12pt) size this becomes 1040448 for px as well as tx. Both fonts (when looking at them with \showfont[pxex.tfm] etc have the same shapes. Concerning the rest of the parameters, only for this case irrelevant differ a bit. % name px tx % RadicalRuleThickness 46399 44040 2359 % FractionDenominatorDisplayStyleGapMin 139197 132120 7077 % OverbarVerticalGap139197 132120 7077 % RadicalDisplayStyleVerticalGap133103 130744 2359 % UnderbarVerticalGap 139197 132120 7077 % FractionNumeratorGapMin 46399 44040 2359 % OverbarRuleThickness 46399 44040 2359 % StackGapMin 139197 132120 7077 % RadicalVerticalGap57998.7555050 2948.75 % StackDisplayStyleGapMin 324793 308280 16513 % AccentBaseHeight 353107.968 353894.4-786.4320003 % FractionRuleThickness 46399 44040 2359 % FractionDenominatorGapMin 46399 44040 2359 % OverbarExtraAscender 46399 44040 2359 % SubSuperscriptGapMin 185596 176160 9436 % MinConnectorOverlap 11599.7511010 589.75 % FractionNumeratorDisplayStyleGapMin 139197 132120 7077 % UnderbarRuleThickness 46399 44040 2359 % RadicalExtraAscender 46399 44040 2359 So, there is no real reason for px to behave different than tx. However, when we nil DisplayOperatorMinHeight we get the scaled glyph. Okay, we could have threshold issue but even putting some real large math mess after itm it will not bump to the next size shape (there is only one larger size btw) .. puzzling BTW, what is the status of Pagella Math? Should we default to that instead of px-fonts? not yet Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Small integral signes with Palatino
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} {\rm d} x \stopformula \stoptext Cheers, Tim 2012/5/25 Hans Hagen pra...@wxs.nl: On 25-5-2012 00:43, Aditya Mahajan wrote: It's more complicated because tx-fonts behaves correctly. indeed, and I always thought that these fonts were similar in setup Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Small integral signes with Palatino
On Sun, May 27, 2012 at 5:16 PM, Tim Steenvoorden tim.steenvoor...@gmail.com wrote: 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} {\rm d} x \stopformula \stoptext confirmed (again) -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Small integral signes with Palatino
On Sun, May 27, 2012 at 5:31 PM, luigi scarso luigi.sca...@gmail.com wrote: On Sun, May 27, 2012 at 5:16 PM, Tim Steenvoorden tim.steenvoor...@gmail.com wrote: 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} {\rm d} x \stopformula \stoptext confirmed (again) Stupid question: why we are not using texgyrepagella-math-regular.otf ? -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Small integral signes with Palatino
On Sun, May 27, 2012 at 7:50 PM, luigi scarso luigi.sca...@gmail.com wrote: On Sun, May 27, 2012 at 5:31 PM, luigi scarso luigi.sca...@gmail.com wrote: On Sun, May 27, 2012 at 5:16 PM, Tim Steenvoorden tim.steenvoor...@gmail.com wrote: 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} {\rm d} x \stopformula \stoptext confirmed (again) Stupid question: why we are not using texgyrepagella-math-regular.otf ? -- luigi Different, but still wrong \unprotect \starttypescript [\s!math] [palatinomath] \definefontsynonym [PalatinoMath] [\s!file:texgyrepagella-math-regular.otf] \stoptypescript \starttypescript [\s!math] [palatinomath] [\s!name] \definefontsynonym [MathRoman] [PalatinoMath] [\s!features=\s!math\mathsizesuffix] \stoptypescript \starttypescript [PalatinoTest] \definetypeface [\typescriptone] [\s!rm] [\s!serif] [palatino] [\s!default] \definetypeface [\typescriptone] [\s!mm] [\s!math] [palatinomath] [\s!default] \quittypescriptscanning \stoptypescript \protect \usetypescript[PalatinoTest] \setupbodyfont[PalatinoTest,12pt] \starttext \input knuth \par \startformula \int_0^\infty \frac{1}{x} {\rm d} x \stopformula \stoptext -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Small integral signes with Palatino
On Mon, 28 May 2012, luigi scarso wrote: Different, but still wrong \unprotect \starttypescript [\s!math] [palatinomath] \definefontsynonym [PalatinoMath] [\s!file:texgyrepagella-math-regular.otf] \stoptypescript \starttypescript [\s!math] [palatinomath] [\s!name] \definefontsynonym [MathRoman] [PalatinoMath] [\s!features=\s!math\mathsizesuffix] \stoptypescript \starttypescript [PalatinoTest] \definetypeface [\typescriptone] [\s!rm] [\s!serif] [palatino] [\s!default] \definetypeface [\typescriptone] [\s!mm] [\s!math] [palatinomath] [\s!default] \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, and more importantly, we can patch the font to change DisplayOperatorMinHeight. BTW, what is the status of Pagella Math? Should we default to that instead of px-fonts? Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] overscored or overlined text … (or whatever it should be called)
On Thu, 26 Jan 2012, Philipp A. wrote: 2012/1/25 Aditya Mahajan adit...@umich.edu Better is to use: \StrikeMeFrame{\mathsurround\zeropoint$#1$}. But for this to work in subscripts and superscripts, you must use math palette. IIRC, \mframed does that. In principle: \mframed[background=strikeme]{**...} should work (untested). @Hans: Can we have \definemframed etc as well? Aditya so this should work? ‒ \startuniqueMPgraphic{strikeme} path p ; p := OverlayBox topenlarged -ExHeight bottomenlarged -ExHeight ; draw llcorner p -- urcorner p withcolor OverlayColor ; \stopuniqueMPgraphic \defineoverlay[strikeme][\uniqueMPgraphic{strikeme}] \def\strike#1{% \ifmmode% \mframed[background=strikeme,frame=off]{#1}% \else% \inframed[background=strikeme,frame=off]{#1}% \fi} \starttext \startformula {\strike2a + \strike ab \over \strike a} = a \stopformula 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, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Broken Nightly (2012.01.23)
Hey Hans et al., Using ConTeXt ver: 2012.01.23 19:45 MKIV fmt: 2012.1.24 int: english/english and LuaTeX, Version beta-0.71.0-2012012215 (rev 4358), I get the following error while typesetting my book: ! Undefined control sequence. argument \doconvertedstructurecounter [\v!formula ][] \flushbothlabelclass #1#2#3-#1#3 #2 argument ...spaces \doplacecurrentformulanumber \removeunwantedspaces \dos... \flushbothlabelclass #1#2#3-#1#3 #2 \namedtaggedlabeltexts ...\dostarttagged {#1}{#2}} \dostoptagged \endgroup \placecurrentformulanumber ...moveunwantedspaces } \formulaparameter \c! right... ... l.120 \stopformula ? 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}^{r t} - 1)}} \stopformula % Line 120 ... -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] formulas (display math) and grid
I have a layout using a columset and grid. When I insert a formula into a column of text, the text following the formula is not snapped to the grid, and the next paragraph is not indented. How can I make the text return to the grid after a formula? And have normal paragraph indentation? \input 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 peter.park.nel...@gmail.com ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Passing TeX parameters to the lua functions
Hello ConTeXist. Sorry for the beginner question, more for Lua(TeX) experts. Can somehow be achieved that the parameter of TeX macro get to luafunction unchanged? In the debug.txt file is the result obtained. Thanx Jaroslav \startluacode debug=io.open(debug.txt,w+) function testfun(param) debug:write(param) -- tex.print(param) end \stopluacode \def\testmac#1{\directlua{testfun('#1')}} \starttext $\frac{x_\alpha+y_\beta}{z_\gamma}$ \testmac{\frac{x_\alpha+y_\beta}{z_\gamma}} \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled
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\ \contextversion\ with \texenginename\ \texengineversion \stoptext the parentheses of the binomial in the text or too short. I guess this is because the parentheses are not scaled when inlined and that this is also a TeX limitation and therefore expected? Instead if \choose you can use \binom which is the recommended way in context. The \dbinom command sets the content in display style while \tbinom use textstyle. \starttext Using \tex{binom} in text $\binom{n}{\frac{n}{2}}$. Using \tex{dbinom} in text $\dbinom{n}{\frac{n}{2}}$. Using \tex{tbinom} in text $\tbinom{n}{\frac{n}{2}}$. \startformula \binom{n}{\frac{n}{2}} \stopformula \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [solved] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled
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 \stopformula \CONTEXT\ \contextmark\ \contextversion\ with \texenginename\ \texengineversion \stoptext the parentheses of the binomial in the text or too short. I guess this is because the parentheses are not scaled when inlined and that this is also a TeX limitation and therefore expected? Instead if \choose you can use \binom which is the recommended way in context. The \dbinom command sets the content in display style while \tbinom use textstyle. \starttext Using \tex{binom} in text $\binom{n}{\frac{n}{2}}$. Using \tex{dbinom} in text $\dbinom{n}{\frac{n}{2}}$. Using \tex{tbinom} in text $\tbinom{n}{\frac{n}{2}}$. \startformula \binom{n}{\frac{n}{2}} \stopformula \stoptext As always that did the trick. Thank you a lot Wolfgang and Dalyoung! Thanks, Paul binom.pdf Description: Adobe PDF document \starttext Using \tex{binom} in text $\binom{n}{\frac{n}{2}}$. Using \tex{dbinom} in text $\dbinom{n}{\frac{n}{2}}$. Using \tex{tbinom} in text $\tbinom{n}{\frac{n}{2}}$. \startformula \binom{n}{\frac{n}{2}} \stopformula \stoptext signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled
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\ \texengineversion \stoptext the parentheses of the binomial in the text or too short. I guess this is because the parentheses are not scaled when inlined and that this is also a TeX limitation and therefore expected? ConTEXt MKIV 2011.11.25 21:29 with LuaTeX 0.70.1 Thanks, Paul choose.pdf Description: Adobe PDF document \starttext Using \type{\choose} in text $n \choose \frac{n}2$. \startformula n \choose \frac{n}2 \stopformula \CONTEXT\ \contextmark\ \contextversion\ with \texenginename\ \texengineversion \stoptext signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled
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 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fonts in Mk IV -- \definefontalternative documentation?
Hello and welcome to the world of ConTeXt! I was in you place about one year ago :) The best way to get started with fonts is probably the simplefonts module. I haven't used anything since I started and was able to do everything I wished for, so far. Installation: Run first-setup.sh --modules=t-simplefonts if you use Context standalone (if not, refer to http://wiki.contextgarden.net/Modules for installation and download links). Then this file should get you started: %%% BEGIN \usemodule[simplefonts] \definefontfeature[default][default][mode=node,script=latn,kern=yes,palt=yes,tlig=yes,trep=yes,init=yes,size=yes] %some default features \definefontfeature[frac][default][frac=yes] % opentype 'frac' feature for nice fractions \definefontfeature[sups][default][sups=yes] \definefontfeature[onum][default][onum=yes] % old-style figures \definefontfeature[lnum][default][lnum=yes] \setupsimplefonts[expansion=quality, protrusion=quality] % sort of microtype thing. makes things look better =) \setmainfont[Myriad Pro] % set Myriad as main font \definesimplefonttypeface[sb][Myriad Pro][regularfont=myriadprosemibold, italicfont=myriadprosemiboldit] % define a second font called 'sb' for semibold \starttext Test normal\\ {\sb Test semibold}\\ {\sb \it Test semibold}\\ {\bf Test bold}\\ Opentype font feature demonstration:\\ {\addff{onum} 1234} 1234\\ {\addff{frac} 1/17} \stoptext %%% END Hello, I am coming to ConTeXt from LaTeX and have a typescript question. I was searching for information on the mailing list about defining semibold and other font variants, and found the following. Can you tell me if further information is only available in the book context mkiv -- Fonts or can I find it somewhere else? I have searched through the revised Fonts chapter of the ConTeXt manual but the \definefontalternative macro and the approach described here are not documented there. The approach below works for me if I adapt it to Adobe Garamond Premier Pro, but I am attempting to build a typescript for that handles optical weights, small caps, etc and I have not been able to make it work yet. Before I try posting a minimal example, I would like to be sure that I am looking at the right documentation. I have looked at the Fonts in LuaTeX page on Contextgarden as well, but I don't think I have a full understanding of typescripts using OSFONTDIR fonts yet. If there is something I am missing please let me know. Thanks, PPN Based on ideas from the forthcoming book context mkiv -- Fonts: % note: I have deleted all lines except the relevant ones for defining % the semi bold alternatives \definefontalternative [sb] \definefontalternative [si] \definebodyfont [default] [ss] [sb=SansSemiBold sa 1, si=SansSemiBoldItalic sa 1] \starttypescript [sans] [myriadpro] \definefontsynonym [MyriadPro-SemiBold] [name:myriadprosemibold] \definefontsynonym [MyriadPro-SemiBoldIt][name:myriadprosemiboldit] \stoptypescript \starttypescript [sans] [myriadpro] \definefontsynonym [SansSemiBold] [MyriadPro-SemiBold] [features=default] \definefontsynonym [SansSemiBoldItalic] [MyriadPro-SemiBoldIt] [features=default] \stoptypescript \starttypescript [myriadpro] \definetypeface [myriadpro] [ss] [sans] [myriadpro] [default] \stoptypescript \usetypescript[myriadpro] \starttext \switchtobodyfont[myriadpro,ss] \sb Hello \si Italic \stoptext -- Peter Park Nelson peter.park.nel...@gmail.com ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \unit problem
Hello all, It seems that some unit combinations don't work very well with the \unit macro. I have some problems with the m- (milli-) prefix but some tests reveal other strange errors. Here is a not so minimal example. The first 33 entries come from phys- dim.mkiv and work well. In the entries 100 to 115 which I added, the 102, 107, 108, 109, 110, 111, 112 and 115 cause problem : \starttext \startbuffer 01: $10\unit{km/h}$ 02: $\unit{10 km/h}$ 03: \unit{km/h} 04: \unit{10 km/h} 05: \unit{10 km/h} 06: \unit{~1 km/h} 07: 10\unit{km/h} 08: 10 \unit{km/h} 09: $10 \unit{km/h}$ 10: 10 \unit{KiloMeter/Hour} 11: 10 \unit{kilometer/hour} 12: 10 \unit{km/h} 13: 10 \unit{kilometer per hour} 14: 10 \unit{km / h} 15: 10 \unit{ km / h } 16: 10 \unit{km/ms2} 17: 10 \unit{meter per second} 18: 10 \unit{cubic meter} 19: 10 \unit{cubic meter per second} 21: 10 \unit{cubic meter / second} 22: $10 \unit{cubic meter / second}$ 23: 30 \unit{kilo pascal } 24: 30 \unit{kilo pascal square meter / second} 25: 30 \unit{kilo pascal square meter / kelvin second} 26: \unit{30 kilo pascal square meter / kelvin second} 27: $30 \unit{kilo pascal square meter / kelvin second }$ 28: 30 \unit{crap} 29: 30 \unit{AC} 30: $\frac{10 \unit{m/s}}{20 \unit{m/s}} $ 31: {\ss 30 \unit{kilo pascal square meter / second kelvin}} 32: \unit{123.22^-3 km/s} 33: \unit{123.22e-3 km/s} 100: \unit{10 mm} 101: \unit{10 km} 102: \unit{10,2 mA} 103: \unit{123 kA} 104: \unit{0,001 MA} 105: \unit{1 dal} 106: \unit{2.21 GW} 107: \unit{345 mW} 108: \unit{152.20 mHz} 109: \unit{55.5 mmol} 110: \unit{6.7 mol/l} 111: \unit{125 g/l} 112: \unit{125 g / l} 113: \unit{125 km/s} 114: \unit{125 m/s} 115: \unit{125 mA/s} \stopbuffer \typebuffer Result: \startlines \getbuffer \stoplines \stoptext Thank you for your help. -- Romain Diss romain.d...@yahoo.fr ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] handling fonts with missing math (was: math signs in itemize)
On 26-9-2011 08:46, Mojca Miklavec wrote: On Sat, Sep 24, 2011 at 11:29, R. Ermers wrote: Snippets from log file: ! Math error: parameter \Umathquad\displaystyle is not set. Independent of everything else that has been said in that thread: wouldn't it be nice to simply fall back on Latin Modern for math when some font doesn't provide accompanying math glyphs instead of giving up in the middle of the run? Of course that will give suboptimal result (in particular everything inside $math$ will be in LM as opposed to original font), but at least it won't complain about a missing $\bullet$ and one 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 - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] handling fonts with missing math (was: math signs in itemize)
On Sat, Sep 24, 2011 at 11:29, R. Ermers wrote: Snippets from log file: ! Math error: parameter \Umathquad\displaystyle is not set. Independent of everything else that has been said in that thread: wouldn't it be nice to simply fall back on Latin Modern for math when some font doesn't provide accompanying math glyphs instead of giving up in the middle of the run? Of course that will give suboptimal result (in particular everything inside $math$ will be in LM as opposed to original font), but at least it won't complain about a missing $\bullet$ and one can always use $\frac{\text{1}}{\text{2}}$ or something similar :). Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math signs in itemize
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}{40}. This is still typeset in math mode. A alternative is to write the fraction as “1/40”. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math signs in itemize
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] Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math signs in itemize
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. \definefontfeature[frac][frac=yes,script=latn] \setupbodyfont[cambria] \starttext 1/40 {\setff{frac}1/40} \m{\frac{1}{40}} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math signs in itemize
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}` the output is like ¼0. Using `{40}` also does not help. \stoptext Thanks, Paul signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math signs in itemize
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, but you will get output as you describe below, which I know is buggy since the font lacks generalised frac feature. \starttext 1/40 {\setff{frac}1/40} \m{\frac{1}{40}} With `{\setff{frac}1/40}` the output is like ¼0. Using `{40}` also does not help. Looks like frac here is a simple ligature of few predefined fractions. Regards, Khaled -- Khaled Hosny Egyptian Arab signature.asc Description: Digital signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math signs in itemize
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 \*gentium10ptrmtf* (-20) .t\*gentium10ptrmtf* (-15) e\*gentium10ptrmtf* (-20) l\*gentium10ptrmtf* (-15) eg\*gentium10ptrmtf* (-20) r\*gentium10ptrmtf* (-15) aa\*gentium10ptrmtf* (-20) f.\*gentium10ptrmtf* (-15) n\*gentium10ptrmtf* (-20) l/\*gentium10ptrmtf* (-15) b\*gentium10ptrmtf* (-20) i\*gentium10ptrmtf* (-15) nnen\*gentium10ptrmtf* (-20) l\*gentium10ptrmtf* (-15) and\*gentium10ptrmtf* (-20) /\*gentium10ptrmtf* (-15) 3\*gentium10ptrmtf* (-20) 7\*gentium10ptrmtf* (-15) 3\*gentium10ptrmtf* (-20) 0\*gentium10ptrmtf* (-15) 6\*gentium10ptrmtf* (-20) 4\*gentium10ptrmtf* (-15) 9\*gentium10ptrmtf* (-20) /_J\*gentium10ptrmtf* (-15) eugdzo\*gentium10ptrmtf* (-20) r\*gentium10ptrmtf* (-15) g\*gentium10ptrmtf* (-20) _\*gentium10ptrmtf* (-15) gedoog\*gentium10ptrmtf* (-20) t another snipped related to Gentium: \hbox(6.84+2.18)x203.05038, direction TLT .\*gentium10ptrmtf* (-20) . .\*gentium10ptrmtf* (-20) t .\*gentium10ptrmtf* (-15) e .\*gentium10ptrmtf* (-20) l .\*gentium10ptrmtf* (-15) e .etc. ... )/prog2/context2/tex/texmf/fonts/opentype/public/lm/lmmono10-regular.otf/prog2/context2/tex/texmf-fonts/fonts/data/opentype/public/tex-gyre/texgyretermes-regular.otf/prog2/context2/tex/texmf-fonts/fonts/data/opentype/public/tex-gyre/texgyretermes-italic.otf/prog2/context2/tex/texmf-fonts/fonts/data/opentype/public/tex-gyre/texgyretermes-bold.otf/prog2/context2/tex/texmf-fonts/fonts/data/opentype/public/tex-gyre/texgyretermes-regular.otf Op 26 sep 2011, om 15:59 heeft Khaled Hosny het volgende geschreven: 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, but you will get output as you describe below, which I know is buggy since the font lacks generalised frac feature. \starttext 1/40 {\setff{frac}1/40} \m{\frac{1}{40}} With `{\setff{frac}1/40}` the output is like ¼0. Using `{40}` also does not help. Looks like frac here is a simple ligature of few predefined fractions. Regards, Khaled -- Khaled Hosny Egyptian Arab ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math signs in itemize
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 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] beta
Hi Hans, Just out of curioisity I tested your example, but mkiv stopped with the error: ! Undefined control sequence. system tex error on line 14 in file units-math-export.tex: Undefined control sequence ... l.14 $10\su {km/h}$ Probably I am being somewhat dumb… since the module « dimenesions » is not present in the minimals. Has one to define \su somewhere? I am reporting this upon using ConTeXt ver: 2011.06.09 12:49 MKIV. Best regards: OK On 11 juin 2011, at 16:54, Hans Hagen wrote: Hi, In the process of extending math export I decided to finish and integrate an old experiment with units. Details can change as can configuration. \usemodule[dimensions] \setupbackend[export=yes] \starttext \startlines $10\su{km/h}$ $\su{10 km/h}$ \su{10 km/h} 10\su{km/h} 10 \su{km/h} $10 \su{km/h}$ 10 \su{KiloMeter/Hour} 10 \su{kilometer/hour} 10 \su{km/h} 10 \su{kilometer per hour} 10 \su{km / h} 10 \su{ km / h } 10 \su{km/ms2} 10 \su{meter per second} 10 \su{cubic meter} 10 \su{cubic meter per second} 10 \su{cubic meter / second} $10 \su{cubic meter / second}$ 30 \su{kilo pascal } 30 \su{kilo pascal square meter / second} 30 \su{kilo pascal square meter / kelvin second} \su{30 kilo pascal square meter / kelvin second} $30 \su{kilo pascal square 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}} \stoplines \stoptext I might decide to push it in the core. The su is an abbreviation for scientific unit as we already have \unit (which I like more) and \dim is also taken. Of course \u would be even nicer but that's a accent placement (ok, we could drop all those as we have utf). Using two character names is not handy as they look like language switches. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ %% Otared Kavian Département de Mathématiques Université de Versailles Saint-Quentin Bâtiment Fermat 45 avenue des Etats Unis 78035 Versailles cedex Téléphone: +33 1 39 25 46 42 Secrétariat: +33 1 39 25 46 44 Secrétariat: +33 1 39 25 46 46 e-mail: otared.kav...@math.uvsq.fr ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] beta
Hi, In the process of extending math export I decided to finish and integrate an old experiment with units. Details can change as can configuration. \usemodule[dimensions] \setupbackend[export=yes] \starttext \startlines $10\su{km/h}$ $\su{10 km/h}$ \su{10 km/h} 10\su{km/h} 10 \su{km/h} $10 \su{km/h}$ 10 \su{KiloMeter/Hour} 10 \su{kilometer/hour} 10 \su{km/h} 10 \su{kilometer per hour} 10 \su{km / h} 10 \su{ km / h } 10 \su{km/ms2} 10 \su{meter per second} 10 \su{cubic meter} 10 \su{cubic meter per second} 10 \su{cubic meter / second} $10 \su{cubic meter / second}$ 30 \su{kilo pascal } 30 \su{kilo pascal square meter / second} 30 \su{kilo pascal square meter / kelvin second} \su{30 kilo pascal square meter / kelvin second} $30 \su{kilo pascal square 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}} \stoplines \stoptext I might decide to push it in the core. The su is an abbreviation for scientific unit as we already have \unit (which I like more) and \dim is also taken. Of course \u would be even nicer but that's a accent placement (ok, we could drop all those as we have utf). Using two character names is not handy as they look like language switches. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math: too big space between function and argument
On Di, 2011-05-24 at 09:56 -0400, Aditya Mahajan wrote: On Tue, 24 May 2011, Paul Menzel wrote: to markup the probability measure and the parenthesis around the argument, I defined the following command. \define[1]\P{{\mathbf P}\left( #1 \right)} Unfortunately the space between the P and the left ( is a little big in my opinion. Is that correct or should/can I fix that somehow? Getting these spaces is tricky; especially if you consider spaces before and after the definition. Choose your pick: \starttext \startformula A{\mathbf P}\left( ABC \right)B \quad A\mathop{\kern\zeropoint\mathbf P}\left( ABC \right)B \quad A{\mathbf P}\mathopen{}\left( ABC \right)\mathclose{}B \quad A\mathop{\kern\zeropoint\mathbf P}\mathopen{}\left( ABC \right)\mathclose{}B \quad \stopformula \stoptext That looks tricky and complex. Some information from the mathsets module (which does not work with MkIV). I hope you or somebody will have time to port that module to MkIV. The entry is the latex bug database 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} \biggr) %D \stopformula %D %D and %D %D \startformula %D \Pr\left(\frac {3}{4} \right) \qquad \hbox{ vs } \qquad %D \Pr\biggl( \frac {3}{4} \biggr) %D \stopformula %D \stopbuffer %D \typebuffer %D %D which gives (notice the spacing before the parenthesis) %D %D \getbuffer %D %D I will assume that if \type{text} is something, then %D the default behaviour is desirable, if \type{text} is empty, then I add %D \type{\mathopen} and \type{\mathclose}. Using \type{\mathopen} to correct %D the spacing is due to Frank Mittelbach, see %D \hyphenatedurl{http://www.latex-project.org/cgi-bin/ltxbugs2html?pr=latex/3853} %D %D Mathset module ensures that we get the correct spacing in both cases %D \startbuffer %D \definemathset[SET][left=(,right=)] %D \startformula %D 2\SET{\frac{3}{4}} \qquad \hbox{ and } \qquad %D \PR{ \frac{3}{4} } %D \stopformula %D \stopbuffer %D \getbuffer[PR] \getbuffer which was typed as \typebuffer %D %D Also, if its argument is a single character, \type{\mathop} centers it to %D with respect to the math||axis. Compare the outputs of %D %D \startbuffer %D \ruledhbox{$\mathop{y}\nolimits_x\left\{A\,\middle|\,B\right\}$} %D \ruledhbox{$\mathop{\kern\zeropoint y}\nolimits_x\left\{A\,\middle|\,B\right\}$} %D \stopbuffer %D %D \typebuffer %D \getbuffer %D %D I have added a \type{\kern\zeropoint} to prevent that. Could you explain the advantage over `\!` which Wolfgang suggested at least for the space after the definition. In addition, I think AMSTeX defines a command `\DeclareMathOperator` [1] which takes care of these things. Thanks, Paul [1] http://en.wikibooks.org/wiki/LaTeX/Advanced_Mathematics#Custom_operators signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math: too big space between function and argument
On Tue, 24 May 2011, Paul Menzel wrote: Dear ConTeXt folks, to markup the probability measure and the parenthesis around the argument, I defined the following command. \define[1]\P{{\mathbf P}\left( #1 \right)} Unfortunately the space between the P and the left ( is a little big in my opinion. Is that correct or should/can I fix that somehow? Getting these spaces is tricky; especially if you consider spaces before and after the definition. Choose your pick: \starttext \startformula A{\mathbf P}\left( ABC \right)B \quad A\mathop{\kern\zeropoint\mathbf P}\left( ABC \right)B \quad A{\mathbf P}\mathopen{}\left( ABC \right)\mathclose{}B \quad A\mathop{\kern\zeropoint\mathbf P}\mathopen{}\left( ABC \right)\mathclose{}B \quad \stopformula \stoptext Some information from the mathsets module (which does not work with MkIV). The entry is the latex bug database 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} \biggr) %D \stopformula %D %D and %D %D \startformula %D \Pr\left(\frac {3}{4} \right) \qquad \hbox{ vs } \qquad %D \Pr\biggl( \frac {3}{4} \biggr) %D \stopformula %D \stopbuffer %D \typebuffer %D %D which gives (notice the spacing before the parenthesis) %D %D \getbuffer %D %D I will assume that if \type{text} is something, then %D the default behaviour is desirable, if \type{text} is empty, then I add %D \type{\mathopen} and \type{\mathclose}. Using \type{\mathopen} to correct %D the spacing is due to Frank Mittelbach, see %D \hyphenatedurl{http://www.latex-project.org/cgi-bin/ltxbugs2html?pr=latex/3853} %D %D Mathset module ensures that we get the correct spacing in both cases %D \startbuffer %D \definemathset[SET][left=(,right=)] %D \startformula %D 2\SET{\frac{3}{4}} \qquad \hbox{ and } \qquad %D \PR{ \frac{3}{4} } %D \stopformula %D \stopbuffer %D \getbuffer[PR] \getbuffer which was typed as \typebuffer %D %D Also, if its argument is a single character, \type{\mathop} centers it to %D with respect to the math||axis. Compare the outputs of %D %D \startbuffer %D \ruledhbox{$\mathop{y}\nolimits_x\left\{A\,\middle|\,B\right\}$} %D \ruledhbox{$\mathop{\kern\zeropoint y}\nolimits_x\left\{A\,\middle|\,B\right\}$} %D \stopbuffer %D %D \typebuffer %D \getbuffer %D %D I have added a \type{\kern\zeropoint} to prevent that. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [t-rst] inclusion into Minimals, i. e. installation using `./first-setup.sh --extras='t-rst'`
On 2011-05-07 Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: On Fri, May 6, 2011 at 21:08, Marco wrote: On 2011-05-06 Mojca Miklavec wrote: Looks like context needs a package manager. [...] but I admit that I miss some GUI (but then again I have no idea how to write a portable GUI). There are several possibilities, GTK+ is well documented, ported to many platforms and operating systems (However, maybe not to all, ConTeXt supports) and has Lua bindings. If you can prepare a very simple example and explain how to compile it on windows, mac and windows ... A simple example of a GUI is attached and may serve as a starting point (questions to the example maybe better off-list, since it's not at all ConTeXt related). I don't know which packages are required on windows or macos. On linux and solaris it is sufficient to install GTK and the lua-gtk bindings. Marco #! /usr/bin/env lua Mainwin = {} Mainwin.__index = Mainwin List = { 'Just', 'some', 'random', 'stuff', 'for', 'demonstration', } local function UpdateProgressBar(bar) local oldFrac = gtk.progress_bar_get_fraction(bar) local frac= 1/#List if (oldFrac + frac = 1) then frac = 0 oldFrac = 1 gtk.main_quit() end gtk.progress_bar_set_fraction(bar, oldFrac + frac) end function Progressbar() local progress = gtk.progress_bar_new() gtk.progress_bar_set_text(progress, Processingâ¦) gtk.progress_bar_set_fraction(progress, 0) return progress end function Mainwin.new() local self = {} setmetatable(self, Mainwin) -- Set main window size, title, ⦠self.w = gtk.window_new(gtk.WINDOW_TOPLEVEL) self.w:set_title(My Program) self.w:connect('destroy', gtk.main_quit) self.w:set_default_size(400, 400) -- Vertical box local vbox = gtk.vbox_new(false, 10) vbox:set_border_width(5) self.w:add(vbox) -- Tool bar local toolbar = gtk.toolbar_new() vbox:pack_start(toolbar, false, true, 0) -- Tool bar: items local items = { { gtk-go-forward, StartProcessing }, { SEPARATOR, nil }, { gtk-quit, gtk.main_quit } } -- Tool bar: add items to tool bar for _, item in pairs(items) do local stock = item[1] local handler = item[2] local button, id if stock == 'SEPARATOR' then button = gtk.separator_tool_item_new() else button = gtk.tool_button_new_from_stock(stock) id = button:connect(clicked, handler, self) end toolbar:insert(button, -1) end -- Progress bar progressbar = Progressbar() vbox:pack_start(progressbar, false, true, 0) -- Scroll window local scrollwindow = gtk.scrolled_window_new(nil, nil) vbox:pack_start(scrollwindow, true, true, 0) -- Tree view local treeview = gtk.tree_view_new() scrollwindow:add(treeview) -- create store local store = gtk.tree_store_new(3, glib.TYPE_INT, -- [0] some ID glib.TYPE_STRING, -- [1] path / file name glib.TYPE_STRING) -- [2] Status treeview:set_model(store) -- column with text local r, c r = gtk.cell_renderer_text_new() c = gtk.tree_view_column_new_with_attributes(File, r, text, 1, nil) treeview:append_column(c) c = gtk.tree_view_column_new_with_attributes(Status, r, text, 2, nil) treeview:append_column(c) -- add some items local iter1 = gtk.new TreeIter for i = 1, #List do store:append(iter1, nil) store:set(iter1, 0, i, 1, List[i], -1) end self.w:show_all() return self end function StartProcessing() DoStartProcessing_c = gnome.closure(DoStartProcessing) glib.timeout_add(200, DoStartProcessing_c, DoStartProcessing) end function DoStartProcessing() UpdateProgressBar(progressbar) return true end -- -- Main Program -- -- require gtk mainwin = Mainwin.new() gtk.main() ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] AMSTeX compatibility: `\dotsb` is not defined
Dear ConTeXt folks, `\dotsb` is not defined although it is defined in AMSTeX (amsmath) [1]. Please find the following minimal example also attached. \starttext This throws an error, since »\backslash dotsb« is not defined. \startformula 1 + 2 + 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 sequence ... 1 \starttext 2 This throws an error, since »\backslash dotsb« is not defined. 3 4 \startformula 5 1 + 2 + 3 + \dotsb + n = \frac{n}{2} (n + 1) 6 \stopformula 7 \stoptext 8 l.5 1 + 2 + 3 + \dotsb + n = \frac{n}{2} (n + 1) ? […] Is `\dotsb` not defined intentionally? Thanks, Paul [1] http://en.wikibooks.org/wiki/LaTeX/Mathematics#Introducing_text_and_dots_in_formulas \starttext This throws an error, since »\backslash dotsb« is not defined. \startformula 1 + 2 + 3 + \dotsb + n = \frac{n}{2} (n + 1) \stopformula \stoptext signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Context and metapost: using \frac
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 one post where it was mentione done should add //\setupMPpage[offset=1pt] //(http://www.tug.org/pipermail/pdftex/2001-March/000429.html). I tried, but did not work however... Any idea how I should do? Find below minimal example, that does not work on my computer when compiling with context... Thanks!! Matthieu \starttext \setupMPpage[offset=1pt] \switchtobodyfont[10pt] % Beginning MetaPost graphic \startMPpage label.top(btex 1.4 etex scaled 1.00, (10, 10)); label.top(btex $\sigma_t$ etex scaled 1.00, (0, 10)); label.top(btex $\displaystyle \frac{\sigma_t}{a}$ etex scaled 1.00, (1, 1)); \stopMPpage \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context and metapost: using \frac
On 25-4-2011 8:33, mat wrote: Any idea how I should do? Find below minimal example, that does not work on my computer when compiling with context... best use textext ... label.top(textext(1.4)scaled 1.00, (10, 10)); label.top(textext($\sigma_t$) scaled 1.00, (0, 10)); label.top(textext($\displaystyle \frac{\sigma_t}{a}$) scaled 1.00, (1, 1)); works ok (only tested mkiv); also \frac is available in context Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context and metapost: using \frac
Dear Hans Thanks for your quick answer! I was however not able to produce the graph with the textext code... Should I actually then use another compiler? I tried with context and texexec (I thought texexec is the compiler for mkiv, right? I'm on linux ubuntu). I saw also that, as you mention, context has a \frac: http://wiki.contextgarden.net/Math_with_newmat I tried then to simply add \usemodule[newmat] and compile with context, but did not work... Code below, error message below below... Thanks a lot Matthieu Code: \usemodule[newmat] \starttext \setupMPpage[offset=1pt] \switchtobodyfont[10pt] % Beginning MetaPost graphic \startMPpage label.top(btex 1.4 etex scaled 1.00, (10, 10)); label.top(btex $\sigma_t$ etex scaled 1.00, (0, 10)); label.top(btex $\displaystyle \frac{\sigma_t}{a}$ etex scaled 1.00, (0, 10)); \stopMPpage \stoptext Error: ! Math error: parameter \Umathfraction_del_size\displaystyle is not set. l.3 ...t{411}{$\displaystyle \frac {\sigma _t}{a}$ } inserted text ...ore.mp ; fi ; ;;;]===], false)} \processMPgraphic ...s ;\!!es , \MPaskedfigure )}} \egroup \global \MPinstanc... \dostartMPpage ...??mg ][#1]\processMPgraphic {#3} \dostopfittingpage l.26 \stopMPpage Le 26/04/2011 10:37, Hans Hagen a écrit : On 25-4-2011 8:33, mat wrote: Any idea how I should do? Find below minimal example, that does not work on my computer when compiling with context... best use textext ... label.top(textext(1.4)scaled 1.00, (10, 10)); label.top(textext($\sigma_t$) scaled 1.00, (0, 10)); label.top(textext($\displaystyle \frac{\sigma_t}{a}$) scaled 1.00, (1, 1)); works ok (only tested mkiv); also \frac is available in context Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context and metapost: using \frac
On 26-4-2011 12:02, Matthieu Stigler wrote: Dear Hans Thanks for your quick answer! I was however not able to produce the graph with the textext code... Should I actually then use another compiler? I tried with context and texexec (I thought texexec is the compiler for mkiv, right? I'm on linux ubuntu). no, use the 'context' command as texexec is for mkii I saw also that, as you mention, context has a \frac: http://wiki.contextgarden.net/Math_with_newmat indeed, \frac is already there for a long time (ams compatible command) btw, in mkiv there is no m-newmath I tried then to simply add \usemodule[newmat] and compile with context, but did not work... Code below, error message below below... ! Math error: parameter \Umathfraction_del_size\displaystyle is not set. l.3 ...t{411}{$\displaystyle \frac {\sigma _t}{a}$ } inserted text ...ore.mp ; fi ; ;;;]===], false)} make sure that a font is loaded that has math before \starttext is seen (try with \setupbodyfont[palatino] at the top of your file) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Grid typesetting and inline math
After some trial and error, I'm using \setuplayout[grid=yes] \startlinecorrection Paragraph with inline math \gform{math stuff} % without the optional [-] and some more text that belongs to this parapgraph \stoplinecorrection and \blank[-1*line] where necessary. It is not really a convenient solution, but it works and I've got the impression that I can do what I want. Again: Does anyone have a better solution or advice regarding grid usage? Regards, Christoph Am 19.04.2011 11:59, schrieb Christoph Redecker: Hello, I'm struggling with the grid. I've stepped from LaTeX to luaLaTeX for a simpler font selection, and from luaLaTeX to ConTeXt for getting a usable grid (because I was told that it supports typesetting on a grid). Now that I got font selection working as desired in ConTeXt, the grid is driving me crazy. I'm trying to use the grid as described in details.pdf, and I want halfline spacing around formulas in text, because a full line is definitely too much. This is what I'm compiling: \setupbodyfont[10pt,serif] % should be lm? \setuplayout[grid=yes] \setuptextformulas[step=halfline] \starttext \showgrid Testing inline math: \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. \stoptext Both paragraphs look identical, the second line is too far away from the first one. What's wrong with my code? Also, how can I manually depart from the grid, e.g. for block quotes? Regards, Christoph ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context and metapost: using \frac
Le 26/04/2011 12:36, Hans Hagen a écrit : On 26-4-2011 12:02, Matthieu Stigler wrote: Dear Hans Thanks for your quick answer! I was however not able to produce the graph with the textext code... Should I actually then use another compiler? I tried with context and texexec (I thought texexec is the compiler for mkiv, right? I'm on linux ubuntu). no, use the 'context' command as texexec is for mkii ok, so I was using the right compiler I get a mystake while trying to compile a file with the code you sent... you didn't? Would you be so nice and send complete file, so I can check what is wrong? I saw also that, as you mention, context has a \frac: 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 with context, but did not work... Code below, error message below below... ! Math error: parameter \Umathfraction_del_size\displaystyle is not set. l.3 ...t{411}{$\displaystyle \frac {\sigma _t}{a}$ } inserted text ...ore.mp ; fi ; ;;;]===], false)} make sure that a font is loaded that has math before \starttext is seen (try with \setupbodyfont[palatino] at the top of your file) this does not work neither I still get error message with this code: \usemodule[newmat] \setupbodyfont[palatino] \starttext \startMPpage label.top(textext($ \frac{\sigma_t}{a}$) scaled 1.00, (1, 1)); %label.top(btex $ \frac{\sigma_t}{a}$ etex, (0, 10)); %label.top(textext( $\displaystyle \frac{\sigma_t}{a}$ ) scaled 1.00, (1, 1)); \stopMPpage \stoptext Thanks a lot for your help Matthieu Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context and metapost: using \frac
Am 26.04.2011 um 13:36 schrieb Matthieu Stigler: Le 26/04/2011 12:36, Hans Hagen a écrit : On 26-4-2011 12:02, Matthieu Stigler wrote: Dear Hans Thanks for your quick answer! I was however not able to produce the graph with the textext code... Should I actually then use another compiler? I tried with context and texexec (I thought texexec is the compiler for mkiv, right? I'm on linux ubuntu). no, use the 'context' command as texexec is for mkii ok, so I was using the right compiler I get a mystake while trying to compile a file with the code you sent... you didn't? Would you be so nice and send complete file, so I can check what is wrong? I saw also that, as you mention, context has a \frac: 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 with context, but did not work... Code below, error message below below... ! Math error: parameter \Umathfraction_del_size\displaystyle is not set. l.3 ...t{411}{$\displaystyle \frac {\sigma _t}{a}$ } inserted text ...ore.mp ; fi ; ;;;]===], false)} make sure that a font is loaded that has math before \starttext is seen (try with \setupbodyfont[palatino] at the top of your file) this does not work neither I still get error message with this code: \usemodule[newmat] \setupbodyfont[palatino] \starttext \startMPpage label.top(textext($ \frac{\sigma_t}{a}$) scaled 1.00, (1, 1)); %label.top(btex $ \frac{\sigma_t}{a}$ etex, (0, 10)); %label.top(textext( $\displaystyle \frac{\sigma_t}{a}$ ) scaled 1.00, (1, 1)); \stopMPpage \stoptext Hi, this works for me. \setupbodyfont[palatino] \startMPpage[offset=1ex] u := cm ; label.top(textext($ \frac{\sigma_t}{a}$) scaled 2, origin); label.top(textext($ \frac{\sigma_t}{a}$), (u,u)); label.top(textext($\dfrac{\sigma_t}{a}$) scaled .5, (u,0)); \stopMPpage Greeting Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context and metapost: using \frac
Le 26/04/2011 16:33, Andreas Harder a écrit : Am 26.04.2011 um 13:36 schrieb Matthieu Stigler: Le 26/04/2011 12:36, Hans Hagen a écrit : On 26-4-2011 12:02, Matthieu Stigler wrote: Dear Hans Thanks for your quick answer! I was however not able to produce the graph with the textext code... Should I actually then use another compiler? I tried with context and texexec (I thought texexec is the compiler for mkiv, right? I'm on linux ubuntu). no, use the 'context' command as texexec is for mkii ok, so I was using the right compiler I get a mystake while trying to compile a file with the code you sent... you didn't? Would you be so nice and send complete file, so I can check what is wrong? I saw also that, as you mention, context has a \frac: 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 with context, but did not work... Code below, error message below below... ! Math error: parameter \Umathfraction_del_size\displaystyle is not set. l.3 ...t{411}{$\displaystyle \frac {\sigma _t}{a}$ } inserted text ...ore.mp ; fi ; ;;;]===], false)} make sure that a font is loaded that has math before \starttext is seen (try with \setupbodyfont[palatino] at the top of your file) this does not work neither I still get error message with this code: \usemodule[newmat] \setupbodyfont[palatino] \starttext \startMPpage label.top(textext($ \frac{\sigma_t}{a}$) scaled 1.00, (1, 1)); %label.top(btex $ \frac{\sigma_t}{a}$ etex, (0, 10)); %label.top(textext( $\displaystyle \frac{\sigma_t}{a}$ ) scaled 1.00, (1, 1)); \stopMPpage \stoptext Hi, this works for me. \setupbodyfont[palatino] \startMPpage[offset=1ex] u := cm ; label.top(textext($ \frac{\sigma_t}{a}$) scaled 2, origin); label.top(textext($ \frac{\sigma_t}{a}$), (u,u)); label.top(textext($\dfrac{\sigma_t}{a}$) scaled .5, (u,0)); \stopMPpage Andreas Thanks for answer! Is this code you wrote supposed to be the whole doc to compile? And compiled with context? If yes, I got an error again... I have version context --version MTXrun | main context file: /usr/share/texmf/tex/context/base/context.tex MTXrun | current version: 2009.11.26 16:2 Is it likel;y then that the problem is solved in more recent versions? I would try to update then... I am on Ubuntu 10.10 64b, is there a simple way to update from other repos, or should I compile? Thanks for your help!!! Matthieu Greeting Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context and metapost: using \frac
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 - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Grid typesetting and inline math
Are there any other suggestions? I did read the manual chapter about grids and details.pdf and don't know what I'm doing wrong. In fact, I don't even understand the examples in the manual chapter. When reading the example code, I can't figure out how it leads to the shown behavior, and why the shown effect is desired. The \startlinecorrection ... \stoplinecorrection description in the wiki is also no help. What does it do and how does it differ from a globally enabled grid? Regards, Christoph Am 20.04.2011 12:31, schrieb 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 deeply into the following line. Regards, Christoph Am 20.04.2011 11:56, schrieb Khaled Hosny: On Tue, Apr 19, 2011 at 11:59:34AM +0200, Christoph Redecker wrote: Hello, I'm struggling with the grid. I've stepped from LaTeX to luaLaTeX for a simpler font selection, and from luaLaTeX to ConTeXt for getting a usable grid (because I was told that it supports typesetting on a grid). Now that I got font selection working as desired in ConTeXt, the grid is driving me crazy. I'm trying to use the grid as described in details.pdf, and I want halfline spacing around formulas in text, because a full line is definitely too much. This is what I'm compiling: \setupbodyfont[10pt,serif] % should be lm? \setuplayout[grid=yes] \setuptextformulas[step=halfline] \starttext \showgrid Testing inline math: \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. \stoptext Both paragraphs look identical, the second line is too far away from the first one. What's wrong with my code? Not sure, but try grid=on. Regards, Khaled ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Grid typesetting and inline math
Hello, I'm struggling with the grid. I've stepped from LaTeX to luaLaTeX for a simpler font selection, and from luaLaTeX to ConTeXt for getting a usable grid (because I was told that it supports typesetting on a grid). Now that I got font selection working as desired in ConTeXt, the grid is driving me crazy. I'm trying to use the grid as described in details.pdf, and I want halfline spacing around formulas in text, because a full line is definitely too much. This is what I'm compiling: \setupbodyfont[10pt,serif] % should be lm? \setuplayout[grid=yes] \setuptextformulas[step=halfline] \starttext \showgrid Testing inline math: \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. \stoptext Both paragraphs look identical, the second line is too far away from the first one. What's wrong with my code? Also, how can I manually depart from the grid, e.g. for block quotes? Regards, Christoph ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Grid typesetting and inline math
On Tue, Apr 19, 2011 at 11:59:34AM +0200, Christoph Redecker wrote: Hello, I'm struggling with the grid. I've stepped from LaTeX to luaLaTeX for a simpler font selection, and from luaLaTeX to ConTeXt for getting a usable grid (because I was told that it supports typesetting on a grid). Now that I got font selection working as desired in ConTeXt, the grid is driving me crazy. I'm trying to use the grid as described in details.pdf, and I want halfline spacing around formulas in text, because a full line is definitely too much. This is what I'm compiling: \setupbodyfont[10pt,serif] % should be lm? \setuplayout[grid=yes] \setuptextformulas[step=halfline] \starttext \showgrid Testing inline math: \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. \stoptext Both paragraphs look identical, the second line is too far away from the first one. What's wrong with my code? Not sure, but try grid=on. Regards, Khaled -- Khaled Hosny Egyptian Arab ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Grid typesetting and inline math
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 deeply into the following line. Regards, Christoph Am 20.04.2011 11:56, schrieb Khaled Hosny: On Tue, Apr 19, 2011 at 11:59:34AM +0200, Christoph Redecker wrote: Hello, I'm struggling with the grid. I've stepped from LaTeX to luaLaTeX for a simpler font selection, and from luaLaTeX to ConTeXt for getting a usable grid (because I was told that it supports typesetting on a grid). Now that I got font selection working as desired in ConTeXt, the grid is driving me crazy. I'm trying to use the grid as described in details.pdf, and I want halfline spacing around formulas in text, because a full line is definitely too much. This is what I'm compiling: \setupbodyfont[10pt,serif] % should be lm? \setuplayout[grid=yes] \setuptextformulas[step=halfline] \starttext \showgrid Testing inline math: \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. \stoptext Both paragraphs look identical, the second line is too far away from the first one. What's wrong with my code? Not sure, but try grid=on. Regards, Khaled ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] writing physical quantities in maths mode
On Fri, Mar 11, 2011 at 10:14, Ian Lawrence physics.roo...@gmail.com wrote: Morning all, I have a need to write a lot of physical quantities - these should be in text mode. Mostly I can manage, but subscripts are causing me grief Eg \startformula \startmathalignment[n=3] \NC \text{F}\NC =\NC {\text{GMm} \over \text r^2}\NR \NC \text {force}_G \NC =\NC {\text{G} \times \text m_1 \times \text m_2 \over \text r^2}\NR \NC \text {force \low G} \NC =\NC {\text{G} \times \text m_1 \times \text m_2 \over \text r^2}\NR \stopmathalignment \stopformula In the second and third equantions I'd like force subscript G all in roman, not italic, to follow the standard conventin. The first one puts the G in the correct place, but in italic The second one manages roman, but it's offset. Is this ok? \text{force}_{\rm G} (or \text{force}_{\text{G}}) With \rm you stay in math mode, but use roman. You should not use \rm for force since you would get mathematical spacing instead of proper kerning. \startformula {\forceQA \over \massQA} = \accelerationQA \stopformula Try to use \frac{}{} instead of \over. There are discussions about disabling \over in luatex (or at least in MKIV). Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] odd end-of-line error w/ Minion Pro
Am Freitag, 11. Februar 2011, um 09:26:59 schrieben Sie: Hi, I'm seeing a strange behavior with Minion Pro in OTF and the simplefont package. I'm not sure if it only happens with simplefont because I don't know how to set up a typescript. In any case, in breaking a line between roman and italic text, ConTeXt is losing a bit of space at the end of line. I thought it might be related to using hz or hanging alignment, or the quality option for protrusion and expansion, but it seems to happen even with these features disabled. Very unclear what could be causing this. Is it a known issue? What is this kind of bad behavior called? I've attached an image to which I've added a red line to show where the 'a' is leaving extra space before the newline. Thanks again, — Daniel Lyons Are you shure it's not the isn't that is penetrating the margin? One can't really tell from the provided picture if the a or the t is the actual edge of the text. I also included a typescript for adobe fonts (incl. MinionPro) that was kindly shared on this list by Florian Wobbe. \usemodule[type-adobeoptical] \starttypescript [myFont] \definetypeface [\typescriptone] [rm] [serif][minion] [optical] %[rscale=1.14407] \stoptypescript \setupalign[hanging,hz] % main body font \usetypescript[myFont] \setupbodyfont[myFont,12pt] \starttext Minion Normal\\ {\it Minion Italic}\\ {\cn Minion Condensed}\\ {\ci Minion CondensedItalic}\\ {\sb Minion Semibold}\\ {\sbi Minion SemiboldItalic}\\ {\bf Minion Bold}\\ {\bi Minion BoldItalic}\\ ff fi ffi ffl fk fb fj --\\ \stoptext %D \module %D [ file=type-adobeoptical, %Dversion=2010.09.20, %D title=\CONTEXT\ Typescript Macros, %D subtitle=Adobe Optical Font Definitions, %D author=Florian Wobbe, %D date=\currentdate, %D copyright=Florian Wobbe] %C %C Copyright 2010 Florian Wobbe. %C This file may be distributed under the GNU General Public License v. 2.0. %% font sizes %% Cronos Pro %% Caption: 6--8 point %% Normal (Regular): 8--14 point %% Subhead: 14--24 point %% Display: 24+ point %% Minion Pro %% Caption: 6--8.4 point %% Normal (Regular): 8.4--13 point %% Subhead: 13--19.9 point %% Display: 19.9+ point %% Brioso Pro %% Caption: 6--9.4 point %% Normal (Regular): 9.4--14 point %% Subhead: 14--21 point %% Display: 21+ point %% Utopia Pro %% Caption: 6--8.9 point %% Normal (Regular): 8.9--13 point %% Subhead: 13--20 point %% Display: 20+ point %% Kepler Std %% Caption: 6--8.9 point %% Normal (Regular): 8.9--13.9 point %% Subhead: 13.9--23 point %% Display: 23+ point %% Warnock Pro %% Caption: 1--8.9 point %% Normal (Regular): 8.9--12.9 point %% Subhead: 12.9--22.9 point %% Display: 22.9+ point %% Serif %% Caption: 6--9 point %% Normal (Regular): 9--13 point %% Subhead: 13--22 point %% Display: 22+ point %% our setup (for now): %% Caption: 4,5,6,7,8 point %% Normal (Regular): 9,10,11 point %% Subhead: 12,14.4,17.3 point %% Display: 20.7,24.9 point % 4pt,4.8pt,5pt,5.8pt,6pt,6.9pt,7pt,7.2pt,8pt,8.3pt,8.4pt,8.6pt % 9pt,9.6pt,10pt,10.1pt,10.4pt,10.8pt,11pt,11.5pt % 12pt,12.1pt,12.4pt,13pt,13.2pt,13.8pt,14.4pt,14.5pt,14.9pt,15.6pt,15.8pt,16.6pt,17.3pt,17.4pt % 18.7pt,19pt,19.9pt,20.7pt,22.4pt,22.8pt,24.8pt,24.9pt,27.4pt,29.8pt,29.9pt,35.8pt,35.9pt,42.9pt,43pt,52.5pt %% Font features %% Small caps % \definefontfeature[default][liga=yes,texligatures=yes,texquotes=yes] \definefontfeature[default][default][expansion=quality,protrusion=quality,mode=node,script=latn,kern=yes,palt=yes,tlig=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][default][tnum=yes] % Tabular Figures \definefontfeature[hist][default][hist=yes] % Historical Forms \definefontfeature[ornm][default][ornm=yes] % Ornaments \definefontfeature[salt][default][salt=yes] % Stylistic Alternates \definefontfeature[sups][default][sups=yes] % Superscript \definefontfeature[subs][default][subs=yes] % Subscript % small caps wrapper \def\smcp#1{{\setff{smallcaps}#1}} \definefontfeature[addfssmcp][mode=node,smcp=yes] \unexpanded\def\sc{\addfs{addfssmcp}} %% We need style switches for semibold and other variants \definefontalternative [bc] \definefontalternative [bci] \definefontalternative [sb] \definefontalternative [sbc] \definefontalternative [sbci] \definefontalternative [sbi] \definefontalternative [mf] \definefontalternative [mc] \definefontalternative [mci] \definefontalternative [mi] \definefontalternative [lf] \definefontalternative [li] \definefontalternative [lp] \definefontalternative [lpi] \definefontalternative [cn] \definefontalternative [ci] \definestyle [boldcondensed] [\bc] [] \definestyle [boldcondenseditalic] [\bci] [] \definestyle [semibold][\sb] [] \definestyle
Re: [NTG-context] grid=verytolerant causes overlapping
Am 11.02.2011 um 15:55 schrieb Wolfgang Schuster: Am 11.02.2011 um 15:32 schrieb luigi scarso: There is no grid option “verytolerant”. true, the same with \setuplayout[grid=ztolerant] If I recall correctly there a way to see the in the log. Depends on the commands, sometimes the value is checked but no with gridsnapping. The “yes” value is defined as \definegridsnapping[yes][maxheight,maxdepth,strut] and you enable with with “grid=yes” a where context tests if “yes” is a predefined lists but “grid={maxheight,maxdepth,strut}” is also valid and in this case context defined a dummy list which is passed to lua. The same happens with “verytolerant”, context creates a dummy list and use ”verytolerant” as value for this list. Thank you Wolfgang! Now I've defined verytolerant in order to get some fractions on grid. \definegridsnapping[verytolerant][maxdepth:1.6,maxheight:1.4,strut] \setuplayout[grid=verytolerant] % \setuplayout[grid=tolerant] \setupbodyfont[palatino] \starttext test\crlf $b = \frac p q$\crlf test \stoptext Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Inconsistent handling of ligatures
Am Donnerstag, 10. Februar 2011, um 12:44:20 schrieb Hans Hagen: On 10-2-2011 12:36, Christian wrote: Dear all, I found the attached oddity in one of my documents produced by context using mkiv. The two words (both clipped in the screenshot) are in the same line (last line in a justified paragraph), yet they are handled differently. Additional info: MinionPro-Regular.otf LuaTeX, Version beta-0.60.1-2010092008 (rev 3657) ConTeXt ver: 2009.11.26 16:28 MKIV fmt: 2011.1.28 int: english/english Is there an explanation for that? test file needed ...attached including output. $otfinfo -v MinionPro-Regular.otf Version 2.030;PS 2.000;hotconv 1.0.51;makeotf.lib2.0.18671 % engine=luatex %%% FONT \usemodule[type-minion] % \usemodule[type-myriad] \starttypescript [myFont] \definetypeface [\typescriptone] [rm] [serif][minion] [optical] %[rscale=1.14407] \stoptypescript \usetypescript[myFont] \setupbodyfont[myFont,12pt] \definefontsize[e] \setuplayout[leftmargin=2cm, rightmargin=2cm,margindistance=0.5cm,backspace=2.5cm,topspace=0.3cm,height=fit,width=fit] \setuppagenumbering[state=stop] % \setupindenting[yes,1em] \starttext ff Differenzengleichungen ff bzw. ff Differenzengleichungssysteme. \stoptext%%% %%% FONT-FEATURES % %%% \definefontfeature[default][default][expansion=quality,protrusion=quality,mode=node,script=latn,kern=yes,liga=yes,palt=yes,tlig=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][default][tnum=yes] % Tabular Figures \definefontfeature[onum][default][onum=yes] % Old Style Figures \definefontfeature[hist][default][hist=yes] % Historical Forms \definefontfeature[ornm][default][ornm=yes] % Ornaments \definefontfeature[salt][default][salt=yes] % Stylistic Alternates \definefontfeature[sups][default][sups=yes] % Superscript \definefontfeature[subs][default][subs=yes] % Subscript % small caps wrapper \def\smcp#1{{\setff{smallcaps}#1}} \definefontfeature[addfssmcp][mode=node,smcp=yes] \unexpanded\def\sc{\addfs{addfssmcp}} %%% %%% FONT-STYLES % %%% % \definefontalternative [bl] % \definefontalternative [bli] \definefontalternative [bc] \definefontalternative [bci] \definefontalternative [sb] \definefontalternative [sbc] \definefontalternative [sbci] \definefontalternative [sbi] \definefontalternative [mf] \definefontalternative [mc] \definefontalternative [mci] \definefontalternative [mi] \definefontalternative [lf] \definefontalternative [li] \definefontalternative [lp] \definefontalternative [lpi] \definefontalternative [cn] \definefontalternative [ci] % \definestyle [black] [\bc] [] % \definestyle [blackitalic] [\bci] [] \definestyle [boldcondensed] [\bc] [] \definestyle [boldcondenseditalic] [\bci] [] \definestyle [semibold] [\sb] [] \definestyle [semiboldcondensed] [\sbc] [] \definestyle [semiboldcondenseditalic] [\sbci] [] \definestyle [semibolditalic] [\sbi] [] \definestyle [medium] [\mf] [] \definestyle [mediumcondensed] [\mc] [] \definestyle [mediumcondenseditalic] [\mci] [] \definestyle [mediumitalic] [\mi] [] \definestyle [light] [\lf] [] \definestyle [lightitalic] [\li] [] \definestyle [lightposter] [\lp] [] \definestyle [lightposteritalic] [\lpi] [] \definestyle [condensed] [\cn] [] \definestyle [condenseditalic] [\ci] [] % symbolic name replacements for missing styles \startsetups [font:optical:serif] \definefontsynonym[SerifCaption-Regular] [SerifRegular-Regular] \definefontsynonym[SerifCaption-Bold] [SerifCaption-Regular] \definefontsynonym[SerifCaption-BoldCn] [SerifCaption-Regular] \definefontsynonym[SerifCaption-BoldCnIt] [SerifCaption-Regular] \definefontsynonym[SerifCaption-BoldItalic] [SerifCaption-Regular] \definefontsynonym[SerifCaption-Semibold] [SerifCaption-Regular] \definefontsynonym[SerifCaption-SemiboldCn] [SerifCaption-Regular] \definefontsynonym[SerifCaption-SemiboldCnIt] [SerifCaption-Regular] \definefontsynonym[SerifCaption-SemiboldIt] [SerifCaption-Regular] \definefontsynonym[SerifCaption-Medium] [SerifCaption-Regular] \definefontsynonym[SerifCaption-MediumCn] [SerifCaption-Regular] \definefontsynonym[SerifCaption-MediumCnIt] [SerifCaption-Regular] \definefontsynonym[SerifCaption-MediumIt] [SerifCaption-Regular] \definefontsynonym[SerifCaption-Light][SerifCaption-Regular] \definefontsynonym[SerifCaption-LightIt] [SerifCaption-Regular] \definefontsynonym[SerifCaption-LightPoster] [SerifCaption-Light] \definefontsynonym[SerifCaption-LightPosterIt][SerifCaption-LightIt
Re: [NTG-context] math: `\overbar` with fractions and subscripts
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}} \stopformula In text $\overline{q} = \frac{\overline{q}}{\overline{α_0}}$. \startformula \overline{q_0} = \frac{\overline{q}}{\overline α} \stopformula \stoptext (one gets as expected the « conjugate » of α_0, for instance). thank you for your answer. `\overline` works as you say, but it looks typographically different in the respect that the bar is closer to the letter, which of course solves the issue for the inline fraction. For α this looks quite strange in my eyes. But I do not know a lot about typography. Please find the PDF-output attached with the following ConTeXt version. MTXrun | current version: 2011.02.04 10:01 Thanks, Paul test.pdf Description: Adobe PDF document signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] math: `\overbar` with fractions and subscripts
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{α_0}}$. \startformula \overbar{q_0} = \frac{\overbar{q}}{\overbar α} \stopformula \stoptext I am using the latest ConTeXt Minimals distribution. $ context --version MTXrun | main context file: /opt/context/tex/texmf-context/tex/context/base/context.mkiv MTXrun | current version: 2011.02.04 10:01 1. The bar divides for subscripts/indices. 2. If you look at the first fraction, the bar is as long as the stroke from the fraction and therefore I think too long. 3. When inlining the fraction in text the bar fuses with the stroke from the fraction. Are these know problems or do I just use the wrong commands? Thanks, Paul test.pdf Description: Adobe PDF document \starttext \startformula \overbar{q} = \frac{\overbar{q}}{\overbar{α_0}} \stopformula In text $\overbar{q} = \frac{\overbar{q}}{\overbar{α_0}}$. \startformula \overbar{q_0} = \frac{\overbar{q}}{\overbar α} \stopformula \stoptext signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math: `\overbar` with fractions and subscripts
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}}{\overline{α_0}}$. \startformula \overline{q_0} = \frac{\overline{q}}{\overline α} \stopformula \stoptext (one gets as expected the « conjugate » of α_0, for instance). Best regards: OK On 4 févr. 2011, at 12:14, Paul Menzel wrote: 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{α_0}}$. \startformula \overbar{q_0} = \frac{\overbar{q}}{\overbar α} \stopformula \stoptext I am using the latest ConTeXt Minimals distribution. $ context --version MTXrun | main context file: /opt/context/tex/texmf-context/tex/context/base/context.mkiv MTXrun | current version: 2011.02.04 10:01 1. The bar divides for subscripts/indices. 2. If you look at the first fraction, the bar is as long as the stroke from the fraction and therefore I think too long. 3. When inlining the fraction in text the bar fuses with the stroke from the fraction. Are these know problems or do I just use the wrong commands? Thanks, Paul test.pdftest.tex___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___