ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* followup metapost textext?
@ 2005-12-21 18:01 Hans van der Meer
  2005-12-22  7:49 ` Taco Hoekwater
  0 siblings, 1 reply; 8+ messages in thread
From: Hans van der Meer @ 2005-12-21 18:01 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 894 bytes --]

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




[-- Attachment #1.2: Type: text/html, Size: 5052 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: followup metapost textext?
  2005-12-21 18:01 followup metapost textext? Hans van der Meer
@ 2005-12-22  7:49 ` Taco Hoekwater
  2005-12-22 17:11   ` Hans van der Meer
  2005-12-22 22:05   ` Hans van der Meer
  0 siblings, 2 replies; 8+ messages in thread
From: Taco Hoekwater @ 2005-12-22  7:49 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: followup metapost textext?
  2005-12-22  7:49 ` Taco Hoekwater
@ 2005-12-22 17:11   ` Hans van der Meer
  2005-12-22 22:05   ` Hans van der Meer
  1 sibling, 0 replies; 8+ messages in thread
From: Hans van der Meer @ 2005-12-22 17:11 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: followup metapost textext?
  2005-12-22  7:49 ` Taco Hoekwater
  2005-12-22 17:11   ` Hans van der Meer
@ 2005-12-22 22:05   ` Hans van der Meer
  2005-12-22 22:22     ` Hans Hagen
  2005-12-22 23:26     ` Hans Hagen
  1 sibling, 2 replies; 8+ messages in thread
From: Hans van der Meer @ 2005-12-22 22:05 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1013 bytes --]

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


[-- Attachment #2: bad.pdf --]
[-- Type: application/pdf, Size: 8272 bytes --]

[-- Attachment #3: Type: text/plain, Size: 24 bytes --]

  <= bad and good =>




[-- Attachment #4: good.pdf --]
[-- Type: application/pdf, Size: 8717 bytes --]

[-- Attachment #5: Type: text/plain, Size: 947 bytes --]


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


[-- Attachment #6: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: followup metapost textext?
  2005-12-22 22:05   ` Hans van der Meer
@ 2005-12-22 22:22     ` Hans Hagen
  2005-12-22 22:49       ` Hans van der Meer
  2005-12-22 23:26     ` Hans Hagen
  1 sibling, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2005-12-22 22:22 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: followup metapost textext?
  2005-12-22 22:22     ` Hans Hagen
@ 2005-12-22 22:49       ` Hans van der Meer
  2005-12-22 23:05         ` Taco Hoekwater
  0 siblings, 1 reply; 8+ messages in thread
From: Hans van der Meer @ 2005-12-22 22:49 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: followup metapost textext?
  2005-12-22 22:49       ` Hans van der Meer
@ 2005-12-22 23:05         ` Taco Hoekwater
  0 siblings, 0 replies; 8+ messages in thread
From: Taco Hoekwater @ 2005-12-22 23:05 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: followup metapost textext?
  2005-12-22 22:05   ` Hans van der Meer
  2005-12-22 22:22     ` Hans Hagen
@ 2005-12-22 23:26     ` Hans Hagen
  1 sibling, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2005-12-22 23:26 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-12-22 23:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-21 18:01 followup metapost textext? Hans van der Meer
2005-12-22  7:49 ` Taco Hoekwater
2005-12-22 17:11   ` Hans van der Meer
2005-12-22 22:05   ` Hans van der Meer
2005-12-22 22:22     ` Hans Hagen
2005-12-22 22:49       ` Hans van der Meer
2005-12-22 23:05         ` Taco Hoekwater
2005-12-22 23:26     ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).