Followup to my previous post (see below) I executed the code on the "live tex site" and, mirabile dictu, there it works. The difference I can see is a much older pdfetex (Version 3.141592-1.21a-2.2 (Web2C 7.5.4)) on the live site, whereas I have a newer one (Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)). Could that be the problem or must I dig deeper? =============== Panic using metapost in context. This used to work. I did a file that previously (\thisisutilityversion {1998.12.20}) had good output but now has "unknown" everywhere for textext calls! \starttext \startuseMPgraphic{one} draw (0,0)--(100,0)--(100,50)--(50,50)--(50,100)--(0,100)--(0,0); label (textext("label"), (10,25)); \stopuseMPgraphic \useMPgraphic{one} \stoptext But now I see "unknown" as the text typeset instead of "label"! What happened. This is disastrous. yours sincerely, dr. H. van der Meer
Hans van der Meer wrote:
Followup to my previous post (see below)
I executed the code on the "live tex site" and, mirabile dictu, there it works. The difference I can see is a much older pdfetex (Version 3.141592-1.21a-2.2 (Web2C 7.5.4)) on the live site, whereas I have a newer one (Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)).
Could that be the problem or must I dig deeper?
It is not likely that this is the problem, unless you have 'stray' pdfetex executables floating around (with different version numbers) in other folders. It is more likely there is some interference with your pre-existing teTeX 3, but without the actual output and log files I do not know what to suggest as next step. Taco
I am surprised, but somehow the problem seems to be gone. In my cont-sys.tex I had \runMPgraphicstrue %\runMPTEXgraphicstrue Trying everything seemingly connected to metapost I tried diverse combinations with these macros either commented-out or not-commented- out. At one moment texexec started functioning. I was thinking both these macros were for efficiency only, or is that a wrong thought? Because the comment in cont-sys.tex after these lines says "% This saves some runtime,...". But the \runMPTEXgraphicstrue seems crucial. Would you please answer the next questions too: (1) Although my outer font is Lucida, these are used in textext (normal) but not used in textext($math$) where lm- en cm-math fonts are used; these mixed fonts make the pictures ugly. (2) I would like to have standalone pictures, as produced by "texexec --mptex" but then I do not know how to set the fonts. Is there a simple way to export the pictures from a ConTeXt run with embedded MP- graphics? Or keep intermediate pdf's? yours sincerely, dr. H. van der Meer On Dec 22, 2005, at 8:49, Taco Hoekwater wrote:
Hans van der Meer wrote:
Followup to my previous post (see below) I executed the code on the "live tex site" and, mirabile dictu, there it works. The difference I can see is a much older pdfetex (Version 3.141592-1.21a-2.2 (Web2C 7.5.4)) on the live site, whereas I have a newer one (Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)). Could that be the problem or must I dig deeper?
It is not likely that this is the problem, unless you have 'stray' pdfetex executables floating around (with different version numbers) in other folders.
It is more likely there is some interference with your pre-existing teTeX 3, but without the actual output and log files I do not know what to suggest as next step.
Taco _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
I finally managed to contrive two simple examples, one that works here and one that doesn't. The next code typeset with texexec --pdf with lines commented OUT does work: \setupcolors[state=start] \usetypescript[luc]\setupbodyfont[luc,10pt] \startMPenvironment \usetypescript[luc] \setupbodyfont[luc,10pt] \stopMPenvironment \definecolor[gray][s=.825] \definecolor[yellow][r=.625,g=.625] \setupMPpage[offset=1pt,background=color,backgroundcolor=gray] \startuseMPgraphic{standalone} draw (0,0)--(100,0)--(100,50)--(50,50)--(50,100)--(0,100)--(0,0); label (textext("cornerstone"), (10,5)) rotated 45 withcolor \MPcolor {yellow}; \stopuseMPgraphic \starttext %%%%%%%%%%\startMPpage \includeMPgraphic{standalone} %%%%%%%%%%\stopMPpage \stoptext When I remove the %'s it does not work. The first below is the wrong one, showing unknown, the second one correctly shows the word cornerstone. Is the conclusion correct that it could be something with \startMPpage? yours sincerely, dr. H. van der Meer <= bad and good => On Dec 22, 2005, at 8:49, Taco Hoekwater wrote:
Hans van der Meer wrote:
Followup to my previous post (see below) I executed the code on the "live tex site" and, mirabile dictu, there it works. The difference I can see is a much older pdfetex (Version 3.141592-1.21a-2.2 (Web2C 7.5.4)) on the live site, whereas I have a newer one (Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)). Could that be the problem or must I dig deeper?
It is not likely that this is the problem, unless you have 'stray' pdfetex executables floating around (with different version numbers) in other folders.
It is more likely there is some interference with your pre-existing teTeX 3, but without the actual output and log files I do not know what to suggest as next step.
Taco _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Hans van der Meer wrote:
I finally managed to contrive two simple examples, one that works here and one that doesn't.
minimalized: \startuseMPgraphic{standalone} draw (0,0)--(100,0)--(100,50)--(50,50)--(50,100)--(0,100)--(0,0); label (textext("cornerstone"), (10,5)) rotated 45 withcolor \MPcolor {yellow}; \stopuseMPgraphic \starttext \startMPcode \includeMPgraphic{standalone} \stopMPcode \stoptext so, there is a problem with textext inside an include (rather tricky to solve i fear) Hans
Sorry, my last posting ran into another, earlier thread. In order to prevent confusion I take the liberty to repeat my findings on the code below as reply to Hans Hagen's last posting. When I take the mpgraph mp-input for metapost produced by the ConTeXt run I see: (1) running "system(mpost -progname=mpost -mem=metafun standalone2- mpgraph)...executed." as the log shows gives the wrong metafont output. I also ran mpost with those parameters standalone on that mp- file and got the same bad result. (2) running texexec --mptex on the file gives the correct result. Would this help locating the problem? My mpost is according to mpout.log "This is MetaPost, Version 0.901 (Web2C 7.5.3) (mem=mpost 2005.11.12)". yours sincerely, dr. H. van der Meer On Dec 22, 2005, at 23:22, Hans Hagen wrote:
Hans van der Meer wrote:
I finally managed to contrive two simple examples, one that works here and one that doesn't.
minimalized:
\startuseMPgraphic{standalone} draw (0,0)--(100,0)--(100,50)--(50,50)--(50,100)--(0,100)--(0,0); label (textext("cornerstone"), (10,5)) rotated 45 withcolor \MPcolor {yellow}; \stopuseMPgraphic
\starttext
\startMPcode \includeMPgraphic{standalone} \stopMPcode
\stoptext
so, there is a problem with textext inside an include (rather tricky to solve i fear)
Hans _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Hans van der Meer wrote:
Sorry, my last posting ran into another, earlier thread. In order to prevent confusion I take the liberty to repeat my findings on the code below as reply to Hans Hagen's last posting.
When I take the mpgraph mp-input for metapost produced by the ConTeXt run I see:
(1) running "system(mpost -progname=mpost -mem=metafun standalone2- mpgraph)...executed." as the log shows gives the wrong metafont output. I also ran mpost with those parameters standalone on that mp- file and got the same bad result.
The input and output (+ log) from that incorrect run should pinpoint the problem. Can you email or post these files please? Taco
Hans van der Meer wrote:
I finally managed to contrive two simple examples, one that works here and one that doesn't.
The next code typeset with texexec --pdf with lines commented OUT does work:
\setupcolors[state=start] \usetypescript[luc]\setupbodyfont[luc,10pt] \startMPenvironment \usetypescript[luc] \setupbodyfont[luc,10pt] \stopMPenvironment
\definecolor[gray][s=.825] \definecolor[yellow][r=.625,g=.625] \setupMPpage[offset=1pt,background=color,backgroundcolor=gray]
\startuseMPgraphic{standalone} draw (0,0)--(100,0)--(100,50)--(50,50)--(50,100)--(0,100)--(0,0); label (textext("cornerstone"), (10,5)) rotated 45 withcolor \MPcolor {yellow}; \stopuseMPgraphic
\starttext %%%%%%%%%%\startMPpage \includeMPgraphic{standalone} %%%%%%%%%%\stopMPpage \stoptext
When I remove the %'s it does not work. The first below is the wrong one, showing unknown, the second one correctly shows the word cornerstone. Is the conclusion correct that it could be something with \startMPpage?
no, with \includeMPgraphics not being expanded before testing on mptex runs: \long\def\writecheckedMPgraphic#1% {\ifforceMPTEXgraphic \global\MPTEXgraphictrue \else \global\MPTEXgraphicfalse \edef\ascii{#1}\convertcommand\ascii\to\MPascii \the\MPTEXgraphicchecks\relax % \relax is end condition! \fi \flushMPTEXgraphic % verbatimtex etc \writeMPgraphic{#1}} \startuseMPgraphic{standalone} draw textext("whatever") ; \stopuseMPgraphic \starttext % \forceMPTEXgraphictrue \startMPcode fill fullcircle scaled 2mm ; \includeMPgraphic{standalone} \stopMPcode \startMPcode draw fullcircle scaled 2mm ; \includeMPgraphic{standalone} \stopMPcode \stoptext one can always force tex runs with: \forceMPTEXgraphictrue
participants (3)
-
Hans Hagen
-
Hans van der Meer
-
Taco Hoekwater