Re: [NTG-context] Capital number when onum=yes?
On Mon, May 11, 2009 at 08:35:12AM +0200, Wolfgang Schuster wrote: > > Am 10.05.2009 um 18:25 schrieb Corsair: > > > Hi all, > > > > I have `onum=yes' in my font features and it works great. But how can > > I type a capital number in this case? I want to use capital numbers > > in pagenumbers. > > Something like (untested): > > \definefontfeature[header][default][lnum=yes] > > \definefont[HeaderStyle][Serif][features=header] > > \setupheader[style=HeaderStyle] This works great! Thanks! -- There is no emotion; there is peace. There is no ignorance; there is knowledge. There is no passion; there is serenity. There is no death; there is the Force. pgptTK0UoFvWr.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Capital number when onum=yes?
On May 11, 2009, at 8:39 AM, Corsair wrote: Thanks you for the reply! But it doesn't work for me, because small cap numbers in Adobe Caslon Pro are themselves old-style... I don't use XeTeX, but this works in mkiv: \definefontfeature [mydefault] [mode = node ,script=latn,language=dflt,liga=yes,onum=yes,kern=yes,tlig=yes,trep=yes] \definefontfeature [mycaps] [mode =node,script=latn,language=dflt,liga=yes,lnum=yes,kern=yes,smcp=yes] \starttypescript [serif] [caslon] \definefontsynonym [Caslon-Roman] [name:acaslonproregular] [features=mydefault] \definefontsynonym [Caslon-Bold] [name:acaslonprobold] [features=mydefault] \definefontsynonym [Caslon-Italic] [name:acaslonproitalic] [features=mydefault] \definefontsynonym [Caslon-Bold-Italic] [name:acaslonprobolditalic] [features=mydefault] \definefontsynonym [Caslon-SmallCaps] [name:acaslonproregular] [features=mycaps] \stoptypescript \starttypescript [serif] [caslon] \definefontsynonym [Serif] [Caslon-Roman] [features=mydefault] \definefontsynonym [SerifItalic] [Caslon-Italic] [features=mydefault] \definefontsynonym [SerifBold] [Caslon-Bold] [features=mydefault] \definefontsynonym [SerifBoldItalic] [Caslon-Bold-Italic] [features=mydefault] \definefontsynonym [SerifCaps] [Caslon-SmallCaps] [features=mycaps] \stoptypescript \starttypescript [Caslon] \definetypeface [Caslon] [rm] [serif] [caslon] [default] \stoptypescript \usetypescript[Caslon] \setupbodyfont[Caslon,12pt] \starttext These are oldstyle: 1 2 3 4 5 6 7 8 9 0 {\sc These are not: 1 2 3 4 5 6 7 8 9 0} \stoptext HTH 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] Capital number when onum=yes?
On Mon, May 11, 2009 at 08:13:59AM +0200, Thomas A. Schmitz wrote: > Not sure if this is the canonical way, but here's how I do it: If I > have onum=yes enabled for my normal Roman font, I disable it for my > smallcaps variant and set page numbers etc as \sc. Or am I > misunderstanding something? Thanks you for the reply! But it doesn't work for me, because small cap numbers in Adobe Caslon Pro are themselves old-style... -- There is no emotion; there is peace. There is no ignorance; there is knowledge. There is no passion; there is serenity. There is no death; there is the Force. pgpUFSMTu0X9O.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Capital number when onum=yes?
Am 2009-05-11 um 08:13 schrieb Thomas A. Schmitz: Ok. Sorry for the vagueness. I use Adobe Caslon Pro as my body font, with XeTeX. And I enable the `onum' feature so that all numbers in my document appear as old-style numbers, which is good. But I also prefer some of them use the normal capital number glyphs, for example, in page numbers. How can I do that? Not sure if this is the canonical way, but here's how I do it: If I have onum=yes enabled for my normal Roman font, I disable it for my smallcaps variant and set page numbers etc as \sc. Or am I misunderstanding something? Similarly you could define an additional variant, like "noos". http://wiki.contextgarden.net/Font_Variants (Didn't check if font variants work ok in MkIV; I used them only for light and medium weights before.) Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Capital number when onum=yes?
Am 10.05.2009 um 18:25 schrieb Corsair: Hi all, I have `onum=yes' in my font features and it works great. But how can I type a capital number in this case? I want to use capital numbers in pagenumbers. Something like (untested): \definefontfeature[header][default][lnum=yes] \definefont[HeaderStyle][Serif][features=header] \setupheader[style=HeaderStyle] 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] texts in \component files are not present
Am 2009-05-11 um 02:32 schrieb Wei-Wei Guo: 1. Don't use project files as top level file for your document, use product and components (which can be nested) files only, projects are meta file when you have many document with the same topic (e.g. a magazine etc.) A magazine is really one of my purposes. :) Then "the magazine" is your project, one issue is a product, one article is a component. For something similar I use a directory for the magazine and subdirectories per product; i.e. project and environment file reside in the main directory, product and component files in subdirs. ConTeXt looks for files always in parent directories, so the environment is always found, but the same component file names can occurr in several product dirs. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Opentype features
Am 10.05.2009 um 14:52 schrieb Arun Dev: Hello, I am using Context Mark II + XeTeX. I would like to know the following things. 1. How to use opentype font features. I tried the following code but it is not working. \definefontfeature[myfontfea][+onum] \definetypeface[Libertine][rm][Xserif][Linux Libertine O][default] [features=myfontfea] \setupbodyfont[Libertine,12pt] \definefontfeature[default][default][onum=yes] \definetypeface[Libertine][rm][Xserif][Linux Libertine O][default] \setupbodyfont[Libertine] 2. Is there an eqivalent code to the following XeLaTeX code. \defaultfontfeatures{Scale=MatchLowercase} Only when you port the fontspec package to ConTeXt. 3. How to use Cambria Math font to typeset math. MkII (XeTeX): Write the code to use OpenType math fonts and send it to Hans. MkIV (LuaTeX): \definetypeface[Libertine][mm][math][cambria][default] 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] Capital number when onum=yes?
On May 11, 2009, at 4:05 AM, Corsair wrote: Ok. Sorry for the vagueness. I use Adobe Caslon Pro as my body font, with XeTeX. And I enable the `onum' feature so that all numbers in my document appear as old-style numbers, which is good. But I also prefer some of them use the normal capital number glyphs, for example, in page numbers. How can I do that? Not sure if this is the canonical way, but here's how I do it: If I have onum=yes enabled for my normal Roman font, I disable it for my smallcaps variant and set page numbers etc as \sc. Or am I misunderstanding something? 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 ___
[NTG-context] Opentype features
Hello, I am using Context Mark II + XeTeX. I would like to know the following things. 1. How to use opentype font features. I tried the following code but it is not working. \definefontfeature[myfontfea][+onum] \definetypeface[Libertine][rm][Xserif][Linux Libertine O][default][features=myfontfea] \setupbodyfont[Libertine,12pt] 2. Is there an eqivalent code to the following XeLaTeX code. \defaultfontfeatures{Scale=MatchLowercase} 3. How to use Cambria Math font to typeset math. ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Capital number when onum=yes?
On Sun, May 10, 2009 at 09:44:58PM +0200, Hans Hagen wrote: > Corsair wrote: > > Hi all, > > > > I have `onum=yes' in my font features and it works great. But how can > > I type a capital number in this case? I want to use capital numbers > > in pagenumbers. > > can you be a bit more explicit? > > to what extend smallcaps are implemented is font dependent Ok. Sorry for the vagueness. I use Adobe Caslon Pro as my body font, with XeTeX. And I enable the `onum' feature so that all numbers in my document appear as old-style numbers, which is good. But I also prefer some of them use the normal capital number glyphs, for example, in page numbers. How can I do that? -- There is no emotion; there is peace. There is no ignorance; there is knowledge. There is no passion; there is serenity. There is no death; there is the Force. pgpOtl2Tqe55f.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] texts in \component files are not present
Wolfgang Schuster 写道: Text in component files are not included in the attached example. I also put the log file in it. The log shows that the component files were found and complied but their texts were not present in the generated pdf file. I'm not sure whether I did anything wrong in the example or not. I checked many time and didn't find anything. Works OK for me but I found a few you could/should change. 1. Don't use project files as top level file for your document, use product and components (which can be nested) files only, projects are meta file when you have many document with the same topic (e.g. a magazine etc.) A magazine is really one of my purposes. :) 2. You can write \usepath[kaka,leasure] in your environment files and write in test.tex \component leasure \component kaka ConTeXt looks now in both directories for the files leasure.tex and kaka.tex but take care to use unique filenames. After adding \usepath[kaka,leasure], the texts in \component present, but, as the caution you mentioned, since I have two files with the same name, i.e. mytime.tex, only the file in kaka/ is added and is added twice. Although \usepath can partly solve my problem, it limits flexibility. Best wishes, Wei-Wei ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] texts in \component files are not present
Hans Hagen 写道: Text in component files are not included in the attached example. I also put the log file in it. The log shows that the component files were found and complied but their texts were not present in the generated pdf file. I'm not sure whether I did anything wrong in the example or not. I checked many time and didn't find anything. runs ok here; It runs ok here too, but the texts, like "Text of leasure.", are not present. Actually the whole contents of \component files are missing. Do your generated pdf has lines like "Text of leasure." or "Text of kaka."? > i see cache filling in the log; does that happen each run? Do you mean the info in the log? The log info seems the same in each run. Best wishes, Wei-Wei ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] rscale in latest beta
On May 10, 2009, at 9:38 PM, Hans Hagen wrote: how do you use rscale? \definetypeface [] [rm] [serif] [times] [default] \definetypeface [] [ss] [sans] [helvetica] [default] [rscale=5] \starttext \setupbodyfont[] \rm test \ss test \stoptext works ok I think I have found the problem and a test file: the problem occurs when I define two fonts with different rscales. In this case, only the last defined rscale is taken into account, the other one is discarded. Here's the file: \usetypescript[times] \setupbodyfont[times,12pt] \definetypeface [one] [rm] [serif] [palatino] [default] [rscale=2] \definetypeface [two] [rm] [serif] [schoolbook] [default] [rscale=0.5] \starttext Hello world! \switchtobodyfont[one] One \switchtobodyfont[two] Two \stoptext If you switch the two \definetypeface lines, you'll see what I mean. And since my module defines both a font "greek" and "altgreek," each with its own rscale, that's why I was seeing it in my files and couldn't reproduce the error at first. Not easy to find... 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 ___
[NTG-context] \setupinteractions[option=max] (mkiv)
\setupinteractionscreen[option=max] no longer works under mkiv. Thanks, Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mframed (mkiv) bug
\mframed misbehaves under mkiv (latest minimals) minimal example: \setupcolors[state=start] \starttext \mframed[frame=off,background=color,backgroundcolor=yellow]{k_2 \propto \langle N \rangle^{\alpha}} \stoptext -> framed text, white background (works correctly under mkii: no frame, yellow background). Thanks, Additional question: might it be more general, syntactically, to replace \mframed{} by $\framed{}$ or \startformula\framed{}\stopformula (although I completely ignore the difficulties in modifying \framed{} to detect math mode...)? Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Capital number when onum=yes?
Corsair wrote: Hi all, I have `onum=yes' in my font features and it works great. But how can I type a capital number in this case? I want to use capital numbers in pagenumbers. can you be a bit more explicit? to what extend smallcaps are implemented is font dependent - 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] lots of luatex process/instances (ps xa| grep lua / top -----sort by memory)
2009/5/10, Amaël Broustet : > "killall luatex" and kill -15 PID does nothing. Don't use killall. Linux != Unix. Best Martin ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] rscale in latest beta
Thomas A. Schmitz wrote: On May 9, 2009, at 3:05 PM, Thomas A. Schmitz wrote: maybe Hans can say which files are likely to be the culprit so I can run a diff between these two versions? most likely font-ini.mkiv Hans Thanks Hans, I'll see if I can find anything! Thomas OK, first result: if I simply put my old font-ini.mkiv (2009.04.21) in place of the new one and regenerate the formats, rscale works again. I'll say if I can nail it down further. how do you use rscale? \definetypeface [] [rm] [serif] [times] [default] \definetypeface [] [ss] [sans] [helvetica] [default] [rscale=5] \starttext \setupbodyfont[] \rm test \ss test \stoptext works ok - 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] lots of luatex process/instances (ps xa| grep lua / top -----sort by memory)
> On a small example : ctrl+C works, ctrl+Z leaves unkillable (either -15 > or -1) luatex and texlua process. Again, that's because Ctrl+Z, in a normal Unix environment, only suspends the process, it never kills it. Try kill -19 first (SIGCONT), then kill -15 or -1. You can try the following experiment: run a small example file with an error and type Ctrl+Z. You may think you exited the process, but now type "fg". You should recover the LuaTeX run in the exact state you left it. It has not been killed. 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] lots of luatex process/instances (ps xa| grep lua / top -----sort by memory)
On a small example : ctrl+C works, ctrl+Z leaves unkillable (either -15 or -1) luatex and texlua process. kill -9 leaves zombies. killing the parent shell clean everything. Le dimanche 10 mai 2009 à 19:25 +0100, Mohamed Bana a écrit : > I've also noticed something along those lines. I've also found that > CTRL+Z/C doesn't really exit the program --- there are stale processes > still lying around. > > What I described is general, it tends to happen across big documents. > > Is this a known problem? > > � Broustet wrote: > > Dear context users, > > at first a lot of warm thanks for help and comments on using > > t-simpleslides. > > > > On a different matter, I now have the following problem : > > I do a lot of testing trying compiling my slides (using the following > > command : "context essai.tex"). Sometimes, I get errors and an > > interactive prompt that I kill with either ctrl+C or ctrl+Z (at random). > > > > I noticed that my computer was swapping (2Go RAM). > > With "ps xa | grep lua" I get 34 process. > > > > Using "top" and sorting by memory used the processes, I noticed 7 > > instances of luatex and 5 of texlua on the first page for a total of > > 800MB of resident memory. > > > > Did I miss something using context (I do "context essai.tex" each time > > that I want compile changes) ? > > > > "killall luatex" and kill -15 PID does nothing. > > > > > > Best, > > Amaël > > > > ___ > > If your question is of interest to others as well, please add an entry to > > the Wiki! > > > > 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 > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] lots of luatex process/instances (ps xa| grep lua / top -----sort by memory)
Thank you ! it's ok now. Le dimanche 10 mai 2009 à 20:14 +0200, Arthur Reutenauer a écrit : > > Sometimes, I get errors and an > > interactive prompt that I kill with either ctrl+C or ctrl+Z (at random). > > You shouldn't do that. Type 'x' at the error prompt, it makes > (Lua)TeX terminate. Ctrl+C sometimes isn't enough to kill LuaTeX, > though I have no idea why; as for Ctrl+Z, it never kills anything, it > sends the suspend signal (you should see the process status with top). > > > "killall luatex" and kill -15 PID does nothing. > > kill -1 is usually enough. > > 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 > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] lots of luatex process/instances (ps xa| grep lua / top -----sort by memory)
I've also noticed something along those lines. I've also found that CTRL+Z/C doesn't really exit the program --- there are stale processes still lying around. What I described is general, it tends to happen across big documents. Is this a known problem? � Broustet wrote: Dear context users, at first a lot of warm thanks for help and comments on using t-simpleslides. On a different matter, I now have the following problem : I do a lot of testing trying compiling my slides (using the following command : "context essai.tex"). Sometimes, I get errors and an interactive prompt that I kill with either ctrl+C or ctrl+Z (at random). I noticed that my computer was swapping (2Go RAM). With "ps xa | grep lua" I get 34 process. Using "top" and sorting by memory used the processes, I noticed 7 instances of luatex and 5 of texlua on the first page for a total of 800MB of resident memory. Did I miss something using context (I do "context essai.tex" each time that I want compile changes) ? "killall luatex" and kill -15 PID does nothing. Best, Amaël ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] lots of luatex process/instances (ps xa| grep lua / top -----sort by memory)
> Sometimes, I get errors and an > interactive prompt that I kill with either ctrl+C or ctrl+Z (at random). You shouldn't do that. Type 'x' at the error prompt, it makes (Lua)TeX terminate. Ctrl+C sometimes isn't enough to kill LuaTeX, though I have no idea why; as for Ctrl+Z, it never kills anything, it sends the suspend signal (you should see the process status with top). > "killall luatex" and kill -15 PID does nothing. kill -1 is usually enough. 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 ___
[NTG-context] lots of luatex process/instances (ps xa| grep lua / top -----sort by memory)
Dear context users, at first a lot of warm thanks for help and comments on using t-simpleslides. On a different matter, I now have the following problem : I do a lot of testing trying compiling my slides (using the following command : "context essai.tex"). Sometimes, I get errors and an interactive prompt that I kill with either ctrl+C or ctrl+Z (at random). I noticed that my computer was swapping (2Go RAM). With "ps xa | grep lua" I get 34 process. Using "top" and sorting by memory used the processes, I noticed 7 instances of luatex and 5 of texlua on the first page for a total of 800MB of resident memory. Did I miss something using context (I do "context essai.tex" each time that I want compile changes) ? "killall luatex" and kill -15 PID does nothing. Best, Amaël ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] texts in \component files are not present
Am 10.05.2009 um 17:29 schrieb Wei-Wei Guo: Dear all, Text in component files are not included in the attached example. I also put the log file in it. The log shows that the component files were found and complied but their texts were not present in the generated pdf file. I'm not sure whether I did anything wrong in the example or not. I checked many time and didn't find anything. Works OK for me but I found a few you could/should change. 1. Don't use project files as top level file for your document, use product and components (which can be nested) files only, projects are meta file when you have many document with the same topic (e.g. a magazine etc.) 2. You can write \usepath[kaka,leasure] in your environment files and write in test.tex \component leasure \component kaka ConTeXt looks now in both directories for the files leasure.tex and kaka.tex but take care to use unique filenames. 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] bugs in beta (footnotes)
Am 2009-05-07 um 20:04 schrieb Hans Hagen: Henning Hraban Ramm wrote: Thank you for the hints; I still don't understand what's the replacement for "way=bypage". no replacement, just the same -) But it doesn't work, it's always "bytext", i.e. numbering runs through from start to end. And the marks still don't show up in the text! (Latest minimals beta, 2009-05-10 18.30 MESZ) This is my test file: \setuphead[chapter][page=no] \setupheadertexts[text][chapter][pagenumber] \setupheader[text][state=start] \setupregister[index]% [n=2, balance=no, align=yes, alternative=A, indicator=yes, pagestyle=normal, location=right, style=type] \setupnote[footnote][way=bypage] % DOES NOTHING \starttext \dorecurse{20}{% \expanded{\chapter{My chapter \recurselevel}} \expanded{\index{Index entry \recurselevel}} \input zapf\expanded{\footnote{Zapf \recurselevel}} \input tufte\expanded{\footnote{Tufte \recurselevel}} } \completeindex % OK \completecontent[criterium=all] % OK \stoptext Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] Capital number when onum=yes?
Hi all, I have `onum=yes' in my font features and it works great. But how can I type a capital number in this case? I want to use capital numbers in pagenumbers. Thanks! Corsair Sun -- There is no emotion; there is peace. There is no ignorance; there is knowledge. There is no passion; there is serenity. There is no death; there is the Force. pgp1ZuaiWNP5X.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] rscale in latest beta
Thomas A. Schmitz wrote: On May 9, 2009, at 3:05 PM, Thomas A. Schmitz wrote: maybe Hans can say which files are likely to be the culprit so I can run a diff between these two versions? most likely font-ini.mkiv Hans Thanks Hans, I'll see if I can find anything! Thomas OK, first result: if I simply put my old font-ini.mkiv (2009.04.21) in place of the new one and regenerate the formats, rscale works again. I'll say if I can nail it down further. ok - 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] rscale in latest beta
On May 9, 2009, at 3:05 PM, Thomas A. Schmitz wrote: maybe Hans can say which files are likely to be the culprit so I can run a diff between these two versions? most likely font-ini.mkiv Hans Thanks Hans, I'll see if I can find anything! Thomas OK, first result: if I simply put my old font-ini.mkiv (2009.04.21) in place of the new one and regenerate the formats, rscale works again. I'll say if I can nail it down further. 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] texts in \component files are not present
Wei-Wei Guo wrote: Dear all, Text in component files are not included in the attached example. I also put the log file in it. The log shows that the component files were found and complied but their texts were not present in the generated pdf file. I'm not sure whether I did anything wrong in the example or not. I checked many time and didn't find anything. runs ok here; i see cache filling in the log; does that happen each run? - 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] setuptex changes in minimals
Yue Wang wrote: - It is ugly to produce a paragraph whose last line only consists one Chinese character. In order to avoid that, tex82 programmers should write very complicated macros. So many developers here tend to ignore this problem. However, in LuaTeX, this is quite easy. It is simple to scan the position before the punctuation and \par in lua, and insert a line break penalty there. ok, but it might even be more clever, like minimum number of glyphs on last line or so (and words in case of other scripts) - Punctuation compression. In the past this is not easy to do (a lot of macros should be defined), and because each Chinese fonts are so distinctly designed, their punctuations' positions in the character box are different. So different parameters should be applied when different fonts are involved in typesetting. However, LuaTeX make it possible to calculate character bounding box information, so punctuation compression is as easy as re-setting the punctuation width. i had code for that but removes it as fonts are pretty inconsistent; i will look into that again when we have (1) a couple of reference fonts without bugs in the tex distribution and (2) wiki pages with info about the quality of fonts (can later become a database); otherwise we end up in messy support situations But we (me, Li Yanrui, Chen Zhichu) as the board members of the Chinese TeX Society, will try our best to organized the typesetting discussion on local forums, taking different opinions into consideration, and later provide a complete specification as long as we can. that would be very helpful pace, we will have a very prospective solution near luatex 1.0:) sure - 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] \setbuffer
Wolfgang Schuster wrote: Am 14.02.2009 um 10:09 schrieb Wolfgang Schuster: Hi Hans, why is \setbuffer not defined as \long, I want to use it as part of a macro and need it to allow paragraphs as content. Can you change this? no need as \dosetbuffer is defined as \long and \setbuffer itself does not has any arguments - 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] texts in \component files are not present
Dear all, Text in component files are not included in the attached example. I also put the log file in it. The log shows that the component files were found and complied but their texts were not present in the generated pdf file. I'm not sure whether I did anything wrong in the example or not. I checked many time and didn't find anything. Best wishes, Wei-Wei test.tgz 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] Multiple letters
Dear Wolfgang, Many thanks! As usual you are clear and sharp… Your code works and does exactly what I need… Moreover I learned from it several "clean" tricks in order to use the way one can write macros in ConTeXt. I have just to understand different parts of the code in order to wikify it. Best regards: OK On 10 mai 09, at 15:01, Wolfgang Schuster wrote: Am 10.05.2009 um 14:32 schrieb Otared Kavian: Hi all, I have to write a letter to a few dozens candidates in which some parts are not identical. I may have the list of the persons, and the changing part for each of them in a file (named for instance "list-of-candidates.tex") on which each line corresponds to one person and the fields are sperated by commas (or any other suitable character). What would be the best way of coding this in ConTeXt? Here is the example I have in mind: %%% begin the body of the letter Dear \MmeOrSir\ \FirstName\ \FamilyName, We have received your application and we thank you for your interest in our institution. \AnswerToApplication. With our best regards, etc… %%% end the body of the letter The four commands \MmeOrSir, \FirstName, \FamilyName, \AnswerToApplication should correspond to the columns 1 through 4 of each line of the file "list-of-candidates.tex" as follows: %%% begin list-of-candidates.tex Madam , Joan , of Arc , {You will be interviewed very soon} Mr , Groucho , Marx , {We are sorry, but this position is only for non smoking candidates} \endinput %%% end list-of-candidates.tex Thank you for help: OK \unprotect \definemessageconstant {filecontents} \startmessages all library: filecontents title: filecontents 1: Overwriting file -- 2: Writing file -- \stopmessages \def\startfilecontents {\begingroup \protectbuffersfalse \dostartfilecontents} \def\dostartfilecontents[#1]% {\doiffileexistselse{#1} {\showmessage\m!filecontents{1}{#1}} {\showmessage\m!filecontents{2}{#1}}% \beforesplitstring#1\at.\to\filename \aftersplitstring #1\at.\to\extension \let\f!temporaryextension\extension \dostartbuffer[\filename][startfilecontents][stopfilecontents]} \def\stopfilecontents {\doifmode{mkiv}{\savebuffer[\filename]\ctxlua{file.copy("\jobname- \filename.tmp","\filename.\f!temporaryextension")}}% \endgroup} \ifx\savebuffer\undefined \def\savebuffer[#1] {\ctxlua{buffers.save("#1")}} \fi \protect \startfilecontents[data.dat] Madam, Joan, of Arc, {You will be interviewed very soon} Mr, Groucho, Marx, {We are sorry, but this position is only for non smoking candidates} \stopfilecontents \usemodule[database,letter] \define[4]\createletter {\startletter[opening={Dear #1 #2 #3,}] We have received your application and we thank you for your interest in our institution.\endgraf #4 \stopletter} \defineseparatedlist [LETTER] [command=\createletter, separator={,}] \starttext \processseparatedfile[LETTER][data.dat] \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] Multiple letters
Am 10.05.2009 um 14:32 schrieb Otared Kavian: Hi all, I have to write a letter to a few dozens candidates in which some parts are not identical. I may have the list of the persons, and the changing part for each of them in a file (named for instance "list- of-candidates.tex") on which each line corresponds to one person and the fields are sperated by commas (or any other suitable character). What would be the best way of coding this in ConTeXt? Here is the example I have in mind: %%% begin the body of the letter Dear \MmeOrSir\ \FirstName\ \FamilyName, We have received your application and we thank you for your interest in our institution. \AnswerToApplication. With our best regards, etc… %%% end the body of the letter The four commands \MmeOrSir, \FirstName, \FamilyName, \AnswerToApplication should correspond to the columns 1 through 4 of each line of the file "list-of-candidates.tex" as follows: %%% begin list-of-candidates.tex Madam , Joan , of Arc , {You will be interviewed very soon} Mr , Groucho , Marx , {We are sorry, but this position is only for non smoking candidates} \endinput %%% end list-of-candidates.tex Thank you for help: OK \unprotect \definemessageconstant {filecontents} \startmessages all library: filecontents title: filecontents 1: Overwriting file -- 2: Writing file -- \stopmessages \def\startfilecontents {\begingroup \protectbuffersfalse \dostartfilecontents} \def\dostartfilecontents[#1]% {\doiffileexistselse{#1} {\showmessage\m!filecontents{1}{#1}} {\showmessage\m!filecontents{2}{#1}}% \beforesplitstring#1\at.\to\filename \aftersplitstring #1\at.\to\extension \let\f!temporaryextension\extension \dostartbuffer[\filename][startfilecontents][stopfilecontents]} \def\stopfilecontents {\doifmode{mkiv}{\savebuffer[\filename]\ctxlua{file.copy("\jobname- \filename.tmp","\filename.\f!temporaryextension")}}% \endgroup} \ifx\savebuffer\undefined \def\savebuffer[#1] {\ctxlua{buffers.save("#1")}} \fi \protect \startfilecontents[data.dat] Madam, Joan, of Arc, {You will be interviewed very soon} Mr, Groucho, Marx, {We are sorry, but this position is only for non smoking candidates} \stopfilecontents \usemodule[database,letter] \define[4]\createletter {\startletter[opening={Dear #1 #2 #3,}] We have received your application and we thank you for your interest in our institution.\endgraf #4 \stopletter} \defineseparatedlist [LETTER] [command=\createletter, separator={,}] \starttext \processseparatedfile[LETTER][data.dat] \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 ___
[NTG-context] Multiple letters
Hi all, I have to write a letter to a few dozens candidates in which some parts are not identical. I may have the list of the persons, and the changing part for each of them in a file (named for instance "list-of- candidates.tex") on which each line corresponds to one person and the fields are sperated by commas (or any other suitable character). What would be the best way of coding this in ConTeXt? Here is the example I have in mind: %%% begin the body of the letter Dear \MmeOrSir\ \FirstName\ \FamilyName, We have received your application and we thank you for your interest in our institution. \AnswerToApplication. With our best regards, etc… %%% end the body of the letter The four commands \MmeOrSir, \FirstName, \FamilyName, \AnswerToApplication should correspond to the columns 1 through 4 of each line of the file "list-of-candidates.tex" as follows: %%% begin list-of-candidates.tex Madam , Joan , of Arc , {You will be interviewed very soon} Mr , Groucho , Marx , {We are sorry, but this position is only for non smoking candidates} \endinput %%% end list-of-candidates.tex Thank you for help: OK ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] \setbuffer
Am 14.02.2009 um 10:09 schrieb Wolfgang Schuster: Hi Hans, why is \setbuffer not defined as \long, I want to use it as part of a macro and need it to allow paragraphs as content. Can you change this? TIA, 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 ___