overlay problem with textext
Hi all, the attached example works with the version from 17.11.|20.11., but not with the current (22.11.06, 11:02) one. The problem seems to be in the use of textext, as it 'works' (background is visible) when I exchange p:= textext.rt(\MPstring{FunnyFrame}) ; with p:= nullpicture ; I couldn't test the current version on contextgarden (still 20.11., which works ok), so I'm unsure, if it's my messy tex tree or a general problem. Greetings, Peter \setupoutput[pdftex] \setupcolors[state=start] \startuseMPgraphic{FunnyFrame} picture p ; numeric o ; path a,b ; pair c ; p:= textext.rt(\MPstring{FunnyFrame}) ; o:= BodyFontSize ; a:= unitsquare xyscaled(OverlayWidth,OverlayHeight) ; p:= p shifted(2o,OverlayHeight-ypart center p) ; drawoptions(withpen pencircle scaled 1pt withcolor .625red) ; b:= a superellipsed .95 ; fill b withcolor .85white ; draw b ; b:= (boundingbox p) superellipsed .95 ; fill b withcolor .85white ; draw b ; draw p withcolor black ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[FunnyFrame] [\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText] [frame=off, background=FunnyFrame] \def\StartFrame{\startFunnyText} \def\StopFrame{\stopFunnyText} \def\FrameTitle#1% {\setMPtext{FunnyFrame}{\hbox spread1em{\hss\strut#1\hss}}} \setMPtext{FunnyFrame}{}%initializethetextvariable \starttext \FrameTitle{Test} \StartFrame \input zapf\relax \StopFrame \stoptext
On 11/22/06, Peter Rolf wrote:
Hi all,
the attached example works with the version from 17.11.|20.11., but not with the current (22.11.06, 11:02) one. The problem seems to be in the use of textext, as it 'works' (background is visible) when I exchange
p:= textext.rt(\MPstring{FunnyFrame}) ;
with
p:= nullpicture ;
I couldn't test the current version on contextgarden (still 20.11., which works ok), so I'm unsure, if it's my messy tex tree or a general problem.
Greetings, Peter
Same problem here. It worked with 16.11. and fails with the current. Mojca
On 11/23/06, Mojca Miklavec wrote:
On 11/22/06, Peter Rolf wrote:
Hi all,
the attached example works with the version from 17.11.|20.11., but not with the current (22.11.06, 11:02) one. The problem seems to be in the use of textext, as it 'works' (background is visible) when I exchange
Not only textext ... here the whole \startMPcode ... \stopMPcode seems to be broken here (where's the old good tool "ctxtools --install 20061120" ?). One of the problems that appeared with new files: TeXExec | processing graphic '07-svd-mpgraph.mp' sh: -c: line 1: syntax error near unexpected token `newline' sh: -c: line 1: `>/usr/local/teTeX/share/texmf.local/scripts/context/ruby/texmfstart.rb<' (And I have no idea what it's supposed to mean.) I saw some changes in tex.rb renaming filename into mpname during mp runs, but I'll test after I finish writing my report, not before. I seem to be very grateful for Taco's archives on https://foundry.supelec.fr/frs/?group_id=14 in such cases ;) Mojca PS: I might be using slightly unstandard way of launching texmfstart, but that approach seems to work up to the 20061120.
Mojca Miklavec wrote:
Not only textext ... here the whole \startMPcode ... \stopMPcode seems to be broken here (where's the old good tool "ctxtools --install 20061120" ?).
Yup, here too. And it is probably my fault, I forced Hans to change the mpost commandline :-/ I have \runMPgraphics false, and I get two ruby remarks/errors: TeXExec | processing graphic 'textext-mpgraph.mp' TeXExec | processing graphic 'textext-mpgraph.mp' /home/taco/texmf/scripts/context/ruby/base/tex.rb:1522:in `runmp'TeXExec | option 'nomprun' is set to 'true' TeXExec | option 'nobackend' is set to 'true' TeXExec | option 'output' is set to 'ps' TeXExec | option 'randomseed' is set to '387' TeXExec | option 'filename' is set to 'textext-mpgraph.mp' TeXExec | option 'mainlanguage' is set to 'standard' TeXExec | option 'bodyfont' is set to 'standard' TeXExec | option 'language' is set to 'standard' TeXExec | option 'engine' is set to 'standard' TeXExec | option 'distribution' is set to 'web2c' TeXExec | option 'texformats' is set to 'ennlmptopdf' TeXExec | option 'mpsformats' is set to 'metafun' TeXExec | option 'progname' is set to 'context' TeXExec | option 'interface' is set to 'standard' TeXExec | option 'runs' is set to '8' TeXExec | option 'backend' is set to 'standard' : undefined local variable or method `filename' for #TEX:0xb7a44d28 (NameError) from /home/taco/texmf/scripts/context/ruby/base/tex.rb:2004:in `doruntexmp' from /home/taco/texmf/scripts/context/ruby/base/tex.rb:1536:in `runtexmp' from /home/taco/texmf/scripts/context/ruby/base/tex.rb:1097:in `processmptex' from /home/taco/texmf/scripts/context/ruby/base/tex.rb:1094:in `each' from /home/taco/texmf/scripts/context/ruby/base/tex.rb:1094:in `processmptex' from /home/taco/texmf/scripts/context/ruby/texexec.rb:71:in `mptex' from /home/taco/texmf/scripts/context/ruby/texexec.rb:761:in `send' from /home/taco/texmf/scripts/context/ruby/texexec.rb:761 TeXUtil | parsing file textext.tui TeXUtil | shortcuts : 169 TeXUtil | expansions: 308 TeXUtil | reductions: 0 TeXUtil | divisions : 0 TeXUtil | loaded files: 1 TeXUtil | temporary files: 0 TeXUtil | commands: 20 TeXUtil | programs: 0 TeXUtil | tuo file saved TeXExec | runtime: 2.346643
Taco Hoekwater wrote:
Mojca Miklavec wrote:
Not only textext ... here the whole \startMPcode ... \stopMPcode seems to be broken here (where's the old good tool "ctxtools --install 20061120" ?).
Yup, here too. And it is probably my fault, I forced Hans to change the mpost commandline :-/
line 1522 in tex.rb should be: runcommand([quoted(mpsengine),prognameflag(progname),formatflag(mpsengine,mpsformat),tcxflag,runoptions(mpsengine),mpname,mpsprocextras(mpsformat)]) filename -> mpname ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Hans Hagen wrote:
Taco Hoekwater wrote:
Mojca Miklavec wrote:
Not only textext ... here the whole \startMPcode ... \stopMPcode seems to be broken here (where's the old good tool "ctxtools --install 20061120" ?).
Yup, here too. And it is probably my fault, I forced Hans to change the mpost commandline :-/
line 1522 in tex.rb should be:
runcommand([quoted(mpsengine),prognameflag(progname),formatflag(mpsengine,mpsformat),tcxflag,runoptions(mpsengine),mpname,mpsprocextras(mpsformat)])
filename -> mpname
Thanks, that fixes my problem :) Also thanks to Mojca for taking the time to test this. Greetings, Peter
----------------------------------------------------------------- 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 -----------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
participants (4)
-
Hans Hagen
-
Mojca Miklavec
-
Peter Rolf
-
Taco Hoekwater