Re: [NTG-context] Metapost question

2009-05-12 Thread Taco Hoekwater
Jean Magnan de Bornier wrote: Le 12 mai à 17:53:48 Taco Hoekwater écrit notamment: | I cannot reproduce this problem. To make sure it is not a mem file | version differencne, can you delete and regenerate mpost.mem ? I followed this, nothing better! Then I tried to delete also metafun.mem and

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
Hi, Hans: On Tue, May 12, 2009 at 11:22 PM, Hans Hagen wrote: > \setupbodyfont[myzhfont] \dorecurse{1}{{hello > {\switchtobodyfont[myzhfont] 你好}}\par} > so it's probably also an operating system issue (caching files in mem, disk > access etc) After debugging for half an hour in the morning,

Re: [NTG-context] ppchtex color

2009-05-12 Thread Hans Hagen
Alan BRASLAU wrote: i split ppchtex in mkii/mkiv (and included the fixes) so we can improve things eventually can you check if it still runs ok (beta zip on website) Hans Unzipped cont-tmf.zip on top of my minimals installation and ran context on my current working documents: system

Re: [NTG-context] ppchtex color

2009-05-12 Thread Alan BRASLAU
> i split ppchtex in mkii/mkiv (and included the fixes) so we can improve > things eventually > > can you check if it still runs ok (beta zip on website) > > Hans Works correctly (bonds in red, atoms in black): \usemodule[chemic] \setupchemical[rulecolor=red] \starttext \startchemical \

Re: [NTG-context] ppchtex color

2009-05-12 Thread Alan BRASLAU
> i split ppchtex in mkii/mkiv (and included the fixes) so we can improve > things eventually > > can you check if it still runs ok (beta zip on website) > > Hans Unzipped cont-tmf.zip on top of my minimals installation and ran context on my current working documents: system : module

Re: [NTG-context] ppchtex color

2009-05-12 Thread Hans Hagen
Alan BRASLAU wrote: No, ppchtex is not dead... i split ppchtex in mkii/mkiv (and included the fixes) so we can improve things eventually can you check if it still runs ok (beta zip on website) Hans -

Re: [NTG-context] ppchtex color

2009-05-12 Thread Hans Hagen
Alan BRASLAU wrote: No, ppchtex is not dead... I would like to use color. 1. color= and rulecolor= does not appear to be implemented (mkiv)... 2. how can one change the color of the bonds? 3. using \color[red]{} causes the text to be offset. "minimal" example: \setupcolors[state=start] \usemo

Re: [NTG-context] ppchtex color

2009-05-12 Thread Hans Hagen
Alan BRASLAU wrote: No, ppchtex is not dead... I would like to use color. 1. color= and rulecolor= does not appear to be implemented (mkiv)... 2. how can one change the color of the bonds? 3. using \color[red]{} causes the text to be offset. "minimal" example: \setupcolors[state=start] \usemo

Re: [NTG-context] ppchtex color

2009-05-12 Thread Hans Hagen
Alan BRASLAU wrote: \startchemical \color[red]{\chemical[ONE,SB,Z0][C]} \stopchemical % text "C" is offset... add a % after the } (maybe we should ignore endofline, i.e. make a mkiv variant and extend/maintain that) -

[NTG-context] color

2009-05-12 Thread Hans Hagen
Hi, just a note ... mkiv now defaults to color as nobody objected wolfgangs (if i remember right) request Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt |

Re: [NTG-context] Howto add a # sign to a \button URL?

