Re: [NTG-context] XeTeX typescripts in ver: 2007.07.24
Michael Green wrote: In ver: 2007.01.12, a typescript like this works fine: \starttypescript[serif][minion][uc] \definefontsynonym [MinionRegular] ['Minion Pro:mapping=tex-text; +onum;'] [encoding=uc] \stoptypescript We get Minion Pro, mapping TeX markup to unicode characters and old- style numbers. This seems not to work in ver: 2007.07.24: the font can't be found The main problem is the explicit : in the definition above. The latest context parses the string for the appearance of name: and file:, and for that it checks for explicit colons. This change was introduced when ConTeXT started supporting the new XeTeX way of specifying a (non-installed) OpenType font by its filename. Either this: [name:Minion Pro\xetexcolon mapping=tex-text;+onum;] or this: ['Minion Pro\xetexcolon mapping=tex-text;+onum;'] should work (I defined \xetexcolon in type-xtx.tex). Yes, this is a backward incompatible change. But: the syntax with inlined feature specifications will be removed in the near future anyway (to be replaced by separately defined font features), so IMO there is not much point in spending time now on fixing the current behaviour. All the best, 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] itemize with zero start
Wolfgang Werners-Lucchini wrote: Wolfgang Werners-Lucchini wrote: Hallo, has nobody tested this with did you update? No, I have not updated yet! I would like to understand this error first. Can you please explain, why a comment can toggle an error? Filtering comments should be very low level (plain TeX or ConTeXt Core, after some catcode redef???). a reference to a counter was used whilt the counter was not set, so any other macro, code, whatever can then interfere and set the value of that (scratch)counter - 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] Boxed items don't like sidefloats
Wednesday, August 1, 2007 Hans Hagen wrote: Giuseppe Bilotta wrote: This is a very good thing. I have big hopes up for it. Also, as part of my ?getting back into the loop?, do you think there's some where/some how I can give a hand? well, mplib ... apart from going megapost (your speciality) 3d will be added and since you're the mathemagician who can think in 6 dimensions ... Ah, this is something I can more probably involve my university with. While my advisor doesn't care much about TeX per se, numerical things are much more of its taste. -- Giuseppe Oblomov Bilotta ___ 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] XeTeX typescripts in ver: 2007.07.24
Thomas A. Schmitz wrote: 1. The syntax [name:Minion Pro\xetexcolon mapping=tex-text;+onum;] will only work for installed fonts, not for opentype fonts that are in the texmf-tree, correct My experiments suggest that these can be found via the [file:filename] mechanism, but I can't append any mapping or other specials. almost certainly correct. While nearly everything (except the engine-options) is supported by XeTeX's low-level interface, I expect that context would interpret such a specification as if you were asking for the file minionpro:mapping=tex-test.otf, and it would therefore generate the wrong low-level syntax. 2. This syntax will go away soon, so it's no use spending time on experiments. definately correct. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XeTeX typescripts in ver: 2007.07.24
On Aug 2, 2007, at 10:27 AM, Taco Hoekwater wrote: The main problem is the explicit : in the definition above. The latest context parses the string for the appearance of name: and file:, and for that it checks for explicit colons. This change was introduced when ConTeXT started supporting the new XeTeX way of specifying a (non-installed) OpenType font by its filename. Either this: [name:Minion Pro\xetexcolon mapping=tex-text;+onum;] or this: ['Minion Pro\xetexcolon mapping=tex-text;+onum;'] should work (I defined \xetexcolon in type-xtx.tex). Yes, this is a backward incompatible change. But: the syntax with inlined feature specifications will be removed in the near future anyway (to be replaced by separately defined font features), so IMO there is not much point in spending time now on fixing the current behaviour. All the best, Taco Hi Taco, just so I'm sure I understand (I play with XeTeX from time to time, but usually give up after 20 minutes because I find it more trouble than it seems worth): 1. The syntax [name:Minion Pro\xetexcolon mapping=tex-text;+onum;] will only work for installed fonts, not for opentype fonts that are in the texmf-tree, but not system fonts. My experiments suggest that these can be found via the [file:filename] mechanism, but I can't append any mapping or other specials. 2. This syntax will go away soon, so it's no use spending time on experiments. Thanks Thomas ___ 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] XeTeX typescripts in ver: 2007.07.24
On Aug 2, 2007, at 4:24 PM, Taco Hoekwater wrote: definately correct. Best wishes, Taco Thanks for the clarification Taco! All best Thomas ___ 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] extra math symbols and alignment
Hi Wim, Quoting WN [EMAIL PROTECTED]: I tried your code and performed more tests. My first tests show your fix works. But than I added a \section{} in my test code and I am sorry to say that the math matrix alignment does not work at that point. :-) Section modifies \!!counta so things get messed up again. Actually, this really helped to narrow down the bug. Basically, dostartmatrix does a test \scratchcounter=\ifnum\eqaligncolumn\scratchcounter \eqaligncolumn \else \plusone \fi which is comparing eqaligncolmn with scratch counter, but scratchcounter is never initialized. Therefore, everything depends on what was the value of scratchcounter, which explains, different behaviour depending on when the matrix occurred, and why you had a hard time pinning down a minimal example. The fix is easy, change the scratchcounter to zerocount (or maybe just change to \ifcase\eqaligncolunm). So add this to your file, \unprotect \def\dostartmathmatrix[#1][#2]% {\begingroup \edef\currentmathmatrix{#1}% \doifassignmentelse{#2}{\setupmathmatrix[#1][#2]}\donothing \null \executeifdefined{\??mx:\mathmatrixparameter\c!location}{\getvalue{\??mx:\v!lohi}}% \mathmatrixleft \mathmatrixbox\bgroup \pushmacro\domatrixNC \let\endmath\relax \def\NC{\domatrixNC}% \def\MC{\domatrixNC\ifmmode\else$\def\endmath{$}\fi}% \global\let\domatrixNC\dodomatrixNC \def\NR{\endmath\global\let\domatrixNC\dodomatrixNC\crcr}% \normalbaselines \mathsurround\zeropoint \everycr\emptytoks \tabskip\zeropoint \eqaligncolumn\zerocount \processcommacommand[\mathmatrixparameter\c!align]{\advance\eqaligncolumn\plusone\dosetmatrixcolumn}% \scratchcounter=\ifnum\eqaligncolumn\zerocount \eqaligncolumn \else \plusone \fi \global\eqaligncolumn\plusone \preparemathmatrix } % uses scratchcounter \protect 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] Detail on footnote placement (vertical, page)
Hi, if, at the last page of a chapter, there is only little text (e.g. 10% of text-height) is it then possible to attach the footnote-rule and the footnote-text directly under the text (but only this page – the other pages should place the footnote-text flush-bottom) in order to avoid a huge empty white space between body-text and footnote-text? Steffen ___ 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] extra math symbols and alignment
Hi Aditya I tried the new code you send me, and of course I did a quick test. But when doing a texmfstart texexec --autopdf --pdf testalignfontnew.tex texexec hangs ''forever'' while trying to process the \section{} command. Actually its pdftex trying to do something. To make sure I did not make a edit mistake, I copied my old test code into the file testalignfontnew.tex and run a diff to see where the difference with the new code are. Looking at the code (and I am not a Tex expert, and forgive me, when I ask a dumb question) I don't see where the \scratchcounter itself is defined ? Must surely be a global Context counter ? Attached the new test code. Hope it helps the debugging process and thanks for all your help sofar. Wim Hi Wim, Quoting WN [EMAIL PROTECTED]: I tried your code and performed more tests. My first tests show your fix works. But than I added a \section{} in my test code and I am sorry to say that the math matrix alignment does not work at that point. :-) Section modifies \!!counta so things get messed up again. Actually, this really helped to narrow down the bug. Basically, dostartmatrix does a test \scratchcounter=\ifnum\eqaligncolumn\scratchcounter \eqaligncolumn \else \plusone \fi which is comparing eqaligncolmn with scratch counter, but scratchcounter is never initialized. Therefore, everything depends on what was the value of scratchcounter, which explains, different behaviour depending on when the matrix occurred, and why you had a hard time pinning down a minimal example. The fix is easy, change the scratchcounter to zerocount (or maybe just change to \ifcase\eqaligncolunm). So add this to your file, \unprotect \def\dostartmathmatrix[#1][#2]% {\begingroup \edef\currentmathmatrix{#1}% \doifassignmentelse{#2}{\setupmathmatrix[#1][#2]}\donothing \null \executeifdefined{\??mx:\mathmatrixparameter\c!location}{\getvalue{\??mx:\v!lohi}}% \mathmatrixleft \mathmatrixbox\bgroup \pushmacro\domatrixNC \let\endmath\relax \def\NC{\domatrixNC}% \def\MC{\domatrixNC\ifmmode\else$\def\endmath{$}\fi}% \global\let\domatrixNC\dodomatrixNC \def\NR{\endmath\global\let\domatrixNC\dodomatrixNC\crcr}% \normalbaselines \mathsurround\zeropoint \everycr\emptytoks \tabskip\zeropoint \eqaligncolumn\zerocount \processcommacommand[\mathmatrixparameter\c!align]{\advance\eqaligncolumn\plusone\dosetmatrixcolumn}% \scratchcounter=\ifnum\eqaligncolumn\zerocount \eqaligncolumn \else \plusone \fi \global\eqaligncolumn\plusone \preparemathmatrix } % uses scratchcounter \protect 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 ___ \tracetypescriptstrue \unprotect \def\dostartmathmatrix[#1][#2]% {\begingroup \edef\currentmathmatrix{#1}% \doifassignmentelse{#2}{\setupmathmatrix[#1][#2]}\donothing \null \executeifdefined{\??mx:\mathmatrixparameter\c!location}{\getvalue{\??mx:\v!lohi}}% \mathmatrixleft \mathmatrixbox\bgroup \pushmacro\domatrixNC \let\endmath\relax \def\NC{\domatrixNC}% \def\MC{\domatrixNC\ifmmode\else$\def\endmath{$}\fi}% \global\let\domatrixNC\dodomatrixNC \def\NR{\endmath\global\let\domatrixNC\dodomatrixNC\crcr}% \normalbaselines \mathsurround\zeropoint \everycr\emptytoks \tabskip\zeropoint \eqaligncolumn\zerocount \processcommacommand[\mathmatrixparameter\c!align]{\advance\eqaligncolumn\plusone\dosetmatrixcolumn}% \scratchcounter=\ifnum\eqaligncolumn\zerocount \eqaligncolumn \else \plusone \fi \global\eqaligncolumn\plusone \preparemathmatrix } % uses scratchcounter \def\buildmathmatrix % beware: etex only {\scratchtoks\emptytoks \expanded{\scratchtoks{\the\scratchtoks\the\!!toksa}}% \dorecurse{\numexpr\!!counta-\plusone\relax} {\expanded{\scratchtoks{\the\scratchtoks\the\!!toksb}}}% \expanded{\scratchtoks{\the\scratchtoks\the\!!toksc }}} \protect \startmathcollection [extra] \definemathsymbol [oiint] [op] [mc] [08] [mc] [09] \definemathsymbol [oiiint] [op] [mc] [29] [mc] [2a] \definemathsymbol [ointctrclockwise][op] [mc] [0A] [mc] [0B] \definemathsymbol [ointclockwise] [op] [mc] [0C] [mc] [0D] \definemathsymbol [varointctrclockwise] [op] [mc] [2B] [mc] [2C] \definemathsymbol [varointclockwise][op] [mc] [2D] [mc] [2E] \definemathsymbol [iint][op] [mc] [21] [mc] [22] \definemathsymbol [iiint] [op] [mc] [23] [mc] [24] \definemathsymbol [nt] [op] [mc] [25] [mc] [26] \definemathsymbol
Re: [NTG-context] extra math symbols and alignment
Hi Wim, Quoting WN [EMAIL PROTECTED]: I tried the new code you send me, and of course I did a quick test. But when doing a texmfstart texexec --autopdf --pdf testalignfontnew.tex texexec hangs ''forever'' while trying to process the \section{} command. Actually its pdftex trying to do something. To make sure I did not make a edit mistake, I copied my old test code into the file testalignfontnew.tex and run a diff to see where the difference with the new code are. Looking at the code (and I am not a Tex expert, and forgive me, when I ask a dumb question) I don't see where the \scratchcounter itself is defined ? Must surely be a global Context counter ? Yes. \scratchcounter is defined in syst-gen (IIRC). So are a bunch of other temporary variables. Attached the new test code. Hope it helps the debugging process and thanks for all your help sofar. I can not really check the font stuff, since I do not have txfonts and rsfs on this machine. But the matrix alignment appears to be working fine. I am attaching the test for just the matrix alignment. When I get home, I will try to see what goes wrong when you add other fonts. Aditya \unprotect \def\dostartmathmatrix[#1][#2]% {\begingroup \edef\currentmathmatrix{#1}% \doifassignmentelse{#2}{\setupmathmatrix[#1][#2]}\donothing \null \executeifdefined{\??mx:\mathmatrixparameter\c!location}{\getvalue{\??mx:\v!lohi}}% \mathmatrixleft \mathmatrixbox\bgroup \pushmacro\domatrixNC \let\endmath\relax \def\NC{\domatrixNC}% \def\MC{\domatrixNC\ifmmode\else$\def\endmath{$}\fi}% \global\let\domatrixNC\dodomatrixNC \def\NR{\endmath\global\let\domatrixNC\dodomatrixNC\crcr}% \normalbaselines \mathsurround\zeropoint \everycr\emptytoks \tabskip\zeropoint \eqaligncolumn\zerocount \processcommacommand[\mathmatrixparameter\c!align]{\advance\eqaligncolumn\plusone\dosetmatrixcolumn}% \scratchcounter=\ifnum\eqaligncolumn\zerocount \eqaligncolumn \else \plusone \fi \global\eqaligncolumn\plusone \preparemathmatrix } % uses scratchcounter \protect \definetypeface[mainface] [rm] [serif] [times] [default] [encoding=texnansi] \definetypeface[mainface] [mm] [math] [modern] [modern] [encoding=texnansi] \setupbodyfont[mainface,11pt] \definemathmatrix[mycases][left={\left\{\,},right={\,\right.}] \definemathmatrix[aligned][n=3,align={right,left,left},distance=4pt] \definemathmatrix[alignedfour][n=4,align={left,middle,left,right}] \startbuffer \startformula \startalignedfour[left={\left\{},right={\right\}}] \NC left \NC middle \NC left \NC right \NR \NC aaa \NC = \NC 0 \NC |x| 0 \NR \NC \NC = \NC 1 \NC |x| 0 \NR \NC bbb \NC = \NC 2 \NC bb \NR \NC bb \NC = \NC 3 \NC ccc \NR \stopalignedfour \stopformula \startformula \startmycases[n=4,align={left,middle,middle,right},distance=1em] \NC left \NC middle \NC middle \NC right \NR \NC aa \NC ba \NC \NC d \NR \NC a \NC bbb \NC c \NC ddd \NR \stopmycases \stopformula \startformula \startaligned[left={\left.},right={\right\}}] \NC (\lambda + \mu ) \cdot a \NC = \NC \lambda \cdot a + \mu \cdot a \NR \NC \lambda ( a + b ) \NC = \NC \lambda \cdot a + \lambda \cdot b \NR \stopaligned \quad \text{(distributieve eigenschappen)} \stopformula \stopbuffer \starttext Test user defined math matrices without a section (with Aditya's fix) \blank Math matrix alignment works. \getbuffer \section{Test user defined math matrices but after a section (with Aditya's fix)} Math matrix alignment broken \getbuffer \page \section{Default math characters} \showmathcharacters \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] extra math symbols and alignment (WORKS)
Hi Aditya, You don't have to check the font stuff. Everything works (alignment and the fonts) :-) Thanks for your all help. Wim Hi Wim, Quoting WN [EMAIL PROTECTED]: I tried the new code you send me, and of course I did a quick test. But when doing a texmfstart texexec --autopdf --pdf testalignfontnew.tex texexec hangs ''forever'' while trying to process the \section{} command. Actually its pdftex trying to do something. To make sure I did not make a edit mistake, I copied my old test code into the file testalignfontnew.tex and run a diff to see where the difference with the new code are. Looking at the code (and I am not a Tex expert, and forgive me, when I ask a dumb question) I don't see where the \scratchcounter itself is defined ? Must surely be a global Context counter ? Yes. \scratchcounter is defined in syst-gen (IIRC). So are a bunch of other temporary variables. Attached the new test code. Hope it helps the debugging process and thanks for all your help sofar. I can not really check the font stuff, since I do not have txfonts and rsfs on this machine. But the matrix alignment appears to be working fine. I am attaching the test for just the matrix alignment. When I get home, I will try to see what goes wrong when you add other fonts. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___