Re: [NTG-context] Unwanted change of paper size; extra opt for \externalfigure
On 2011-06-08 Procházka Lukáš Ing. - Pontex s. r. o. wrote: > Wouldn't be good to have an option "rotation" (among > "scale", "factor", width"...) to rotate the inserted > figure, at least in multiples of 90 degrees? To allow > something like: > > \externalfigure[Model.pdf][width=180mm,rotation=-90] Rotation and clipping is implemented as separate commands, I don't know about the reason, not to have them as well in \externalfigure. But it's implemented in \placefigure. Beware: \placefigure bites you if you provide negative angles ;) \placefigure[270][]{none}{\externalfigure[Model.pdf]} Marco ___ 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] [metafun] MPenvironment / font switching
On 2011-06-09 <23:31:49>, Wolfgang Schuster wrote: > > Am 09.06.2011 um 23:20 schrieb Philipp Gesang: > > · > > > > \startMPenvironment %[global] > > \switchtobodyfont[sans] > > %\setupbodyfont[sans] > > \stopMPenvironment > > > > %\start\setupbodyfont[sans] > > \startuseMPgraphic{bg} > > verbatimtex \setupbodyfont[sans] etex ; > > draw btex I wanna get rid of those serifs! etex > >xysized (21cm, 5cm) withcolor blue ; > > \stopuseMPgraphic > > > > \definelayer[bg][x=0,y=0,width=\paperwidth,height=\paperheight] > > \setlayer[bg]{% > > %\setupbodyfont[sans] > > \useMPgraphic{bg} > > } > > \setupbackgrounds[paper][background=bg] > > \setupbackgrounds[state=repeat] > > %\stop > > > > \starttext > > \dorecurse{42}{I’d really like to keep my serifs! } > > \stoptext > > > > · > ConTeXt postpones fontloading till \starttext, as you won’t get any > text for elements (e.g. layers) which are set before the font was loaded > the typewriter font is used as fallback and this is what you get. > > Add “\setupbodyfont[modern]” before your layer settings and switch > the style in the MP graphic with “… btex \ss I wanna get rid … etex …”. Thanks a lot, this does indeed achieve what I intended. Philipp > 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 > ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpDeMg827i77.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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [metafun] MPenvironment / font switching
Am 09.06.2011 um 23:20 schrieb Philipp Gesang: > Hi all, > > I’m struggling with the font used in metapost. The only way to > actually change it appears to be enclosing the mp graphic in two > statements of \setupbodyfont[…] -- which I need to avoid. In the > following example, the background text should be typeset (drawn) > as lm sans, whereas the main font should be left untouched > (serif). > > · > > \startMPenvironment %[global] > \switchtobodyfont[sans] > %\setupbodyfont[sans] > \stopMPenvironment > > %\start\setupbodyfont[sans] > \startuseMPgraphic{bg} > verbatimtex \setupbodyfont[sans] etex ; > draw btex I wanna get rid of those serifs! etex >xysized (21cm, 5cm) withcolor blue ; > \stopuseMPgraphic > > \definelayer[bg][x=0,y=0,width=\paperwidth,height=\paperheight] > \setlayer[bg]{% > %\setupbodyfont[sans] > \useMPgraphic{bg} > } > \setupbackgrounds[paper][background=bg] > \setupbackgrounds[state=repeat] > %\stop > > \starttext > \dorecurse{42}{I’d really like to keep my serifs! } > \stoptext > > · > > Wrapping the mp code inside a group is fatal. > \[start|stop]MPenvironment doesn’t seem to have an effect at all > unless called with the “global” flag -- in which case it will > change the main body font as well. Also, inside mp’s > “[verbatim|b]tex ... etex” font switches refuse to work. > > I’m really puzzled here, any hints? Thanks in advance ConTeXt postpones fontloading till \starttext, as you won’t get any text for elements (e.g. layers) which are set before the font was loaded the typewriter font is used as fallback and this is what you get. Add “\setupbodyfont[modern]” before your layer settings and switch the style in the MP graphic with “… btex \ss I wanna get rid … etex …”. 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] \Context bug?
Am 09.06.2011 um 23:13 schrieb Vedran Miletić: > Hi, > > is it intentional that > > \starttext > \Context > \stoptext > > makes context (mkiv, haven't tried mkii) hang indefinitely? > > I'm using latest beta. Change this in font-ini.mkiv: %\unexpanded\def\getscaledglyph #1#2#3{{\setscaledstyledsymbolicfont{#1}{#2}\doifnumberelse{#3}\char\donothing#3}} \unexpanded\def\getscaledglyph #1#2#3{{\setscaledstyledsymbolicfont\fontbody{#1}{#2}\doifnumberelse{#3}\char\donothing#3}} Better use \ConTeXt or \CONTEXT, \Context is only a variation of the logo which isn’t used anywhere. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [metafun] MPenvironment / font switching
Hi all, I’m struggling with the font used in metapost. The only way to actually change it appears to be enclosing the mp graphic in two statements of \setupbodyfont[…] -- which I need to avoid. In the following example, the background text should be typeset (drawn) as lm sans, whereas the main font should be left untouched (serif). · \startMPenvironment %[global] \switchtobodyfont[sans] %\setupbodyfont[sans] \stopMPenvironment %\start\setupbodyfont[sans] \startuseMPgraphic{bg} verbatimtex \setupbodyfont[sans] etex ; draw btex I wanna get rid of those serifs! etex xysized (21cm, 5cm) withcolor blue ; \stopuseMPgraphic \definelayer[bg][x=0,y=0,width=\paperwidth,height=\paperheight] \setlayer[bg]{% %\setupbodyfont[sans] \useMPgraphic{bg} } \setupbackgrounds[paper][background=bg] \setupbackgrounds[state=repeat] %\stop \starttext \dorecurse{42}{I’d really like to keep my serifs! } \stoptext · Wrapping the mp code inside a group is fatal. \[start|stop]MPenvironment doesn’t seem to have an effect at all unless called with the “global” flag -- in which case it will change the main body font as well. Also, inside mp’s “[verbatim|b]tex ... etex” font switches refuse to work. I’m really puzzled here, any hints? Thanks in advance Philipp pgpLHqqfA6WRe.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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Digits-Module in tabulate does not work
Am 09.06.2011 um 23:00 schrieb yoraxe: > Thanks. That was very easy. But where do I have to put the \NN when I use > something like > > (30 \pm 3)e-3 > > ? The \NN command is place of the \NC command and adding another one will only start a new column. > I guess the \pm has to be in $$. If I type > > \NN (30$\pm$3)e-3 > > there's 'e-3' in the pdf-file again. The \NN somewhere between the digit > only creates a big space (new column). > > Sorry for being so slow on the uptake. The \NN column expects a valid \digits argument but your code isn’t supported. You can now resort to math mode or write your own digits code. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \Context bug?
Hi, is it intentional that \starttext \Context \stoptext makes context (mkiv, haven't tried mkii) hang indefinitely? I'm using latest beta. Vedran ___ 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] Digits-Module in tabulate does not work
Am 09.06.2011 22:31, schrieb Wolfgang Schuster: > Am 09.06.2011 um 22:24 schrieb yoraxe: > > >> Hi, >> >> I'm using the digit-module and enjoy, that I get a nice output using the >> following: >> >> \starttext >> \digits{30e-3} >> \stoptext >> >> instead of >> >> \starttext >> $30 \cdot 10^{-3}$ or $30 ⋅ 10^{-3}$ >> \stoptext >> >> But now I'm wondering why this module does not work in the >> tabulate-environment with: >> >> \starttabulate[|l|l] >> \HL >> \NC first \NC second \AR >> \HL >> \NC \digits{30e-3}\NC \digits{30e+3} \AR >> \HL >> \stoptabulate >> >> In the pdf-file now appears only 30e-3. >> > \starttext > > \starttabulate[|l|l|] > \HL > \NC first \NC second \NC\NR > \HL > \NN 30e-3 \NN 30e+3 \NC\NR > \HL > \stoptabulate > > \stoptext > > Wolfgang > Thanks. That was very easy. But where do I have to put the \NN when I use something like (30 \pm 3)e-3 ? I guess the \pm has to be in $$. If I type \NN (30$\pm$3)e-3 there's 'e-3' in the pdf-file again. The \NN somewhere between the digit only creates a big space (new column). Sorry for being so slow on the uptake. Yoraxe ___ 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] Digits-Module in tabulate does not work
Am 09.06.2011 um 22:24 schrieb yoraxe: > Hi, > > I'm using the digit-module and enjoy, that I get a nice output using the > following: > > \starttext > \digits{30e-3} > \stoptext > > instead of > > \starttext > $30 \cdot 10^{-3}$ or $30 ⋅ 10^{-3}$ > \stoptext > > But now I'm wondering why this module does not work in the > tabulate-environment with: > > \starttabulate[|l|l] > \HL > \NC first \NC second \AR > \HL > \NC \digits{30e-3}\NC \digits{30e+3} \AR > \HL > \stoptabulate > > In the pdf-file now appears only 30e-3. \starttext \starttabulate[|l|l|] \HL \NC first \NC second \NC\NR \HL \NN 30e-3 \NN 30e+3 \NC\NR \HL \stoptabulate \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Digits-Module in tabulate does not work
Hi, I'm using the digit-module and enjoy, that I get a nice output using the following: \starttext \digits{30e-3} \stoptext instead of \starttext $30 \cdot 10^{-3}$ or $30 ⋅ 10^{-3}$ \stoptext But now I'm wondering why this module does not work in the tabulate-environment with: \starttabulate[|l|l] \HL \NC first \NC second \AR \HL \NC \digits{30e-3}\NC \digits{30e+3} \AR \HL \stoptabulate In the pdf-file now appears only 30e-3. Thanks, Yoraxe ___ 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] Again Cambria after updating to latest beta
Thank you so much Taco, it works with your tips! Willi On 9 Jun 2011, at 13:43, Taco Hoekwater wrote: > > > On 06/09/11 08:31, Willi Egger wrote: >> Hi all, >> >> Yesterday evening I was quite happy that after deleting and regenerating the >> cache and the formats I had Cambria up and running. >> >> This morning I updated Context to the latest beta. - Eventhough I generated >> the formats manually with context --make, I get the problem referred to >> yesterday. What I get you can see in the by the list administrator released >> mail from yesterday. >> >> I am stymied. > > Steps to fix this: > > 1. rename CAMBRIA.TTC to cambria.ttc > 2. empty the font cache. > > The effect you see is a 2.048 shrink factor, and that happens > probably because context does not recognize .TTC as a TrueType > font with 2048 units. > > 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 > ___ ___ 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] Getting arguments by Lua
On Thu, Jun 09 2011, Procházka Lukáš Ing. - Pontex s. r. o. wrote: > but I'd need to get also the source file name ("Source.mkiv") and the option > ("--result" -> "Result.pdf"). \starttext result (lua): \ctxlua{context(environment.outputfilename)}\par result (tex): \systemparameter{file} \stoptext -- Peter ___ 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] beta
On Jun 9, 2011, at 12:56 PM, Hans Hagen wrote: > Its a chicken-egg problem when to expand some of them. I uploaded a beta that > makes a destinction: > > > \xmlsetentity{thinspace-a}{\,} > \xmltexentity{thinspace-b}{\,} Great, xmltexentity does what I need - it's just that the interface has changed, so I need to adapt a few dozens xml styles... Thanks, and 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] Getting arguments by Lua
OK, thanks both for the answers. Lukas On Thu, 09 Jun 2011 13:57:27 +0200, Taco Hoekwater wrote: On 06/09/11 13:41, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, when I run context by e.g.: context.exe Source.mkiv --result=Result.pdf --mode=Mode is it possible to access the command line arguments from Lua? the 'environment' table has information about this stuff. In particular, environment.rawarguments matches the table that lua calls 'arg'. \directlua{print (table.serialize(environment.rawarguments))} Best wishes, Taco I think the tables document.arguments and documents.files might also be of interest. Regards. -- Cédric ___ 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] PDF X/1-a:2001
On 9-6-2011 2:30, John Culleton wrote: It has been suggested that Context can create this format, which is required by some printers for color work. Any info on X/1-a:2001? http://wiki.contextgarden.net/PDFX - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] PDF X/1-a:2001
It has been suggested that Context can create this format, which is required by some printers for color work. Any info on X/1-a:2001? -- John Culleton "Create Book Covers with Scribus" www.lybrary.com/create-book-covers-with-scribus-p-74177.html ___ 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] Getting arguments by Lua
Hello, I think the tables document.arguments and documents.files might also be of interest. Regards. -- Cédric 2011/6/9 Taco Hoekwater : > > > On 06/09/11 13:41, Procházka Lukáš Ing. - Pontex s. r. o. wrote: >> Hello, >> >> when I run context by e.g.: >> >> context.exe Source.mkiv --result=Result.pdf --mode=Mode >> >> is it possible to access the command line arguments from Lua? > > the 'environment' table has information about this stuff. > > In particular, environment.rawarguments matches the table > that lua calls 'arg'. > > \directlua{print (table.serialize(environment.rawarguments))} > > > 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 > ___ > ___ 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] Getting arguments by Lua
On 06/09/11 13:41, Procházka Lukáš Ing. - Pontex s. r. o. wrote: > Hello, > > when I run context by e.g.: > > context.exe Source.mkiv --result=Result.pdf --mode=Mode > > is it possible to access the command line arguments from Lua? the 'environment' table has information about this stuff. In particular, environment.rawarguments matches the table that lua calls 'arg'. \directlua{print (table.serialize(environment.rawarguments))} 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] Again Cambria after updating to latest beta
On 06/09/11 08:31, Willi Egger wrote: > Hi all, > > Yesterday evening I was quite happy that after deleting and regenerating the > cache and the formats I had Cambria up and running. > > This morning I updated Context to the latest beta. - Eventhough I generated > the formats manually with context --make, I get the problem referred to > yesterday. What I get you can see in the by the list administrator released > mail from yesterday. > > I am stymied. Steps to fix this: 1. rename CAMBRIA.TTC to cambria.ttc 2. empty the font cache. The effect you see is a 2.048 shrink factor, and that happens probably because context does not recognize .TTC as a TrueType font with 2048 units. 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] Getting arguments by Lua
Hello, when I run context by e.g.: context.exe Source.mkiv --result=Result.pdf --mode=Mode is it possible to access the command line arguments from Lua? I'm aware that modes are accessible by 'tex.modes' ('tex.modes.Mode' gives 'true' in this case); but I'd need to get also the source file name ("Source.mkiv") and the option ("--result" -> "Result.pdf"). Is it possible anyhow? Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ 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] beta
On 9-6-2011 1:15, Li Yanrui (李延瑞) wrote: It seems that luatex-plain.tex has been not exist in minimals for a long time. ah, i see; on my machine it's called luatex.tex; will be in the next beta \input plain \directlua {tex.enableprimitives('', tex.extraprimitives())} \pdfoutput=1 \everyjob \expandafter {% \the\everyjob \input luatex-basics\relax \input luatex-fonts\relax \input luatex-mplib\relax } \edef\fmtversion{\fmtversion+luatex} \dump 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] beta
2011/6/9 Hans Hagen : > On 9-6-2011 3:38, Li Yanrui (李延瑞) wrote: >> >> 2011/6/9 Hans Hagen: >>> >>> Hi, >>> >>> I uploaded a beta. >>> >> >> The luatex-plain format has been broken. I use the following file to >> generate format. >> >> \input plain >> \directlua {tex.enableprimitives('', tex.extraprimitives())} >> \pdfoutput=1 >> \everyjob \expandafter {% >> \the\everyjob >> \input luatex-basics\relax >> \input luatex-fonts\relax >> \input luatex-mplib\relax >> } >> \edef\fmtversion{\fmtversion+luatex} >> \dump >> >> During luatex run I get an error: >> >> ! LuaTeX error >> ...pt/context/tex/texmf-context/tex/generic/context/luatex-fonts-merged.lua:2655: >> unexpected symbol near '. > > you should take luatex-plain.tex as example > It seems that luatex-plain.tex has been not exist in minimals for a long time. -- Best regards, Li Yanrui ___ 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] beta
On 9-6-2011 10:21, Thomas A. Schmitz wrote: Hi, here is another problem with the latest beta - this used to work, but maybe Hans has developed a different mechanism for it? \startbuffer[test] Hello&thinspace;World \stopbuffer \startxmlsetups xml:testsetups \xmlsetsetup{\xmldocument}{a}{xml:*} \stopxmlsetups \xmlregistersetup{xml:testsetups} \startxmlsetups xml:a \xmlflush{#1} \stopxmlsetups \xmlsetentity{thinspace}{\,} \starttext \xmlprocessbuffer{main}{test}{} \stoptext looks like something is going wrong with the catcodes in translating the xml, the \, is written to the output instead of processed. Its a chicken-egg problem when to expand some of them. I uploaded a beta that makes a destinction: \startbuffer[test] Hello&thinspace-a;World Hello&thinspace-b;World \stopbuffer \startxmlsetups xml:testsetups \xmlsetsetup{#1}{*}{xml:*} \stopxmlsetups \xmlregistersetup{xml:testsetups} \startxmlsetups xml:a \xmlflush{#1} \stopxmlsetups \xmlsetentity{thinspace-a}{\,} \xmltexentity{thinspace-b}{\,} \starttext \xmlprocessbuffer{main}{test}{} \stoptext - 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] Again Cambria after updating to latest beta
Am 09.06.2011 10:38, schrieb Willi Egger: Thanks for testing. It is a bit wired indeed. The difference between your and my installation is, that I have the font in the texmf-fonts/data directory. But I do not expect that this should make a difference. with the same location and latest context: voss@shania:/opt/context> pdffonts test-cambria-font.pdf name type emb sub uni object ID - --- --- --- - HSFUNO+Cambria CID TrueType yes yes yes 18 0 OLOUFX+CambriaMath CID TrueType yes yes yes 19 0 TOQRYC+CambriaMath CID TrueType yes yes yes 20 0 WHWAPV+TeXGyrePagella-RegularCID Type 0C yes yes yes 26 0 SNODLW+TeXGyrePagella-Italic Type 1yes yes no 27 0 WHZNSW+TeXGyrePagella-RegularCID Type 0C yes yes yes 28 0 SYFHWD+TeXGyrePagella-RegularCID Type 0C yes yes yes 29 0 HErbert ___ 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] Again Cambria after updating to latest beta
On 9-6-2011 9:13, Willi Egger wrote: Okay, please refer to the attached test-file and the log after deleting the font-cache. I hope this might shed light on the matter. your log mentions cambria math so can you send me the pdf file? - 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] Again Cambria after updating to latest beta
On 9-6-2011 9:13, Willi Egger wrote: Okay, please refer to the attached test-file and the log after deleting the font-cache. I hope this might shed light on the matter. it looks like your document does not use cambriamath but just cambria - 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] can't set simplified chinese font
On 06/09/11 10:58, m00nlight wrote: > After I reinstall my system fedora 15 and install the latest context > > mtx-context | main context file: > /opt/context/tex/texmf-context/tex/context/base/context.mkiv > mtx-context | current version: 2011.06.09 00:59 > > I want to use context to produce simplified chinese document as before, > I set the OSFONTDIR=/usr/share/fonts/adobe > > and run the command : |mtxrun --script fonts --reload > to generate the fonts for use. But it seem have no efforts as before, > because I could not find the font adobesongstd use command mtxrun > --script fonts --list --pattern=* --all. But I can see the font use system > fc-list command, What's the problem and how can I fix it Is AdobeSongStd-Light.otf indeed in or under /usr/share/fonts/adobe ? IIRC, it is usually somewhere else (below the AR installation dir). 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] can't set simplified chinese font
After I reinstall my system fedora 15 and install the latest context mtx-context | main context file: /opt/context/tex/texmf-context/tex/context/base/context.mkiv mtx-context | current version: 2011.06.09 00:59 I want to use context to produce simplified chinese document as before, I set the OSFONTDIR=/usr/share/fonts/adobe and run the command :mtxrun --script fonts --reload to generate the fonts for use. But it seem have no efforts as before, because I could not find the font adobesongstd use command mtxrun --script fonts --list --pattern=* --all. But I can see the font use system fc-list command, What's the problem and how can I fix it. Thanks. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Again Cambria after updating to latest beta
Hi Otared, Thanks for testing. It is a bit wired indeed. The difference between your and my installation is, that I have the font in the texmf-fonts/data directory. But I do not expect that this should make a difference. Willi On 9 Jun 2011, at 10:18, Otared Kavian wrote: > Hi Willi, > > I tested your file and now I observe that the math italic font in Cambria is > not used correctly (with ConTeXt version 2011.06.09 00:59 MKIV). You can see > my PDF output at > > http://dl.dropbox.com/u/4316076/cambria-font-test-willy-1.pdf > > Best regards: OK > > On 9 juin 2011, at 09:13, Willi Egger wrote: > >> Okay, please refer to the attached test-file and the log after deleting the >> font-cache. >> I hope this might shed light on the matter. >> >> >> Kind regards >> >> Willi >> >> On 9 Jun 2011, at 09:01, Hans Hagen wrote: >> >>> On 9-6-2011 8:31, Willi Egger wrote: Hi all, Yesterday evening I was quite happy that after deleting and regenerating the cache and the formats I had Cambria up and running. This morning I updated Context to the latest beta. - Eventhough I generated the formats manually with context --make, I get the problem referred to yesterday. What I get you can see in the by the list administrator released mail from yesterday. I am stymied. >>> >>> >>> we need a better test (+log) then >>> >>> - >>>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 >>> ___ >> >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> ___ > > %% > Otared Kavian > Département de Mathématiques > Université de Versailles Saint-Quentin > Bâtiment Fermat > 45 avenue des Etats Unis > 78035 Versailles cedex > > Téléphone: +33 1 39 25 46 42 > Secrétariat: +33 1 39 25 46 44 > Secrétariat: +33 1 39 25 46 46 > > e-mail: otared.kav...@math.uvsq.fr > > > > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] beta
Hi, here is another problem with the latest beta - this used to work, but maybe Hans has developed a different mechanism for it? \startbuffer[test] Hello&thinspace;World \stopbuffer \startxmlsetups xml:testsetups \xmlsetsetup{\xmldocument}{a}{xml:*} \stopxmlsetups \xmlregistersetup{xml:testsetups} \startxmlsetups xml:a \xmlflush{#1} \stopxmlsetups \xmlsetentity{thinspace}{\,} \starttext \xmlprocessbuffer{main}{test}{} \stoptext looks like something is going wrong with the catcodes in translating the xml, the \, is written to the output instead of processed. 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] Again Cambria after updating to latest beta
Hi Willi, I tested your file and now I observe that the math italic font in Cambria is not used correctly (with ConTeXt version 2011.06.09 00:59 MKIV). You can see my PDF output at http://dl.dropbox.com/u/4316076/cambria-font-test-willy-1.pdf Best regards: OK On 9 juin 2011, at 09:13, Willi Egger wrote: > Okay, please refer to the attached test-file and the log after deleting the > font-cache. > I hope this might shed light on the matter. > > > Kind regards > > Willi > > On 9 Jun 2011, at 09:01, Hans Hagen wrote: > >> On 9-6-2011 8:31, Willi Egger wrote: >>> Hi all, >>> >>> Yesterday evening I was quite happy that after deleting and regenerating >>> the cache and the formats I had Cambria up and running. >>> >>> This morning I updated Context to the latest beta. - Eventhough I generated >>> the formats manually with context --make, I get the problem referred to >>> yesterday. What I get you can see in the by the list administrator released >>> mail from yesterday. >>> >>> I am stymied. >> >> >> we need a better test (+log) then >> >> - >> 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 >> ___ > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ %% Otared Kavian Département de Mathématiques Université de Versailles Saint-Quentin Bâtiment Fermat 45 avenue des Etats Unis 78035 Versailles cedex Téléphone: +33 1 39 25 46 42 Secrétariat: +33 1 39 25 46 44 Secrétariat: +33 1 39 25 46 46 e-mail: otared.kav...@math.uvsq.fr ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Again Cambria after updating to latest beta
On 9-6-2011 8:31, Willi Egger wrote: Hi all, Yesterday evening I was quite happy that after deleting and regenerating the cache and the formats I had Cambria up and running. This morning I updated Context to the latest beta. - Eventhough I generated the formats manually with context --make, I get the problem referred to yesterday. What I get you can see in the by the list administrator released mail from yesterday. I am stymied. we need a better test (+log) then - 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 ___