Re: [NTG-context] Dividing dimensions
Can someone explain this? The solutions posted in lua seem more complicated than that using \dimexpr I will add further examples to http://wiki.contextgarden.net/Expressions (or someone else can do this directly, of course) once I understand the advantages and limitations. Alan On Saturday 21 March 2009 23:41:19 Wolfgang Schuster wrote: Can I divide dimensions to get a number in pdftex? LaTeX has a package to do exactly that, fp. You could look into its code. Or you could use LuaTeX :-) It's easy to do with etex but I would use lua if possible ___ 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 in last beta (cont-en and cont-xp)
Hi Hans, hi Taco, hi all, testing math with the latest ConTeXt beta i found some problems. My test file is: \usetypescriptfile[type-buy] \def\currentfontname {\ctxlua{tex.print(font.getfont(font.current()).fullname)}} \starttext \startbuffer[mathbuffer] \currentfontname $a^2 + b^2 = c^2$ $E = mc^2 \bigotimes \sum$ $α^2 + β^2 = γ^2$ \blank[big] \stopbuffer \getbuffer[mathbuffer] \usetypescript[lucida][texnansi] \setupbodyfont[lucida] \getbuffer[mathbuffer] \usetypescript[cambria] \switchtotypeface[cambria] \getbuffer[mathbuffer] \usetypescript[palatino] \switchtotypeface[palatino] \getbuffer[mathbuffer] \stoptext Latin Modern and Palatino/px work very fine. Lucida lacks greek and some operators. I found no embedded LucidaNewMath fonts in the resulting pdf. Cambria has a very ugly spacing. btw. in the wiki is described a ConTeXt command \showmathcharacters. This seems not to work anymore. The related file math-run.tex is not input at the time of format generation. Greetings Lutz P.S. will the key [texnansi] (or [ec]) remain necessary to switch to LucidaBright? ___ 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] new luatex beta
Hi, The code has been checked in for the next luatex beta. The current MKIV beta is already prepared for that (primitive initializations and changed directlua support). Also, there are a few bug fixes (esp the vf positioning) that might result in better output. There are some pending issues with math but they might as well relate to issues with the lm fonts. Anyway, we tested the beta a few days and it should work ok. One new feature in MKIV is names lua runs. In the current version we no longer have multiple lua instances (we decided that it made no sense as no data can be shared). However, in MKIV we do have a few mildly isolated instances that are defined as follows: \definenamedlua[user][private user instance] \definenamedlua[third] [third party module instance] \definenamedlua[module] [module instance] \definenamedlua[isolated][isolated instance] the names kind of reflect what their intended usage is. By default one has no access to global data unless prefixed by global, so for instance one can access the global character data as in (untested): \startusercode tex.sprint(global.characters.data[123].description) \startusercode (there is also \usercode{...}) This prevents that users mess up with the data unintended. However, there is still read and write access so be careful. I see no advantage in a more strict model than this. Since each call to lua is reentrant, errors in your scripts will normally not result in a crash of \MKIV. The error message mentiones the second argument to the previous definitions. 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] font switching questions
2009/3/19 Wolfgang Schuster schuster.wolfg...@googlemail.com: Am 18.03.2009 um 16:26 schrieb Alan Stone: On Wed, Mar 18, 2009 at 9:23 AM, Hans Hagen pra...@wxs.nl wrote: (there's also Normal, Bold etc that is even more generic in the sense that it can be sans or serif depending of the situation) Read and understand! Thanks for your comments Wolfgang. Hope they're useful and beneficial to other people. The example I adapted and was enquiring about was in the context of what Hans replied earlier... (there's also Normal, Bold etc that is even more generic in the sense that it can be sans or serif depending of the situation) Hans, does what you meant by the above correspond to Wolfgang's example or did you mean something else ? If so, what precisely please ? Thanks, Alan % Typescript for Arial \starttypescript [sans] [arial] \setups [font:fallback:sans] \definefontsynonym [Sans] [ArialNormal] \definefontsynonym [SansItalic] [ArialItalic] \definefontsynonym [SansBold] [ArialBold] \definefontsynonym [SansBoldItalic] [ArialBoldItalic] \stoptypescript \starttypescript [sans] [arial] \definefontsynonym [ArialNormal] [name:arial] [features=default] \definefontsynonym [ArialItalic] [name:arialitalic] [features=default] \definefontsynonym [ArialBold] [name:arialbold] [features=default] \definefontsynonym [ArialBoldItalic] [name:arialbolditalic] [features=default] \stoptypescript \starttypescript [arial] \definetypeface [arial] [ss] [sans] [arial] [default] \stoptypescript % Load the Arial typescript for certain elements \usetypescript[sans][arial] % Load the main typescripts and set the font for the document \usetypescript[palatino] \setupbodyfont[palatino] % Define a new font for the header and set it \definefont[SectionStyle][ArialBold sa 1.5] % Symbolic name for Arial \setuphead[section][style=SectionStyle] \starttext \section{Knuth} \input Knuth \section{Zapf} \input zapf \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] font switching questions
Am 23.03.2009 um 11:51 schrieb Alan Stone: (there's also Normal, Bold etc that is even more generic in the sense that it can be sans or serif depending of the situation) Hans, does what you meant by the above correspond to Wolfgang's example or did you mean something else ? If so, what precisely please? \starttext \rm text {\definedfont[Normal sa 2]text} text {\definedfont[Bold sa 2]text} text \ss text {\definedfont[Normal sa 2]text} text {\definedfont[Bold sa 2]text} text \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] font switching questions
Hello Alan, If you need a typescript for Windows Arial, you can try font-win.tex, included in the latest beta. Vyatcheslav ___ 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] font switching questions
Am 23.03.2009 um 12:16 schrieb Vyatcheslav Yatskovsky: Hello Alan, If you need a typescript for Windows Arial, you can try font-win.tex, included in the latest beta. type-win.tex ;-) 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] Dividing dimensions
Can someone explain this? tex.dimen is a Lua table containing the dimension registers, in scaled points. Hence, if \!!dimena is 1pt, tex.dimen[!!dimena] will be 65536, for instance. The rest is algebra and Lua control structures. The solutions posted in lua seem more complicated than that using \dimexpr If you mean from the number of characters, maybe. Then again, it's only about comparing a / b to c / d in both cases. It would be interesting to compare their efficiency. Arthur ___ 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] Dividing dimensions
Am 23.03.2009 um 08:15 schrieb Alan BRASLAU: Can someone explain this? The solutions posted in lua seem more complicated than that using \dimexpr I will add further examples to http://wiki.contextgarden.net/Expressions (or someone else can do this directly, of course) once I understand the advantages and limitations. Here is a example document. Wolfgang \starttext \setupwhitespace[line] Our todays question is how to divide two dimension and compare their result with the result of another division, to do this we assign values two four dimensions. \startbuffer \dimen0=15pt \dimen2=20pt \dimen4=15pt \dimen6=30pt \stopbuffer \typebuffer \getbuffer Because we can use \ETEX\ functions with \CONTEXT\ let's try to use them, the following example should work: \startbuffer \ifdim\dimexpr\dimen0/\dimen2\relax\dimexpr\dimen4/\dimen6\relax Second number is bigger. \else First number is bigger. \fi \stopbuffer \typebuffer \getbuffer This seems to be working but did it also work when the first result of the second division is bigger. \startbuffer \dimen6=15pt \ifdim\dimexpr\dimen0/\dimen2\relax\dimexpr\dimen4/\dimen6\relax Second number is bigger. \else First number is bigger. \fi \stopbuffer \typebuffer \getbuffer This seems to be weird because we still get as result that the first number is bigger but why did this happen? Let's take a closer look at the real values of the dimensions and their results after the divison. Dimen0 has a value of \the\dimen0{} which is \number\dimen0{} in scaled points. Only the second value in scaled points is important for our calculation, we wan't to also know what the value of the second dimensions is: \number \dimen2. The last we want to know is the result of the division from the two number, this is \number\dimexpr\dimen0/\dimen2\relax. Before I want to say if this number is or good let's see what the value of the second number is before we changed the value for dimension 6 and after we changed it: \startlines Before: \dimen6=30pt \number\dimexpr\dimen4/\dimen6\relax After: \dimen6=15pt \number\dimexpr\dimen4/\dimen6\relax \stoplines The result is always 1 and not very helpful for us, you can see, if you to divide two number which are nearly equal the result in \TEX\ is not ver helpful, to compensate this we can multiply the first number in the division to get a better result. We try this first with the pure number before we include this in the \type{\ifdim} text we wanted. \startlines Result 1: \number\dimexpr\dimen0*100/\dimen2\relax Result 2: \number\dimexpr\dimen4*100/\dimen6\relax \stoplines This gives us now to higher number we can compare with reliable results. We will now try to test both this with our number above again. \startbuffer \dimen6=30pt \ifdim\dimexpr\dimen0*100/\dimen2\relax\dimexpr \dimen4*100/\dimen6\relax Second number is bigger. \else First number is bigger. \fi \stopbuffer \typebuffer \getbuffer \startbuffer \dimen6=15pt \ifdim\dimexpr\dimen0*100/\dimen2\relax\dimexpr \dimen4*100/\dimen6\relax Second number is bigger. \else First number is bigger. \fi \stopbuffer \typebuffer \getbuffer You can see both tests give us a correct result after we multiplied the first number in each division by 100 but should we rely on such limitations in \TEX\ when we can also use \LUATEX\ to get a correct result. The \type{tex.dimen} function allows us to access the dimen register from \TEX\ in Lua. \startbuffer \dimen6=30pt \startluacode if tex.dimen[0] / tex.dimen[2] tex.dimen[4] / tex.dimen[6] then tex.sprint(Second number is bigger.) else tex.sprint(First number is bigger.) end \stopluacode \stopbuffer \typebuffer \getbuffer \startbuffer \dimen6=15pt \startluacode if tex.dimen[0] / tex.dimen[2] tex.dimen[4] / tex.dimen[6] then tex.sprint(Second number is bigger.) else tex.sprint(First number is bigger.) end \stopluacode \stopbuffer \typebuffer \getbuffer The output is now correct in both values without any tricks. \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] Dividing dimensions
Hello Wolfgang, Thanks for the detailed explanation. The \type{tex.dimen} function allows us to access the dimen register from \TEX\ in Lua. A small correction: it's not a function, it really behaves like a table in Lua. You can use both the register number, or the symbolic name (as defined by \dimendef, if applicable), as a key to the table. Arthur ___ 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] math problems in last beta (cont-en and cont-xp)
On Mon, 23 Mar 2009, Lutz Haseloff wrote: Hi Hans, hi Taco, hi all, testing math with the latest ConTeXt beta i found some problems. My test file is: \usetypescriptfile[type-buy] \def\currentfontname {\ctxlua{tex.print(font.getfont(font.current()).fullname)}} \starttext \startbuffer[mathbuffer] \currentfontname $a^2 + b^2 = c^2$ $E = mc^2 \bigotimes \sum$ $α^2 + β^2 = γ^2$ \blank[big] \stopbuffer \getbuffer[mathbuffer] \usetypescript[lucida][texnansi] \setupbodyfont[lucida] \getbuffer[mathbuffer] \usetypescript[cambria] \switchtotypeface[cambria] \getbuffer[mathbuffer] \usetypescript[palatino] \switchtotypeface[palatino] \getbuffer[mathbuffer] \stoptext For using old type-1 math fonts, you need to create virtual fonts. Latin Modern and Palatino/px work very fine. For LM, Palatino, and Times, the virtual fonts are created in math-vfu.lua Lucida lacks greek and some operators. I found no embedded LucidaNewMath fonts in the resulting pdf. There are no virtual fonts for Lucida math. In principle, one just needs to translate math-lbr to lua syntax. I will try to do that, but I need someone to test the results, since I do not have Lucida fonts myself. Cambria has a very ugly spacing. Luatex does not do kerning for utf math right now. This will be handled correcrly in the future. btw. in the wiki is described a ConTeXt command \showmathcharacters. This seems not to work anymore. The related file math-run.tex is not input at the time of format generation. \ShowCompleteFont{name:Cambria-Math}{10pt}{1} P.S. will the key [texnansi] (or [ec]) remain necessary to switch to LucidaBright? For text fonts, yes. Normally math fonts use an independent encoding. 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] hangaround in right side of column?
Hi all, I try to get text flowing nicely around a figure but since I'm working in a columns environment \placefloat related stuff doesn't work. Using \starthangaround I get precisely what I want but I need to place figures to the right instead of to the left. I modified the definition for \starthangaround (from cont-new.tex) but I'm afraid I don't understand enough of it to get it working, anyone who can help? \starttext \def\startmyhangaround {\noindent\bgroup \dowithnextbox {\ifdim\nextboxht\strutht\setbox\nextbox\tbox{\flushnextbox}\fi \setbox\nextbox\hbox{\flushnextbox\hskip\@@hadistance}% \getboxheight\scratchdimen\of\box\nextbox \getnoflines\scratchdimen \nextboxdp\strutdp \nextboxht\strutht \hangindent\nextboxwd \hangafter-\noflines \rlap{\flushnextbox}\ignorespaces} \hbox} \startcolumns[n=2,balance=yes] \dorecurse{2}{\input tufte \par} \startmyhangaround{\externalfigure[cow]}% figure placement is right but, \input tufte % this text needs to start left... \stophangaround \stopcolumns \stoptext Thanks, Jelle ___ 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] hangaround in right side of column?
Am 23.03.2009 um 18:27 schrieb Jelle Huisman: Hi all, I try to get text flowing nicely around a figure but since I'm working in a columns environment \placefloat related stuff doesn't work. Using \starthangaround I get precisely what I want but I need to place figures to the right instead of to the left. I modified the definition for \starthangaround (from cont-new.tex) but I'm afraid I don't understand enough of it to get it working, anyone who can help? \unprotect \def\stopmyhangaround {\endgraf \egroup} \def\startmyhangaround {\noindent\bgroup \dowithnextbox {\ifdim\nextboxht\strutht\setbox\nextbox\tbox{\flushnextbox}\fi \setbox\nextbox\hbox{\hskip\@@hadistance\flushnextbox}% \getboxheight\scratchdimen\of\box\nextbox \getnoflines\scratchdimen \nextboxht\strutht \nextboxdp\strutdp \hangindent-\nextboxwd \hangafter-\noflines \rlap{\hskip\hsize\llap{\flushnextbox}}\ignorespaces} \hbox} \protect 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] hangaround in right side of column?
Wolfgang Schuster wrote: Am 23.03.2009 um 18:27 schrieb Jelle Huisman: Hi all, I try to get text flowing nicely around a figure but since I'm working in a columns environment \placefloat related stuff doesn't work. Using \starthangaround I get precisely what I want but I need to place figures to the right instead of to the left. I modified the definition for \starthangaround (from cont-new.tex) but I'm afraid I don't understand enough of it to get it working, anyone who can help? Thanks, Wolfgang! That's precisely what I needed. Jelle ___ 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] error in the latest distribution in the garden
Hi, Just synced context with the latest distribution in the garden. Ahhh! context --make gives an error: loading : Unicode Support (utf) ) (c:/contextminimal/texmf-context/tex/context/base/char-ini.tex loading : Character Support (initialization) ) (c:/contextminimal/texmf-context/tex/context/base/char-enc.tex loading : Character Support (encodings) ) (c:/contextminimal/texmf-context/tex/context/base/node-ini.tex loading : Node Support (initialization) ) (c:/contextminimal/texmf-context/tex/context/base/node-fin.tex loading : Node Support (finalization) ! Undefined control sequence. argument \c!global \doifnotinset #1-\edef \!!stringa {#1 }\ifx \!!stringa \empty \expandafter \... \dodefineattribute ...te }\doifnotinset \c!global {#2}{\appendetoks \csname ... to be read again \par l.35 ? I have an urgent job to do. Help, please! Vyatcheslav ___ 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] error in the latest distribution in the garden
Hi Vyatcheslav, This error is shown while generating metatex.fmt. All other formats including cont-xp.fmt are generated successful here. I think, you do not really need this format. Greeting Lutz -Original Message- From: Vyatcheslav Yatskovsky yatskov...@gmail.com Date: Mon, 23 Mar 2009 21:33:34 To: ntg-context@ntg.nl Subject: [NTG-context] error in the latest distribution in the garden Hi, Just synced context with the latest distribution in the garden. Ahhh! context --make gives an error: loading : Unicode Support (utf) ) (c:/contextminimal/texmf-context/tex/context/base/char-ini.tex loading : Character Support (initialization) ) (c:/contextminimal/texmf-context/tex/context/base/char-enc.tex loading : Character Support (encodings) ) (c:/contextminimal/texmf-context/tex/context/base/node-ini.tex loading : Node Support (initialization) ) (c:/contextminimal/texmf-context/tex/context/base/node-fin.tex loading : Node Support (finalization) ! Undefined control sequence. argument \c!global \doifnotinset #1-\edef \!!stringa {#1 }\ifx \!!stringa \empty \expandafter \... \dodefineattribute ...te }\doifnotinset \c!global {#2}{\appendetoks \csname ... to be read again \par l.35 ? I have an urgent job to do. Help, please! Vyatcheslav ___ 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] error in the latest distribution in the garden
Lutz Haseloff wrote: Hi Vyatcheslav, This error is shown while generating metatex.fmt. All other formats including cont-xp.fmt are generated successful here. I think, you do not really need this format. Greeting Lutz -Original Message- From: Vyatcheslav Yatskovsky yatskov...@gmail.com Date: Mon, 23 Mar 2009 21:33:34 To: ntg-context@ntg.nl Subject: [NTG-context] error in the latest distribution in the garden Hi, Just synced context with the latest distribution in the garden. Ahhh! context --make gives an error: loading : Unicode Support (utf) ) (c:/contextminimal/texmf-context/tex/context/base/char-ini.tex loading : Character Support (initialization) ) (c:/contextminimal/texmf-context/tex/context/base/char-enc.tex loading : Character Support (encodings) ) (c:/contextminimal/texmf-context/tex/context/base/node-ini.tex loading : Node Support (initialization) ) (c:/contextminimal/texmf-context/tex/context/base/node-fin.tex loading : Node Support (finalization) ! Undefined control sequence. argument \c!global \doifnotinset #1-\edef \!!stringa {#1 }\ifx \!!stringa \empty \expandafter \... \dodefineattribute ...te }\doifnotinset \c!global {#2}{\appendetoks \csname ... to be read again \par l.35 ? I have an urgent job to do. Help, please! then just do a manual --make: context --make en 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 ___
[NTG-context] typescript repository
Hi all, what do think about a page with typescript files for good quality free fonts, we have a few typescripts on the wiki but you have to copy them first in your document or in a file before you can use them. 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] typescript repository
On Mon, Mar 23, 2009 at 9:30 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Hi all, what do think about a page with typescript files for good quality free fonts, we have a few typescripts on the wiki but you have to copy them first in your document or in a file before you can use them. + for me -- 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] typescript repository
On Mon, Mar 23, 2009 at 9:30 PM, Wolfgang Schuster schuster.wolfgang at googlemail.com wrote: Hi all, what do think about a page with typescript files for good quality free fonts, we have a few typescripts on the wiki but you have to copy them first in your document or in a file before you can use them. * * If this would make using these free fonts easier in Context documents...that would be awesome. * * * * ___ 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] math problems in last beta (cont-en and cont-xp)
Lutz Haseloff wrote: Lucida lacks greek and some operators. I found no embedded LucidaNewMath fonts in the resulting pdf. not defined at all (yet) (see end of math-vfu for how to do that; you can give lucida a try) Cambria has a very ugly spacing. hm, do you have the latest cambria? there might be problems with some otf math parameters but we need examples before we can act on that btw. in the wiki is described a ConTeXt command \showmathcharacters. This seems not to work anymore. The related file math-run.tex is not input at the time of format generation. in mkiv we wil use modules for that ... s-fnt-25 is for math P.S. will the key [texnansi] (or [ec]) remain necessary to switch to LucidaBright? no - 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 repository
On Mon, 23 Mar 2009, Wolfgang Schuster wrote: what do think about a page with typescript files for good quality free fonts, we have a few typescripts on the wiki but you have to copy them first in your document or in a file before you can use them. Good idea! Or perhaps even better: make them available on http://modules.contextgarden.net/ and/or in the minimals and/or in cont-ext.zip (just as urwgothic or urwgaramond for example). Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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 repository
On Mon, 23 Mar 2009, Wolfgang Schuster wrote: Hi all, what do think about a page with typescript files for good quality free fonts, we have a few typescripts on the wiki but you have to copy them first in your document or in a file before you can use them. +1 Actually, I would also like to have a free font database, and a script that downloads free fonts and installs them at the correct location. Something along the lines of getnonfreefonts available with TeXLive. 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] typescript repository
I personally would like see a professionally done typescript for Minion and Warnock Pro with Myriad and Cronos Pro. I posted mine a while ago, but I got no feed back. Wolfgang Schuster wrote: Hi all, what do think about a page with typescript files for good quality free fonts, we have a few typescripts on the wiki but you have to copy them first in your document or in a file before you can use them. 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] typescript repository
On Mon, Mar 23, 2009 at 9:30 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Hi all, what do think about a page with typescript files for good quality free fonts, we have a few typescripts on the wiki but you have to copy them first in your document or in a file before you can use them. I agree. Quoting myself (answering to Mojca) Instead, what you think about a repository with tested working typescripts? A lot of messages in list are fonts-related. We could create a page with: fontname, license, url, url-typescript-download. -- Diego Depaoli ___ 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 repository
On Mon, Mar 23, 2009 at 9:30 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Hi all, what do think about a page with typescript files for good quality free fonts, we have a few typescripts on the wiki but you have to copy them first in your document or in a file before you can use them. Wolfgang May I suggest to consider http://users.teilar.gr/~g1951d/ ? (by Thomas S., if I remember well) -- 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] typescript repository
Am 23.03.2009 um 22:51 schrieb Mohamed Bana: I personally would like see a professionally done typescript for Minion and Warnock Pro with Myriad and Cronos Pro. I posted mine a while ago, but I got no feed back. Because people need the fonts to make a test and Adobes *free* Minion/ Myriad come only with four styles (no opticals). You could also opticals with MkIV but it requires more work - http://wiki.contextgarden.net/Optical_Size 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] Dividing dimensions
Great! I added a section to the wiki http://wiki.contextgarden.net/Expressions taking liberties to modify the presentation slightly. A few points are broken, though, notably that the online ConTeXt doesn't appear to do luacode... Alan On Monday 23 March 2009 13:12:54 Wolfgang Schuster wrote: Here is a example 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 : 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 ___