Re: [NTG-context] Using catcode table in MkII
On Thu, 27 May 2010 00:32:28 -0400, ntg-context-boun...@ntg.nl wrote: > Am 27.05.10 00:59, schrieb Aditya Mahajan: > > Hi, > > > > How do you use catcodetables in MkII. The following works fine in MkIV > > > > \unprotect > > \newcatcodetable\vimcatcodes > > > > \startcatcodetable \vimcatcodes > > \catcode`\^^I = \@@active > > \catcode`\^^M = \@@active > > \catcode`\^^L = \@@active > > \catcode`\= 12 > > \catcode`\^^Z = \@@ignore > > \stopcatcodetable > > \protect > > > > \starttext > > \pushcatcodetable\vimcatcodes > > hello > > \popcatcodetable > > \stoptext > > > > > > but gives > > > > ! Missing $ inserted. > > > > $ > > > >\vimcatcodes > > l.14 \pushcatcodetable\vimcatcodes > > > > > > in MkII (both pdftex and xetex). What am I missing? > > You need a entry for the backslash. Thanks. 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] Using catcode table in MkII
Am 27.05.10 00:59, schrieb Aditya Mahajan: Hi, How do you use catcodetables in MkII. The following works fine in MkIV \unprotect \newcatcodetable\vimcatcodes \startcatcodetable \vimcatcodes \catcode`\^^I = \@@active \catcode`\^^M = \@@active \catcode`\^^L = \@@active \catcode`\= 12 \catcode`\^^Z = \@@ignore \stopcatcodetable \protect \starttext \pushcatcodetable\vimcatcodes hello \popcatcodetable \stoptext but gives ! Missing $ inserted. $ \vimcatcodes l.14 \pushcatcodetable\vimcatcodes in MkII (both pdftex and xetex). What am I missing? You need a entry for the backslash. \newcatcodetable\vimcatcodes \startcatcodetable \vimcatcodes \catcode`\^^I = 13 \catcode`\^^M = 13 \catcode`\^^L = 13 \catcode`\= 10 \catcode`\^^Z = 9 \catcode`\\ = 0 \stopcatcodetable \starttext \pushcatcodetable \setcatcodetable\vimcatcodes hello \popcatcodetable \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] textbackground frame
Thankyou very much! > Date: Wed, 26 May 2010 18:12:54 -0400 > From: adit...@umich.edu > To: ntg-context@ntg.nl > Subject: Re: [NTG-context] textbackground frame > > On Wed, 26 May 2010, Horacio Suarez wrote: > > > > > hello all > > > > I was using this to have a framed text but now it's not working anymore, > > even in context live. > > > > what i'm missing? thankyou in advance. > > > > % > > \starttext > > > > \definetextbackground[marco][backgroundcolor=lightgray,background=color,frame=on,location=paragraph] > > > > \starttextbackground[marco] > > > > \input tufte > > > > \stoptextbackground > > > > \stoptext > > > > %%% > > Enable write18 or add \runMPgraphicsfalse. > > Search the archive for the reason. > > 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 > ___ _ Hotmail: Powerful Free email with security by Microsoft. https://signup.live.com/signup.aspx?id=60969___ 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] Using catcode table in MkII
Hi, How do you use catcodetables in MkII. The following works fine in MkIV \unprotect \newcatcodetable\vimcatcodes \startcatcodetable \vimcatcodes \catcode`\^^I = \@@active \catcode`\^^M = \@@active \catcode`\^^L = \@@active \catcode`\= 12 \catcode`\^^Z = \@@ignore \stopcatcodetable \protect \starttext \pushcatcodetable\vimcatcodes hello \popcatcodetable \stoptext but gives ! Missing $ inserted. $ \vimcatcodes l.14 \pushcatcodetable\vimcatcodes in MkII (both pdftex and xetex). What am I missing? 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] textbackground frame
On Wed, 26 May 2010, Horacio Suarez wrote: hello all I was using this to have a framed text but now it's not working anymore, even in context live. what i'm missing? thankyou in advance. % \starttext \definetextbackground[marco][backgroundcolor=lightgray,background=color,frame=on,location=paragraph] \starttextbackground[marco] \input tufte \stoptextbackground \stoptext %%% Enable write18 or add \runMPgraphicsfalse. Search the archive for the reason. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] textbackground frame
hello all I was using this to have a framed text but now it's not working anymore, even in context live. what i'm missing? thankyou in advance. % \starttext \definetextbackground[marco][backgroundcolor=lightgray,background=color,frame=on,location=paragraph] \starttextbackground[marco] \input tufte \stoptextbackground \stoptext %%% Horacio Suarez _ Hotmail: Free, trusted and rich email service. https://signup.live.com/signup.aspx?id=60969___ 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] gentium font doesn't work in latest current
Hi all, the current version doesn't work with the gentium font; it is displayed in a tiny size. Test file: \usetypescript[gentium] \starttext Hello \switchtobodyfont[gentium] World \stoptext I don't know if other fonts are affected as well; so far, I've only seen this with gentium. This used to work about two weeks ago. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] unknown script 'context.lua' or 'mtx-context.lua'
On 26-5-2010 12:34, Mojca Miklavec wrote: On Wed, May 26, 2010 at 12:25, Taco Hoekwater wrote: Mojca Miklavec wrote: Hans, why don't you add a special-case in this case: context test MTXrun | unknown script 'context.lua' or 'mtx-context.lua' Coincidence: Hans and I discussed this same thing just this morning. Wow, great :) Mindreading. Thanks a lot, Mojca PS (not to be taken too seriously): The second thought probably had to do with "if there's format version mismatch in mkii, write out some temporary file or some signal line in tuo file that triggers 'texexec --make' in the 'post-processing step' and thus eliminates the need to do it manually every time" or did I misinterpret the signal that came all the way from Netherlands? :) :) :) that needs a bit of thinking; in mkiv it's easier as there the engine runs context and context then determines it while in pdftex an old format and new engine does not come that far; what could be made to work is auto format making when there is a context update (and forget about the engine) 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] unknown script 'context.lua' or 'mtx-context.lua'
On 26-5-2010 12:20, Mojca Miklavec wrote: Hans, why don't you add a special-case in this case: context test MTXrun | unknown script 'context.lua' or 'mtx-context.lua' if 'context.lua' cannot be found then either: a) instead of printing out "unknown script 'context.lua'" print out "please run 'luatools --generate'" - it will be less confusing for users and then with any typo a generate? no fun b) or (may be even better) try to run "luatools --generate" automatically and then retry see email taco - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] context mkiv eats a table
On Wed, May 26 2010, Marius wrote: > > does somebody experience a situation then a table disappear in the > document? This is an ugly bug, but I can't narrow it to a simple case. When you need a lot of text, pages, floats and whatever to trigger this problem, then you can use commands like \dorecurse{100}{\input tufte} and so on. But in most cases you can end up with a minimal example of just 1-3 pages. Of course, it can take some time to reduce a complex document to a minimal example, but it's the best you can do, if you want a solution. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] context mkiv eats a table
Hello, does somebody experience a situation then a table disappear in the document? This is an ugly bug, but I can't narrow it to a simple case. Best Regards, Marius ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] fonts don´t get correct assigned i n layers
Am 26.05.10 17:55, schrieb Bernhard Rosensteiner: ah, i see. found already solution: another way is to force helvetica/heros in the ornament with 'style={\switchtobodyfont[heros]}', it's slower but doesn't depend on the bodyfont 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] fonts don´t get correct assigned i n layers
ah, i see. found already solution: \setuppagenumbering[state=stop] \defineornament[Bildbeschriftung][alternative=b,preset=lefttop][style=sstf] %font assignement in style key don´t bleed through in layers \definelayer[deviation][width=\paperwidth, height=\paperheight, preset=lefttop] \startsetups deviation > \setlayer[deviation][hoffset=\backspace,voffset=4cm, hoffset=1cm]{\Bildbeschriftung{This should be Sansserif Helvetica}{\externalfigure[cow][height=.4\textheight]}} \stopsetups \setupbodyfont[termes,12pt] \starttext \setupbackgrounds[page][setups=deviation, background={deviation}] \Bildbeschriftung{This should be Sansserif Helvetica}{\externalfigure[cow][height=.4\textheight]}%here i get expected results (i.e. Helvetica) \stoptext best regards Bernhard Am 26.05.2010 um 15:59 schrieb Peter Rolf: > Am 26.05.2010 13:26, schrieb Bernhard Rosensteiner: >> Hello, >> please have a look at the following minimal example: >> >> >> \setuppagenumbering[state=stop] >> \defineornament[Bildbeschriftung][alternative=b,preset=lefttop][style=sstf] >> %font assignement in style key don´t bleed through in layers >> \definelayer[deviation][width=\paperwidth, height=\paperheight, >> preset=lefttop] >> >> \setlayer[deviation][hoffset=\backspace,voffset=4cm, >> hoffset=1cm]{\Bildbeschriftung{This should be Sansserif >> Helvetica}{\externalfigure[cow][height=.4\textheight]}} >> >> \setupbodyfont[termes,12pt] >> >> \starttext >> >> \setupbackgrounds[page][background={deviation}] >> >> \Bildbeschriftung{This should be Sansserif >> Helvetica}{\externalfigure[cow][height=.4\textheight]}%here i get expected >> results (i.e. Helvetica) >> >> \stoptext >> >> >> is this normal behaviour or a bug? > > normal behaviour. the bodyfont is set *after* the first stuff is already > written to the layer... > > Best wishes, Peter > >> i use ConTeXt ver: 2010.05.24 13:05 MKIV >> >> best regards >> Bernhard >> >> >> >> ___ >> 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 > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] fonts don´t get correct assigned in layers
Am 26.05.2010 13:26, schrieb Bernhard Rosensteiner: > Hello, > please have a look at the following minimal example: > > > \setuppagenumbering[state=stop] > \defineornament[Bildbeschriftung][alternative=b,preset=lefttop][style=sstf] > %font assignement in style key don´t bleed through in layers > \definelayer[deviation][width=\paperwidth, height=\paperheight, > preset=lefttop] > > \setlayer[deviation][hoffset=\backspace,voffset=4cm, > hoffset=1cm]{\Bildbeschriftung{This should be Sansserif > Helvetica}{\externalfigure[cow][height=.4\textheight]}} > > \setupbodyfont[termes,12pt] > > \starttext > > \setupbackgrounds[page][background={deviation}] > > \Bildbeschriftung{This should be Sansserif > Helvetica}{\externalfigure[cow][height=.4\textheight]}%here i get expected > results (i.e. Helvetica) > > \stoptext > > > is this normal behaviour or a bug? normal behaviour. the bodyfont is set *after* the first stuff is already written to the layer... Best wishes, Peter > i use ConTeXt ver: 2010.05.24 13:05 MKIV > > best regards > Bernhard > > > > ___ > 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] fonts don´t get correct assigned in layers
Hello, please have a look at the following minimal example: \setuppagenumbering[state=stop] \defineornament[Bildbeschriftung][alternative=b,preset=lefttop][style=sstf] %font assignement in style key don´t bleed through in layers \definelayer[deviation][width=\paperwidth, height=\paperheight, preset=lefttop] \setlayer[deviation][hoffset=\backspace,voffset=4cm, hoffset=1cm]{\Bildbeschriftung{This should be Sansserif Helvetica}{\externalfigure[cow][height=.4\textheight]}} \setupbodyfont[termes,12pt] \starttext \setupbackgrounds[page][background={deviation}] \Bildbeschriftung{This should be Sansserif Helvetica}{\externalfigure[cow][height=.4\textheight]}%here i get expected results (i.e. Helvetica) \stoptext is this normal behaviour or a bug? i use ConTeXt ver: 2010.05.24 13:05 MKIV best regards Bernhard ___ 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] unknown script 'context.lua' or 'mtx-context.lua'
On Wed, May 26, 2010 at 12:25, Taco Hoekwater wrote: > > Mojca Miklavec wrote: >> Hans, >> >> why don't you add a special-case in this case: >> >>> context test >> MTXrun | unknown script 'context.lua' or 'mtx-context.lua' > > Coincidence: Hans and I discussed this same thing just this morning. Wow, great :) Mindreading. Thanks a lot, Mojca PS (not to be taken too seriously): The second thought probably had to do with "if there's format version mismatch in mkii, write out some temporary file or some signal line in tuo file that triggers 'texexec --make' in the 'post-processing step' and thus eliminates the need to do it manually every time" or did I misinterpret the signal that came all the way from Netherlands? :) :) :) ___ 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] unknown script 'context.lua' or 'mtx-context.lua'
Mojca Miklavec wrote: > Hans, > > why don't you add a special-case in this case: > >> context test > MTXrun | unknown script 'context.lua' or 'mtx-context.lua' Coincidence: Hans and I discussed this same thing just this morning. > b) or (may be even better) try to run "luatools --generate" > automatically and then retry We decided we want b) but only if there is no database at all yet (to avoid lengthy processing of mtxrun --script fnts) 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] unknown script 'context.lua' or 'mtx-context.lua'
Hans, why don't you add a special-case in this case: > context test MTXrun | unknown script 'context.lua' or 'mtx-context.lua' if 'context.lua' cannot be found then either: a) instead of printing out "unknown script 'context.lua'" print out "please run 'luatools --generate'" - it will be less confusing for users b) or (may be even better) try to run "luatools --generate" automatically and then retry I guess that there is some not-too-difficult way to figure out from within mtxrun that no database exists yet. 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] startxmlsetups escaping a ":"?
Johannes Graumann wrote: > Hi, > > How do I escape a ":" in an > \startxmlsetups > ? > the element is actually called "text:p" and does not refer to Just in case this helps: in xml, text:p refers to an element named 'p' in the namespace 'text'. 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] startxmlsetups escaping a ":"?
On 25-5-2010 11:27, Johannes Graumann wrote: Hi, How do I escape a ":" in an \startxmlsetups ? the element is actually called "text:p" and does not refer to something but to something This is the current MarkV Beta ... example needed ... namespaces should work ok - 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] Color tables in MKIV
On 26-5-2010 8:29, Peter Münster wrote: On Wed, May 26 2010, Hongwen Qiu wrote: Since I get black background for \BL(which is not gray) and get the following error for \CL in MKIV: Hans: "mkiv will have other ways to do this kind of hackery" See also: http://tracker.luatex.org/view.php?id=110 also, there was no test attached - 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 ___