[NTG-context] Wrong location of mframed
Hi, In MkIV, \mframed does not place the result in the middle of the math axis. Consider, \starttext \startformula f(x) = \mframed{\frac{1}{2}}^{\mframed{\frac{1}{2}}} \stopformula \stoptext The MkII and MkIV results are attached. Adityaattachment: test-mkii.pngattachment: test-mkiv.png___ 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] Issues with cross reference
On 11-12-2010 1:58, views63 wrote: Hi all, cross reference is not worked in latest beta (MkIV) example: \starttext \placeformula[f] \startformula {\bf d}(t)=(1-t)^2{\bf b}_{0,0}+2(1-t)t\Big[\frac{1}{2}{\bf b}_{0,1}+\frac{1}{2}{\bf b}_{1,0}\Big]+t^2{\bf b}_{1,1}. \stopformula see (\in[f]) \stoptext it took me a while to figure out that I had rename a low level function wrongly .. fixed asap - 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] Issues with cross reference
Thank you. It works well now. -- Best regards, Huang Ze 2010/12/13 Hans Hagen pra...@wxs.nl: On 11-12-2010 1:58, views63 wrote: Hi all, cross reference is not worked in latest beta (MkIV) example: \starttext \placeformula[f] \startformula {\bf d}(t)=(1-t)^2{\bf b}_{0,0}+2(1-t)t\Big[\frac{1}{2}{\bf b}_{0,1}+\frac{1}{2}{\bf b}_{1,0}\Big]+t^2{\bf b}_{1,1}. \stopformula see (\in[f]) \stoptext it took me a while to figure out that I had rename a low level function wrongly .. fixed asap - 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] Issues with cross reference
Hi all, cross reference is not worked in latest beta (MkIV) example: \starttext \placeformula[f] \startformula {\bf d}(t)=(1-t)^2{\bf b}_{0,0}+2(1-t)t\Big[\frac{1}{2}{\bf b}_{0,1}+\frac{1}{2}{\bf b}_{1,0}\Big]+t^2{\bf b}_{1,1}. \stopformula see (\in[f]) \stoptext -- Best regards, Huang Ze ___ 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 Bold SmallCaps in LuaTeX - typescript
On Nov 29, 2010, at 12:40 , Ch. B. wrote: Am Montag, 29. November 2010, um 09:17:10 schrieb Florian Wobbe: On Nov 29, 2010, at 00:29 , ... wrote: Good evening! First of all, I'm new to this list and also a context/luatex newbe. I have some experience with LaTeX. I want to use a font (Neutraface2) in my documents and I'm struggeling with the typescript. I'm not able to get bold SmallCaps working (the bold face .otf file has the feature smcp, I checked). I tried various combinations and variations of \bf \sc in my document. It gives me bold OR smallcaps, but not bold AND smallcaps. Whats wrong here? Can someone give me an example typescript that I could modify to fit the Neutraface2 font? My attempt to make one is attached. Greetings, Chris Hi Chris, it does not work for pagella either. Did you try \setff{smallcaps} \bf instead? \usetypescript[pagella] \setupbodyfont[pagella] \starttext {\setff{smallcaps} This is in {\bf bold} SmallCaps} (works). {\sc This is in {\bf bold} SmallCaps} (does not). \stoptext Florian Hi Florian, that does work, thank you very much. I assume the \setff means something like set font feature. If so, I could shorten my typescript and only specify the 4 main font faces (regular, bold italic, bold-italic) since the fonts all have all the opentype features i need (onum smcp etc.) And these can be accessed via \setff{feature}, I guess. Yes, you can define for instance \definefontfeature[dlig][default][dlig=yes] % Discretionary Ligatures: Activates uncommon ligatures \definefontfeature[frac][default][frac=yes,numr=yes] % Fractions e.g. 3/4 \definefontfeature[sups][default][sups=yes] % Superscript \definefontfeature[subs][default][subs=yes] % Subscript and access the font features with \setff{dlig}, \setff{subs} etc. Florian ___ 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 Bold SmallCaps in LuaTeX - typescript
Am Montag, 29. November 2010, um 12:50:01 schrieb Florian Wobbe: On Nov 29, 2010, at 12:40 , Ch. B. wrote: Am Montag, 29. November 2010, um 09:17:10 schrieb Florian Wobbe: On Nov 29, 2010, at 00:29 , ... wrote: Good evening! First of all, I'm new to this list and also a context/luatex newbe. I have some experience with LaTeX. I want to use a font (Neutraface2) in my documents and I'm struggeling with the typescript. I'm not able to get bold SmallCaps working (the bold face .otf file has the feature smcp, I checked). I tried various combinations and variations of \bf \sc in my document. It gives me bold OR smallcaps, but not bold AND smallcaps. Whats wrong here? Can someone give me an example typescript that I could modify to fit the Neutraface2 font? My attempt to make one is attached. Greetings, Chris Hi Chris, it does not work for pagella either. Did you try \setff{smallcaps} \bf instead? \usetypescript[pagella] \setupbodyfont[pagella] \starttext {\setff{smallcaps} This is in {\bf bold} SmallCaps} (works). {\sc This is in {\bf bold} SmallCaps} (does not). \stoptext Florian Hi Florian, that does work, thank you very much. I assume the \setff means something like set font feature. If so, I could shorten my typescript and only specify the 4 main font faces (regular, bold italic, bold-italic) since the fonts all have all the opentype features i need (onum smcp etc.) And these can be accessed via \setff{feature}, I guess. Yes, you can define for instance \definefontfeature[dlig][default][dlig=yes] % Discretionary Ligatures: Activates uncommon ligatures \definefontfeature[frac][default][frac=yes,numr=yes] % Fractions e.g. 3/4 \definefontfeature[sups][default][sups=yes] % Superscript \definefontfeature[subs][default][subs=yes] % Subscript and access the font features with \setff{dlig}, \setff{subs} etc. Florian Wonderfull! I'm starting to get the hang of it. Even the stylistic sets work like a charm. I've attached the output file in case you want to have a look at what I'm doing here. Now one last question would be: How can I insert a certain character with its opentype name? For example \insertopentypecharacter{f_f_h.alt}. That would be cool because otfinfo -g shows all the glyph names and one must not fiddle arount with hex numbers or char-stuff. In XeTeX it is possible to do so with \XeTeXglyph\XeTeXglyphindexQ.alt1 (or Q.alt2). That would access the first (or second) alternate glyph for the letter Q. You really helped a lot here. Thank you! Chris test.pdf Description: Adobe PDF 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 ___
Re: [NTG-context] Using Bold SmallCaps in LuaTeX - typescript
On Mon, Nov 29, 2010 at 01:27:25PM +0100, Ch. B. wrote: Am Montag, 29. November 2010, um 12:50:01 schrieb Florian Wobbe: On Nov 29, 2010, at 12:40 , Ch. B. wrote: Am Montag, 29. November 2010, um 09:17:10 schrieb Florian Wobbe: On Nov 29, 2010, at 00:29 , ... wrote: Good evening! First of all, I'm new to this list and also a context/luatex newbe. I have some experience with LaTeX. I want to use a font (Neutraface2) in my documents and I'm struggeling with the typescript. I'm not able to get bold SmallCaps working (the bold face .otf file has the feature smcp, I checked). I tried various combinations and variations of \bf \sc in my document. It gives me bold OR smallcaps, but not bold AND smallcaps. Whats wrong here? Can someone give me an example typescript that I could modify to fit the Neutraface2 font? My attempt to make one is attached. Greetings, Chris Hi Chris, it does not work for pagella either. Did you try \setff{smallcaps} \bf instead? \usetypescript[pagella] \setupbodyfont[pagella] \starttext {\setff{smallcaps} This is in {\bf bold} SmallCaps} (works). {\sc This is in {\bf bold} SmallCaps} (does not). \stoptext Florian Hi Florian, that does work, thank you very much. I assume the \setff means something like set font feature. If so, I could shorten my typescript and only specify the 4 main font faces (regular, bold italic, bold-italic) since the fonts all have all the opentype features i need (onum smcp etc.) And these can be accessed via \setff{feature}, I guess. Yes, you can define for instance \definefontfeature[dlig][default][dlig=yes] % Discretionary Ligatures: Activates uncommon ligatures \definefontfeature[frac][default][frac=yes,numr=yes] % Fractions e.g. 3/4 \definefontfeature[sups][default][sups=yes] % Superscript \definefontfeature[subs][default][subs=yes] % Subscript and access the font features with \setff{dlig}, \setff{subs} etc. Florian Wonderfull! I'm starting to get the hang of it. Even the stylistic sets work like a charm. I've attached the output file in case you want to have a look at what I'm doing here. Now one last question would be: How can I insert a certain character with its opentype name? For example \insertopentypecharacter{f_f_h.alt}. That would be \fontchar{f_f_h.alt} I think Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ 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 Bold SmallCaps in LuaTeX - typescript
Am Montag, 29. November 2010, um 13:41:27 schrieb Khaled Hosny: On Mon, Nov 29, 2010 at 01:27:25PM +0100, Ch. B. wrote: Am Montag, 29. November 2010, um 12:50:01 schrieb Florian Wobbe: On Nov 29, 2010, at 12:40 , Ch. B. wrote: Am Montag, 29. November 2010, um 09:17:10 schrieb Florian Wobbe: On Nov 29, 2010, at 00:29 , ... wrote: Good evening! First of all, I'm new to this list and also a context/luatex newbe. I have some experience with LaTeX. I want to use a font (Neutraface2) in my documents and I'm struggeling with the typescript. I'm not able to get bold SmallCaps working (the bold face .otf file has the feature smcp, I checked). I tried various combinations and variations of \bf \sc in my document. It gives me bold OR smallcaps, but not bold AND smallcaps. Whats wrong here? Can someone give me an example typescript that I could modify to fit the Neutraface2 font? My attempt to make one is attached. Greetings, Chris Hi Chris, it does not work for pagella either. Did you try \setff{smallcaps} \bf instead? \usetypescript[pagella] \setupbodyfont[pagella] \starttext {\setff{smallcaps} This is in {\bf bold} SmallCaps} (works). {\sc This is in {\bf bold} SmallCaps} (does not). \stoptext Florian Hi Florian, that does work, thank you very much. I assume the \setff means something like set font feature. If so, I could shorten my typescript and only specify the 4 main font faces (regular, bold italic, bold-italic) since the fonts all have all the opentype features i need (onum smcp etc.) And these can be accessed via \setff{feature}, I guess. Yes, you can define for instance \definefontfeature[dlig][default][dlig=yes] % Discretionary Ligatures: Activates uncommon ligatures \definefontfeature[frac][default][frac=yes,numr=yes] % Fractions e.g. 3/4 \definefontfeature[sups][default][sups=yes] % Superscript \definefontfeature[subs][default][subs=yes] % Subscript and access the font features with \setff{dlig}, \setff{subs} etc. Florian Wonderfull! I'm starting to get the hang of it. Even the stylistic sets work like a charm. I've attached the output file in case you want to have a look at what I'm doing here. Now one last question would be: How can I insert a certain character with its opentype name? For example \insertopentypecharacter{f_f_h.alt}. That would be \fontchar{f_f_h.alt} I think Hello Khaled, \fontchar results in an undefined controll sequence =\ Regards, Chris ___ 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] OpenType Math
Hi all, there are still some problems with OpenType math. I've collected some: % \setupbodyfont[palatino] % reference % \setupbodyfont[cambria] % \setupbodyfont[euler] \setupbodyfont[asana] \startTEXpage[offset=1ex] $n\choose k$ \crlf $1+\cdots+n$ \crlf $1+\frac{a}{b}$ \crlf $(a+b)\cdot\cdots\cdot(n+k)$ \stopTEXpage Please compare the output. math-palatino.pdf Description: Adobe PDF document math-asana.pdf Description: Adobe PDF document 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] rotated (landscape) pages in portrait document
On Fri, Oct 1, 2010 at 18:12, Wolfgang Schuster wrote: Am 01.10.2010 um 17:41 schrieb Mojca Miklavec: Dear list, First one question: what is the MKIV-way of doing something like \startbuffer[a] % set text width for formula somehow \startformula\startalign \NC a \NC = b \NR \stopalign\stopformula \stopbuffer \framed{\rotate[rotation=90]{\externalfigure[\jobname-a.tmp]}} possibly adjusting width of formula to actual width (even if that is done manually)? Something like this? \startbuffer[a] \startTEXpage[width=\textheight] \startformula\startalign \NC a \NC = b \NR \stopalign\stopformula \stopTEXpage \stopbuffer \starttext \framed{\rotate[rotation=90]{\getbuffer[a]}} \stoptext Nasty! I would never even think that something like \rotate[rotation=90]{\startTEXpage[width=5cm] \input tufte \stopTEXpage} would work. I didn't need the width= parameter (in fact I wanted to have a narrower formula, so I'm glad that this worked ...). Related to your second suggestion (I still like formula for some reason) ... do you have any idea why the spacing around formula is broken? If I use \startTEXpage[width=...] or when I draw a frame around formula the spacing is OK, only in this example it seems as if formula was infinitely thin. A bug? Thanks a lot, Mojca \startbuffer[a] \startTEXpage \startformula\startalign[n=6,align={middle,middle,right,middle,left,left}] \NC l \NC\hbox to 1em{}\NC m_l \NC\hbox to 1em{}\NC \text{orb.}\hbox to 2em{} \NC Y_{lm}\NR \NC 0 \NC\NC 0\NC\NC s \NC \frac{1}{2}\sqrt{\frac{ 1}{π}} \NR \NC 1 \NC\NC 0\NC\NC p_z \NC \frac{1}{2}\sqrt{\frac{ 3}{π}}\frac{z}{r} \NR \NC 1 \NC\NC \pm1 \NC\NC p_x \NC \frac{1}{2}\sqrt{\frac{ 3}{π}}\frac{x}{r} \NR \NC \NC\NC \NC\NC p_y \NC \frac{1}{2}\sqrt{\frac{ 3}{π}}\frac{y}{r} \NR \NC 2 \NC\NC 0\NC\NC d_{z^2} \NC \frac{1}{4}\sqrt{\frac{ 5}{π}}\frac{3z^2-r^2}{r^2} \NR \NC 2 \NC\NC \pm1 \NC\NC d_{xz} \NC \frac{1}{2}\sqrt{\frac{15}{π}}\frac{xz}{r^2} \NR \NC \NC\NC \NC\NC d_{yz} \NC \frac{1}{2}\sqrt{\frac{15}{π}}\frac{yz}{r^2} \NR \NC 2 \NC\NC \pm2 \NC\NC d_{xy} \NC \frac{1}{2}\sqrt{\frac{15}{π}}\frac{xy}{r^2} \NR \NC \NC\NC \NC\NC d_{x^2-y^2} \NC \frac{1}{4}\sqrt{\frac{15}{π}}\frac{x^2-y^2}{r^2} \NR \stopalign\stopformula \stopTEXpage \stopbuffer \starttext \bTABLE[orientation=90,width=\textwidth,align=lohi] \bTR \bTD \externalfigure[cow][width=10cm] \eTD \eTR \bTR \bTD\strut \getbuffer[a] \eTD \eTR \eTABLE \framed{\getbuffer[a]} \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] rotated (landscape) pages in portrait document
Dear list, First one question: what is the MKIV-way of doing something like \startbuffer[a] % set text width for formula somehow \startformula\startalign \NC a \NC = b \NR \stopalign\stopformula \stopbuffer \framed{\rotate[rotation=90]{\externalfigure[\jobname-a.tmp]}} possibly adjusting width of formula to actual width (even if that is done manually)? And the other question: is there some quick trick that would rotate the whole page inside a document, so that the page would still be portrait, but text would be rotated with textwidth and textheight swapped, but with preserved main header (in reality I do not care about the header). I would like to put a narrow, but several lines long equation (\startalign) on left (bottom) and image on the right (top). I was playing with an approximation \rotate[rotation=90]{\vbox{ \startformula\startalign[n=6,align={middle,middle,right,middle,left,left}] \NC l \NC\hbox to 1em{}\NC m_l \NC\hbox to 1em{}\NC \text{orb.}\hbox to 2em{} \NC Y_{lm}\NR \NC 0 \NC\NC 0\NC\NC s \NC \frac{1}{2}\sqrt{\frac{ 1}{π}} \NR \NC 1 \NC\NC 0\NC\NC p_z \NC \frac{1}{2}\sqrt{\frac{ 3}{π}}\frac{z}{r} \NR \NC 1 \NC\NC \pm1 \NC\NC p_x \NC \frac{1}{2}\sqrt{\frac{ 3}{π}}\frac{x}{r} \NR \NC \NC\NC \NC\NC p_y \NC \frac{1}{2}\sqrt{\frac{ 3}{π}}\frac{y}{r} \NR \NC 2 \NC\NC 0\NC\NC d_{z^2} \NC \frac{1}{4}\sqrt{\frac{ 5}{π}}\frac{3z^2-r^2}{r^2} \NR \NC 2 \NC\NC \pm1 \NC\NC d_{xz} \NC \frac{1}{2}\sqrt{\frac{15}{π}}\frac{xz}{r^2} \NR \NC \NC\NC \NC\NC d_{yz} \NC \frac{1}{2}\sqrt{\frac{15}{π}}\frac{yz}{r^2} \NR \NC 2 \NC\NC \pm2 \NC\NC d_{xy} \NC \frac{1}{2}\sqrt{\frac{15}{π}}\frac{xy}{r^2} \NR \NC \NC\NC \NC\NC d_{x^2-y^2} \NC \frac{1}{4}\sqrt{\frac{15}{π}}\frac{x^2-y^2}{r^2} \NR \stopalign\stopformula}} % and then externalfigure on the right ... but the formula takes exactly \textwidth space, I didn't manage to convince it to consume less space (I could probably change textwidth locally). I know for workarounds (typesetting a different document for example and then include the page), but I really wonder if switching orientation just for a page (to typeset a table for example) is doable in some elegant way. This is all low priority though. Thanks a lot, 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] rotated (landscape) pages in portrait document
Am 01.10.2010 um 17:41 schrieb Mojca Miklavec: And the other question: is there some quick trick that would rotate the whole page inside a document, so that the page would still be portrait, but text would be rotated with textwidth and textheight swapped, but with preserved main header (in reality I do not care about the header). I would like to put a narrow, but several lines long equation (\startalign) on left (bottom) and image on the right (top). I was playing with an approximation \rotate[rotation=90]{\vbox{ \startformula\startalign[n=6,align={middle,middle,right,middle,left,left}] \NC l \NC\hbox to 1em{}\NC m_l \NC\hbox to 1em{}\NC \text{orb.}\hbox to 2em{} \NC Y_{lm}\NR \NC 0 \NC\NC 0\NC\NC s \NC \frac{1}{2}\sqrt{\frac{ 1}{π}} \NR \NC 1 \NC\NC 0\NC\NC p_z \NC \frac{1}{2}\sqrt{\frac{ 3}{π}}\frac{z}{r} \NR \NC 1 \NC\NC \pm1 \NC\NC p_x \NC \frac{1}{2}\sqrt{\frac{ 3}{π}}\frac{x}{r} \NR \NC \NC\NC \NC\NC p_y \NC \frac{1}{2}\sqrt{\frac{ 3}{π}}\frac{y}{r} \NR \NC 2 \NC\NC 0\NC\NC d_{z^2} \NC \frac{1}{4}\sqrt{\frac{ 5}{π}}\frac{3z^2-r^2}{r^2} \NR \NC 2 \NC\NC \pm1 \NC\NC d_{xz} \NC \frac{1}{2}\sqrt{\frac{15}{π}}\frac{xz}{r^2} \NR \NC \NC\NC \NC\NC d_{yz} \NC \frac{1}{2}\sqrt{\frac{15}{π}}\frac{yz}{r^2} \NR \NC 2 \NC\NC \pm2 \NC\NC d_{xy} \NC \frac{1}{2}\sqrt{\frac{15}{π}}\frac{xy}{r^2} \NR \NC \NC\NC \NC\NC d_{x^2-y^2} \NC \frac{1}{4}\sqrt{\frac{15}{π}}\frac{x^2-y^2}{r^2} \NR \stopalign\stopformula}} % and then externalfigure on the right ... but the formula takes exactly \textwidth space, I didn't manage to convince it to consume less space (I could probably change textwidth locally). I know for workarounds (typesetting a different document for example and then include the page), but I really wonder if switching orientation just for a page (to typeset a table for example) is doable in some elegant way. \starttext \bTABLE[orientation=90,frame=off,width=\textwidth,height=.5\textheight,align=lohi] \bTR \bTD \externalfigure[cow] \eTD \eTR \bTR \bTD \starttabulate[|Mc|Mr|Ml|Ml|] \NC l \NC m_l \NC \text{orb.} \NC Y_{lm} \NC\NR \NC 0 \NC 0 \NC s \NC \frac{1}{2}\sqrt{\frac{1}{π}} \NC\NR \NC 1 \NC 0 \NC p_z \NC \frac{1}{2}\sqrt{\frac{3}{π}}\frac{z}{r} \NC\NR \NC 1 \NC ±1 \NC p_x \NC \frac{1}{2}\sqrt{\frac{3}{π}}\frac{x}{r} \NC\NR \NC \NC \NC p_y \NC \frac{1}{2}\sqrt{\frac{3}{π}}\frac{y}{r} \NC\NR \NC 2 \NC 0 \NC d_{z^2} \NC \frac{1}{4}\sqrt{\frac{5}{π}}\frac{3z^2-r^2}{r^2} \NC\NR \NC 2 \NC ±1 \NC d_{xz} \NC \frac{1}{2}\sqrt{\frac{15}{π}}\frac{xz}{r^2} \NC\NR \NC \NC \NC d_{yz} \NC \frac{1}{2}\sqrt{\frac{15}{π}}\frac{yz}{r^2} \NC\NR \NC 2 \NC ±2 \NC d_{xy} \NC \frac{1}{2}\sqrt{\frac{15}{π}}\frac{xy}{r^2} \NC\NR \NC \NC \NC d_{x^2-y^2} \NC \frac{1}{4}\sqrt{\frac{15}{π}}\frac{x^2-y^2}{r^2} \NC\NR \stoptabulate \eTD \eTR \eTABLE \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] linking to equations with leqalignno?
Hello, I am a bit lost. I am using this format for an equation: - \placeformula[nohair] \startformula \leqalignno{ - M^{}_{\bullet}a^{2}_{\bullet} = M^{}_{2} = - \frac{J^{2}_{1}}{M^{}_{0}} \,, \cr - M^{}_{\bullet}a^{3}_{\bullet} = J^{}_{3} = \frac{M^{}_{2}J^{}_{1}}{M^{}_{0}}\,. \cr } \stopformula - but then,using \in[nohair] to link to the equation in the text of the document does not work. I get a [??] I think this is related to leqalignno, because \in[] works fine without it. What should I do in this case? thanks, Pau ___ 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] linking to equations with leqalignno?
Hi Pau, You should not use \leqaligno, but rather setup the location of the formulas' numbers to the left and then use \eqalign: the following works fine: %%- \setupformulas[location=left] \define[1]\eqref{(\in[#1])} % this definition is optional… \starttext \placeformula[nohair] \startformula \eqalign{ - M^{}_{\bullet}a^{2}_{\bullet} = M^{}_{2} = - \frac{J^{2}_{1}}{M^{}_{0}} \,, \cr - M^{}_{\bullet}a^{3}_{\bullet} = J^{}_{3} = \frac{M^{}_{2}J^{}_{1}}{M^{}_{0}}\,. \cr } \stopformula As one may see from equation (\in[nohair]), we have\dots It is more handy to use \type{\eqref}: as one sees in equation \eqref{nohair}, we have\dots \stoptext %%- Consider also using the ConTeXt math alignment commands for which Aditya has written a very nice My Way: http://dl.contextgarden.net/myway/mathalign.pdf See also: http://dl.contextgarden.net/myway/context-latex-math.pdf Best regards: OK On 4 sept. 2010, at 23:06, Pau wrote: Hello, I am a bit lost. I am using this format for an equation: - \placeformula[nohair] \startformula \leqalignno{ - M^{}_{\bullet}a^{2}_{\bullet} = M^{}_{2} = - \frac{J^{2}_{1}}{M^{}_{0}} \,, \cr - M^{}_{\bullet}a^{3}_{\bullet} = J^{}_{3} = \frac{M^{}_{2}J^{}_{1}}{M^{}_{0}}\,. \cr } \stopformula - but then,using \in[nohair] to link to the equation in the text of the document does not work. I get a [??] I think this is related to leqalignno, because \in[] works fine without it. What should I do in this case? thanks, Pau ___ 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] LuaTeX printf() function ?
Hi, Here is my test: === \setuppapersize[A4][A4] \usetypescript[postscript] \setupbodyfont[palatino,12pt] \starttext \startformula K = \frac{\sigma_1}{\sigma_2} = \frac{355}{14}= \ctxlua{tex.print(355/14)} \stopformula \stoptext === It works well and give me result = 25,357142857143. In order to obtain 2 decimal number I tried: \startformula K = \frac{\sigma_1}{\sigma_2} = \frac{355}{14}= \ctxlua{tex.printf(%0.2f,355/14)} \stopformula But it does not work. Here is the error: tex.printf(\doplaceformulanumber \stopdisplaymath \global \let \gdef \ETC. ! File ended while scanning text of \zerocount. inserted text } * ./test-lua.tex ? Another try: \startformula K = \frac{\sigma_1}{\sigma_2} = \frac{355}{14}= \ctxlua{tex.print(string.format(%0.2f,355/14))} \stopformula gives me the same error. So is there really a function printf() in LuaTeX engine ? Thanks ___ 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] LuaTeX printf() function ?
On Fri, Jul 23, 2010 at 10:25 PM, Vnpenguin vnpeng...@vnoss.org wrote: Hi, Here is my test: === \setuppapersize[A4][A4] \usetypescript[postscript] \setupbodyfont[palatino,12pt] \starttext \startformula K = \frac{\sigma_1}{\sigma_2} = \frac{355}{14}= \ctxlua{tex.print(355/14)} \stopformula \stoptext === It works well and give me result = 25,357142857143. In order to obtain 2 decimal number I tried: \startformula K = \frac{\sigma_1}{\sigma_2} = \frac{355}{14}= \ctxlua{tex.printf(%0.2f,355/14)} \stopformula But it does not work. Here is the error: tex.printf(\doplaceformulanumber \stopdisplaymath \global \let \gdef \ETC. ! File ended while scanning text of \zerocount. inserted text } * ./test-lua.tex ? Another try: \startformula K = \frac{\sigma_1}{\sigma_2} = \frac{355}{14}= \ctxlua{tex.print(string.format(%0.2f,355/14))} \stopformula gives me the same error. So is there really a function printf() in LuaTeX engine ? Thanks ___ 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 ___ hm, what about tex.sprint(tex.ctxcatcodes,string.format(\%.2f,355/14) ? -- 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] LuaTeX printf() function ?
On Fri, Jul 23, 2010 at 10:38 PM, luigi scarso luigi.sca...@gmail.com wrote: On Fri, Jul 23, 2010 at 10:25 PM, Vnpenguin vnpeng...@vnoss.org wrote: Hi, Here is my test: === \setuppapersize[A4][A4] \usetypescript[postscript] \setupbodyfont[palatino,12pt] \starttext \startformula K = \frac{\sigma_1}{\sigma_2} = \frac{355}{14}= \ctxlua{tex.print(355/14)} \stopformula \stoptext === It works well and give me result = 25,357142857143. In order to obtain 2 decimal number I tried: \startformula K = \frac{\sigma_1}{\sigma_2} = \frac{355}{14}= \ctxlua{tex.printf(%0.2f,355/14)} \stopformula But it does not work. Here is the error: tex.printf(\doplaceformulanumber \stopdisplaymath \global \let \gdef \ETC. ! File ended while scanning text of \zerocount. inserted text } * ./test-lua.tex ? Another try: \startformula K = \frac{\sigma_1}{\sigma_2} = \frac{355}{14}= \ctxlua{tex.print(string.format(%0.2f,355/14))} \stopformula gives me the same error. So is there really a function printf() in LuaTeX engine ? Thanks ___ 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 ___ hm, what about tex.sprint(tex.ctxcatcodes,string.format(\%.2f,355/14) sorry tex.sprint(tex.ctxcatcodes,string.format(\%.2f,355/14)) -- 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] LuaTeX printf() function ?
On Fri, Jul 23, 2010 at 22:39, luigi scarso luigi.sca...@gmail.com wrote: On Fri, Jul 23, 2010 at 10:38 PM, luigi scarso luigi.sca...@gmail.com wrote: On Fri, Jul 23, 2010 at 10:25 PM, Vnpenguin vnpeng...@vnoss.org wrote: Hi, Here is my test: === \setuppapersize[A4][A4] \usetypescript[postscript] \setupbodyfont[palatino,12pt] \starttext \startformula K = \frac{\sigma_1}{\sigma_2} = \frac{355}{14}= \ctxlua{tex.print(355/14)} \stopformula \stoptext === It works well and give me result = 25,357142857143. In order to obtain 2 decimal number I tried: \startformula K = \frac{\sigma_1}{\sigma_2} = \frac{355}{14}= \ctxlua{tex.printf(%0.2f,355/14)} \stopformula But it does not work. Here is the error: tex.printf(\doplaceformulanumber \stopdisplaymath \global \let \gdef \ETC. ! File ended while scanning text of \zerocount. inserted text } * ./test-lua.tex ? Another try: \startformula K = \frac{\sigma_1}{\sigma_2} = \frac{355}{14}= \ctxlua{tex.print(string.format(%0.2f,355/14))} \stopformula gives me the same error. So is there really a function printf() in LuaTeX engine ? Thanks hm, what about tex.sprint(tex.ctxcatcodes,string.format(\%.2f,355/14) sorry tex.sprint(tex.ctxcatcodes,string.format(\%.2f,355/14)) Ahhh, forgot to escape %, my bad !!! The code \ctxlua{tex.print(string.format(\%0.2f,355/14))} works ok for me. Thanks, ___ 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] LuaTeX printf() function ?
On 23-7-2010 10:53, Vnpenguin wrote: \startformula K = \frac{\sigma_1}{\sigma_2} = \frac{355}{14}= \ctxlua{tex.print(string.format(%0.2f,355/14))} \stopformula or \ctxlua{context(\letterpercent0.2f,355/14)} we can consider adding \let\pct\letterpercent but nice is: \ctxluacode{context(%0.2f,355/14)} i'll add this but keep in mind that this will only work in the text stream, not in macro definitions or as arguments 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] LuaTeX printf() function ?
On Fri, Jul 23, 2010 at 23:23, Hans Hagen pra...@wxs.nl wrote: On 23-7-2010 10:53, Vnpenguin wrote: \startformula K = \frac{\sigma_1}{\sigma_2} = \frac{355}{14}= \ctxlua{tex.print(string.format(%0.2f,355/14))} \stopformula or \ctxlua{context(\letterpercent0.2f,355/14)} we can consider adding \let\pct\letterpercent but nice is: \ctxluacode{context(%0.2f,355/14)} i'll add this but keep in mind that this will only work in the text stream, not in macro definitions or as arguments With the format %... it's better to call something like \clxluacode{contextf()} ? (like print() printf()) ___ 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] \frac with Cambria
\usetypescript[cambria] \setupbodyfont[cambria,8pt] \starttext \inlinemath{\displaystyle\frac{(1-0.1) - 0.89803921568627}{1-0.1}}% {\switchtobodyfont[modern,8pt] \inlinemath{\displaystyle\frac{(1-0.1) - 0.89803921568627}{1-0.1}}} \stoptext IMO the numerator with cambria is too much distant from fraction's line: the same with LatinModern looks better. Denominator looks ok. -- 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] XITS fonts - second beta
On Mon, Jun 07, 2010 at 12:14:42AM +0200, Hans Hagen wrote: On 6-6-2010 9:43, Khaled Hosny wrote: I just uploaded a second beta of XITS fonts, this mainly introduces XITS text fonts, regular, bold, italic and bold italic. No changes to the math font. This release features also a rudimentary user guide. The text fonts provide to features over STIX fonts: * oldstyle figures, through 'onum' feature * text fractions, through 'frac' feature and: * sane filenames As usual, it is available from github: http://github.com/khaledhosny/xits-math/downloads ok, i adapted the typescripts Is there a chance this typescript gets into texlive? As I'm trying to get the font ready by the time of texlive2010, I think having the updated typescript will make installation instructions much simpler. -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ 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] XITS fonts - second beta
Khaled Hosny wrote: On Mon, Jun 07, 2010 at 12:14:42AM +0200, Hans Hagen wrote: On 6-6-2010 9:43, Khaled Hosny wrote: I just uploaded a second beta of XITS fonts, this mainly introduces XITS text fonts, regular, bold, italic and bold italic. No changes to the math font. This release features also a rudimentary user guide. The text fonts provide to features over STIX fonts: * oldstyle figures, through 'onum' feature * text fractions, through 'frac' feature and: * sane filenames As usual, it is available from github: http://github.com/khaledhosny/xits-math/downloads ok, i adapted the typescripts Is there a chance this typescript gets into texlive? As I'm trying to get the font ready by the time of texlive2010, I think having the updated typescript will make installation instructions much simpler. I am sure we can squeeze in a typescript if it is just that, a single typescript. Best wishes, Taco ___ 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] XITS fonts - second beta
I just uploaded a second beta of XITS fonts, this mainly introduces XITS text fonts, regular, bold, italic and bold italic. No changes to the math font. This release features also a rudimentary user guide. The text fonts provide to features over STIX fonts: * oldstyle figures, through 'onum' feature * text fractions, through 'frac' feature As usual, it is available from github: http://github.com/khaledhosny/xits-math/downloads Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ 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] XITS fonts - second beta
On 6-6-2010 9:43, Khaled Hosny wrote: I just uploaded a second beta of XITS fonts, this mainly introduces XITS text fonts, regular, bold, italic and bold italic. No changes to the math font. This release features also a rudimentary user guide. The text fonts provide to features over STIX fonts: * oldstyle figures, through 'onum' feature * text fractions, through 'frac' feature and: * sane filenames As usual, it is available from github: http://github.com/khaledhosny/xits-math/downloads ok, i adapted the typescripts 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] 10+ reasons why I still use MKII
Dear Hans, since you have promissed another hotfix release for TL 2010, here's a list of issues that I had with my thesis and MKIV (some have already been fixed in the due time, but many remained). I probably wouldn't have had those problems if I was designing my document in MKIV from scratch, but just recompiling in MKIV didn't work out for several reasons listed below. 1.) Minimal example: \usetypescript[iwona] \setupbodyfont[iwona] \starttext $a+b$ \stoptext Output: !define font: font with name Iwona-Math-Letters-Regular is not found !define font: unknown font Iwona-Math-Letters-Regular, loading aborted !define font: unable to define Iwona-Math-Letters-Regular as \*iwona6ptmmmr33* !define font: font with name Iwona-Math-Letters-Regular is not found !define font: unknown font Iwona-Math-Letters-Regular, loading aborted !define font: unable to define Iwona-Math-Letters-Regular as \*iwona8ptmmmr22* !define font: font with name Iwona-Math-Letters-Regular is not found !define font: unknown font Iwona-Math-Letters-Regular, loading aborted !define font: unable to define Iwona-Math-Letters-Regular as \*iwona11ptmmmr11* !define font: font with name Iwona-Math-Letters-Regular is not found etc. I need to figure out why, though it works (I don't see deficiencies in output yet). 2.) Recently discussed on the mailing list - stopper has no influence in MKIV: \setupcaptions[stopper={:}] \starttext \placefigure{title}{\framed{bla}} \stoptext 3.) Bibliography citations give different result with the same setup (different numbers and different spacing in \placepublication - might be also worth testing with grid typesetting as I wasn't able to set up the alignment properly in MKII last time when I have tried). I'm not sure which one is right, but there's probably no reason to produce different results. \usemodule [bib] \setuppublications [alternative=num, criterium=all, sorttype=cite] \starttext \startpublication[k=a,t=article]\arttitle{a}\stoppublication \startpublication[k=b,t=article]\arttitle{b}\stoppublication \startpublication[k=c,t=article]\arttitle{c}\stoppublication x\cite[a,b,c] \placepublications \stoptext 4.) The following problem must have appeared recently (it was working ok in September): in MKII the encoding is completely screwed up: \usemodule[gnuplot] \enableregime[utf-8] \starttext \startGNUPLOTscript[integrated risetime] plot sin(x) t 'šin(čix)' \stopGNUPLOTscript \useGNUPLOTgraphic[integrated risetime][1] \stoptext A slightly more basic example: \enableregime[utf-8] \starttext \startbuffer[gnu] \startMPcode draw \sometxt{čšž}; \stopMPcode \stopbuffer čšž \getbuffer[gnu] \stoptext 5.) Weird formula number placement when long equations are used in MKIV \def\oklepaj#1{\left(#1\right)} \starttext \placeformula \startformula {\dot N}(t)= A\oklepaj{\exp\oklepaj{-\frac{t-t_0}{τ_{\text{eksp.-\exp\oklepaj{-\frac{t-t_0}{τ_{\text{fast}+ B\oklepaj{\exp\oklepaj{-\frac{t-t_0}{τ_{\text{eksp.-\exp\oklepaj{-\frac{t-t_0}{τ_{\text{slow} \stopformula \stoptext 6.) I know that \NR is not the most appropriate way to go into next row, but the following gives considerably different results in MKII and MKIV: \starttable[|l|] \NC \type{a} \NC\NR \NC \type{a} \NC\NR \NC \type{a} \NC\NR \stoptable 7.) I know that there's a longstanding left vs. right bug, but flushleft is no solution in the following case (compare MKII and MKIV again): \definedescription [latexdesc] [headstyle={\ss\bf},style=normal,align=left,location=hanging,width=fit,margin=0cm] \latexdesc{step E (expectation):} \input tufte \latexdesc{step M (maximization):} \input tufte 8.) \definetypeface [boldmath] [mm] [boldmath] [latin-modern] [default] \starttext $\boldsymbol{\theta}$ \stoptext 9.) Note the big difference of when the formula starts vertically on page: \starttext \startformula a+b \stopformula \stoptext 10.) Different square root shape/variant used: $\frac{1}{\sqrt{2πσ_i^2}}$ Original formula: \startformula \startcases \NC ρ_0, \NC for $i=0$, \NR \NC ρ_i\,\frac{1}{\sqrt{2πσ_i^2}}\exp\biggl(-\frac{\left(x_j-μ_i\right)^2}{2σ_i^2}\biggr), \NC for $i\in\left\{1,2\right\}$. \NR \stopcases \stopformula but I cannot reproduce the big difference it makes in original document on a smaller scale. 11.) Missing bibliography entries: \usemodule[bib] % this line spoils the show \setuppublications[alternative=num] \setuppublicationlayout[webpage]{% \inserttitle{\bgroup\it }{\egroup. }{}% \inserturl{}{}{}% } \startpublication [k=FAIR,t=webpage,u=http://www.gsi.de/fair/] \biburl{http://www.gsi.de/fair/} \title{FAIR -- Facility for Antiproton and Ion Research} \stoppublication \starttext \cite[FAIR]\par \placepublications \stoptext 12.) \nocite[nonexistent] generates an empty [n] in bibliography in MKII, while it has zero effect in MKIV (it should at least generate an error). 13
Re: [NTG-context] 10+ reasons why I still use MKII
Mojca Miklavec wrote: 5.) Weird formula number placement when long equations are used in MKIV \def\oklepaj#1{\left(#1\right)} \starttext \placeformula \startformula {\dot N}(t)= A\oklepaj{\exp\oklepaj{-\frac{t-t_0}{τ_{\text{eksp.-\exp\oklepaj{-\frac{t-t_0}{τ_{\text{fast}+ B\oklepaj{\exp\oklepaj{-\frac{t-t_0}{τ_{\text{eksp.-\exp\oklepaj{-\frac{t-t_0}{τ_{\text{slow} \stopformula \stoptext This one is a luatex bug. http://tracker.luatex.org/view.php?id=392 Best wishes, Taco ___ 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] 10+ reasons why I still use MKII
Hi, 1.) Minimal example: \usetypescript[iwona] \setupbodyfont[iwona] \starttext $a+b$ \stoptext Output: !define font: font with name Iwona-Math-Letters-Regular is not found !define font: unknown font Iwona-Math-Letters-Regular, loading aborted !define font: unable to define Iwona-Math-Letters-Regular as \*iwona6ptmmmr33* !define font: font with name Iwona-Math-Letters-Regular is not found !define font: unknown font Iwona-Math-Letters-Regular, loading aborted !define font: unable to define Iwona-Math-Letters-Regular as \*iwona8ptmmmr22* !define font: font with name Iwona-Math-Letters-Regular is not found !define font: unknown font Iwona-Math-Letters-Regular, loading aborted !define font: unable to define Iwona-Math-Letters-Regular as \*iwona11ptmmmr11* !define font: font with name Iwona-Math-Letters-Regular is not found etc. I need to figure out why, though it works (I don't see deficiencies in output yet). hmm runs ok here ... but as i removed some old iwona stuff from type-otf after our mail exchange i'll make a new beta; also math is not defined in the typescript but in a lfg file 2.) Recently discussed on the mailing list - stopper has no influence in MKIV: \setupcaptions[stopper={:}] \starttext \placefigure{title}{\framed{bla}} \stoptext subtle difference: \setupcaptions[numberstopper={:}] \starttext \placefigure{title}{\framed{bla}} \stoptext all stopper, separator etc things are now more explicit as we have more control 3.) Bibliography citations give different result with the same setup (different numbers and different spacing in \placepublication - might be also worth testing with grid typesetting as I wasn't able to set up the alignment properly in MKII last time when I have tried). I'm not sure which one is right, but there's probably no reason to produce different results. \usemodule [bib] \setuppublications [alternative=num, criterium=all, sorttype=cite] \starttext \startpublication[k=a,t=article]\arttitle{a}\stoppublication \startpublication[k=b,t=article]\arttitle{b}\stoppublication \startpublication[k=c,t=article]\arttitle{c}\stoppublication x\cite[a,b,c] \placepublications \stoptext as i never used citations i don't know what you expect ... best ask Thomas what you should expect ... anyway, i'll make a template for the xml approach which is more fun 4.) The following problem must have appeared recently (it was working ok in September): in MKII the encoding is completely screwed up: \usemodule[gnuplot] \enableregime[utf-8] \starttext \startGNUPLOTscript[integrated risetime] plot sin(x) t 'šin(čix)' \stopGNUPLOTscript \useGNUPLOTgraphic[integrated risetime][1] \stoptext A slightly more basic example: \enableregime[utf-8] \starttext \startbuffer[gnu] \startMPcode draw \sometxt{čšž}; \stopMPcode \stopbuffer čšž \getbuffer[gnu] \stoptext hm, i get a pdf file with čšž čšž so what happens at your end? 5.) Weird formula number placement when long equations are used in MKIV \def\oklepaj#1{\left(#1\right)} \starttext \placeformula \startformula {\dot N}(t)= A\oklepaj{\exp\oklepaj{-\frac{t-t_0}{τ_{\text{eksp.-\exp\oklepaj{-\frac{t-t_0}{τ_{\text{fast}+ B\oklepaj{\exp\oklepaj{-\frac{t-t_0}{τ_{\text{eksp.-\exp\oklepaj{-\frac{t-t_0}{τ_{\text{slow} \stopformula \stoptext weird indeed, must be something basis as $$11\normalreqno{!!}$$ also has it .. taco just confirmed that it must be something in luatex itself 6.) I know that \NR is not the most appropriate way to go into next row, but the following gives considerably different results in MKII and MKIV: \starttable[|l|] \NC \type{a} \NC\NR \NC \type{a} \NC\NR \NC \type{a} \NC\NR \stoptable probably because \type has no strut in mkiv ... maybe it should have 7.) I know that there's a longstanding left vs. right bug, but hey, it's spec, no bug (as left is short for raggedleft) flushleft is no solution in the following case (compare MKII and MKIV again): \definedescription [latexdesc] [headstyle={\ss\bf},style=normal,align=left,location=hanging,width=fit,margin=0cm] \latexdesc{step E (expectation):} \input tufte \latexdesc{step M (maximization):} \input tufte just omit the align=left (was not handled in mkii) also, commands starting with \latex behave unpredictable in mkiv due to luigis compatibility mode 8.) \definetypeface [boldmath] [mm] [boldmath] [latin-modern] [default] \starttext $\boldsymbol{\theta}$ \stoptext sure, boldmath is now done differently: we have either unicode bold or full bold and full bold has never been checked (keep in mind that in unicode not all symbols have a bold variant 9.) Note the big difference of when the formula starts vertically on page: \starttext \startformula a+b \stopformula \stoptext interesting, i need to look into that 10.) Different square root shape
Re: [NTG-context] 10+ reasons why I still use MKII
On Wed, 12 May 2010, Mojca Miklavec wrote: 7.) I know that there's a longstanding left vs. right bug, but flushleft is no solution in the following case (compare MKII and MKIV again): \definedescription [latexdesc] [headstyle={\ss\bf},style=normal,align=left,location=hanging,width=fit,margin=0cm] \latexdesc{step E (expectation):} \input tufte \latexdesc{step M (maximization):} \input tufte Isn't MkIV output correct in this case? MkII is simply ignoring the align key. (Try with align=middle) 8.) \definetypeface [boldmath] [mm] [boldmath] [latin-modern] [default] \starttext $\boldsymbol{\theta}$ \stoptext 9.) Note the big difference of when the formula starts vertically on page: \starttext \startformula a+b \stopformula \stoptext 10.) Different square root shape/variant used: $\frac{1}{\sqrt{2πσ_i^2}}$ Original formula: \startformula \startcases \NC ρ_0, \NC for $i=0$, \NR \NC ρ_i\,\frac{1}{\sqrt{2πσ_i^2}} \exp\biggl(-\frac{\left(x_j-μ_i\right)^2}{2σ_i^2}\biggr), \NC for $i\in\left\{1,2\right\}$. \NR \stopcases \stopformula but I cannot reproduce the big difference it makes in original document on a smaller scale. Taco, is there a difference between the default math parameters for MkIV? 13.) Different spacing \setupwhitespace[big] \def\dictentry#1#2{\hbox{\bf#1}\hbox{\hbox to 1em{}\hbox{#2}}\blank[4mm]} \starttext \dictentry{clipping}{preboj} \dictentry{clustering}{gručenje} \stoptext Vertical spacing has been completely redone in MkIV. There is much more control now, so you should be able to get MkII behavour, if that is what you want in this case. What's the following BEWARE useful for? systems : BEWARE: syntex functionality is enabled! A typo. That should say *synctex* and not *syntex*. See Synctex and Context at http://itexmac.sourceforge.net/SyncTeX.html 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] 10+ reasons why I still use MKII
Aditya Mahajan wrote: 10.) Different square root shape/variant used: $\frac{1}{\sqrt{2πσ_i^2}}$ Original formula: \startformula \startcases \NC ρ_0, \NC for $i=0$, \NR \NC ρ_i\,\frac{1}{\sqrt{2πσ_i^2}} \exp\biggl(-\frac{\left(x_j-μ_i\right)^2}{2σ_i^2}\biggr), \NC for $i\in\left\{1,2\right\}$. \NR \stopcases \stopformula but I cannot reproduce the big difference it makes in original document on a smaller scale. Taco, is there a difference between the default math parameters for MkIV? Hans now uses OpenType Math (sometimes faked) fonts always, and his initial version of the reimplemenation of \big was wrong. But I thought this had been fixed a few weeks ago. Best wishes, Taco ___ 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] 10+ reasons why I still use MKII
On Wed, 12 May 2010, Taco Hoekwater wrote: Aditya Mahajan wrote: 10.) Different square root shape/variant used: $\frac{1}{\sqrt{2πσ_i^2}}$ Original formula: \startformula \startcases \NC ρ_0, \NC for $i=0$, \NR \NC ρ_i\,\frac{1}{\sqrt{2πσ_i^2}} \exp\biggl(-\frac{\left(x_j-μ_i\right)^2}{2σ_i^2}\biggr), \NC for $i\in\left\{1,2\right\}$. \NR \stopcases \stopformula but I cannot reproduce the big difference it makes in original document on a smaller scale. Taco, is there a difference between the default math parameters for MkIV? Hans now uses OpenType Math (sometimes faked) fonts always, and his initial version of the reimplemenation of \big was wrong. But I thought this had been fixed a few weeks ago. I am using a month old version. I'll update and check again. Mojca's question was regarding the shape of \sqrt. 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] 10+ reasons why I still use MKII
Aditya Mahajan wrote: On Wed, 12 May 2010, Taco Hoekwater wrote: Aditya Mahajan wrote: 10.) Different square root shape/variant used: $\frac{1}{\sqrt{2πσ_i^2}}$ Original formula: \startformula \startcases \NC ρ_0, \NC for $i=0$, \NR \NC ρ_i\,\frac{1}{\sqrt{2πσ_i^2}} \exp\biggl(-\frac{\left(x_j-μ_i\right)^2}{2σ_i^2}\biggr), \NC for $i\in\left\{1,2\right\}$. \NR \stopcases \stopformula but I cannot reproduce the big difference it makes in original document on a smaller scale. Taco, is there a difference between the default math parameters for MkIV? Hans now uses OpenType Math (sometimes faked) fonts always, and his initial version of the reimplemenation of \big was wrong. But I thought this had been fixed a few weeks ago. I am using a month old version. I'll update and check again. Mojca's question was regarding the shape of \sqrt. Ah yes. Same problem, different glyph. Best wishes, Taco ___ 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] footnote marks fail
On 13-4-2010 12:16, Michael Saunders wrote: Taco Hoekwater wrote: I may be missing something on my side, but I can't get sups=yes to work at all. \definefontfeature[default][default][mode=node,script=latn,sups=yes] \switchtobodyfont[palatino,11pt] It may well be that this palatino doesn't have the sups feature. Let me put it this way: \starttext text1\footnote{1footnote} \stoptext This will produce four instances of the numeral '1'. Suppose I want them all to look exactly alike. In other words, suppose I didn't want either footnote mark to be rescaled or elevated at all. How could I do that? you cannot trust open type features like sups and frac as you can never be sure how complete these are and if the ruled laid down in the font are okay; some of these features are really meant to be applied specifically (select piece of text and apply in dtp) i have plans to cook up an alternative font handler fot such features (using shapes but not feature info per se) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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] stopcolumns causes new page!!!?
{Objectius} \startitemize[1] \item Experiments aleatoris. Esdeveniments \startitemize[n,packed] \item Distingir entre esdeveniments aleatoris i deterministes \item Inventar situacions on hi hagi experiments aleatoris \item Donat un experiment aleatori, saber si un experiment és elemental o compost \item Trobar l'espai mostral (almenys els esdeveniments elementals i uns quants esdeveniments compostos en un experiment aleatori). Expressar-lo en forma de conjunts. \item Ãs d'un diagrama d'arbre per a trobar l'espai mostral \stopitemize \item Operacions amb esdeveniments \startitemize[n,packed] \item Cà lcul de la unió $A \cup B$, la intersecció $A \cap B$ i el complementari $A^c$ de dos esdeveniments aleatoris $A$ i $B$. \item Cà lcul d'expresions amb operacions booleanes d'esdeviniments aleatoris (per exemple $A^c \cap B$) \item Conèixer la regla que si dos esdeveniments aleatoris $A$, $B$ són tals que $A \cap B = \emptyset$, aleshores $A$ i $B$ són {\em incompatibles}. \stopitemize \item Cà lcul de probabilitats. Regla de Laplace. \startitemize[n,packed] \item Assignació de $\frac{1}{n}$ als esdeveniments elementals (equiprobables) $A_i$ d'un espai mostral \item Aplicació de la regla de Laplace {\em directament}: \startformula P(A) = \frac{\text{casos favorables}}{\text{casos possibles}} \stopformula Sobretot en experiments simples. \item Aplicació de la regla de Laplace utilitzant un {\em diagrama d'arbre} de forma auxiliar (comptant les diverses {\em branques} favorables de l'arbre). \startitemize[a] \item Per exemple en l'exercici: \quotation{Es llança un dau a l'aire i es sumen totes les cares excepte la de dalt. Quina és la probabilitat d'obtenir un nombre múltiple de 3?} %\startquotation[left,right] \item Amb experiments compostos: \startitemize[2] \item \quotation{Es llancen dos daus, un verd i un altre vermell i es multipliquen els nombres obtinguts. Quina és la probabilitat de treure un nombre parell?} \item \quotation{Es treuen dues cartes d'una baralla espanyola. Quina probabilitat hi ha de treure almenys una rei?} \stopitemize \stopitemize \stopitemize \item Propietats de la probabilitat. Probabilitat condicionada. \startitemize[n,packed] \item Introducció definitiva del diagrama d'arbre. \item Reconeixement d'esdeviments independents i dependents. \item Experiments compostos {\em sense remplaçament} (urnes, cartes). \item Cà lcul amb experiments amb esdeveniments {\em no equiprobables} (daus trucats, monedes trucades, etc.) tant simples com compostos utilitzant el diagrama d'arbre. \stopitemize \item Aplicació I: Esperança matemà tica. Decissió sobre si un joc és \quotation{just} \startitemize[n,packed] \item Determinar l'equitat d'un joc d'atzar després de calcular l'esperança matemà tica \item Calcular el {\em valor mitjà } (o {\em guany mitjà } si s'aplica a un joc d'atzar) d'un experiment aleatori \stopitemize \stopitemize \page \subsubsection{Vocabulari} \startitemize[1] \item Experiments aleatoris. Esdeveniments. {\em Experiment aleatori}, {\em experiment determinista}, {\em experiment simple}, {\em experiment compost}, {\em esdeveniment}, {\em esdeveniment elemental}, {\em espai mostral}, {\em esdeveniment compost}, {\em esdeveniments compatibles}, {\em esdeveniments incompatibles (o mútuament excloents)}. {\em Esdeveniment segur}, {\em esdeveniment impossible}. \item Operacions amb esdeveniments {\em Unió d'esdeveniments} ($A \cup B$), {\em intersecció d'esdeveniments} ($A \cap B$), {\em esdeveniment complementari (o contrari)}. \item Cà lcul de probabilitats {\em Probabilitat}, {\em tant per u}, {\em esdeveniment regular}, {\em esdeveniments elementals equiprobables}, {\em regla de Laplace}, {\em casos favorables}, {\em casos possibles}. \item Propietats de la probabilitat. Probabilitat condicionada. {\em Llei dels grans nombres}, {\em probabilitat condicionada}, {\em esdeveniments independents}, {\em esdeveniments dependents}. \item Aplicació I: Esperança matemà tica {\em esperança matemà tica}, {\em variable aleatòria}, {\em equitat} \stopitemize \subsection{Materials} Aquesta unitat didà ctica es basa en: \placepublications[criterium=all] \subsection{Temporalització} {\bf Passar aquesta llista a taula} \page \section{Resum de teoria} Posar requadres més importants amb les definicions \subsection{Experiments aleatoris. Esdeveniments} \subsection{Operacions amb esdeveniments} \subsection{Cà lcul de probabilitats. Regla de Laplace} \subsection{Propietats de la probabilitat. Probabilitat condicionada} \subsection{Esperança matemà tica} \page \section{Exercicis (clà ssics)} \subsection{Experiments aleatoris. Esdeveniments} %\subsubsection{Llibre} \startcolumns \startexercici S'extreu una bolla d'una urna amb boles numerades de l'1 al 5. Defineix l'espai mostral i 3 esdeveniments que no sigui elementals. \stopexercici \startexercici Digues quins dels experiments següents són aleatoris i quins
Re: [NTG-context] typescripts
Am 18.03.10 02:32, schrieb Michael Saunders: Consider, for example, something like this: a book on film with a header: Fellini's Roma and 8 1/2. I'm used to setting something like this in this way: Fellini's \it{Roma} and \it{\cvfrac{8}{1}{2}} (where \cvfrac{}{}{} is a macro that gives me a compound vulgar fraction). The header is itself in smallcaps, so what comes out is: Fellini'ssmall caps Romaitalic small caps andsmall caps 8italic proportional lining (italic and lining (i.e., uppercase) because it's a title) 1/2italic numeratoritalicitalic denominator all with minimal effort on the part of the writer. It seems natural that way. \setupbodyfont[pagella] \definefontfeature[smcp][smcp=yes] \definefontfeature[frac][frac=yes] \setuphead[chapter][textstyle=\addfs{frac}\addfs{smcp}] \starttext \chapter{Fellini’s {\it Roma} and 8 1/2} \input knuth \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] ntg-context Digest, Vol 69, Issue 95
Wolfgang Schuster: \setupbodyfont[pagella] \definefontfeature[smcp][smcp=yes] \definefontfeature[frac][frac=yes] \setuphead[chapter][textstyle=\addfs{frac}\addfs{smcp}] ... This is just an example, but what I think you mean to say by it is that the new command \addfs{} has the behavior I describe, but only for otf features and not for things like switching to semibold or to condensed (and, presumably, even if I'm able to define my own commands for things like semibold, something like: \sb ABC \it DEF would set the DEF at regular weight). Since I've never seen anyone talk about \addfs{}, but only give examples, I'm guessing (but just guessing) that there exists somewhere a list of what otf features are active at any given point, and that this command can add to that list. That's great. I might not need it anytime soon, but I'm just curious---are there other commands of this kind? Maybe something to clear the list? That leaves me the problem of installing sets with more than two weights, more than one width and several design sizes, as we spoke about earlier. It's late in the day here, but I hope to try that out tomorrow. Just to make sure I understand the example you and Mojca gave me: \definebodyfont [default] [rm] [tf=Serif sa 1, bf=SerifBold sa 1, it=SerifItalic sa 1, sl=SerifSlanted sa 1, bi=SerifBoldItalic sa 1, bs=SerifBoldSlanted sa 1, sc=SerifCaps sa 1] You could add your in=SerifYourFontVariantName sa 1, bd=SerifYourOtherFontVariantName sa 1, I think I can add this block to the top of my own typescript, duplicate the existing definitions as shown, and, when making up my own, I think I'm free to define font switches with more than two characters, so, e.g.: sbexit=SansSemiboldExtendedItalic sa 1 so, I won't be able to switch variants of this kind independently, but at least I can get them installed. After that, I'll move on to the optical examples and see what I can do about that (I'm hoping they provide for automatic switching of design size). Thank you, -- m ___ 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 error
Hallo, the following example compiles ok \starttext \startformula \frac{206}{7}=[29;2,2,1] \stopformula \stoptext while this compiles not \starttext \startformula [29;2,2,1]=\frac{206}{7} \stopformula \stoptext Bug or user error? 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 error
On 3/18/2010 4:15 PM, Wolfgang Werners-Lucchini wrote: the following example compiles ok \starttext \startformula \frac{206}{7}=[29;2,2,1] \stopformula \stoptext while this compiles not \starttext \startformula [29;2,2,1]=\frac{206}{7} \stopformula \stoptext In context, commands accept options enclosed by [] after their name. In the second example, context expect [29;2,2,1] to be options for \startformula. So replace the second one with \startformula[] [29;2,2,1]=\frac{206}{7} \stopformula Mehdi ___ 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 error
On Thu, Mar 18, 2010 at 1:45 PM, Wolfgang Werners-Lucchini w...@musensturm.de wrote: Hallo, the following example compiles ok \starttext \startformula \frac{206}{7}=[29;2,2,1] \stopformula \stoptext while this compiles not \starttext \startformula [29;2,2,1]=\frac{206}{7} \stopformula \stoptext Bug or user error? Wolfgang Try \starttext \startformula\relax [29;2,2,1]=\frac{206}{7} \stopformula \stoptext I think the [ is taken as starting an optional argument for \startformula. Best regards, 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] math error
Sorry, I found it! \starttext \startformula[] [29;2,2,1]=\frac{206}{7} \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] ntg-context Digest, Vol 69, Issue 95
On 18-3-2010 12:00, Michael Saunders wrote: Wolfgang Schuster: \setupbodyfont[pagella] \definefontfeature[smcp][smcp=yes] \definefontfeature[frac][frac=yes] \setuphead[chapter][textstyle=\addfs{frac}\addfs{smcp}] This is just an example, but what I think you mean to say by it is that the new command \addfs{} has the behavior I describe, but only for otf features and not for things like switching to semibold or to condensed (and, presumably, even if I'm able to define my own commands for things like semibold, something like: \sb ABC \it DEF would set the DEF at regular weight). Since I've never seen anyone talk about \addfs{}, but only give examples, I'm guessing (but just guessing) that there exists somewhere a list of what otf features are active at any given point, and that this command can add to that list. That's great. I might not need it anytime soon, but I'm just curious---are there other commands of this kind? Maybe something to clear the list? this mechanism is one of the spin off's of the oriental tex project (where we play font fonts that have 50+ stylistic variants and 20+ justification variants) \addfontfeaturetoset{..} % merge \subtractfontfeaturefromset {..} % merge \addfontfeaturetofont {..} % overload \subtractfontfeaturefromfont{..} % overload \let\addfs\addfontfeaturetoset \let\subfs\subtractfontfeaturefromset \let\addff\addfontfeaturetofont \let\subff\subtractfontfeaturefromfont there's also \setfontfeature and \setff in principle you can also use this to let fonts adapt to a language / script and in due time i'll add it as automatism there (internally in mkiv this is what we call dynamic features) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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] simplefonts
Hi Michael, This is not to disparage Wolfgang's great simplefonts module, but I learnt setting up fonts the old-fashioned way (with typescripts), so I will give a few explanations about this approach. Most of what you want can be achieved easily. I have Garamond Premier myself, and this is how I set it up: It looks like you're only using mkiv. So: call a file type-garamondprem.tex. Here's what we will do: first, we want to find out what features our font offers. On my system: otfinfo -f ~/texmf/fonts/opentype/adobe/garmprem/GaramondPremrPro.otf aaltAccess All Alternates c2scSmall Capitals From Capitals caltContextual Alternates caseCase-Sensitive Forms cpspCapital Spacing dligDiscretionary Ligatures dnomDenominators finaTerminal Forms fracFractions histHistorical Forms kernKerning ligaStandard Ligatures lnumLining Figures numrNumerators onumOldstyle Figures ordnOrdinals ornmOrnaments pnumProportional Figures saltStylistic Alternates sinfScientific Inferiors sizeOptical Size smcpSmall Capitals ss01Stylistic Set 1 ss02Stylistic Set 2 ss03Stylistic Set 3 supsSuperscript tnumTabular Figures zeroSlashed Zero You can enable these features with the four-letter-code and yes. So we define a set of such features for the different font instances we want to define. In my case, I want regular text with oldstyle figures, small caps with lining figures, and superior numerals. This goes into your typescript: \definefontfeature [myroman] [protrusion=pure,expansion=quality,script=latn,liga=yes,onum=yes,pnum=yes,kern=yes,tlig=yes,trep=yes] \definefontfeature [mysmcp] [mode=node,script=latn,language=dflt,liga=yes,lnum=yes,tnum=yes,kern=yes,tlig=yes,trep=yes,smcp=yes] \definefontfeature [mysup] [mode=node,script=latn,onum=no,pnum=yes,sups=yes] Next step: we set up the normal and smallcaps font: \starttypescript [serif] [garamondprem] \definefontsynonym [Garamond-Roman] [name:garamondpremierpro] [features=myroman] \definefontsynonym [Garamond-Bold] [name:garamondpremierprobold] [features=myroman] \definefontsynonym [Garamond-Italic] [name:garamondpremierproitalic] [features=myroman] \definefontsynonym [Garamond-Bold-Italic] [name:garamondpremierprobolditalicc] [features=myroman] \definefontsynonym [Garamond-SmallCaps] [name:garamondpremierpro] [features=mysmcp] \stoptypescript \starttypescript [serif] [garamondprem] \definefontsynonym [Serif] [Garamond-Roman] [features=myroman] \definefontsynonym [SerifItalic] [Garamond-Italic] [features=myroman] \definefontsynonym [SerifBold] [Garamond-Bold] [features=myroman] \definefontsynonym [SerifBoldItalic] [Garamond-Bold-Italic] [features=myroman] \definefontsynonym [SerifCaps] [Garamond-SmallCaps] [features=mysmcp] \stoptypescript Finally, define your first typeface: \starttypescript [GaramondPrem] \definetypeface [GaramondPrem] [rm] [serif] [garamondprem] [default] \stoptypescript Next step: defining a typeface with superior numbers for footnote references etc.: \starttypescript [serif] [garamondpremupper] \definefontsynonym [GaramondPremUpper-Roman] [name:agaramondproregular] [features=mysup] \stoptypescript \starttypescript [serif] [garamondpremupper] \definefontsynonym [Serif] [GaramondPremUpper-Roman] [features=mysup] \definefontsynonym [SerifItalic] [Serif] \definefontsynonym [SerifBold] [Serif] \definefontsynonym [SerifBoldItalic] [Serif] \definefontsynonym [SerifCaps] [Serif] \stoptypescript \starttypescript [GaramondPremUpper] \definetypeface [GaramondPremUpper] [rm] [serif] [garamondpremupper] [default] \stoptypescript Save this typescript somewhere where ConTeXt can find it and run luatools --generate. To use these in your documents, you need these lines \usetypescriptfile[type-garamondprem] \usetypescript[GaramondPremUpper] \usetypsecript[GaramondPrem] \setupbodyfont[GaramondPrem,11pt] OK so far? On Mar 12, 2010, at 8:11 PM, Michael Saunders wrote: Thank you once again. That _did_ work, after I got rid of an \os (I used it because I saw it in the manual). The command \definefontfeature intrigues me greatly. I wonder if it could solve all my problems. I'd love to understand it so that I don't end up coming in here and asking you to write all my font setups line by line. I Googled it and found only a few scattered examples here and there, mostly from this list. I wish I could find an explanation of it written down somewhere. For example, I would very much like to know: 1. What the first two arguments do. 2. What keys and values are available for the third, and what they mean. See above: all the font features your font offers. 3. Once I have composed a \definefontfeature command, how do I use it in the text. 4. For example, I gathered that I
Re: [NTG-context] Math Alignment - start equation at left margin
On Sun, 29 Nov 2009, Curiouslearn wrote: Hi, Can someone please help with the alignment of the equation so that it starts at left. I tried flushleft and other options (such as without \NC \NR, with align=left etc.). None of them result in the equation starting at the left margin. The equation is either placed in the middle or is aligned to the right. I want it to start at the left. Thanks. \setuppapersize[letter][letter] \starttext \startformula\startalign[align={left}] \NC\text{\bf Example: } \frac{d(4x^{2})}{dx} = 4 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR \stopalign\stopformula \stoptext The correct way to do this is \setupformulas[align=flushleft] \starttext \startformula a = b \stopformula \stoptext However, this does not work in MkIV due to a bug introduced in the splitting of mkii-mkiv files. math alignment works using commands \def\startinnermath {\getvalue{\e!start\??fm\formulaparameter\c!align}} \def\stopinnermath {\getvalue{\e!stop \??fm\formulaparameter\c!align}} which are defined in math-ali.mkiv. However, strc-mat.mkiv redefines these to \empty, so the simple math alignment does not work anymore. Hans: we need to either move these definitions from math-ali to strc-mat or remove \let\startinnermath\empty \let\stopinnermath \empty from strc-mat.mkiv 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 Alignment - start equation at left margin
I had tried using \setupformulas, but it did not work when I posted my question. I suppose it was for the reason you mentioned. I will try it again, once I have downloaded the latest beta. Thanks. On Tue, Dec 15, 2009 at 6:41 AM, Aditya Mahajan adit...@umich.edu wrote: On Sun, 29 Nov 2009, Curiouslearn wrote: Hi, Can someone please help with the alignment of the equation so that it starts at left. I tried flushleft and other options (such as without \NC \NR, with align=left etc.). None of them result in the equation starting at the left margin. The equation is either placed in the middle or is aligned to the right. I want it to start at the left. Thanks. \setuppapersize[letter][letter] \starttext \startformula\startalign[align={left}] \NC\text{\bf Example: } \frac{d(4x^{2})}{dx} = 4 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR \stopalign\stopformula \stoptext The correct way to do this is \setupformulas[align=flushleft] \starttext \startformula a = b \stopformula \stoptext However, this does not work in MkIV due to a bug introduced in the splitting of mkii-mkiv files. math alignment works using commands \def\startinnermath {\getvalue{\e!start\??fm\formulaparameter\c!align}} \def\stopinnermath {\getvalue{\e!stop \??fm\formulaparameter\c!align}} which are defined in math-ali.mkiv. However, strc-mat.mkiv redefines these to \empty, so the simple math alignment does not work anymore. Hans: we need to either move these definitions from math-ali to strc-mat or remove \let\startinnermath\empty \let\stopinnermath \empty from strc-mat.mkiv 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 ___ ___ 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 Alignment - start equation at left margin
Otared, thanks very much for bringing Aditya's article to my attention. The method worked well. On Mon, Nov 30, 2009 at 2:50 AM, Otared Kavian ota...@gmail.com wrote: Sorry for sending this again: I forgot a closing } in \type{FLalign]…)}… Hi, Is this what you want to achieve: %% begin \starttext From Aditya's \type{mathalign.pdf}, where he defines in fact a \type{\definemathalignment[flalign]}, (but I prefer \type{FLalign]…)} one has \definemathalignment[FLalign] [m=2, distance=5em plus 1 fil] %We need to set a default value for m Curiouslearn' input was: \startformula \startalign \NC\text{\bf Example: } \frac{d(4x^{2})}{dx} = 4 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR \stopalign \stopformula \startformula \startFLalign %% here you can add [m=2] or [m=3] if you need more columns \NC\text{\bf Example: } \frac{d(4x^{2})}{dx} = 4 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC \NC \NR %% note twice \NC \stopFLalign \stopformula \stoptext %% end Best regards: OK On 30 nov. 2009, at 00:45, Curiouslearn wrote: Hi, Can someone please help with the alignment of the equation so that it starts at left. I tried flushleft and other options (such as without \NC \NR, with align=left etc.). None of them result in the equation starting at the left margin. The equation is either placed in the middle or is aligned to the right. I want it to start at the left. Thanks. \setuppapersize[letter][letter] \starttext \startformula\startalign[align={left}] \NC\text{\bf Example: } \frac{d(4x^{2})}{dx} = 4 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR \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 ___ %% Otared Kavian Département de Mathématiques Université de Versailles Saint-Quentin Bâtiment Fermat 45 aveue 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 ___ ___ 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 Alignment - start equation at left margin
Hi, Can someone please help with the alignment of the equation so that it starts at left. I tried flushleft and other options (such as without \NC \NR, with align=left etc.). None of them result in the equation starting at the left margin. The equation is either placed in the middle or is aligned to the right. I want it to start at the left. Thanks. \setuppapersize[letter][letter] \starttext \startformula\startalign[align={left}] \NC\text{\bf Example: } \frac{d(4x^{2})}{dx} = 4 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR \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 ___
[NTG-context] Math Alignment - start equation at left margin (Bug in latest beta)
Just wanted to mention that I tried to achieve left alignment of single equation using: \setupformulas[align=flushleft] \startformula \text{\bf Example: } \frac{d(4x^{2})}{dx} = 4 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC\NR \stopformula But that does not work with the latest beta -- (This is LuaTeX, Version beta-0.46.0-2009112820 ConTeXt ver: 2009.11.27 21:24 MKIV fmt: 2009.11.29 int: english/english). It, however, works with MKII. I suppose, my question is, whether is another way of doing it, or should I wait until the bug is fixed. Thanks. On Sun, Nov 29, 2009 at 6:45 PM, Curiouslearn curiousle...@gmail.com wrote: Hi, Can someone please help with the alignment of the equation so that it starts at left. I tried flushleft and other options (such as without \NC \NR, with align=left etc.). None of them result in the equation starting at the left margin. The equation is either placed in the middle or is aligned to the right. I want it to start at the left. Thanks. \setuppapersize[letter][letter] \starttext \startformula\startalign[align={left}] \NC\text{\bf Example: } \frac{d(4x^{2})}{dx} = 4 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR \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] Math Alignment - start equation at left margin
Hi, Is this what you want to achieve: %% begin \starttext From Aditya's \type{mathalign.pdf}, where he defines in fact a \type{\definemathalignment[flalign]}, (but I prefer \type{FLalign]…) one has \definemathalignment[FLalign] [m=2, distance=5em plus 1 fil] %We need to set a default value for m Curiouslearn' input was: \startformula \startalign \NC\text{\bf Example: } \frac{d(4x^{2})}{dx} = 4 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR \stopalign \stopformula \startformula \startFLalign %% here you can add [m=2] or [m=3] if you need more columns \NC\text{\bf Example: } \frac{d(4x^{2})}{dx} = 4 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC \NC \NR %% note twice \NC \stopFLalign \stopformula \stoptext %% end Best regards: OK On 30 nov. 2009, at 00:45, Curiouslearn wrote: Hi, Can someone please help with the alignment of the equation so that it starts at left. I tried flushleft and other options (such as without \NC \NR, with align=left etc.). None of them result in the equation starting at the left margin. The equation is either placed in the middle or is aligned to the right. I want it to start at the left. Thanks. \setuppapersize[letter][letter] \starttext \startformula\startalign[align={left}] \NC\text{\bf Example: } \frac{d(4x^{2})}{dx} = 4 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR \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 ___ %% Otared Kavian Département de Mathématiques Université de Versailles Saint-Quentin Bâtiment Fermat 45 aveue 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 ___
Re: [NTG-context] Math Alignment - start equation at left margin
Sorry for sending this again: I forgot a closing } in \type{FLalign]…)}… Hi, Is this what you want to achieve: %% begin \starttext From Aditya's \type{mathalign.pdf}, where he defines in fact a \type{\definemathalignment[flalign]}, (but I prefer \type{FLalign]…)} one has \definemathalignment[FLalign] [m=2, distance=5em plus 1 fil] %We need to set a default value for m Curiouslearn' input was: \startformula \startalign \NC\text{\bf Example: } \frac{d(4x^{2})}{dx} = 4 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR \stopalign \stopformula \startformula \startFLalign %% here you can add [m=2] or [m=3] if you need more columns \NC\text{\bf Example: } \frac{d(4x^{2})}{dx} = 4 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC \NC \NR %% note twice \NC \stopFLalign \stopformula \stoptext %% end Best regards: OK On 30 nov. 2009, at 00:45, Curiouslearn wrote: Hi, Can someone please help with the alignment of the equation so that it starts at left. I tried flushleft and other options (such as without \NC \NR, with align=left etc.). None of them result in the equation starting at the left margin. The equation is either placed in the middle or is aligned to the right. I want it to start at the left. Thanks. \setuppapersize[letter][letter] \starttext \startformula\startalign[align={left}] \NC\text{\bf Example: } \frac{d(4x^{2})}{dx} = 4 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR \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 ___ %% Otared Kavian Département de Mathématiques Université de Versailles Saint-Quentin Bâtiment Fermat 45 aveue 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] leqalignno and labels
Hello, thanks again for all answers regarding labelling. It has mostly worked but I am now having a particular problem with leqalignno. It turns out that the \placeformula[mylabel] works as expected but for \leqalignno This is an example: -- \placeformula[Pflux] \startformula \leqalignno{ f_{q}^{p}(v) = \frac{32}{5} \nu^{10} v^{10} \left[1 + \log\left(v\right) \left(\sum_{i\geq6}^{k} \ell_{i} v^{i} \right) \right]\cr \times P_{q}^{p} \left[\left(1 - \frac{v}{v_{\p}} \right) \sum_{i=0}^{k} {\cal{F}}_{i}^{\lf} v^{i} \right],\cr } \stopformula -- Then, when doing Eq.~\in[Pflux] in the text, it will produce an ?? in the resulting pdf. Any help will be appreciated. Thanks, Pau ___ 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] leqalignno and labels
On Mon, 2 Nov 2009, Pau wrote: Hello, thanks again for all answers regarding labelling. It has mostly worked but I am now having a particular problem with leqalignno. It turns out that the \placeformula[mylabel] works as expected but for \leqalignno This is an example: -- \placeformula[Pflux] \startformula \leqalignno{ f_{q}^{p}(v) = \frac{32}{5} \nu^{10} v^{10} \left[1 + \log\left(v\right) \left(\sum_{i\geq6}^{k} \ell_{i} v^{i} \right) \right]\cr \times P_{q}^{p} \left[\left(1 - \frac{v}{v_{\p}} \right) \sum_{i=0}^{k} {\cal{F}}_{i}^{\lf} v^{i} \right],\cr } \stopformula -- Then, when doing Eq.~\in[Pflux] in the text, it will produce an ?? in the resulting pdf. Don't use \leqalignno and friends in ConTeXt. Instead use the ConTeXt equivalents. \setupformulas[location=left] \starttext \placeformula[Pflux] \startformula \startalign \NC f_{q}^{p}(v) \NC = \frac{32}{5} \nu^{10} v^{10} \left[1 + \log\left(v\right) \left(\sum_{i\geq6}^{k} \ell_{i} v^{i} \right) \right]\NR[+] \NC \NC \times P_{q}^{p} \left[\left(1 - \frac{v}{v_{p}} \right) \sum_{i=0}^{k} {\cal{F}}_{i}^{lf} v^{i} \right], \NR \stopalign \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] Cambria integral operator
Sebastian Sturm wrote: Hi all, I have been playing around a bit with the new ConTeXt Minimals and especially Cambria Math. I couldn't figure out, however, why the integral operator always comes out at about half the size of \sum or \prod. I couldn't find any relevant threads on the mailing list, but surely this is not the way it's supposed to be? No, that is clearly not right. I will investigate and report back. On the \widehat: it scales as far as the font allows it to. If that is not wide enough, I guess you could send a bug report to Microsoft. Is there some list on the web showing what parts of math have been implemented, what still needs to be done (and, where someone with limited TeX knowledge could provide some assistance)? No, not on the web. But there are only a few known MATH issues in the core/mkiv that I know of: * Latin Modern Math (and other old math font) virtual definitions are far from perfect (but that should not affect you, as you are using CambriaMath). * There is no support for skewed (text-style, with a diagonal bar, like in the frac feature) fractions yet in luatex. * The traditional TeX commands \atopwithdelims, \overwithdelims, and \abovewithdelims do not work properly because there is no matching MATH parameter at all. The real problem though, is that we do not have massive math tests: neither Hans nor me do any math typesetting in daily practise. Best wishes, Taco ___ 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 caps problem/bug with some fonts
Barry Schwartz wrote: Are there fonts that have a or b in the numr and dnom features but where they do not work in frac? that is unrelated, the replacement rules refer to glyphs an doften they stick to digits so you get a/b with a large a and b and the fractional slash which then gives an ugly overlap Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Small caps problem/bug with some fonts
Hans Hagen pra...@wxs.nl skribis: so, its not that frac itself is the problem dealing with in the engine, because if so, many features would be a problem, it's just that font makers stick to a couple of simple rules like: (1) replace all digits slash digits by sup digits overlapping frac slash sub digits (1) replace all digits slash digits by sup digits overlapping frac slash sub digits and if they have rule 2, it will mess up things like a/b Is rule (2) missing? I see (1) twice. Are there fonts that have a or b in the numr and dnom features but where they do not work in frac? ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Small caps problem/bug with some fonts
Barry Schwartz wrote: Hans Hagen pra...@wxs.nl skribis: but even then, if a font is not clear about issues, then one can get unwanted side effects (the frac feature for instance is often quite bugged and can only be applied selectively) Yeah, I think trying to be fancy with contextual substitutions is a bit like getting drunk. I'm not even sure why there was a frac tag when it was originally intended to be converted to numr and dnom tags. (I just looked at http://www.microsoft.com/typography/otspec160/features_fj.htm#frac to see what it says nowadays and now want to go get drunk.) actually the frac featurs, like most features is a rather generic one and as such it should work out of the box (some of the justitication features use gpos and/or assume specific renderer support, and some of that is rather undefined) so, its not that frac itself is the problem dealing with in the engine, because if so, many features would be a problem, it's just that font makers stick to a couple of simple rules like: (1) replace all digits slash digits by sup digits overlapping frac slash sub digits (1) replace all digits slash digits by sup digits overlapping frac slash sub digits and if they have rule 2, it will mess up things like a/b of course it can be properly dealt with ... just make proper rules now, one reason that metafont kind of design tools never were accepted as basic tool for font design is that designers are no programmers; and one needs programmers (or at least some of the related mindset) to make the more complex ot fonts (or one needs teams) actually, as many fonts do have the sup/sub digits its rather trivial to provide proper frac's in mkiv but till now i had no reason (time, project, etc) for doing it i fear the moment when designers start giving me rules like use this or that font and turn on those features assuming dtp like control and tweaking of the text (one reason for spending much time on fonts in mkiv is that it will give me control over bad behaving fonts; think of wrong glyph to unicode mapping and such) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Small caps problem/bug with some fonts
Hans Hagen pra...@wxs.nl skribis: but even then, if a font is not clear about issues, then one can get unwanted side effects (the frac feature for instance is often quite bugged and can only be applied selectively) Yeah, I think trying to be fancy with contextual substitutions is a bit like getting drunk. I'm not even sure why there was a frac tag when it was originally intended to be converted to numr and dnom tags. (I just looked at http://www.microsoft.com/typography/otspec160/features_fj.htm#frac to see what it says nowadays and now want to go get drunk.) ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Urgent: Strange index problems
En/na Xan ha escrit: En/na Xan ha escrit: Thank VERY much, Taco. Do you recomand to substitute any $$ i \index with \mathematics? Regards, Xan. Sorry Taco, Bad news. It does not work: the same problem Xan. Even with no math I get the same error: \startmydefinition Siguin $G$ un grup, $X$ un conjunt finit de generadors de $G$, $\sigma \colon G \to {(X \cup X^{-1})}^*$ una secció i $k \geq 0$. La {\em amplada mitjana $k$-èssima de \sigma}\index[amplada+mitjana respecte de k+1 valors]{amplada+mitjan respecte de \mathematics k+1 valors}, o {\em amplada mitjana de $k+1$ valors de $\sigma$}\index[amplada+mitjana respecte de k+1 valors]{amplada+mitjan respecte de k+1 valors}, és la funció $\varphi_{\sigma, k} \colon \naturalnumbers \to \naturalnumbers$\mysymbol{$\varphi_{\sigma}$} definida per $\varphi_{\sigma, k} (0) = 0$ i, per a tot $n 0$, \startformula \varphi_{\sigma, k} (n)= \max \{\frac{1}{k+1} \sum_{i=0}^k D_{\sigma, g, h} (t+i) \mid t \in \naturalnumbers, (g, h) \in K_{G, X} (n) \}. \stopformula Quan $\sigma$ sigui clara pel context o sigui una secció genèrica, escriurem simplement $\varphi_k (n)$\mysymbol{$\varphi_k$}. De forma trivial, $\varphi_0 = \varphi$ i $\varphi_1 = \lambda_{0,1}$. \stopmydefinition If I comment this code, then all is ok. Can you see all the code and take a sight if you detect the error? Xan. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Urgent: Strange index problems
En/na Xan ha escrit: Hi, I have a document and I get this error: publications: warning: cite argument riley-tesi unknown on 139 references : unknown reference [][0] section : 1.4 Més d'una secció section : 1.5 $p_w$ section : 1.6 altres {vertical mode: \tracingstats} {\tracingpages} {\tracingoutput} {\tracinglostchars} {\tracingmacros} {\tracingparagraphs} {\tracingrestores} {\showboxbreadth} {\showboxdepth} {\tracinggroups} {\tracingifs} {\tracingscantokens} {\tracingnesting} {\tracingassigns} {into \tracingassigns=2} {\errorstopmode} {\tracingonline} {changing \tracingonline=1} Completed box being shipped out [33.33] Memory usage before: 5614778894; after: 919777521; still untouched: 930938 title : - Refer\dochar {232}ncies [34.34] title : - Índex alfabètic (./memoria.tuo ! Extra }, or forgotten $. \doregistertexthowto ...?id #1\c!textcommand }{#2} \dostopattributes \dohandleregisterentry ...exthowto {\v!index }{#1} \fi \egroup \!!doneafalse \c!entryb ...ry {\v!index }{mitjan respecte de $k} \global \firstregisterentr... argument \c!entrya \c!entryb \c!entryc \c!entryd \secondoftwoarguments #1#2-#2 \dodosetpageregisterpageA ...\c!entryc \c!entryd } \global \let \c!entrya \re... ... l.167 ...e{index}{,}{24}{2--0-1-3-0-0-0-0--32}{32} % ? x {/usr/share/texmf/fonts/enc/dvips/lm/lm-ec.enc}{/usr/share/texmf/fonts/enc/dvip s/lm/lm-mathsy.enc}{/usr/share/texmf/fonts/enc/dvips/lm/lm-mathit.enc}{/usr/sha re/texmf/fonts/enc/dvips/lm/lm-rm.enc}{/usr/share/texmf/fonts/enc/dvips/lm/lm-m athex.enc}/usr/share/texmf/fonts/type1/public/lm/lmbx10.pfb/usr/share/texmf/ fonts/type1/public/lm/lmex10.pfb/usr/share/texmf/fonts/type1/public/lm/lmmi10 .pfb/usr/share/texmf/fonts/type1/public/lm/lmmi6.pfb/usr/share/texmf/fonts/ type1/public/lm/lmmi7.pfb/usr/share/texmf/fonts/type1/public/lm/lmmi8.pfb/u sr/share/texmf/fonts/type1/public/lm/lmmi9.pfb/usr/share/texmf/fonts/type1/pu blic/lm/lmr10.pfb/usr/share/texmf/fonts/type1/public/lm/lmr6.pfb/usr/share/ texmf/fonts/type1/public/lm/lmr7.pfb/usr/share/texmf/fonts/type1/public/lm/lm r8.pfb/usr/share/texmf/fonts/type1/public/lm/lmr9.pfb/usr/share/texmf/fonts /type1/public/lm/lmri10.pfb/usr/share/texmf/fonts/type1/public/lm/lmri9.pfb /usr/share/texmf/fonts/type1/public/lm/lmsy10.pfb/usr/share/texmf/fonts/type1 /public/lm/lmsy6.pfb/usr/share/texmf/fonts/type1/public/lm/lmsy7.pfb/usr/sh are/texmf/fonts/type1/public/lm/lmsy8.pfb/usr/share/texmf/fonts/type1/public/ lm/lmsy9.pfb/usr/share/texmf/fonts/type1/public/lm/lmtt10.pfb/usr/share/tex mf-texlive/fonts/type1/bluesky/ams/msam10.pfb/usr/share/texmf-texlive/fonts/t ype1/bluesky/ams/msbm10.pfb Output written on memoria.pdf (34 pages, 424021 bytes). Transcript written on memoria.log. TeXExec | runtime: 18.095553 x...@rulot:~/Desktop/TFM/TFM/nou$ The problem appears after section \section{$\varphi_k$}, because if I put \stoptext after, all is ok. Anyone could see the problems? I attach the file. Please, help me. Xan. Too long, so I just copy the last section: \section{$\varphi_k$} Una altra possible generalització de $\varphi$ és, en comptes de realitzar la mitjana de les distàncies de dos valors, com féiem amb $\lambda_{s, k}$, fer la mitjana de $k$ valors consecutius. \startmydefinition Siguin $G$ un grup, $X$ un conjunt finit de generadors de $G$, $\sigma \colon G \to {(X \cup X^{-1})}^*$ una secció, $k \geq 0$. La {\em amplada mitjana $k$-èssima de \sigma}\index[amplada+mitjana k-èssima d'una secció]{amplada+mitjana $k$-èssima d'una secció}, o {\em amplada mitjana de $k+1$ valors de $\sigma$}\index[amplada+mitjana respecte de k+1 valors]{amplada+mitjan respecte de $k+1$ valors}, és la funció $\varphi_{\sigma, k} \colon \naturalnumbers \to \naturalnumbers$\mysymbol{$\varphi_{\sigma}$} definida per $\varphi_{\sigma, k} (0) = 0$ i, per a tot $n 0$, \startformula \varphi_{\sigma, k} (n)= \max \{ \sum_{i=0}^k D_{\sigma, g, h} (t+i) \mid t \in \naturalnumbers, (g, h) \in K_{G, X} (n) \}. \stopformula Quan $\sigma$ sigui clara pel context i sigui una secció genèrica, escriurem simplement $\varphi_k (n)$\mysymbol{$\varphi_k$}. De forma trivial, $\varphi_0 = \varphi$ i $\varphi_1 = \lambda_{0,1}$. \stopmydefinition Estendrem $\varphi_k$ als nombres reals mitjançant $\varphi_k (x) = \varphi_k (\lfloor x \rfloor)$ si $x 0$ i $\varphi_k (x) = \varphi_k (0)$ si $x 0$. \startmylema Per a tot $k \geq 0$, tenim que $\varphi_k (n) \leq \varphi (n)$. \stopmylema \startmydemo Clarament, per a tot $n \in \naturalnumbers$, \startformula \startsplit \NC \varphi_k (n) \NC = \max \{ \frac{1}{k+1} \sum_{i=0}^k D_{\sigma, g
[NTG-context] mathalign with \{ ?
Hi, I have \placeformula[-] \startformula F(n) = \startdisplaycases \NC F(0) + 2 \ln n!! - \frac{n}{2} \ln 2 \MC \text{si } n \text{ parell} \NR \NC F(1) + 2 \ln n!! - \frac{n+1}{2} \ln 2 \MC \text{si } n \text{ senar} \NR \stopdisplaycases \stopformula and I want to put \placeformula[-] \{ \startformula F(n) = \startdisplaycases \NC F(0) + 2 \ln n!! - \frac{n}{2} \ln 2 \MC \text{si } n \text{ parell} \NR \NC F(1) + 2 \ln n!! - \frac{n+1}{2} \ln 2 \MC \text{si } n \text{ senar} \NR \stopdisplaycases \stopformula But I received error. I have MKII. How can I put braces and do that enumeration formula is at middle possition (not in first or last line, just in the middle). I use Aditya manual but I did not see it. Xan. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mathalign with \{ ?
On Wed, 2 Sep 2009, Xan wrote: Hi, I have \placeformula[-] \startformula F(n) = \startdisplaycases \NC F(0) + 2 \ln n!! - \frac{n}{2} \ln 2 \MC \text{si } n \text{ parell} \NR \NC F(1) + 2 \ln n!! - \frac{n+1}{2} \ln 2 \MC \text{si } n \text{ senar} \NR \stopdisplaycases \stopformula and I want to put \placeformula[-] \{ \startformula F(n) = \startdisplaycases \NC F(0) + 2 \ln n!! - \frac{n}{2} \ln 2 \MC \text{si } n \text{ parell} \NR \NC F(1) + 2 \ln n!! - \frac{n+1}{2} \ln 2 \MC \text{si } n \text{ senar} \NR \stopdisplaycases \stopformula But I received error. I have MKII. How can I put braces and do that enumeration formula is at middle possition (not in first or last line, just in the middle). I use Aditya manual but I did not see it. Can you visually show what you want to achieve? 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Frac (was \everymath problem)
On Wed, 19 Aug 2009, Wolfgang Schuster wrote: And with \frac it can be configured at context low level (why no key for \setupmathematics?) \chardef\mathfracmode=1 % 0=auto, 1=displaystyle, 2=textstyle, 3=scriptstyle, 4=scriptscriptstyle, 5=mathstyle $\frac{a}{b}$ I am thinking of incoprorating a nath like frac in ConTeXt. So, we can have \definemathfraction[frac][style=...] where style can take values default: the current frac implementation auto:the nath like implementation displaystyle: the current dfrac implementation textstyle: the current tfrac implementation scriptstyle/scriptscriptstyle: (not sure when they would be needed) I need to check what is the difference between mathfracmode=0 and 5. We can also interface to vulgar fractions. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \everymath problem
Am 19.08.2009 um 16:47 schrieb Hans Hagen: Eythan Weg wrote: Hi, I use luatex 0.43 with yesterday's beta. Running\everymath = {\displaystyle} \starttext ${a\over b}$ \stoptext results in ! Use of \dospecialabout doesn't match its definition. l.4 ${a\over b }$ Plain format under luatex has no problem here. If I change \over to \times it runs with fonts changed to roman (i.e, not math italics). taco and i looked into it (fearing big problems) but it's actually normal; use \everymath = \expandafter{\the\everymath \displaystyle} or \appendtoks \displaystyle \to \everymath as (among other important things) \everymath does initialize \over And with \frac it can be configured at context low level (why no key for \setupmathematics?) \chardef\mathfracmode=1 % 0=auto, 1=displaystyle, 2=textstyle, 3=scriptstyle, 4=scriptscriptstyle, 5=mathstyle $\frac{a}{b}$ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to move an inframed block?
Hello Everybody, Hans reacted on the question of how to move a framed text relative to another framed text by: search for 'layers' on the wiki; they provide precise positioning Looking to the wiki site, I read at the first sentence: Layers are ConTeXt's mechanism for absolute positioning of elements But I don't want absolute postitioning, and I don't want a background which is repeated every page. Here an example I tried but it is not what I want. ( Don't look to the way how it is programmed and I mean the \startdefinition \stopdefinition. I want to do that on another nice way, but no idea how. Trying out this example gives a dummy file before the word Definition, I want to put on that place certain figures. That is no problem.) ### Begin Example: % otherwise you get greyscale \setupcolors[state=start] \setupcolor[rgb] % Default % default %\setupbodyfont[10pt] \setupbodyfont[lucida,10pt] % works! % pagenumbering \setuppagenumbering[location={header,right}, style=bold] % set inter-paragraph spacing \setupwhitespace[medium] % printed on A4 paper \setuppapersize[A4][A4] % the layout ( 1 inch =2.54 centimeter) \setuplayout[backspace=25mm, width=170mm, topspace=10mm, top=0mm, header=20mm, footer=10mm, height=270mm, leftmargin=10mm, rightmargin=10mm, leftedge=0mm, rightedge=0mm] % uncomment the next line to see the layout %\showframe % make hyperlinks active \setupinteraction[state=start, color=orange] % use module newmat \usemodule[newmat] %\usemodule[amsl] % \usemodule[nath] not use this module, otherwise amsl doesn't work anymore. % define colors \definecolor[LightBlue][r=.5,g=.5,b=1.0] \definecolor[LightYellow][r=.8,g=.8,b=.6] \definecolor[LightRed][r=1.0,g=.4,b=.4] \definecolor[indexgray][s=0.925] \definecolor[indexred][r=0.9] \definecolor[indexyellow][y=0.9] \definecolor[secorange][r=1.0,g=0.8,b=0.6] \definecolor[subsecorange][r=0.9,g=0.8,b=0.6] \definecolor[examgreen][g=0.6] \definecolor[agvgreen][r=.8,g=1.0,b=.8] \definecolor[agvblue][r=.8,g=1.0,b=1.0] \definecolor[agvmauve][r=.6862,g=.2392,b=.8] \definecolor[agvbrown][r=.8,g=.4078,b=.2392] % define other things \setuplabeltext[en][chapter=Chapter\,] \setuplabeltext[en][section=Section\,] % Enumeration \defineenumeration[definition][text=Definition] \setupenumerations[definition][location=serried,width=broad,headstyle=italic, inbetween=\blank, before=\blank, after=\blank, way=bysection] % Tryout logotext % #1: Definition,Lemma,Section, #2: reference, #3: title \define[4]\logotext{% \doif{#1}{Definition}{% \startmyframe \framed[corner=00, background=color, backgroundcolor=agvgreen, foreground=color, foregroundcolor=black, offset=0.5ex, rulethickness=2pt, framecolor=agvbrown]{\,\externalfigure[Figures/#4.pdf][width=12pt]\, \startdefinition[#2] \stopdefinition}{#3} \stopmyframe} \doif{#1}{Lemma}{% \framed[corner=00, background=color, backgroundcolor=agvblue, foreground=color, foregroundcolor=black, rulethickness=2pt, framecolor=agvmauve]{#3}} \doif{#1}{Section}{% \framed[corner=00, background=color, backgroundcolor=agvgreen, foreground=color, foregroundcolor=black, foregroundstyle=normal, offset=0.75ex, rulethickness=1pt, framecolor=agvbrown]{\section[#2]{#3 \defineframedtext [myframe] [width=\textwidth, offset=1.0ex, background=color, backgroundcolor=agvblue, foregroundstyle=normal, before={\blank[medium]}, after={\blank[medium]}, corner=00, rulethickness=1pt, framecolor=agvmauve] \starttext \section{Puh} \logotext{Definition}{DefAap}{ The numbers $\{x^{i}\}$ are called the \underbar{contravariant components}\index{contravariant components} of the vector $\text{\bf x}$ with respect tot the basis $\{\text{\bf e}_{i}\}$.}{} \logotext{Definition}{DefAap-1}{ The numbers $\{x^{i}\}$ are called the \underbar{contravariant components}\index{contravariant components} of the vector $\text{\bf x}$ with respect tot the basis $\{\text{\bf e}_{i}\}$.}{} % Show next sample \logotext{Definition}{DefAap-2}{ Let $\Omega$ be an open subset of $\Bbb{R}^{n}$. A system of $n$ real-valued functions $\{ f^{i}(X)\}$, defined on $\Omega$, is called a (curvilinear)\index{curvilinear} \underbar{coordinate system}\index{coordinate system} for $\Omega$, if the following conditions are satisfied: \startitemize[1,packed,broad] \item The map $\text{\bf f}\,=\,(f^{1},\cdots,f^{n})^{T}$ of $\Omega$ to $\Bbb{R}^{n}$ is injective. The following notations is used $u^{i}\,= \,f^{i}(x^{i}E_{i})$. Notice that the functions $f^{i}$ are functions of the variables $x^{i}$. \item The set $U\,=\,f(\Omega)$ is an open subset of $\Bbb{R}^{n}$. \item The map $\text{\bf f}$ is differentiable at every point $X\in \Omega$ and there holds also that $\text{det}\startmatrix[left={\left[\,},right={\,\right]}] \NC {\displaystyle \frac{\partial f^{i}}{\partial x^{j}}}(X)\NR \stopmatrix \neq 0$ for every $X\in\Omega$. \stopitemize}{} %\QED}{} \stoptext ### End
Re: [NTG-context] support for SUBSCRIPT THREE etc. ?
Michail Vidiassov wrote: What about an analog of ucs LaTeX package, when Unicode math subscripts (and other symbols) in TeX file are replaced by \sub{3} etc., regardless of the font used for typesetting? the reverse mapping is doable and on the agenda (normally i do such things when i run into it in a project) It will give WYSIWYG-like appearance of the input file on the screen in the editor using Unicode font and will not bring the mess deep into ConTeXt? well, editors is another case as not all fonts used in editors have such characters so your file becomes quite unportable unless the editor implements some fallback mechanism there's also a subscript font feature but often such features are implemented incomplete in fonts (like frac) and quite unuseable unless more logic in the engine is added (again, something that i will look into when i have a reason) Is such thing doable? (Not making a set of mappings for presonal use, but proper package for public consumption?) it would be core functionality as it involved manupulating the internal math node lists Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] from latex pstricks to context
(I'm sorry, problems with computer, I'm afraid that I just sent an empty reply ...) On Mon, Jul 13, 2009 at 11:23, R. Bastian wrote: I tried the example http://wiki.contextgarden.net/TikZ texexec compiled it but with an error on coordinate I think it's best to ask the author. When compiling with MKIV (context filename) it doesn't report any error, but it doesn't draw the line either. I have no idea what could possibly go wrong. You may uncomment these two lines \draw[important line,orange!80!black] (1,0) -- node[right=1pt,fill=white] { $\displaystyle \tan \alpha \black = \frac{{\red \sin \alpha}}{\blue \cos \alpha}$} (intersection of 0,0--30:1cm and 1,0--1,1) coordinate (t); \draw (0,0) -- (t); and the rest should work. I mean: under normal usage, most things that you'll want to try will work. If not, the author usually fixes the bugs rather quickly. (I was testing with ConTeXt ver: 2009.06.14 21:01.) 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] startcombination alignment problem
Hi, I want to put three graphics by this way: [graphic 1] [graphic 2] [graphic 3] where graphic 3 is centered. I use combination, but graphic 3 puts me in left [graphic 1] [graphic 2] [graphic 3] How can I solve that? Thanks in advance, Xan. PS: Please, CCme. I put the code: \placefigure [here] [figura-area] {Camins sobre $w$} {\startcombination[2*1] { \starttikzpicture[scale=1] % Els punts \filldraw (0,-4) circle (2pt); \filldraw (0.4216,3.9603) circle (2pt); % primer punt: avaluo ({3*sin(\t r)},{4*cos(\t r)}); a t = 0.141 \filldraw (-0.4216,3.9603) circle (2pt); % primer punt: avaluo ({3*sin(\t r)},{4*cos(\t r)}); a t = -0.141 % Les línies entre els punts \draw (-0.4216,3.9603) -- (0.4216,3.9603); \draw plot[domain=-3.141:-0.141,smooth,variable=\t] ({3*sin(\t r)},{4*cos(\t r)}); \draw plot[domain=0.141:3.141,smooth,variable=\t] ({3*sin(\t r)},{4*cos(\t r)}); \filldraw (0,-4) circle (2pt); % perquè me quedi el punt damunt. % Els combings % Dibuixo: % amb y la línia recta que uneix els dos punts, directament % per x faig un funció del sinus (sin nx + ax = k) \draw plot[domain=0:0.4216,smooth,variable=\t] ({-0.857727*\t -sin (7.31228*\t r) },{18.8812*\t -4 }); \draw plot[domain=0:0.4216,smooth,variable=\t] ({+0.857727*\t +sin (7.31228*\t r) },{18.8812*\t -4 }); % el sentit d'omega \draw[decorate,decoration={markings,mark=at position .9 with {\arrow[blue,line width=1mm]{}}}] plot[domain=-3.141:3.141,smooth,variable=\t] ({3*sin(\t r)},{4*cos(\t r)}); % Els punts de les cel·les % Calcul els combings per a y= 0 i y=1 \filldraw (-1.181475, 0) circle (2pt); \filldraw (1.181475, 0) circle (2pt); %\filldraw (1.161048, 1) circle (2pt); %\filldraw (-1.161048, 1) circle (2pt); % Els noms \draw (0, -4.3) node {$1 \in G$}; \draw (2.5, -3) node {$w$}; \draw (-1.8, -0.3) node {$\sigma_{i+1}(j)$}; \draw (1.65, -0.3) node {$\sigma_i(j)$}; % Els noms dels camins %\draw (1, 0.3) node {$a$}; %\draw (3, 0.3) node {$b$}; %\draw (3.7, 1) node {$c$}; %\draw (3, 1.7) node {$d$}; %\draw (1, 1.7) node {$e$}; %\draw (0.3, 1) node {$f$}; %\draw (2.3, 1) node {$g$}; % PROVES %\draw[out=45,in=-45] (0,0) to (0.5,8); %\draw[color=blue,-] (0,0) .. controls (0.1,2) .. (0.2,3) .. controls (0.3,4) and (0.4,6) .. (0.5,8); %\draw (0,0) arc (-90:90:3 and 4); %\draw (0,0) arc (270:90:3 and 4); %\draw[color=green] plot[domain=-3.141:3.141,smooth,variable=\t] ({4*sin(\t + (.1 * rand) r)},{4*cos(\t r)}); %\draw (0,0) arc (-90:81.82:2 and 4); %\draw[decorate,decoration={random steps,segment length=2mm, amplitude=2pt}] (0,0) arc (-90:97.18:3.5 and 4); %\draw[very thin,color=gray] (-5.1,-5.1) grid [step=1] (5.9,5.9); %\draw[-] (-5.2,0) -- (6.2,0) node[right] {$x$}; %\draw[-] (0,-5.2) -- (0,5.2) node[above] {$y$}; % r = \frac{-1}{3} x + 3 %\filldraw (3,2) circle (2pt); %\filldraw (-3,4) circle (2pt); %\draw (-6,5) -- (6,1); %\draw (1, 3.5) node {$r$}; \stoptikzpicture} {Les seccions de $\pi(w(i))$.} { \starttikzpicture[scale=1] % Els punts \filldraw (0,-4) circle (2pt); \filldraw (0.4216,3.9603) circle (2pt); % primer punt: avaluo ({3*sin(\t r)},{4*cos(\t r)}); a t = 0.141 \filldraw (-0.4216,3.9603) circle (2pt); % primer punt: avaluo ({3*sin(\t r)},{4*cos(\t r)}); a t = -0.141 % Les línies entre els punts \draw (-0.4216,3.9603) -- (0.4216,3.9603); \draw plot[domain=-3.141:-0.141,smooth,variable=\t] ({3*sin(\t r)},{4*cos(\t r)}); \draw plot[domain=0.141:3.141,smooth,variable=\t] ({3*sin(\t r)},{4*cos(\t r)}); \filldraw (0,-4) circle (2pt); % perquè me quedi el punt damunt. % Els combings % Dibuixo: % amb y la línia recta que uneix els dos punts, directament % per x faig un funció del sinus (sin nx + ax = k) \draw plot[domain=0:0.4216,smooth,variable=\t] ({-0.857727*\t -sin (7.31228*\t r) },{18.8812*\t -4 }); \draw plot[domain=0:0.4216,smooth,variable=\t] ({+0.857727*\t +sin (7.31228*\t r) },{18.8812*\t -4 }); % el sentit d'omega \draw[decorate,decoration={markings,mark=at position .9 with {\arrow[blue,line width=1mm]{}}}] plot[domain=-3.141:3.141,smooth,variable=\t] ({3*sin(\t r)},{4*cos(\t r)}); % Els punts de les cel·les % Calcul els combings per a y= 0 i y=1 \filldraw (-1.181475, 0) circle (2pt); \filldraw (1.181475, 0) circle (2pt); %\filldraw (1.161048, 1) circle (2pt); %\filldraw (-1.161048, 1) circle (2pt); % Els noms \draw (0, -4.3) node {$1 \in G$}; \draw (2.5, -3) node {$w$}; \draw (-1.8, -0.3) node {$\sigma_{i+1}(j)$}; \draw (1.65, -0.3) node {$\sigma_i(j)$}; % Els noms dels camins %\draw (1, 0.3) node {$a$}; %\draw (3, 0.3) node {$b$}; %\draw (3.7, 1) node {$c$}; %\draw (3, 1.7) node {$d$}; %\draw (1, 1.7) node {$e$}; %\draw (0.3, 1) node {$f$}; %\draw (2.3, 1) node {$g$}; \stoptikzpicture} {El camí $\theta_{i,j}$.} \stopcombination \startcombination[1*1] { \starttikzpicture[scale=1] % Els punts \filldraw (0,-4) circle (2pt); \filldraw (0.4216,3.9603) circle (2pt); % primer punt: avaluo ({3*sin(\t r)},{4*cos(\t r)}); a t = 0.141 \filldraw (-0.4216,3.9603
Re: [NTG-context] startcombination alignment problem
Hey, I know now: Nested combinations: combination[1*2] combination[2*1] combination[1*1] (this is only a sketch) Thanks, Xan. En/na Xan ha escrit: Hi, I want to put three graphics by this way: [graphic 1] [graphic 2] [graphic 3] where graphic 3 is centered. I use combination, but graphic 3 puts me in left [graphic 1] [graphic 2] [graphic 3] How can I solve that? Thanks in advance, Xan. PS: Please, CCme. I put the code: \placefigure [here] [figura-area] {Camins sobre $w$} {\startcombination[2*1] { \starttikzpicture[scale=1] % Els punts \filldraw (0,-4) circle (2pt); \filldraw (0.4216,3.9603) circle (2pt); % primer punt: avaluo ({3*sin(\t r)},{4*cos(\t r)}); a t = 0.141 \filldraw (-0.4216,3.9603) circle (2pt); % primer punt: avaluo ({3*sin(\t r)},{4*cos(\t r)}); a t = -0.141 % Les línies entre els punts \draw (-0.4216,3.9603) -- (0.4216,3.9603); \draw plot[domain=-3.141:-0.141,smooth,variable=\t] ({3*sin(\t r)},{4*cos(\t r)}); \draw plot[domain=0.141:3.141,smooth,variable=\t] ({3*sin(\t r)},{4*cos(\t r)}); \filldraw (0,-4) circle (2pt); % perquè me quedi el punt damunt. % Els combings % Dibuixo: % amb y la línia recta que uneix els dos punts, directament % per x faig un funció del sinus (sin nx + ax = k) \draw plot[domain=0:0.4216,smooth,variable=\t] ({-0.857727*\t -sin (7.31228*\t r) },{18.8812*\t -4 }); \draw plot[domain=0:0.4216,smooth,variable=\t] ({+0.857727*\t +sin (7.31228*\t r) },{18.8812*\t -4 }); % el sentit d'omega \draw[decorate,decoration={markings,mark=at position .9 with {\arrow[blue,line width=1mm]{}}}] plot[domain=-3.141:3.141,smooth,variable=\t] ({3*sin(\t r)},{4*cos(\t r)}); % Els punts de les cel·les % Calcul els combings per a y= 0 i y=1 \filldraw (-1.181475, 0) circle (2pt); \filldraw (1.181475, 0) circle (2pt); %\filldraw (1.161048, 1) circle (2pt); %\filldraw (-1.161048, 1) circle (2pt); % Els noms \draw (0, -4.3) node {$1 \in G$}; \draw (2.5, -3) node {$w$}; \draw (-1.8, -0.3) node {$\sigma_{i+1}(j)$}; \draw (1.65, -0.3) node {$\sigma_i(j)$}; % Els noms dels camins %\draw (1, 0.3) node {$a$}; %\draw (3, 0.3) node {$b$}; %\draw (3.7, 1) node {$c$}; %\draw (3, 1.7) node {$d$}; %\draw (1, 1.7) node {$e$}; %\draw (0.3, 1) node {$f$}; %\draw (2.3, 1) node {$g$}; % PROVES %\draw[out=45,in=-45] (0,0) to (0.5,8); %\draw[color=blue,-] (0,0) .. controls (0.1,2) .. (0.2,3) .. controls (0.3,4) and (0.4,6) .. (0.5,8); %\draw (0,0) arc (-90:90:3 and 4); %\draw (0,0) arc (270:90:3 and 4); %\draw[color=green] plot[domain=-3.141:3.141,smooth,variable=\t] ({4*sin(\t + (.1 * rand) r)},{4*cos(\t r)}); %\draw (0,0) arc (-90:81.82:2 and 4); %\draw[decorate,decoration={random steps,segment length=2mm, amplitude=2pt}] (0,0) arc (-90:97.18:3.5 and 4); %\draw[very thin,color=gray] (-5.1,-5.1) grid [step=1] (5.9,5.9); %\draw[-] (-5.2,0) -- (6.2,0) node[right] {$x$}; %\draw[-] (0,-5.2) -- (0,5.2) node[above] {$y$}; % r = \frac{-1}{3} x + 3 %\filldraw (3,2) circle (2pt); %\filldraw (-3,4) circle (2pt); %\draw (-6,5) -- (6,1); %\draw (1, 3.5) node {$r$}; \stoptikzpicture} {Les seccions de $\pi(w(i))$.} { \starttikzpicture[scale=1] % Els punts \filldraw (0,-4) circle (2pt); \filldraw (0.4216,3.9603) circle (2pt); % primer punt: avaluo ({3*sin(\t r)},{4*cos(\t r)}); a t = 0.141 \filldraw (-0.4216,3.9603) circle (2pt); % primer punt: avaluo ({3*sin(\t r)},{4*cos(\t r)}); a t = -0.141 % Les línies entre els punts \draw (-0.4216,3.9603) -- (0.4216,3.9603); \draw plot[domain=-3.141:-0.141,smooth,variable=\t] ({3*sin(\t r)},{4*cos(\t r)}); \draw plot[domain=0.141:3.141,smooth,variable=\t] ({3*sin(\t r)},{4*cos(\t r)}); \filldraw (0,-4) circle (2pt); % perquè me quedi el punt damunt. % Els combings % Dibuixo: % amb y la línia recta que uneix els dos punts, directament % per x faig un funció del sinus (sin nx + ax = k) \draw plot[domain=0:0.4216,smooth,variable=\t] ({-0.857727*\t -sin (7.31228*\t r) },{18.8812*\t -4 }); \draw plot[domain=0:0.4216,smooth,variable=\t] ({+0.857727*\t +sin (7.31228*\t r) },{18.8812*\t -4 }); % el sentit d'omega \draw[decorate,decoration={markings,mark=at position .9 with {\arrow[blue,line width=1mm]{}}}] plot[domain=-3.141:3.141,smooth,variable=\t] ({3*sin(\t r)},{4*cos(\t r)}); % Els punts de les cel·les % Calcul els combings per a y= 0 i y=1 \filldraw (-1.181475, 0) circle (2pt); \filldraw (1.181475, 0) circle (2pt); %\filldraw (1.161048, 1) circle (2pt); %\filldraw (-1.161048, 1) circle (2pt); % Els noms \draw (0, -4.3) node {$1 \in G$}; \draw (2.5, -3) node {$w$}; \draw (-1.8, -0.3) node {$\sigma_{i+1}(j)$}; \draw (1.65, -0.3) node {$\sigma_i(j)$}; % Els noms dels camins %\draw (1, 0.3) node {$a$}; %\draw (3, 0.3) node {$b$}; %\draw (3.7, 1) node {$c$}; %\draw (3, 1.7) node {$d$}; %\draw (1, 1.7) node {$e$}; %\draw (0.3, 1) node {$f$}; %\draw (2.3, 1) node {$g$}; \stoptikzpicture} {El camí $\theta_{i,j}$.} \stopcombination \startcombination[1*1] { \starttikzpicture[scale=1] % Els punts \filldraw (0
[NTG-context] Problems with bibtex and @incollection
k \leq N+M. \NR \stopcases \stopformula Llavors, per definició, $\text{area}(w) \leq N+M = \text{area}(u) + \text{area}(v)$. \stopdemo \startlema[area-conjugats] Siguin $G$ un grup i ${\cal P} = \langle A \mid R \rangle$ una presentació finita de $G$. Si $w$ és una paraula nul-homotòpica per ${\cal P}$ i $x \in F(A)$, llavors \startformula \text{area}(x^{-1}wx) \leq \text{area}(w). \stopformula \stoplema \startdemo Suposem que $\text{area}(w) = N$. Aleshores existeixen $x_i \in F(A)$ i $r_i \in R$, amb $i \in \{1, \ldots, N\}$, tals que \placeformula[-] \startformula w = \prod_{i=1}^N x_i^{-1} r_i x_i, \stopformula on aquesta igualtat és dins el grup lliure $F(A)$. Aleshores, dins el grup lliure, tenim que \placeformula[-] \startformula \startsplit \NC x^{-1} w x \NC = x^{-1} \bigl( \prod_{i = 1}^N x_i^{-1} r_i x_i \bigr) x \NR \NC \NC = x^{-1} (x_1^{-1} r_1 x_1)\cdots (x_N^{-1} r_N x_N) x \NR \NC \NC = (x^{-1} x_1^{-1} r_1 x_1 x) (x^{-1} x_2^{-1} r_2 x_2 x)\cdots (x^{-1} x_N^{-1} r_N x_N x) \NR \NC \NC = \prod_{i=1}^N x^{-1} x_i^{-1} r_i x_i x \NR \NC \NC = \prod_{i=1}^N (x_i x )^{-1} r_i (x_i x), \stopsplit \stopformula per la qual cosa tenim que $\text{area}(x^{-1}wx) \leq N = \text{area}(w)$, que és el que volÃem veure. \stopdemo \startlema[lema-tecnic] Siguin $G$ un grup, $A$ un conjunt finit de generadors de $G$ i ${\cal P} = \langle A \mid R \rangle$ una presentació finita de $G$, $g_1, g_2, g_3, g_4, g_5, g_6 \in G$ i els camins $a$, $b$, $c$, $d$, $e$, $f$ i $g$ dins el graf de Cayley $\Gamma_{G, A}$ que uneixen els parells de punts $(g_1, g_2)$, $(g_2, g_3)$, $(g_3, g_4)$, $(g_4, g_5)$, $(g_5, g_6)$, $(g_6, g_1)$ i $(g_2, g_5)$, respectivament (tal com es representa a la figura). \placefigure [none,here] [fig:figura-de-6] {Esquema dels 6 punts} {\startcombination[1*1] { \starttikzpicture[scale=1] % Els punts \filldraw (0,0) circle (2pt); \filldraw (2,0) circle (2pt); \filldraw (4,0) circle (2pt); \filldraw (4,2) circle (2pt); \filldraw (2,2) circle (2pt); \filldraw (0,2) circle (2pt); % Les lÃnies aleatòries entre punts \draw [decorate,decoration={random steps,segment length=2mm, amplitude=2pt}] (0,0) -- (2,0); \draw [decorate,decoration={random steps,segment length=2mm, amplitude=2pt}] (2,0) -- (4,0); \draw [decorate,decoration={random steps,segment length=2mm, amplitude=2pt}] (4,0) -- (4,2); \draw [decorate,decoration={random steps,segment length=2mm, amplitude=2pt}] (4,2) -- (2,2); \draw [decorate,decoration={random steps,segment length=2mm, amplitude=2pt}] (2,2) -- (0,2); \draw [decorate,decoration={random steps,segment length=2mm, amplitude=2pt}] (0,2) -- (0,0); \draw [decorate,decoration={random steps,segment length=2mm, amplitude=2pt}] (2,0) -- (2,2); % el sentit \draw [decorate,decoration={markings,mark=at position .5 with {\arrow[blue,line width=1mm]{}}}] (0,0) -- (2,0); \draw [decorate,decoration={markings,mark=at position .5 with {\arrow[blue,line width=1mm]{}}}] (2,0) -- (4,0); \draw [decorate,decoration={markings,mark=at position .5 with {\arrow[blue,line width=1mm]{}}}] (4,0) -- (4,2); \draw [decorate,decoration={markings,mark=at position .5 with {\arrow[blue,line width=1mm]{}}}] (4,2) -- (2,2); \draw [decorate,decoration={markings,mark=at position .5 with {\arrow[blue,line width=1mm]{}}}] (2,2) -- (0,2); \draw [decorate,decoration={markings,mark=at position .5 with {\arrow[blue,line width=1mm]{}}}] (0,2) -- (0,0); \draw [decorate,decoration={markings,mark=at position .5 with {\arrow[blue,line width=1mm]{}}}] (2,0) -- (2,2); % Els noms \draw (0, -0.3) node {$g_1$}; \draw (2, -0.3) node {$g_2$}; \draw (4, -0.3) node {$g_3$}; \draw (4, 2.3) node {$g_4$}; \draw (2, 2.3) node {$g_5$}; \draw (0, 2.3) node {$g_6$}; % Els noms dels camins \draw (1, 0.3) node {$a$}; \draw (3, 0.3) node {$b$}; \draw (3.7, 1) node {$c$}; \draw (3, 1.7) node {$d$}; \draw (1, 1.7) node {$e$}; \draw (0.3, 1) node {$f$}; \draw (2.3, 1) node {$g$}; %\draw[very thin,color=gray] (-5.1,-5.1) grid [step=1] (5.9,5.9); %\draw[-] (-5.2,0) -- (6.2,0) node[right] {$x$}; %\draw[-] (0,-5.2) -- (0,5.2) node[above] {$y$}; % r = \frac{-1}{3} x + 3 %\filldraw (3,2) circle (2pt); %\filldraw (-3,4) circle (2pt); %\draw (-6,5) -- (6,1); %\draw (1, 3.5) node {$r$}; \stoptikzpicture} { } \stopcombination} D'altra banda, siguin $w_1, w_2$ i $w \in A^*$ les paraules formades per la composició de les paraules corresponents a aquests camins (que seguirem indicant de la mateixa manera) definides com: \startformula \startmathalignment \NC w_1 \NC = f^{-1}e^{-1}g^{-1}a^{-1}, \NR[+] \NC w_2 \NC = d^{-1} c^{-1} b^{-1} g,\NR[+] \NC w \NC = f^{-1} e^{-1} d^{-1} c^{-1} b^{-1} a^{-1}.\NR[+] \stopmathalignment \stopformula Aleshores $w, w_1, w_2$ són nul-homotòpiques per ${\cal P}$ i a més, \startformula \text{area}(w) \leq \text{area}(w_1) + \text{area}(w_2). \stopformula \stoplema \startdemo De forma òbvia tenim que $w_1$, $w_2$ i $w$ són nul
Re: [NTG-context] fonts --list --info
Hello Hans, Could you, please, fix this command? mtxrun --script fonts --list --info On 13.05.2009 21:22, Wolfgang Schuster wrote: Am 13.05.2009 um 20:02 schrieb Vyatcheslav Yatskovsky: Hello, What mtxrun --script fonts --list --info minionproregular should produce? My old installation: MtxRun | current version: 2008.11.10 21:40 The output from the command above: Rover:~ wolf$ mtxrun --script fonts --list --info minionproregular MtxRun | fontname: minionproregular MtxRun | fullname: MinionPro-Regular MtxRun | filename: /Users/wolf/Library/Fonts/MinionPro-Regular.otf MtxRun | MtxRun | feature: aalt, script: dflt, language: dflt MtxRun | feature: aalt, script: cyrl, language: srb dflt MtxRun | feature: aalt, script: grek, language: dflt MtxRun | feature: aalt, script: latn, language: aze crt deu mol rom trk dflt MtxRun | feature: c2sc, script: dflt, language: dflt MtxRun | feature: c2sc, script: cyrl, language: srb dflt MtxRun | feature: c2sc, script: grek, language: dflt MtxRun | feature: c2sc, script: latn, language: aze crt deu mol rom trk dflt MtxRun | feature: case, script: dflt, language: dflt MtxRun | feature: case, script: cyrl, language: srb dflt MtxRun | feature: case, script: grek, language: dflt MtxRun | feature: case, script: latn, language: aze crt deu mol rom trk dflt MtxRun | feature: cpsp, script: dflt, language: dflt MtxRun | feature: cpsp, script: cyrl, language: srb dflt MtxRun | feature: cpsp, script: grek, language: dflt MtxRun | feature: cpsp, script: latn, language: aze crt deu mol rom trk dflt MtxRun | feature: dlig, script: dflt, language: dflt MtxRun | feature: dlig, script: cyrl, language: srb dflt MtxRun | feature: dlig, script: grek, language: dflt MtxRun | feature: dlig, script: latn, language: aze crt deu mol rom trk dflt MtxRun | feature: dnom, script: dflt, language: dflt MtxRun | feature: dnom, script: cyrl, language: srb dflt MtxRun | feature: dnom, script: grek, language: dflt MtxRun | feature: dnom, script: latn, language: aze crt deu mol rom trk dflt MtxRun | feature: fina, script: dflt, language: dflt MtxRun | feature: fina, script: cyrl, language: srb dflt MtxRun | feature: fina, script: grek, language: dflt MtxRun | feature: fina, script: latn, language: aze crt deu mol rom trk dflt MtxRun | feature: frac, script: dflt, language: dflt MtxRun | feature: frac, script: cyrl, language: srb dflt MtxRun | feature: frac, script: grek, language: dflt MtxRun | feature: frac, script: latn, language: aze crt deu mol rom trk dflt MtxRun | feature: hist, script: dflt, language: dflt MtxRun | feature: hist, script: cyrl, language: srb dflt MtxRun | feature: hist, script: grek, language: dflt MtxRun | feature: hist, script: latn, language: aze crt deu mol rom trk dflt MtxRun | feature: kern, script: dflt, language: dflt MtxRun | feature: kern, script: cyrl, language: srb dflt MtxRun | feature: kern, script: grek, language: dflt MtxRun | feature: kern, script: latn, language: aze crt deu mol rom trk dflt MtxRun | feature: liga, script: dflt, language: dflt MtxRun | feature: liga, script: cyrl, language: srb dflt MtxRun | feature: liga, script: grek, language: dflt MtxRun | feature: liga, script: latn, language: aze crt mol rom trk dflt MtxRun | feature: lnum, script: dflt, language: dflt MtxRun | feature: lnum, script: cyrl, language: srb dflt MtxRun | feature: lnum, script: grek, language: dflt MtxRun | feature: lnum, script: latn, language: aze crt deu mol rom trk dflt MtxRun | feature: locl, script: cyrl, language: srb MtxRun | feature: locl, script: latn, language: mol rom MtxRun | feature: numr, script: dflt, language: dflt MtxRun | feature: numr, script: cyrl, language: srb dflt MtxRun | feature: numr, script: grek, language: dflt MtxRun | feature: numr, script: latn, language: aze crt deu mol rom trk dflt MtxRun | feature: onum, script: dflt, language: dflt MtxRun | feature: onum, script: cyrl, language: srb dflt MtxRun | feature: onum, script: grek, language: dflt MtxRun | feature: onum, script: latn, language: aze crt deu mol rom trk dflt MtxRun | feature: ordn, script: dflt, language: dflt MtxRun | feature: ordn, script: cyrl, language: srb dflt MtxRun | feature: ordn, script: grek, language: dflt MtxRun | feature: ordn, script: latn, language: aze crt deu mol rom trk dflt MtxRun | feature: ornm, script: dflt, language: dflt MtxRun | feature: ornm, script: cyrl, language: srb dflt MtxRun | feature: ornm, script: grek, language: dflt MtxRun | feature: ornm, script: latn, language: aze crt deu mol rom trk dflt MtxRun | feature: pnum, script: dflt, language: dflt MtxRun | feature: pnum, script: cyrl, language: srb dflt MtxRun | feature: pnum, script: grek, language: dflt MtxRun | feature: pnum, script: latn, language: aze crt deu mol rom trk dflt MtxRun | feature: salt, script: dflt, language: dflt MtxRun
[NTG-context] [***SPAM***] Bug? \getmarking fails under some circumstances
Hello, I'm new to ConTeXt, so this is perhaps not a bug but a fault on my side. Under some circumstances, the living column heads fail to refer to the subsubject. As you can see from the attached minimal example \startsetups[header] \getmarking[subject]\ $\cdot$ \getmarking[subsubject] \stopsetups will yield something like »Mikrotypografie *«, though it should be »Mikrotypografie * Absatzumbruch«. If you uncomment the \subsubject-line at the end of the example, everything works as expected unless you uncomment the former line, too. A workaround is to add a \vfill\eject just before the next \subject. Best regards, olli You probably can ignore the environments used in the minimal example, they are copied from the document from which I ran into the problem and are just dummy text. I hope I have stripped down the preamble to an acceptable amount of lines. --- % interface=en output=pdftex \usetypescript[fourier][ec] \setupbodyfont[fourier,12pt] \setuppapersize [A4][A4] \usemodule[layout] \chardef\charwidthmethod=3 \def\charwidthlanguage{\currentmainlanguage} \setuplayout [width=70\averagecharwidth, height=middle, grid=yes] \startsetups[header] \hfill \getmarking[subject]\ $\cdot$ \getmarking[subsubject] \hfill \stopsetups \setupheadertexts[\setups{header}] \setuphead [title] [before=\hairline, after=\blank\leftline{\tfa Ein Beispieldokument}\blank\leftline{\tfa Oliver Heins \ss$\langle$\from[email]$\rangle$} \bigskip\hairline] \definehead[subject][section] \setuphead[subject][number=no] \definehead[subsubject][subsection] \setuphead[subsubject][number=no] \setuphead [subject] [style=\tfb] % Text \starttext \startlinecorrection \title{Mikrotypografie und Interaktivität} \stoplinecorrection \setupindenting[medium, yes] \setupwhitespace[none] \vskip-\baselineskip \subject{Mikrotypografie} Besonderes Augenmerk legt scriptorium adp auf die typografische Qualität der erzeugten Dokumente. Die von uns verwendeten Textsatzsysteme aus der Programmfamilie \TeX{} ermöglichen einen besonders hochwertigen Satz. \subsubject{Mathematiksatz} Der Mathematiksatz von \TeX{} ist legendär. Kein Wunder, wurde \TeX{} doch vom amerikanischen Informatikprofessor und Turing-Preisträger Donald Knuth entwickelt, der mit der immer schlechter werdenden Qualität seiner Buchreihe \quotation{The Art of Computer Programming} unzufrieden war, seit von Hand- auf Fotosatz umgestellt worden war. Von 1977 bis 1986 entwickelte Knuth \TeX{}: {\en\quotation{Ever since those beginnings in 1977, the TeX research project that I embarked on was driven by two major goals. The first goal was quality: we wanted to produce documents that were not just nice, but actually the best. {\dots} The second major goal was archival: to create systems that would be independent of changes in printing technology as much as possible. When the next generation of printing devices came along, I wanted to be able to retain the same quality already achieved, instead of having to solve all the problems anew. I wanted to design something that would be still usable in 100 years.}}\footnote{Donald E. Knuth, {\it Digital typography.} Stanford, Calif.: CSLI Publications, 1999, S.~559.} \TeX{} stellt im engeren Sinn lediglich eine Programmiersprache bereit, mit der sich Textsatzsysteme entwickeln lassen. Knuth entwickelte ein erstes mit dem sogenannten plain-\TeX-Format, weitere wie {\LaTeX} oder {\ConTeXt} folgten. scriptorium adp setzt die beiden letztgenannten Formate ein. Hier ein Beispiel für den Mathematiksatz von \TeX{}: \startlinecorrection \vskip-.5\baselineskip \placeformula \startformula \startmathalignment[m=2,distance=2em]%Notice distance=2em \NC \nabla\cdot \bf E \NC= \frac{\rho}{\varepsilon_0}, \NC \nabla\times \bf E \NC= -\frac{\partial \bf B}{\partial t}, \NR[+] \NC \nabla\cdot \bf B \NC= 0, \NC \nabla\times \bf B \NC= \mu_0{\bf j}+\varepsilon_0\mu_0 \frac{\partial \bf E}{\partial t}. \NR[+] \stopmathalignment \stopformula \vskip-.5\baselineskip \stoplinecorrection Auch im Fließtext ist Mathematik problemlos möglich. \startlinecorrection \placeformula \startformula f(x) = \startmathcases[style=\displaystyle] \NC \int_0^x g(y)\,dy,\NC if $x \ge 0$; \NR \NC \int_{-x}^0 g(y)\,dy, \NC otherwise.\NR \stopmathcases \stopformula \stoplinecorrection \subsubject{Absatzumbruch} Hervorzuheben ist insbesondere der absatzbasierte {\it Total|-|Fit}|-|Umbruchalgorithmus: nach einem raffinierten Optimierungsverfahren werden alle möglichen Zeilenumbrüche (inklusive Worttrennung) im Absatz gleichzeitig bestimmt und bewertet. Der Umbruch, der den besten optischen Gesamteindruck verspricht, wird dann vom System benutzt. Im Vergleich mit dem verbreiteten {\it First|-|Fit}|-|Algorithmus, der die Zeilenumbrüche Zeile für Zeile
Re: [NTG-context] Umlaute in Formula
Aditya Mahajan schrieb: On Mon, 13 Apr 2009, Florian M. Baudach wrote: Dear all, I need german Umlaute in my formulas of my master thesis. I used \ddot{a} for ä. It had worked fine until I updated Context yesterday :-(. Since that update I only get an crossed a with an accent, but no ä. Here \starttext $\ddot a$ \stoptext works fine (see attached pdf). I am using ConTeXt ver: 2009.04.13 14:45 MKII fmt: 2009.4.13 int: english/english Can you create a minimal example that fails? Aditya Yes. I think I have found the problem: \starttext \placeformula \startformula Knappheit = \frac{Stimmen\ f \ddot{u}r\ erstplatzierte\ Partei - Stimmen\ f\ddot{u}r\ zweitplatzierte\ Partei}{G\ddot{u}ltige\ Stimmen} \stopformula \startformula \ddot a \stopformula \usetypescript[times][ec] \setupbodyfont[times,11pt] \placeformula \startformula Knappheit = \frac{Stimmen\ f \ddot{u}r\ erstplatzierte\ Partei - Stimmen\ f\ddot{u}r\ zweitplatzierte\ Partei}{G\ddot{u}ltige\ Stimmen} \stopformula \startformula \ddot a \stopformula \stoptext When I use the Default-Font, then \ddot{} works fine. But when I switch to times, then I get an very strange symbol. (I wasn't able to attach the output of my example, because it was to big :-() This problem has started when I updated to: ConTeXt ver: 2009.04.10 18:02 MKII fmt: 2009.4.12. Before the update \ddot{} worked also with times. Is there an solution? Greetings Florian Baudach ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Umlaute in Formula
On Mon, Apr 13, 2009 at 20:14, Florian M. Baudach wrote: Aditya Mahajan schrieb: On Mon, 13 Apr 2009, Florian M. Baudach wrote: Dear all, I need german Umlaute in my formulas of my master thesis. I used \ddot{a} for ä. It had worked fine until I updated Context yesterday :-(. Since that update I only get an crossed a with an accent, but no ä. \starttext \usetypescript[times][ec] \setupbodyfont[times,11pt] \placeformula \startformula Knappheit = \frac{Stimmen\ f \ddot{u}r\ erstplatzierte\ Partei - Stimmen\ f\ddot{u}r\ zweitplatzierte\ Partei}{G\ddot{u}ltige\ Stimmen} \stopformula \startformula \ddot a \stopformula \stoptext When I use the Default-Font, then \ddot{} works fine. But when I switch to times, then I get an very strange symbol. (I wasn't able to attach the output of my example, because it was to big :-() This problem has started when I updated to: ConTeXt ver: 2009.04.10 18:02 MKII fmt: 2009.4.12. Before the update \ddot{} worked also with times. Is there an solution? Yes, use Knappheit = \frac{\text{Stimmen für erstplatzierte Partei} ... but I agree that it needs to be fixed. I didn't manage to convince Hans to fix this so far, so maybe you'll have more luck with it :) :) This has been a known problem for a few months (my fault, sorry), but I was sure that it has already been fixed a while ago. -- I would suggest adding the file q-8r.enc to /fonts/enc/dvips/context/ and replace encqrm ReEncodeFont q-rm.enc with encq8r ReEncodeFont q-8r.enc everywhere in original-youngryu-px.map and original-youngryu-tx.map. Mojca q-8r.enc Description: Binary data ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Value of Metapost variable as a label
Aditya Mahajan adit...@umich.edu Sun, 22 Mar 2009 22:24:17 -0400 (EDT) On Mon, 23 Mar 2009, Mojca Miklavec wrote: This however fails: k:=2; label.bot(textext($1\over decimal k $), (10,0)) ; Try with \frac instead. Or prevent expansion of \over label.bot(textext($1\noexpand\over decimal k $), (10,0)) ; Why \atop or \choose do not need \noexpand? What is special about \over? Aditya Thanks, Eythan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Value of Metapost variable as a label
On Mon, 23 Mar 2009, Eythan Weg wrote: Aditya Mahajan adit...@umich.edu Sun, 22 Mar 2009 22:24:17 -0400 (EDT) On Mon, 23 Mar 2009, Mojca Miklavec wrote: This however fails: k:=2; label.bot(textext($1\over decimal k $), (10,0)) ; Try with \frac instead. Or prevent expansion of \over label.bot(textext($1\noexpand\over decimal k $), (10,0)) ; Why \atop or \choose do not need \noexpand? What is special about \over? It is redefined by ConTeXt to be a useful command in text mode. \starttext \section[sec:test] {Some section} See \over[sec:test] \stoptext Hans, is it OK to change the definitions in core-def to \ifnum\texengine=\luatexengine \ifx\in \undefined\else \let\normalmathin \in \unexpanded\def\in {\mathortext\normalmathin \dospecialin } \fi \ifx\at \undefined\else \let\normalmathat \at \unexpanded\def\at {\mathortext\normalmathat \dospecialat } \fi \ifx\about\undefined\else \let\normalmathabout\about \unexpanded\def\about{\mathortext\normalmathabout\dospecialabout} \fi \ifx\from \undefined\else \let\normalmathfrom \from \unexpanded\def\from {\mathortext\normalmathfrom \dospecialfrom } \fi \ifx\over \undefined\else \let\normalmathover \over \unexpanded\def\over {\mathortext\normalmathover \dospecialabout} \fi \fi (added \unexpanded). This is certainly useful for \in and \over, maybe not so much for the other three. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Value of Metapost variable as a label
This however fails: k:=2; label.bot(textext($1\over decimal k $), (10,0)) ; Try with \frac instead. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Value of Metapost variable as a label
On Mon, 23 Mar 2009, Mojca Miklavec wrote: This however fails: k:=2; label.bot(textext($1\over decimal k $), (10,0)) ; Try with \frac instead. Or prevent expansion of \over label.bot(textext($1\noexpand\over decimal k $), (10,0)) ; 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] math problems
hi guys, i generally use this file to test if math is working, with the recent update i get a lot of errors such as; ! Missing number, treated as zero. to be read again $ \@@dobig ...o #1\bodyfontsize {}\right @space $ }} \...@mt@defaultBigl ...\puremathcomm {open}{\Big {#1} } l.99 \pauli = \dirac^2 = \Bigl( \sum_{j=1}^2 \sigma_j\big(-i\PD{}{x^j}-a_j\bi... ? with texlive 2008 it works just fine, i've attached the output of the TL2008. i'm certain that the same file was compiling just fine with (i think) luatex 0.31 (or pre 0.31). the content is from Mikael Persson's thesis. Mohamed \usemodule[bib] \def\mathbb#1{{\blackboard #1}} \def\pauli{\mathfrak{P}} \def\mathfrak#1{{\fraktur #1}} % Matriser av olika typ. % Paranthesis \definemathmatrix [pmatrix] [left={\left(\,},right={\,\right)}] % Brackets \definemathmatrix [bmatrix] [left={\left[\,},right={\,\right]}] % Curly braces \definemathmatrix [Bmatrix] [left={\left\{\,},right={\,\right\}}] % vertical bars \definemathmatrix [vmatrix] [left={\left\vert\,},right={\,\right\vert}] % double vertical bars \definemathmatrix [Vmatrix] [left={\left\Vert\,},right={\,\right\Vert}] \def\PD#1#2{\frac{\partial #1}{\partial #2}} \def\ann{\mathscr{Q}^{\vphantom{*}}} \def\mathscr#1{{\gothic #1}} \def\cre{\mathscr{Q}^*} \def\dirac{{\mathfrak{D}}} \def\pform{\mathfrak{p}} \def\ed{\mfunction{\,d}} \definemathcommand [dom] [nolop] {\mfunction{Dom}} \def\bz{\bar{z}} \def\psip{{\psi_+}} \def\psim{{\psi_-}} % \eqref \definereferenceformat[eqref][left=(,right=)] \defineenumeration[problem] [text=Problem, location=serried, width=fit, indenting=first, distance=0.5em, way=bysection, ] \subsubsection[ksec:paulitvad]{The Pauli operator in $\mathbb{R}^2$} A charged spin $1/2$ particle is described by the Pauli Hamiltonian, which acts in $L_2(\mathbb{R}^2)\otimes \mathbb{C}^2$, and is formally defined as \placeformula[keq:pauli] \startformula \pauli = \startpmatrix \NC H-\frac{g}{2}B \NC 0 \NR \NC 0 \NC H+\frac{g}{2}B\NR \stoppmatrix. \stopformula Here $H$ is the two-dimensional Schrödinger Hamiltonian $H=(-i\nabla -\vec{a})^2$, $B$ is the magnetic field (In two dimensions we identify the two-form and the coefficient function), and $g$ is the {\em gyromagnetic ratio}. We identify the real point $(x^1,x^2)$ with the complex number $z=x^1+ix^2$, and denote a scalar potential of $B$ by $W$, \startformula -\Delta W = B. \stopformula We set $\Pi_j = -i\PD{}{x^j}-a_j$ and \startformula \ann = \Pi_1 - i \Pi_2,\quad \cre = \Pi_1 + i\Pi_2, \stopformula and note that \placeformula[keq:komm] \startformula \ann\cre=\cre\ann+2B,\quad H=\cre\ann+B=\ann\cre-B. \stopformula From~\eqref[keq:pauli] and~\eqref[keq:komm] we get \placeformula[keq:paulig] \startformula \pauli = \startpmatrix \NC \cre\ann-\frac{g-2}{2}B \NC 0 \NR \NC 0 \NC \ann\cre+\frac{g-2}{2}B\NR \stoppmatrix. \stopformula The number $\frac{g-2}{2}$ is called the {\em anomaly factor} of the magnetic moment. Experiments give an anomaly factor of $0.00159$ for the electron~\cite[bovo]. We assume that $g=2$, which is the simplest case. Thus, the Pauli Hamiltonian we study in this thesis is formally defined by \placeformula[keq:pauliw] \startformula \pauli = \startpmatrix \NC \cre\ann \NC 0 \NR \NC 0 \NC \ann\cre\NR \stoppmatrix. \stopformula The Pauli operator can be written as the square of the Dirac operator \placeformula[keq:paulia] \startformula \pauli = \dirac^2 = \Bigl(\sum_{j=1}^2 \sigma_j\big(-i\PD{}{x^j}-a_j\big)\Bigr)^2 = \startpmatrix \NC 0 \NC \cre \NR \NC \ann \NC 0\NR \stoppmatrix^2 \stopformula from which it follows that it is a non-negative operator. Now let us be more precise about the domains. As in the case of the Schrödinger Hamiltonian there is a problem in defining the Pauli Hamiltonian if the magnetic field is too singular. The quadratic form corresponding to $\pauli$ is given by \placeformula[keq:pform] \startformula \pform(\psi,\psi)= \int_{\mathbb{R}^2} \Big|\sum_{j=1}^2 \sigma_j\big(-i\PD{}{x^j}-a_j\big)\psi\Big|^2\ed m(x). \stopformula If $\vec{a}\in L_{2,\text{loc}}(\mathbb{R}^2)\otimes \mathbb{R}^2$ then $\pform(\psi,\psi)$ makes sense for $\psi\in C_0^\infty(\mathbb{R}^2)\otimes \mathbb{C}^2$. We define the {\em minimal} Pauli form $\pform_{\text{min}}$ as \startformula \startalign \NC \dom(\pform_{\text{min}}) \NC = C_0^\infty(\mathbb{R}^2)\otimes \mathbb{C}^2;\NR \NC \pform_{\text{min}}(\psi,\psi) \NC = \pform(\psi,\psi),\quad \psi\in\dom(\pform_{\text{min}}).\NR \stopalign \stopformula It is closable and thus a self-adjoint operator $\pauli_{\text{min}}$ can be defined. We also define the {\em maximal} Pauli form $\pform_{\text{max}}$ as \placeformula \startformula \startalign \NC \dom(\pform_{\text{max}}) \NC = \bigl\{\,\psi\in L_2(\mathbb{R}^2)\otimes \mathbb{C}^2\bigm| \pform
Re: [NTG-context] 1/2 symbol
Am 04.03.2009 um 10:32 schrieb Thomas A. Schmitz: On Mar 4, 2009, at 10:26 AM, Vyatcheslav Yatskovsky wrote: Hello, Easy question: how to get 1/2 symbol without entering math mode (using Minion Pro font)? Have you tried \onehalf or ½ (in mkiv)? What the combination to get ½ on a mac? Another way is to use the 'frac' feature. \definefontfeature[frac][default][script=latn,frac=yes] \definefont[minion][name:minionproregular*default] \def\utffrac{\groupedcommand{\setfontfeature{frac}}{}} \starttext \minion 1/2 \utffrac{1/2} 1/2 \utffrac{12345/6789} 12345/6789 \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] 1/2 symbol
Thomas A. Schmitz wrote: On Mar 4, 2009, at 10:40 AM, Wolfgang Schuster wrote: What the combination to get ½ on a mac? Sadly, there doesn't seem to be a keyboard shortcut; I inserted it via the Character Palette. there is a frac feature in some fonts but it might be crappy in some fonts in the sense that it has to be applied selectively - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] 1/2 symbol
On Wed, Mar 4, 2009 at 11:45 AM, Hans Hagen pra...@wxs.nl wrote: What's the combination to get ½ on a mac? Sadly, there doesn't seem to be a keyboard shortcut; I inserted it via the Character Palette. there is a frac feature in some fonts but it might be crappy in some fonts in the sense that it has to be applied selectively The frac feature is available in the Minion font and I showed how to use it in my previous mail. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] some minor Problems
Wolfgang Schuster wrote: On Wed, Mar 4, 2009 at 4:35 PM, Hans Hagen pra...@wxs.nl wrote: Lutz Haseloff wrote: I can't enable fontfeatures for the Vista-Fonts for instance Cambria. They are simply ignored. They are OTF with TTF extensions, ist this the reason? mtxrun --script font --list --info cambria lists a whole lot; but in cambria there is no dflt, dflt so you need to be explitly latn (because there is also grek and math) Weird, that's all I get for Cambria (other fonts show the complete list) Rover:base wolf$ mtxrun --script font --list --info cambria MtxRun | fontname: cambria MtxRun | fullname: Cambria MtxRun | filename: /Users/wolf/Library/Fonts/CAMBRIA.TTC MtxRun | maybe an old cambria mtxrun --script font --list --info cambria MtxRun | fontname: cambria MtxRun | fullname: Cambria MtxRun | filename: C:/Windows/fonts/cambria.ttc MtxRun | MtxRun | feature: c2sc, script: cyrl, language: srb dflt MtxRun | feature: c2sc, script: grek, language: dflt MtxRun | feature: c2sc, script: latn, language: rom trk dflt MtxRun | feature: calt, script: cyrl, language: srb dflt MtxRun | feature: calt, script: grek, language: dflt MtxRun | feature: calt, script: latn, language: rom trk dflt MtxRun | feature: case, script: cyrl, language: srb dflt MtxRun | feature: case, script: grek, language: dflt MtxRun | feature: case, script: latn, language: rom trk dflt MtxRun | feature: ccmp, script: cyrl, language: srb dflt MtxRun | feature: ccmp, script: grek, language: dflt MtxRun | feature: ccmp, script: latn, language: rom trk dflt MtxRun | feature: dnom, script: cyrl, language: srb dflt MtxRun | feature: dnom, script: grek, language: dflt MtxRun | feature: dnom, script: latn, language: rom trk dflt MtxRun | feature: dtls, script: math, language: dflt MtxRun | feature: flac, script: math, language: dflt MtxRun | feature: frac, script: cyrl, language: srb dflt MtxRun | feature: frac, script: grek, language: dflt MtxRun | feature: frac, script: latn, language: rom trk dflt MtxRun | feature: kern, script: cyrl, language: srb dflt MtxRun | feature: kern, script: grek, language: dflt MtxRun | feature: kern, script: latn, language: rom trk dflt MtxRun | feature: liga, script: latn, language: rom trk dflt MtxRun | feature: lnum, script: cyrl, language: srb dflt MtxRun | feature: lnum, script: grek, language: dflt MtxRun | feature: lnum, script: latn, language: rom trk dflt MtxRun | feature: locl, script: cyrl, language: srb dflt MtxRun | feature: locl, script: grek, language: dflt MtxRun | feature: locl, script: latn, language: rom MtxRun | feature: numr, script: cyrl, language: srb dflt MtxRun | feature: numr, script: grek, language: dflt MtxRun | feature: numr, script: latn, language: rom trk dflt MtxRun | feature: onum, script: cyrl, language: srb dflt MtxRun | feature: onum, script: grek, language: dflt MtxRun | feature: onum, script: latn, language: rom trk dflt MtxRun | feature: ordn, script: latn, language: rom trk dflt MtxRun | feature: pnum, script: cyrl, language: srb dflt MtxRun | feature: pnum, script: grek, language: dflt MtxRun | feature: pnum, script: latn, language: rom trk dflt MtxRun | feature: salt, script: cyrl, language: srb dflt MtxRun | feature: salt, script: grek, language: dflt MtxRun | feature: salt, script: latn, language: rom trk dflt MtxRun | feature: sinf, script: cyrl, language: srb dflt MtxRun | feature: sinf, script: grek, language: dflt MtxRun | feature: sinf, script: latn, language: rom trk dflt MtxRun | feature: smcp, script: cyrl, language: srb dflt MtxRun | feature: smcp, script: grek, language: dflt MtxRun | feature: smcp, script: latn, language: rom trk dflt MtxRun | feature: ssty, script: math, language: dflt MtxRun | feature: sups, script: cyrl, language: srb dflt MtxRun | feature: sups, script: grek, language: dflt MtxRun | feature: sups, script: latn, language: rom trk dflt MtxRun | feature: tnum, script: cyrl, language: srb dflt MtxRun | feature: tnum, script: grek, language: dflt MtxRun | feature: tnum, script: latn, language: rom trk dflt MtxRun | - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Making necessary OpenType features on by default
Khaled Hosny wrote: I think is is arabtype's problem if they suggest turning calt off by default, if I've contextual alternatives in my font this means I think those alternatives are necessary to render text correctly, otherwise I would have used a stylistic set. it's not arabtype that suggests it, thats the problem; open type fonts *don't* have any information about what features should be on by default; it's the renderers that kind of decide it and there is no standard, so any renderer will follow its own rules also, some features (like frac) are often implemented only partial and as such can only be applied very selectively so, the only way out is something: defaults{'arabtype'] = { arab = { dflt = { calt=true, mkmk=true, ...}, }, } a kind of database Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] A few questions about aligned maths
This can be corrected by changing the \vbox in the definition of \startmathlines to \vtop. This can be made configurable by adding a location key. Here is a complete example \unprotect \def\startmathlines {\def\s...@math{$} \def\NC{} \def\NR{\def\NC{\cr}} % Hack for number. Should be done by measuring the width of the number \scratchdimen\dimexpr\displaywidth-4em \relax \vbox \bgroup \halign\bgroup \hbox to \scratchdimen {\hfil \strut $\mathsurround\zeropoint\displaystyle{}## \s...@math \hfil}% \crcr \hfilneg} \def\stopmathlines {\hfilneg \crcr \egroup \egroup} \protect Once I understand the new experimental code, I will start playing around with aligned math support. Aditya On Sat, 17 Jan 2009, Dave wrote: Is there any progress on this? I notice it is not yet in the core. I'm in need of an AMSL split-like environment but the above doesn't work entirely as expected. Below is an example. Any ideas? Thanks, Dave \placeformula \startformula \startalign \NC \sigma_{L_s}^2 \NC= E\left\{ \eps_L^2 \right\} \NR \NC \NC= \startmathlines \NC E\left\{ \left( \frac{1}{L_{\ref}^2(\nu)} \Re{\eps_{\pth}+\eps_{\off}}\,\cos\left(\phi(\nu)\right) + \Im{\eps_{\pth}+\eps_{\off}}\,\sin\left(\phi(\nu)\right) \right)^2 \right\} - \NR \NC E\left\{ \frac{2}{L_{\ref}^2(\nu)} \, \frac{L_{\pth}(\nu)}{L_{\ref}(\nu)} \left( \Re{\eps_{\pth} + \eps_{\off}}\,\cos\left(\phi(\nu)\right) + \Im{\eps_{\pth} + \eps_{\off}}\,\sin\left(\phi(\nu)\right) \right) \NR \NC \left( \Re{\eps_{\ref} + \eps_{\off}}\,\cos\left(\phi(\nu)\right) + \Im{\eps_{\ref} + \eps_{\off}}\,\sin\left(\phi(\nu)\right) + \right) \right\} + \NR \NC E\left\{ \frac{1}{L_{\ref}^2(\nu)} \, \frac{L_{\pth}^2(\nu)}{L_{\ref}^2(\nu)} \left( \Re{\eps_{\ref} + \eps_{\off}}\,\cos\left(\phi(\nu)\right) + \Im{\eps_{\ref} + \eps_{\off}}\,\sin\left(\phi(\nu)\right) \right)^2 \right\} \NR \stopmathlines \NR \NC \NC= \frac{1}{L_{\ref}^2} \, \left( \sigma_{\pth}^2 + \left(\frac{L_{\pth}}{L_{\ref}} - 1\right)^2 \sigma_{\off}^2 + \left(\frac{L_{\pth}}{L_{\ref}}\right)^2 \sigma_{\ref}^2 \right) \NR[eq:SpcTransVarC2] \stopalign \stopformula On Mon, Mar 24, 2008 at 7:17 AM, Aditya Mahajan adit...@umich.edu wrote: On Mon, 24 Mar 2008, Hans Hagen wrote: Morgan Brassel wrote: Sorry that I can't help you with the implementation, Aditya... I just want to confirm that your new macro perfectly fits my needs. I hope it will make it into the core, it really is useful! once aditya is confident that it makes sense and works as expected it will probably end up in the core, but as usual i'll wait till he sends me an updated core file It will be a while before I am able to get all the bells and whistles (take care of where the formula number is to be placed, and how how the formula is to be aligned). 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] A few questions about aligned maths
Is there any progress on this? I notice it is not yet in the core. I'm in need of an AMSL split-like environment but the above doesn't work entirely as expected. Below is an example. Any ideas? Thanks, Dave \placeformula \startformula \startalign \NC \sigma_{L_s}^2 \NC= E\left\{ \eps_L^2 \right\} \NR \NC \NC= \startmathlines \NC E\left\{ \left( \frac{1}{L_{\ref}^2(\nu)} \Re{\eps_{\pth}+\eps_{\off}}\,\cos\left(\phi(\nu)\right) + \Im{\eps_{\pth}+\eps_{\off}}\,\sin\left(\phi(\nu)\right) \right)^2 \right\} - \NR \NC E\left\{ \frac{2}{L_{\ref}^2(\nu)} \, \frac{L_{\pth}(\nu)}{L_{\ref}(\nu)} \left( \Re{\eps_{\pth} + \eps_{\off}}\,\cos\left(\phi(\nu)\right) + \Im{\eps_{\pth} + \eps_{\off}}\,\sin\left(\phi(\nu)\right) \right) \NR \NC \left( \Re{\eps_{\ref} + \eps_{\off}}\,\cos\left(\phi(\nu)\right) + \Im{\eps_{\ref} + \eps_{\off}}\,\sin\left(\phi(\nu)\right) + \right) \right\} + \NR \NC E\left\{ \frac{1}{L_{\ref}^2(\nu)} \, \frac{L_{\pth}^2(\nu)}{L_{\ref}^2(\nu)} \left( \Re{\eps_{\ref} + \eps_{\off}}\,\cos\left(\phi(\nu)\right) + \Im{\eps_{\ref} + \eps_{\off}}\,\sin\left(\phi(\nu)\right) \right)^2 \right\} \NR \stopmathlines \NR \NC \NC= \frac{1}{L_{\ref}^2} \, \left( \sigma_{\pth}^2 + \left(\frac{L_{\pth}}{L_{\ref}} - 1\right)^2 \sigma_{\off}^2 + \left(\frac{L_{\pth}}{L_{\ref}}\right)^2 \sigma_{\ref}^2 \right) \NR[eq:SpcTransVarC2] \stopalign \stopformula On Mon, Mar 24, 2008 at 7:17 AM, Aditya Mahajan adit...@umich.edu wrote: On Mon, 24 Mar 2008, Hans Hagen wrote: Morgan Brassel wrote: Sorry that I can't help you with the implementation, Aditya... I just want to confirm that your new macro perfectly fits my needs. I hope it will make it into the core, it really is useful! once aditya is confident that it makes sense and works as expected it will probably end up in the core, but as usual i'll wait till he sends me an updated core file It will be a while before I am able to get all the bells and whistles (take care of where the formula number is to be placed, and how how the formula is to be aligned). 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] create and grade multiple choice exams with MUCH an ConTeXT
Dear Sirs, For create and grade my MCQ (multiple choice quiz) I use the MUCH command that in had found at http://fourier.math.uoc.gr/~mk/much/. this is a very useful command for create and grade quizzes. Actually my main propose is use MUCH with context (or luatext). I prepare my exams in this way: Each question = one file Question example: Today is: . 31 December --- the true question is the first . 25 December . 13 Mars . In the test-description I include my specifications. And them I do: much create test-description A mc-outfile.tex is created. Now I do: pdflatex exam.tex for making the pdf file with all exams. If you can help I would use ConTeXT to prepare the pdf file. The migration should be very easy. I think there is necessary to define in context several commands like: \newcommand{\mcglobalheader} \newcommand{\mcpaperheader} \newcommand{\mcpaperfooter} \newcommand{\mcquestionheader}{\noindent{\bf Question \mcquestionnumber}: } \newcommand{\mcquestionfooter}{} In the file questions (mc-output.tex). mc-output.tex \mcglobalheader \def\mcserialnumber{500} \mcpaperheader \def\mcquestionnumber{1} \mcquestionheader How many circular orderings of the numbers $0,1,\ldots,10$ are there? (Two circular orderings which differ only by a rotation are not considered different.) \\ {$A$}: $10!$ \ \ {$B$}: $3^{11}$ \ \ {$C$}: $11!$ \ \ {$D$}: $9!$ \ \ \mcquestionfooter \mcpaperfooter % another exam \def\mcserialnumber{501} \mcpaperheader \def\mcquestionnumber{1} \mcquestionheader In how many ways can we select, from a set of 20 people, a committee of 3 different persons with a chair, secretary and member? \\ {$A$}: $20\cdot19\cdot18$ \ \ {$B$}: $\frac{20!}{3!}$ \ \ {$C$}: $20^3$ \ \ {$D$}: $3^{20}$ \ \ \mcquestionfooter \mcpaperfooter %%% Thanks a lot for your support. Happy New Year to all Jorge ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] fullpage and XeTeX typescript
Concerning the second question, the following is the reply from Hans months ago to me. I think Hans is right, since fonts are quite complex, but it *will* be a lot easier if we have that mechanism since this mechanism will be applicable to most fonts. If there are fonts that fontconfig cannot handle well, then the user can define them in the old way.: Yue Wang wrote: last question: is it possible to add fontconfig-like interface? if I define to use minion famaily, then all the alternatives are automatically defined like xetex? i never looked into that interface so i cannot comment on it, but i've learned my lessons with fonts ... they are all different and any 'clever automated mechanism' will at some point fail, so then one ends up with exeptions; when defining a document style one needs to know the font, its usage (what variants, styles, etc) and often also it slimitations (font feature are not that well defined and fonts might have incomplete implementations) the best one can do is make a typescript (or a collection, as with tex gyre which tries to be consistent over the whole range) that implements a definition and even then, a different version of a font (i mostly use commercial fonts and font ABC may have different implementations) may hav edifferent properties; also, there is not one good usage (typescript combination) of a specific font, esp now that we have many features actually, talking about features, you need to keep in mind that even when you define a specific instance, applying such an instance to a whole document might fail because some features may not cover the whole possible set of combinations of characters (take frac as an example) and so usage demands knowlegde eventually we may have a set of predefined typescripts that cover most system fonts On Wed, Dec 24, 2008 at 1:44 AM, Mohamed Bana mbana.li...@googlemail.com wrote: hi, 1. what's the equivalent of the \usepackage{fullpage} for ConTeXt? 2. it would be convenient if LuaTeX supported typescripts like XeTeX does instead of having to define font synonyms, e.g., \definetypeface[mainface][rm][Xserif][Warnock Pro] \definetypeface[mainface][ss][Xsans][Cronos Pro] \definetypeface[mainface][tt][Xmono][Inconsolata][default]%[rscale=0.9] % use only for Monaco %\definetypeface[mainface][mm][Xmath][palatino] \definetypeface[mainface][mm][math][palatino][default]%[encoding=texnansi] \setupbodyfont[mainface, 13pt] ___ 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to use Minion Pro
Hi: seems that you are using my typescript posted on yulewang.spaces.live.com:) well, - the first question, pls upgrade your context distribution. there was a bug one week ago, but Hans fixed that. - the second question and the third question are the same. you should use unicode character in your ConTeXt document. ps. there are several flaws in my blog post (like hyphenmark). I will fix that if I have time. Yue Wang On 12/3/08, Fengnan Gao [EMAIL PROTECTED] wrote: Hi all, I'm learning how to use ConTeXt recently, and I find difficulty using Minion Pro, which can be fully accessed using XeTeX. Here is how I use Minion Pro, and as far as I can see, there is no problem with the setup. \starttypescript[all][myfont][name] \definefontsynonym[Minion][MinionPro-Regular] \definefontsynonym[MinionBold][MinionPro-Bold] \definefontsynonym[MinionItalic][MinionPro-It] \definefontsynonym[MinionBoldItalic][MinionPro-BoldIt] \definefontsynonym[Myriad][MyriadPro-Regular] \definefontsynonym[MyriadBold][MyriadPro-Bold] \definefontsynonym[MyriadItalic][MyriadPro-It] \definefontsynonym[MyriadBoldItalic][MyriadPro-BoldIt] \stoptypescript \definefontfeature[minion][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, dlig=yes, protrusion=quality, expansion=quality] \definefontfeature[minionsmcp][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, dlig=yes, smcp=yes, protrusion=quality, expansion=quality] \definefontfeature[myriad][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, zero=yes, protrusion=quality, expansion=quality] \starttypescript[serif][myfont][name] \definefontsynonym[Serif][Minion][features=minion] \definefontsynonym[SerifBold][MinionBold][features=minion] \definefontsynonym[SerifItalic][MinionItalic][features=minion] \definefontsynonym[SerifBoldItalic][MinionBoldItalic][features=minion] \definefontsynonym[SerifSlanted][MinionItalic][features=minion] \definefontsynonym[SerifBoldSlanted][MinionBoldItalic][features=minion] \definefontsynonym[SerifCaps][MinionBold][features=minionsmcp] \stoptypescript \starttypescript[sans][myfont][name] \definefontsynonym[Sans][Myriad][features=myriad] \definefontsynonym[SansBold][MyriadBold][features=myriad] \definefontsynonym[SansItalic][MyriadItalic][features=myriad] \definefontsynonym[SansBoldItalic][MyriadBoldItalic][features=myriad] \definefontsynonym[SansSlanted][MyriadItalic][features=myriad] \definefontsynonym[SansBoldSlanted][MyriadBoldItalic][features=myriad] \definefontsynonym[SansCaps][Myriad][features=myriad] \stoptypescript \definetypeface [myfont] [rm] [serif] [myfont] [default] \definetypeface [myfont] [ss] [sans] [myfont] [default] \usetypescript[myfont] And I found there problems with the font. 1). Even though I tried to access the otf features (as you can see in my code), but I cannot access that (but I have successfully accessed the Minion Pro font) 2). I cannot use ``--'' to produce an *endash*. 3). I cannot use *``* to produce an leftquote and *''* an right quote. Can someone help me? Thanks. --- Cheers Fengnan Gao ___ 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] How to use Minion Pro
Hi all, I'm learning how to use ConTeXt recently, and I find difficulty using Minion Pro, which can be fully accessed using XeTeX. Here is how I use Minion Pro, and as far as I can see, there is no problem with the setup. \starttypescript[all][myfont][name] \definefontsynonym[Minion][MinionPro-Regular] \definefontsynonym[MinionBold][MinionPro-Bold] \definefontsynonym[MinionItalic][MinionPro-It] \definefontsynonym[MinionBoldItalic][MinionPro-BoldIt] \definefontsynonym[Myriad][MyriadPro-Regular] \definefontsynonym[MyriadBold][MyriadPro-Bold] \definefontsynonym[MyriadItalic][MyriadPro-It] \definefontsynonym[MyriadBoldItalic][MyriadPro-BoldIt] \stoptypescript \definefontfeature[minion][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, dlig=yes, protrusion=quality, expansion=quality] \definefontfeature[minionsmcp][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, dlig=yes, smcp=yes, protrusion=quality, expansion=quality] \definefontfeature[myriad][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, zero=yes, protrusion=quality, expansion=quality] \starttypescript[serif][myfont][name] \definefontsynonym[Serif][Minion][features=minion] \definefontsynonym[SerifBold][MinionBold][features=minion] \definefontsynonym[SerifItalic][MinionItalic][features=minion] \definefontsynonym[SerifBoldItalic][MinionBoldItalic][features=minion] \definefontsynonym[SerifSlanted][MinionItalic][features=minion] \definefontsynonym[SerifBoldSlanted][MinionBoldItalic][features=minion] \definefontsynonym[SerifCaps][MinionBold][features=minionsmcp] \stoptypescript \starttypescript[sans][myfont][name] \definefontsynonym[Sans][Myriad][features=myriad] \definefontsynonym[SansBold][MyriadBold][features=myriad] \definefontsynonym[SansItalic][MyriadItalic][features=myriad] \definefontsynonym[SansBoldItalic][MyriadBoldItalic][features=myriad] \definefontsynonym[SansSlanted][MyriadItalic][features=myriad] \definefontsynonym[SansBoldSlanted][MyriadBoldItalic][features=myriad] \definefontsynonym[SansCaps][Myriad][features=myriad] \stoptypescript \definetypeface [myfont] [rm] [serif] [myfont] [default] \definetypeface [myfont] [ss] [sans] [myfont] [default] \usetypescript[myfont] And I found there problems with the font. 1). Even though I tried to access the otf features (as you can see in my code), but I cannot access that (but I have successfully accessed the Minion Pro font) 2). I cannot use ``--'' to produce an *endash*. 3). I cannot use *``* to produce an leftquote and *''* an right quote. Can someone help me? Thanks. --- Cheers Fengnan Gao___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to use Minion Pro
Feedback welcome. Make sure you use LuaTeX, add % engine=luatex right at the beginning of the main file. \starttypescript [serif] [minionpro] \definefontsynonym [MinionPro-Regular][name:minionproregular] \definefontsynonym [MinionPro-Bold] [name:minionprobold] \definefontsynonym [MinionPro-Italic] [name:minionproit] \definefontsynonym [MinionPro-BoldItalic] [name:minionproboldit] \stoptypescript \starttypescript [serif] [minionpro] \definefontsynonym [Serif] [MinionPro-Regular] [features=default] \definefontsynonym [SerifBold] [MinionPro-Bold] [features=default] \definefontsynonym [SerifItalic] [MinionPro-Italic] [features=default] \definefontsynonym [SerifBoldItalic] [MinionPro-BoldItalic] [features=default] % \definefontsynonym [SerifSlanted] [SerifItalic] [features=default] \definefontsynonym [SerifCaps] [Serif] [features=smallcaps] \stoptypescript \starttypescript [sans] [myriadpro] \setups[font:fallback:sans] % \definefontsynonym [MyriadPro-Regular][name:MyriadPro-Regular] [features=default] % \definefontsynonym [MyriadPro-Bold] [name:MyriadPro-Bold] [features=default] % \definefontsynonym [MyriadPro-Italic] [name:MyriadPro-It] [features=default] % \definefontsynonym [MyriadPro-BoldItalic] [name:MyriadPro-BoldIt] [features=default] \definefontsynonym [MyriadPro-Regular][name:myriadproregular] \definefontsynonym [MyriadPro-Bold] [name:myriadprobold] \definefontsynonym [MyriadPro-Italic] [name:myriadproit] \definefontsynonym [MyriadPro-BoldItalic] [name:myriadproboldit] \stoptypescript \starttypescript [sans] [myriadpro] \definefontsynonym [Sans] [MyriadPro-Regular] [features=historic] \definefontsynonym [SansBold] [MyriadPro-Bold] [features=historic] \definefontsynonym [SansItalic] [MyriadPro-Italic] [features=historic] \definefontsynonym [SansBoldItalic] [MyriadPro-BoldItalic] [features=historic] \definefontsynonym [SansCaps] [Sans] [features=latin-smallcaps] \stoptypescript %%% Then i've got this in the file i want to typeset %%% \def\sc{\setfontfeature{smallcaps}} \definefontfeature [default][default] [protrusion=quality,expansion=quality,mode=node,script=latn] \definefontfeature [oldstyle][default] [protrusion=quality,expansion=quality,mode=node,script=latn,onum=yes] \definefontfeature [smallcaps][default] [protrusion=quality,expansion=quality,mode=node,script=latn,smcp=yes] \usetypescript [serif] [hanging] [pure] \setupalign [hanging] \usetypescriptfile[type-folio] \definetypeface[mainface][rm][serif][minionpro] [default] [features=default] \definetypeface[mainface][ss][sans][myriadpro] [default] [features=default] \definetypeface [mainface] [mm] [math] [palatino] [default] [encoding=texnansi] \setupbodyfont[mainface,12.5pt] \setfontfeature{oldstyle} ... text %%% xetex %%% \definefontfeature[default][deault][script=latn,onum=yes] \definetypeface[myface][rm][Xserif][Minion Pro] \definetypeface[myface][ss][Xsans][Myriad Pro] \definetypeface[myface][tt][Xmono][Consolas] \setupbodyfont[myface, 12pt] ... text Fengnan Gao wrote: Hi all, I'm learning how to use ConTeXt recently, and I find difficulty using Minion Pro, which can be fully accessed using XeTeX. Here is how I use Minion Pro, and as far as I can see, there is no problem with the setup. \starttypescript[all][myfont][name] \definefontsynonym[Minion][MinionPro-Regular] \definefontsynonym[MinionBold][MinionPro-Bold] \definefontsynonym[MinionItalic][MinionPro-It] \definefontsynonym[MinionBoldItalic][MinionPro-BoldIt] \definefontsynonym[Myriad][MyriadPro-Regular] \definefontsynonym[MyriadBold][MyriadPro-Bold] \definefontsynonym[MyriadItalic][MyriadPro-It] \definefontsynonym[MyriadBoldItalic][MyriadPro-BoldIt] \stoptypescript \definefontfeature[minion][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, dlig=yes, protrusion=quality, expansion=quality] \definefontfeature[minionsmcp][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, dlig=yes, smcp=yes, protrusion=quality, expansion=quality] \definefontfeature[myriad][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, zero=yes, protrusion=quality, expansion=quality] \starttypescript[serif][myfont][name] \definefontsynonym[Serif][Minion][features=minion] \definefontsynonym[SerifBold][MinionBold][features=minion] \definefontsynonym[SerifItalic][MinionItalic][features=minion] \definefontsynonym[SerifBoldItalic][MinionBoldItalic][features
[NTG-context] Using a .fea file disable arabic contextual analysis
See the attached files, the mark features seem to work but contextual forms (init, medi amnd fina) don't Regards, -- Khaled Hosny Arabic localizer and member of Arabeyes.org team \installfontfeature[otf][ardi] \definefontfeature [fea] [mode=node,language=dflt,script=arab, init=yes,medi=yes,fina=yes,isol=yes, liga=yes,dlig=yes,rlig=yes,frac=yes, calt=yes,ccmp=yes,kern=yes,mark=yes, mkmk=yes,ardi=yes,featurefile=digit.fea] \font\ara=arabtype*fea at 20pt\ara \textdir TRT\pardir TRT بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيم 1234567890 \bye lookup ArabicDigits { lookupflag 0 ; sub zero by uni0660 ; sub one by uni0661 ; sub two by uni0662 ; sub three by uni0663 ; sub four by uni0664 ; sub five by uni0665 ; sub six by uni0666 ; sub seven by uni0667 ; sub eight by uni0668 ; sub nine by uni0669 ; } ArabicDigits ; feature ardi { script arab ; language dflt ; lookup ArabicDigits ; } ardi ; fea.pdf Description: Adobe PDF document 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to typeset this formula ?
On Wed, Oct 8, 2008 at 9:50 AM, Steffen Wolfrum [EMAIL PROTECTED] wrote: Hi, I have a DOC-file with a lot of quite complex math formulae. Trying to find a good workflow from doc to context I was experimenting with the Word plugin MathType, resp. with the different translator options (any better tip very welcome!). The best results I had with typesetting the code with newmath. Only one kind of formula with arrays gave errors. I attach the respective formula as a doc file here. Does anybody know a better way to deal with this kind of formulae in ConTeXt? Any help very much appreciated!! \starttext \startformula \frac{g_a}{\theta} = \startcases[left={\left[},right={\right]}] \NC \displaystyle H_M \cdot z^{1 - \phi} \cdot \frac{\phi - \sigma \cdot \phi}{\sigma - \phi} \cdot \frac{(1 - \phi) \cdot \gamma}{1 - \sigma} - H_S \cdot z^{-\phi} \cdot \frac{\phi - \sigma \cdot \phi}{\sigma - \phi} \cdot \frac{(1 - \phi) \cdot \gamma}{1 - \sigma} + \gamma \cdot H_S \cdot z^{-\phi} \NR \NC \displaystyle - \gamma \cdot z^{-\phi} \cdot \frac{\phi - \sigma \cdot \phi}{\sigma - \phi} \cdot z \cdot H_M + \gamma \cdot z^{-\phi} \cdot \frac{\phi - \sigma \cdot \phi}{\sigma - \phi} \cdot H_S \NR \stopcases \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to typeset this formula ?
On Wed, Oct 8, 2008 at 10:29 AM, Wolfgang Schuster [EMAIL PROTECTED] wrote: On Wed, Oct 8, 2008 at 9:50 AM, Steffen Wolfrum [EMAIL PROTECTED] wrote: Hi, I have a DOC-file with a lot of quite complex math formulae. Trying to find a good workflow from doc to context I was experimenting with the Word plugin MathType, resp. with the different translator options (any better tip very welcome!). The best results I had with typesetting the code with newmath. Only one kind of formula with arrays gave errors. I attach the respective formula as a doc file here. Does anybody know a better way to deal with this kind of formulae in ConTeXt? Any help very much appreciated!! \starttext \startformula \frac{g_a}{\theta} = \startcases[left={\left[},right={\right]}] \NC \displaystyle \startcases[left={\left[},right={\right]},style=\displaystyle] \NC H_M \cdot z^{1 - \phi} \cdot \frac{\phi - \sigma \cdot \phi}{\sigma - \phi} \cdot \frac{(1 - \phi) \cdot \gamma}{1 - \sigma} - H_S \cdot z^{-\phi} \cdot \frac{\phi - \sigma \cdot \phi}{\sigma - \phi} \cdot \frac{(1 - \phi) \cdot \gamma}{1 - \sigma} + \gamma \cdot H_S \cdot z^{-\phi} \NR \NC \displaystyle \NC - \gamma \cdot z^{-\phi} \cdot \frac{\phi - \sigma \cdot \phi}{\sigma - \phi} \cdot z \cdot H_M + \gamma \cdot z^{-\phi} \cdot \frac{\phi - \sigma \cdot \phi}{\sigma - \phi} \cdot H_S \NR \stopcases \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to typeset this formula ?
Potzblitz! Wolfgang wieder, wer sonst ;o) Ja, genau so soll das aussehen. Aber ich fürchte, Du hast das von Hand geschrieben, richtig? Da ich in der originalen DOC-Datei aber noch hunderte in dieser Preisklasse habe, wäre ich für einen sehr guten Konvertierungs-Tipp super-dankbar!!! Steffen Am 08.10.2008 um 10:29 schrieb Wolfgang Schuster: On Wed, Oct 8, 2008 at 9:50 AM, Steffen Wolfrum [EMAIL PROTECTED] wrote: Hi, I have a DOC-file with a lot of quite complex math formulae. Trying to find a good workflow from doc to context I was experimenting with the Word plugin MathType, resp. with the different translator options (any better tip very welcome!). The best results I had with typesetting the code with newmath. Only one kind of formula with arrays gave errors. I attach the respective formula as a doc file here. Does anybody know a better way to deal with this kind of formulae in ConTeXt? Any help very much appreciated!! \starttext \startformula \frac{g_a}{\theta} = \startcases[left={\left[},right={\right]}] \NC \displaystyle H_M \cdot z^{1 - \phi} \cdot \frac{\phi - \sigma \cdot \phi}{\sigma - \phi} \cdot \frac{(1 - \phi) \cdot \gamma}{1 - \sigma} - H_S \cdot z^{-\phi} \cdot \frac{\phi - \sigma \cdot \phi}{\sigma - \phi} \cdot \frac{(1 - \phi) \cdot \gamma}{1 - \sigma} + \gamma \cdot H_S \cdot z^{-\phi} \NR \NC \displaystyle - \gamma \cdot z^{-\phi} \cdot \frac{\phi - \sigma \cdot \phi}{\sigma - \phi} \cdot z \cdot H_M + \gamma \cdot z^{-\phi} \cdot \frac{\phi - \sigma \cdot \phi}{\sigma - \phi} \cdot H_S \NR \stopcases \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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to typeset this formula ?
If you are allowed to make some minor adjustments you may probably even leave out most of the \cdot commands, which will turn the formula even sleeker ... Just my two cents, Oliver \starttext \startformula \frac{g_a}{\theta} = \startcases[left={\left[},right={\right]}] \NC \displaystyle \startcases[left={\left[},right={\right]},style=\displaystyle] \NC H_M \cdot z^{1 - \phi} \cdot \frac{\phi - \sigma \cdot \phi}{\sigma - \phi} \cdot \frac{(1 - \phi) \cdot \gamma}{1 - \sigma} - H_S \cdot z^{-\phi} \cdot \frac{\phi - \sigma \cdot \phi}{\sigma - \phi} \cdot \frac{(1 - \phi) \cdot \gamma}{1 - \sigma} + \gamma \cdot H_S \cdot z^{-\phi} \NR \NC \displaystyle \NC - \gamma \cdot z^{-\phi} \cdot \frac{\phi - \sigma \cdot \phi}{\sigma - \phi} \cdot z \cdot H_M + \gamma \cdot z^{-\phi} \cdot \frac{\phi - \sigma \cdot \phi}{\sigma - \phi} \cdot H_S \NR \stopcases \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] typescript and font features bug?
Yue Wang wrote: I can confirm it is related to the frac featue. The fonts in Acrobat Reader work ok. they might not hav eall features; also, they're not supposed to be used other than in acrobat - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] typescript and font features bug?
Zhaopeng Xing wrote: Hi all, I am using the latest minimal and try to compile the following two files with luatex. The second file, using typescript and font features together, get a serious problem with the final pdf: punctuation centered unexpectedly in lines. For the first files, with no font features specified, it is OK. I do not know whether someone else can replicate this problem. But it happended on my laptop. All compiled are attached in this email. \definefontfeature[minion][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, dlig=yes, protrusion=quality, expansion=quality] \starttypescript[serif][myserif][name] \definefontsynonym[Serif][RegularBold][features=minion] \stoptypescript \definetypeface [myserif] [rm] [serif] [myserif] [default] \usetypescript[myserif] \setupbodyfont[myserif,rm,12pt] \setupalign[hz,hanging] \starttext \input zapf \stoptext works ok; i don't have minion here (at least not an open type variant) so i cannot test that font - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] typescript and font features bug?
Zhaopeng Xing wrote: The attachment. remark: using those st ligatures is pretty annoying (ok for older docs in french etc) the funny punctuation is probably due to the frac features .. i found (in other fonts) that frac is a rather weird feature in the sense that it has to be applied very selectively if only because the contextual analysis definitions might not be complete at all for me it makes such features rather useless and i'll probably cook up my own solution by simply parsing the node list and replacing glyphs; on the other hand, even then we end up with suboptimal outcome Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] typescript and font features bug?
It seems that the problem is only happened to my laptop. But I am sure that the minimal was properly installed. Maybe is it a rpwt! 2008/9/20 Hans Hagen [EMAIL PROTECTED] Zhaopeng Xing wrote: The attachment. remark: using those st ligatures is pretty annoying (ok for older docs in french etc) the funny punctuation is probably due to the frac features .. i found (in other fonts) that frac is a rather weird feature in the sense that it has to be applied very selectively if only because the contextual analysis definitions might not be complete at all for me it makes such features rather useless and i'll probably cook up my own solution by simply parsing the node list and replacing glyphs; on the other hand, even then we end up with suboptimal outcome Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Zhaopeng XING Tinbergen Institute ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] typescript and font features bug?
well, rpwt is not an international word. I think you should wait for your rp coming and reinstall it. On Sun, Sep 21, 2008 at 12:24 AM, Zhaopeng Xing [EMAIL PROTECTED] wrote: It seems that the problem is only happened to my laptop. But I am sure that the minimal was properly installed. Maybe is it a rpwt! 2008/9/20 Hans Hagen [EMAIL PROTECTED] Zhaopeng Xing wrote: The attachment. remark: using those st ligatures is pretty annoying (ok for older docs in french etc) the funny punctuation is probably due to the frac features .. i found (in other fonts) that frac is a rather weird feature in the sense that it has to be applied very selectively if only because the contextual analysis definitions might not be complete at all for me it makes such features rather useless and i'll probably cook up my own solution by simply parsing the node list and replacing glyphs; on the other hand, even then we end up with suboptimal outcome Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Zhaopeng XING Tinbergen Institute ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Hello world! Every day is a new day. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] typescript and font features bug?
I can confirm it is related to the frac featue. The fonts in Acrobat Reader work ok. However, Adobe FontFolio version appears to produce the problem. Moreover, Adobe Brioso has the same problem. On Sat, Sep 20, 2008 at 7:00 PM, Hans Hagen [EMAIL PROTECTED] wrote: Zhaopeng Xing wrote: The attachment. remark: using those st ligatures is pretty annoying (ok for older docs in french etc) the funny punctuation is probably due to the frac features .. i found (in other fonts) that frac is a rather weird feature in the sense that it has to be applied very selectively if only because the contextual analysis definitions might not be complete at all for me it makes such features rather useless and i'll probably cook up my own solution by simply parsing the node list and replacing glyphs; on the other hand, even then we end up with suboptimal outcome Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___