2009-05-12 Thread Hans Hagen
Oliver Heins wrote: Hallo, I try to send a message from a pdf to a webserver. This works fine, unless the URL has a `#' in it. Then TeX throws an error: does \# work? - Hans Hagen | PR

Re: [NTG-context] Chinese opentype fonts can not be loaded in luatex-plain

2009-05-12 Thread Hans Hagen
Dohyun Kim wrote: > even after modification of kpse, two more problems should be fixed. > 1. lowering uppercase filename before searching cidmap > 2. including l-io.lua into luatex-plain i uploaded a beta Hans -

Re: [NTG-context] XeConTeXt bug report III: Wrong hyperlink

2009-05-12 Thread Hans Hagen
Yue Wang wrote: On Tue, May 12, 2009 at 8:49 PM, Hans Hagen wrote: Jin-Hwan Cho wrote: I think that the value of the paperheight is better than 0 for "top" value. thanks for figuring it out ... i now just fall back to fit then focus=standard wont make the link point to the right place...

Re: [NTG-context] bugs in beta (footnotes)

2009-05-12 Thread Henning Hraban Ramm
Am 2009-05-10 um 18:44 schrieb Henning Hraban Ramm: 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) I find this is fixed now (Beta 2009.05.12 17:37). Great,

Re: [NTG-context] Chinese opentype fonts can not be loaded in luatex-plain

2009-05-12 Thread Dohyun Kim
2009/5/12 Hans Hagen : > Yanrui Li wrote: >> >> Hi Hans, >> >> I tried to use Chinese opentype fonts with luatex + plain fmt but I >> failed. Only with Chinese TTF fonts it can work. >> >> This a simple example: >> >> \pdfoutput=1 >> \font\myfont=AdobeSongStd-Light >> >> \myfont >> 我想实现 LuaTeX 对中文的

Re: [NTG-context] Metapost question

2009-05-12 Thread Jean Magnan de Bornier
Le 12 mai à 17:53:48 Taco Hoekwater écrit notamment: | I cannot reproduce this problem. To make sure it is not a mem file | version differencne, can you delete and regenerate mpost.mem ? I followed this, nothing better! Then I tried to delete also metafun.mem and that worked! (btw remaking mpost

Re: [NTG-context] XeConTeXt bug report III: Wrong hyperlink

2009-05-12 Thread Yue Wang
On Tue, May 12, 2009 at 8:49 PM, Hans Hagen wrote: > Jin-Hwan Cho wrote: > > >> I think that the value of the paperheight is better than 0 for "top" >> value. > > thanks for figuring it out ... i now just fall back to fit then focus=standard wont make the link point to the right place... btw, in

Re: [NTG-context] Chinese opentype fonts can not be loaded in luatex-plain

2009-05-12 Thread Wolfgang Schuster
Am 12.05.2009 um 18:04 schrieb Yue Wang: On Tue, May 12, 2009 at 11:47 PM, Hans Hagen wrote: - we have a set of default cjk fonts in tex live that can serve as reference Adobe set will be good enough for reference. With Adobes fonts you can use the 'palt' feature but this has a few eff

Re: [NTG-context] Chinese opentype fonts can not be loaded in luatex-plain

2009-05-12 Thread Yue Wang
On Tue, May 12, 2009 at 11:47 PM, Hans Hagen wrote: > Yanrui Li wrote: > >> I need to load it only for the experiments of Chinese punctuation >> compression in the bbox way. > > i played with that and discarded the code (in mkiv) for the moment because > first i want more info about fonts and thei

Re: [NTG-context] Metapost question

2009-05-12 Thread Taco Hoekwater
Jean Magnan de Bornier wrote: > Le 12 mai à 16:32:26 Aditya Mahajan écrit notamment: > > | Can you post a file that fails at your end? > > here, but it doesn't *fail*, it produces ecindf.1 ok but then shows > infinitely this message. I cannot reproduce this problem. To make sure it is not a

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Yue Wang wrote: So why XeTeX is spending 6 seconds aimlessly? since ConTeXt asked it to search for a non-existed font. keep in mind that the font (lmmono10-regular) *is* existing, it's ust that xetex cannot find it as it favors names instead of files (and praise yourself happy that it's not

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
On Tue, May 12, 2009 at 11:41 PM, Hans Hagen wrote: > Taco Hoekwater wrote: >> >> Yue Wang wrote: \def\defaultfontfile{file:lmmono10-regular} >>> >>> After changing like this, XeTeX runs like a blink. (It wasted 6 >>> seconds for each compile. now it won't) >> >> Does that mean that the

Re: [NTG-context] Chinese opentype fonts can not be loaded in luatex-plain

2009-05-12 Thread Hans Hagen
Yanrui Li wrote: I need to load it only for the experiments of Chinese punctuation compression in the bbox way. i played with that and discarded the code (in mkiv) for the moment because first i want more info about fonts and their quality ... one easily spends days on solving 'bugs' that ar

[NTG-context] Howto add a # sign to a \button URL?

2009-05-12 Thread Oliver Heins
Hallo, I try to send a message from a pdf to a webserver. This works fine, unless the URL has a `#' in it. Then TeX throws an error: ! Illegal parameter number in definition of \!!stringa I tried to work around it with \edef'ing a \doublecross macro which expands to \char35, but this did not w

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Yue Wang wrote: On Tue, May 12, 2009 at 11:02 PM, Hans Hagen wrote: Yue Wang wrote: Hi, Hans: here is the solution to your great feature: huh? what great features? what's wrong with the features anyway? you want a special version that instead prints hundreds of error messages each and every

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
On Tue, May 12, 2009 at 11:22 PM, Hans Hagen wrote: > Yue Wang wrote: >> >> On Tue, May 12, 2009 at 11:02 PM, Hans Hagen wrote: >>> >>> Yue Wang wrote: Hi, Hans: here is the solution to your great feature: >>> >>> huh? what great features? what's wrong with the features anyway

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Taco Hoekwater wrote: Yue Wang wrote: \def\defaultfontfile{file:lmmono10-regular} After changing like this, XeTeX runs like a blink. (It wasted 6 seconds for each compile. now it won't) Does that mean that the near-endless font issues with xetex are now finally fixed? no ... suffix and nam

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Yue Wang wrote: On Tue, May 12, 2009 at 11:02 PM, Hans Hagen wrote: Yue Wang wrote: Hi, Hans: here is the solution to your great feature: huh? what great features? what's wrong with the features anyway? you want a special version that instead prints hundreds of error messages each and every

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Yue Wang wrote: loading 6 fonts, each fonts will be scanned for 3 times. so there are 18 searching. 12 of them are fc searches, and these are quite slow. if so, then this fc mechanism is pretty messed up as it's just a hash lookup which cna be fast also, it does not explain why simple plain

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Taco Hoekwater
Yue Wang wrote: >> >> \def\defaultfontfile{file:lmmono10-regular} > > After changing like this, XeTeX runs like a blink. (It wasted 6 > seconds for each compile. now it won't) Does that mean that the near-endless font issues with xetex are now finally fixed? Cheers, Taco

Re: [NTG-context] Metapost question

2009-05-12 Thread Jean Magnan de Bornier
Le 12 mai à 16:32:26 Aditya Mahajan écrit notamment: | Can you post a file that fails at your end? here, but it doesn't *fail*, it produces ecindf.1 ok but then shows infinitely this message. ... input metafun; numeric u; u=.5cm; path AX; AX = drawdblarrow (10u,0) -- (0,0) --

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
On Tue, May 12, 2009 at 11:02 PM, Hans Hagen wrote: > Yue Wang wrote: >> >> Hi, Hans: >> >> here is the solution to your great feature: > > huh? what great features? what's wrong with the features anyway? you want a > special version that instead prints hundreds of error messages each and > every

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
On Tue, May 12, 2009 at 10:50 PM, Hans Hagen wrote: > Yue Wang wrote: >> >> On Tue, May 12, 2009 at 8:54 PM, Hans Hagen wrote: >>> >>> Yue Wang wrote: >>> >>> moreover, can you tell me why pdftex load these fonts so fast? (also 6 families * 3 sizes) >>> >>> i don't know; as the same cod

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Yue Wang wrote: Hi, Hans: here is the solution to your great feature: huh? what great features? what's wrong with the features anyway? you want a special version that instead prints hundreds of error messages each and every run because some font is missing which in practice is harmless?

Re: [NTG-context] Chinese opentype fonts can not be loaded in luatex-plain

2009-05-12 Thread Yanrui Li
On Tue, May 12, 2009 at 10:37 PM, Hans Hagen wrote: > Yanrui Li wrote: >> >> Hi Hans, >> >> I tried to use Chinese opentype fonts with luatex + plain fmt but I >> failed. Only with Chinese TTF fonts it can work. >> > > this is because a cidmap is needed and the kpse that you use does not have > it

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Yue Wang wrote: On Tue, May 12, 2009 at 8:54 PM, Hans Hagen wrote: Yue Wang wrote: moreover, can you tell me why pdftex load these fonts so fast? (also 6 families * 3 sizes) i don't know; as the same code is used so it must be xetex itself then Then let me tell you why: ConTeXt tries to l

[NTG-context] Chinese opentype fonts can not be loaded in luatex-plain

2009-05-12 Thread Yanrui Li
Hi Hans, I tried to use Chinese opentype fonts with luatex + plain fmt but I failed. Only with Chinese TTF fonts it can work. This a simple example: \pdfoutput=1 \font\myfont=AdobeSongStd-Light \myfont 我想实现 LuaTeX 对中文的支持 \end When I compiled it, I got the following messages: This is LuaTeX,

Re: [NTG-context] Chinese opentype fonts can not be loaded in luatex-plain

2009-05-12 Thread Hans Hagen
Yanrui Li wrote: Hi Hans, I tried to use Chinese opentype fonts with luatex + plain fmt but I failed. Only with Chinese TTF fonts it can work. This a simple example: \pdfoutput=1 \font\myfont=AdobeSongStd-Light \myfont 我想实现 LuaTeX 对中文的支持 \end When I compiled it, I got the following messages

Re: [NTG-context] Metapost question

2009-05-12 Thread Aditya Mahajan
On Tue, 12 May 2009, Jean Magnan de Bornier wrote: Le 12 mai à 09:42:29 Taco Hoekwater écrit notamment: | Jean Magnan de Bornier wrote: | > Le 11 mai à 20:02:36 Mojca Miklavec écrit notamment: | > | > | > | Which command does that evil? They both seem to work here ... | > | > | > | > mpost

Re: [NTG-context] The ultimate (?) float problem

2009-05-12 Thread luigi scarso
On Tue, May 12, 2009 at 3:32 PM, Wolfgang Schuster < schuster.wolfg...@googlemail.com> wrote: > > Am 12.05.2009 um 15:18 schrieb Piotr Kopszak: > > Yes, exactly. >> > > \setuppapersize [S6] > \setuptolerance [soepel,rek] > better \setuppapersize [S6][S6] \setuptolerance [tolerant,stretch] -- l

Re: [NTG-context] Metapost question

2009-05-12 Thread Jean Magnan de Bornier
Le 12 mai à 09:42:29 Taco Hoekwater écrit notamment: | Jean Magnan de Bornier wrote: | > Le 11 mai à 20:02:36 Mojca Miklavec écrit notamment: | > | > | > | Which command does that evil? They both seem to work here ... | > | > | > | > mpost, texexec --mpgraphic, mpost -mem=metafun.mem, all thre

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
Hi, Hans: here is the solution to your great feature: change \def\defaultfontfile{lmmono10-regular} in font-ini.mkii to \def\defaultfontfile{"[lmmono10-regular]"} to disable that feature. Yue Wang On Tue, May 12, 2009 at 9:59 PM, Yue Wang wrote: > On Tue, May 12, 2009 at 8:54 PM, Hans Hagen

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
On Tue, May 12, 2009 at 8:54 PM, Hans Hagen wrote: > Yue Wang wrote: > > >> moreover, can you tell me why pdftex load these fonts so fast? (also 6 >> families * 3 sizes) > > i don't know; as the same code is used so it must be xetex itself then Then let me tell you why: ConTeXt tries to load lmmo

Re: [NTG-context] What is equivalent of latex math aligned in ConTeXt?

2009-05-12 Thread Xan
En/na Olivier ha escrit: Hi Xan, For example, what is the equivalent of: \begin{equation*} \left.\begin{aligned} & 2^2 | n_0\\ & 4^2 | n_0 + 2 \Rightarrow (2^2)^2 | n_0 +2 \Rightarrow 2^2 | n_0 +2 \text{ ya que } 2^2 | (2^2)^2 \end{aligned}\right\} \Rightarrow 2^2 | (n_0 + 2 - n_0) \Righ

Re: [NTG-context] The ultimate (?) float problem

2009-05-12 Thread Piotr Kopszak
Right. If I understand correctly on the first look textflows appear in fixed locations on consecutive pages. I guess I'm banging my head against a wall but what about if it was possible to have them side by side on the same page? 2009/5/12 Wolfgang Schuster : > > Am 12.05.2009 um 15:18 schrieb P

Re: [NTG-context] The ultimate (?) float problem

2009-05-12 Thread Wolfgang Schuster
Am 12.05.2009 um 15:18 schrieb Piotr Kopszak: Yes, exactly. \setuppapersize [S6] \setuptolerance [soepel,rek] \setupcolors[state=start] \setupfooter[strut=no] \setupwhitespace[big] \setuplayout [rightmargin=5cm, width=fit, margin=0pt, edgedistance=1cm, footer=4cm, fo

[NTG-context] ppchtex color

2009-05-12 Thread Alan BRASLAU
No, ppchtex is not dead... I would like to use color. 1. color= and rulecolor= does not appear to be implemented (mkiv)... 2. how can one change the color of the bonds? 3. using \color[red]{} causes the text to be offset. "minimal" example: \setupcolors[state=start] \usemodule[chemic] \starttex

[NTG-context] [***SPAM***] Bug? \getmarking fails under some circumstances

2009-05-12 Thread Oliver Heins
Hello, I'm new to ConTeXt, so this is perhaps not a bug but a fault on my side. Under some circumstances, the living column heads fail to refer to the subsubject. As you can see from the attached minimal example \startsetups[header] \getmarking[subject]\ $\cdot$ \getmarking[subsubject] \stops

Re: [NTG-context] enco-xtx.tex is still wrong

2009-05-12 Thread Yue Wang
On Tue, May 12, 2009 at 5:27 PM, Hans Hagen wrote: > Mojca Miklavec wrote: >>> >>> wrong: >>> f:write(format("\\XeTeXcharclass\"%04X >>> \\XeTeXcharclass%s\n",i,upper(lbc))) >>> better: >>> f:write(format("\\XeTeXcharclass\"%04X >>> \\XeTeXcharclass%s\n",code,upper(lbc))) >>> >>> But I didn't

Re: [NTG-context] The ultimate (?) float problem

2009-05-12 Thread Piotr Kopszak
Yes, exactly. 2009/5/12 luigi scarso : > > > On Tue, May 12, 2009 at 3:03 PM, Piotr Kopszak wrote: >> >> But I want text in one column in the whole document. I was wondering >> however if I could mimick something similar with textflows but cannot >> understand the Dutch example in page-flw.tex. >

Re: [NTG-context] The ultimate (?) float problem

2009-05-12 Thread luigi scarso
On Tue, May 12, 2009 at 3:03 PM, Piotr Kopszak wrote: > But I want text in one column in the whole document. I was wondering > however if I could mimick something similar with textflows but cannot > understand the Dutch example in page-flw.tex. > > Do you mean this ? % Example (dutch) % % \stelp

Re: [NTG-context] The ultimate (?) float problem

2009-05-12 Thread Piotr Kopszak
But I want text in one column in the whole document. I was wondering however if I could mimick something similar with textflows but cannot understand the Dutch example in page-flw.tex. Piotr 2009/5/12 luigi scarso : > > > On Tue, May 12, 2009 at 1:28 PM, Piotr Kopszak wrote: >> >> Only to show b

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Yue Wang wrote: > moreover, can you tell me why pdftex load these fonts so fast? (also 6 > families * 3 sizes) i don't know; as the same code is used so it must be xetex itself then - Hans

Re: [NTG-context] XeConTeXt bug report III: Wrong hyperlink

2009-05-12 Thread Hans Hagen
Jin-Hwan Cho wrote: I think that the value of the paperheight is better than 0 for "top" value. thanks for figuring it out ... i now just fall back to fit Hans - Hans Hagen | PRAGMA ADE

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
Hi, On Tue, May 12, 2009 at 8:26 PM, Taco Hoekwater wrote: > > > Yue Wang wrote: >> >> \font\a="[AdobeSongStd-Light]" > > Why? I asked to use \definefont. After reading Hans' explanation, I understand what you said now. \dorecurse{1}{ hello {\font\a="[AdobeSongStd-Light]"\a 你好}\par} is fas

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
2009/5/12 Hans Hagen : > Yue Wang wrote: >> Thank you, Taco. >> >> currently I found one way to speed up font loading: >> >> \synchronizemathfontsfalse >> \let\synchronizetext\relax >> \starttypescript[serif] [myzhfont] >> \definefontsynonym [Serif] [file:SimSun] >> \stoptypescript >> \d

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Taco Hoekwater
Yue Wang wrote: > > \font\a="[AdobeSongStd-Light]" Why? I asked to use \definefont. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http:/

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Yue Wang wrote: >>> \font\a="[simsun]" >>> \starttext >>> \dorecurse{1}{ hello {\a 你好}\par} >>> \stoptext >>> >>> runtime: TeXExec | runtime: 2.922 >>> >>> \font\a="[simsun.ttf]" >>> \starttext >>> \dorecurse{1}{ hello {\a 你好}\par} >>> \stoptext as taco already mentioned there's a problem

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
Hi, \font\a="[AdobeSongStd-Light.otf]" \starttext \dorecurse{1}{ hello {\a 你好}\par} \stoptext runtime = 3.25 \font\a="[AdobeSongStd-Light]" \starttext \dorecurse{1}{ hello {\a 你好}\par} \stoptext runtime=3.234 Yue Wang 2009/5/12 Taco Hoekwater : > > > Yue Wang wrote: >> >> \font\

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Taco Hoekwater wrote: > > Yue Wang wrote: >> \font\a="[simsun]" >> \starttext >> \dorecurse{1}{ hello {\a 你好}\par} >> \stoptext >> >> runtime: TeXExec | runtime: 2.922 >> >> \font\a="[simsun.ttf]" >> \starttext >> \dorecurse{1}{ hello {\a 你好}\par} >> \stoptext >> >> runtime: TeXExec | runt

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Taco Hoekwater
Yue Wang wrote: > > \font\a="[simsun]" > \starttext > \dorecurse{1}{ hello {\a 你好}\par} > \stoptext > > runtime: TeXExec | runtime: 2.922 > > \font\a="[simsun.ttf]" > \starttext > \dorecurse{1}{ hello {\a 你好}\par} > \stoptext > > runtime: TeXExec | runtime: 2.938 Please try an otf fo

Re: [NTG-context] The ultimate (?) float problem

2009-05-12 Thread luigi scarso
On Tue, May 12, 2009 at 1:28 PM, Piotr Kopszak wrote: > Only to show better how I would like text and images placed on the page. > > \definelayer [figure][width=\overlaywidth,height=\overlayheight] > \defineoverlay[figure][{\directsetup{figure}\tightlayer[figure]}] > \setupcolors[state=start] >

Re: [NTG-context] XeConTeXt bug report III: Wrong hyperlink

2009-05-12 Thread Jin-Hwan Cho
On May 12, 2009, at 2:00 PM, Yue Wang wrote: Hi, Hans and Jin-Hwan: When using ConTeXt to produce my documents, I found that all hyperlinks are wrong. And here is a simple test. The tex and pdf files are attached in the mail. The problem will happen when: 1) using pdftex to produce the dvi,

Re: [NTG-context] XeConTeXt bug report II: MetaPost Graphics

2009-05-12 Thread Jin-Hwan Cho
Hi, Yue Wang, Many years have passed since I wrote spec-dpx.tex for ConTeXt. The file spec-dpx.tex included in texlive 2008 (the only one I have) looks quite changed according to the progression of ConTeXt. Anyway, your example worked when I change the 763th line of spec-dpx.tex as follows: {\

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Yue Wang wrote: > Thank you, Taco. > > currently I found one way to speed up font loading: > > \synchronizemathfontsfalse > \let\synchronizetext\relax > \starttypescript[serif] [myzhfont] > \definefontsynonym [Serif] [file:SimSun] > \stoptypescript > \definetypeface [myzhfont] [rm] [se

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
On Tue, May 12, 2009 at 7:26 PM, Taco Hoekwater wrote: > Hans Hagen wrote: >> >> > Taco Hoekwater wrote: >>> >>> Hans Hagen wrote: anyway .. i cannot comment on runtimes as xetex on my windows box runs too slow (caching issue) and all examples are slow, no matter how i specify

Re: [NTG-context] The ultimate (?) float problem

2009-05-12 Thread Piotr Kopszak
Only to show better how I would like text and images placed on the page. \definelayer [figure][width=\overlaywidth,height=\overlayheight] \defineoverlay[figure][{\directsetup{figure}\tightlayer[figure]}] \setupcolors[state=start] \setupbackgrounds[page][background=figure] \starttext \dorecurse

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Taco Hoekwater
Hans Hagen wrote: > Taco Hoekwater wrote: Hans Hagen wrote: anyway .. i cannot comment on runtimes as xetex on my windows box runs too slow (caching issue) and all examples are slow, no matter how i specify fonts so i will not look into the code till that gets fixed first The example with

Re: [NTG-context] XeConTeXt bug report II: MetaPost Graphics

2009-05-12 Thread Yue Wang
Hi, Hans Prof. Cho asked you to comment the line after the { i.e.: - {\scratchdimen\wd#2\scratchdimen.5\scratchdimen\hskip-\the\scratchdimen +{% Yue Wang On Tue, May 12, 2009 at 7:05 PM, Hans Hagen wrote: > Yue Wang wrote: >> >> 736 on current version > > but that line already looks that way .

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
Thank you, Taco. currently I found one way to speed up font loading: \synchronizemathfontsfalse \let\synchronizetext\relax \starttypescript[serif] [myzhfont] \definefontsynonym [Serif] [file:SimSun] \stoptypescript \definetypeface [myzhfont] [rm] [serif][myzhfont] [default] \def\a{\m

Re: [NTG-context] XeConTeXt bug report II: MetaPost Graphics

2009-05-12 Thread Hans Hagen
Yue Wang wrote: 736 on current version but that line already looks that way ... so what needs to be patched - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
> Taco Hoekwater wrote: Hans Hagen wrote: anyway .. i cannot comment on runtimes as xetex on my windows box runs too slow (caching issue) and all examples are slow, no matter how i specify fonts so i will not look into the code till that gets fixed first The example with the typescript seems

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Wolfgang Schuster
Am 12.05.2009 um 11:09 schrieb Yue Wang: Hi, Sum up: define a font usng typescripts takes 64.797 seconds. You can speed it up when you replace \definetypeface (...) with \definefont: \unprotect \definefontsynonym [ZhSerif] [name:AdobeSongStd-Light] \definefont [ZhSeri

Re: [NTG-context] The ultimate (?) float problem

2009-05-12 Thread Hans Hagen
Piotr Kopszak wrote: Any chance lua might change something here in the future? maybe, but not in the near future Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Has

Re: [NTG-context] The ultimate (?) float problem

2009-05-12 Thread luigi scarso
On Tue, May 12, 2009 at 11:22 AM, Piotr Kopszak wrote: > Dear all, > > I am close to give up, but maybe there is a solution... I have a book > to typeset literally peppered with hundreds of little drawings which > are supposed to appear irregularly surrounded by text flowing around > them on all

Re: [NTG-context] The ultimate (?) float problem

2009-05-12 Thread Piotr Kopszak
Any chance lua might change something here in the future? P. 2009/5/12 Hans Hagen : > Piotr Kopszak wrote: >> >> Dear all, >> >> I am close to give up, but maybe there is a solution... I have a book >> to typeset literally peppered with hundreds of little drawings which >> are supposed to appear

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Taco Hoekwater
Hans Hagen wrote: > anyway .. i cannot comment on runtimes as xetex on my windows box runs > too slow (caching issue) and all examples are slow, no matter how i > specify fonts so i will not look into the code till that gets fixed first The example with the typescript seems logical to me: a type

Re: [NTG-context] XeConTeXt bug report II: MetaPost Graphics

2009-05-12 Thread Yue Wang
736 on current version On Tue, May 12, 2009 at 6:08 PM, Hans Hagen wrote: > Yue Wang wrote: >> >> Hi, all: >> >> I tried this fix with some of my documents and it seems that this >> fixed all my documents. >> Hans, can you commit that to HEAD? > > what line is that in the current dpx file? > > Ha

Re: [NTG-context] What is equivalent of latex math aligned in ConTeXt?

2009-05-12 Thread Oliver Buerschaper
I would also use \implies instead of \Rightarrow (slightly different spacing). Doesn't work I'm afraid (2009.05.11 14:38 MKIV) ... \implies is undefined. --- \starttext \startformula A\implies B \stopformula \stoptext --- Oliver ___

Re: [NTG-context] XeConTeXt bug report II: MetaPost Graphics

2009-05-12 Thread Hans Hagen
Yue Wang wrote: Hi, all: I tried this fix with some of my documents and it seems that this fixed all my documents. Hans, can you commit that to HEAD? what line is that in the current dpx file? Hans -

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Yue Wang wrote: > here is the xelatex result given by a chinese user: > > \documentclass{minimal} > \usepackage{xeCJK} > \setCJKfamilyfont{song}{SimSun} > \begin{document} > {hello {\CJKfamily{song}你好}}\par % 1 lines > \end{document} > > got 209 pages, three seconds to run. > note he is switc

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
sorry the the context sample and latex sample are not equivalent (note the \par). So I test again: \starttypescript[serif] [myzhfont] \definefontsynonym [Serif] [file:SimSun] \definefontsynonym [SerifBold] [file:SimSun] \definefontsynonym [SerifItalic] [file:SimSun] \define

Re: [NTG-context] The ultimate (?) float problem

2009-05-12 Thread Hans Hagen
Piotr Kopszak wrote: Dear all, I am close to give up, but maybe there is a solution... I have a book to typeset literally peppered with hundreds of little drawings which are supposed to appear irregularly surrounded by text flowing around them on all sides. |

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
here is the xelatex result given by a chinese user: \documentclass{minimal} \usepackage{xeCJK} \setCJKfamilyfont{song}{SimSun} \begin{document} {hello {\CJKfamily{song}你好}}\par % 1 lines \end{document} got 209 pages, three seconds to run. note he is switching families 2 times. (\family{f

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Yue Wang wrote: > Hi, > > Sum up: > define a font usng typescripts takes 64.797 seconds. > define a font like \definefont[a][file:SimSun.ttf] takes 55.548 seconds > define a font like \definefont[a][file:SimSun] takes 4.329 seconds > define a font like \font\a="[simsun]" takes 1.812 seconds > > J

Re: [NTG-context] enco-xtx.tex is still wrong

2009-05-12 Thread Hans Hagen
Yue Wang wrote: Hi, Hans, The enco-xtx.tex defination is still wrong... it behaves very differently compared to unicode-letters.tex well, it's not supposed to do the same (and we're not going to be latex compatible anyway) as we now need mpore 'tables' i've reorganized the xetex code (will

[NTG-context] The ultimate (?) float problem

2009-05-12 Thread Piotr Kopszak
Dear all, I am close to give up, but maybe there is a solution... I have a book to typeset literally peppered with hundreds of little drawings which are supposed to appear irregularly surrounded by text flowing around them on all sides. |xx | |x

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
Hi, Sum up: define a font usng typescripts takes 64.797 seconds. define a font like \definefont[a][file:SimSun.ttf] takes 55.548 seconds define a font like \definefont[a][file:SimSun] takes 4.329 seconds define a font like \font\a="[simsun]" takes 1.812 seconds Jonathan and Jin-Hwan, sorry for th

Re: [NTG-context] in luatex/mkiv formats are generated on the fly

2009-05-12 Thread Hans Hagen
Vyatcheslav Yatskovsky wrote: Hello, Hans in luatex/mkiv formats are generated on the fly What do you mean? That one does NOT need "context --make" at all? indeed (only luatools --generate if needed) -

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
Hi: update: change the second example, remove the ".otf" suffix , and texexec --xtx gives: TeXExec | runtime: 5.766 Obviously, this is a parsing bug in ConTeXt. I doubt the reason to the third one is the same. Yue Wang 2009/5/12 Yue Wang : > Hi, Hans and Jonathan: > > I made some testing samp

[NTG-context] enco-xtx.tex is still wrong

2009-05-12 Thread Yue Wang
Hi, Hans, The enco-xtx.tex defination is still wrong... it behaves very differently compared to unicode-letters.tex Yue Wang ___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] XeConTeXt bug report II: MetaPost Graphics

2009-05-12 Thread Yue Wang
Hi, all: I tried this fix with some of my documents and it seems that this fixed all my documents. Hans, can you commit that to HEAD? Thanks a lot, Jin-Hwan:) Yue Wang On Tue, May 12, 2009 at 1:51 PM, Jin-Hwan Cho wrote: > Hi, Yue Wang, > > Many years have passed since I wrote spec-dpx.tex for

Re: [NTG-context] texts in \component files are not present

2009-05-12 Thread Wei-Wei Guo
Henning Hraban Ramm 写道: Am 2009-05-11 um 16:53 schrieb Wei-Wei Guo: 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

Re: [NTG-context] New module - mkiv font loading

2009-05-12 Thread Wolfgang Schuster
Am 11.05.2009 um 14:41 schrieb Yue Wang: Hi Wolfgang: nice script. Can the module meet my needs discussed in http://www.ntg.nl/pipermail/ntg-context/2009/040831.html ? or is it possible to extend the support to xetex? When you take care about font switching in your module it's easy, large

Re: [NTG-context] Metapost question

2009-05-12 Thread Taco Hoekwater
Jean Magnan de Bornier wrote: > Le 11 mai à 20:02:36 Mojca Miklavec écrit > notamment: > > | > | Which command does that evil? They both seem to work here ... > | > > | > mpost, texexec --mpgraphic, mpost -mem=metafun.mem, all three of them! > | I don't understand. Can you please post the whol