On Sun, 12 Jan 2003 21:47:18 +0100
Hans Hagen wrote:
At 02:15 PM 1/8/2003 +0100, you wrote:
2) I can't make the example on page 236 of the MetaFun manual (the
one with a framed text with the Zapf (1) label). I use the following
code:
\startuseMPgraphic{FunnyFrame}
picture p;
numeric w, h, o;
p:=textext.rt(\MPstring{FunnyFrame}) ;
w:=OverlayWidth;
h:=OverlayHeight;
o:=BodyFontSize;
p:=p shifted (2o,h-ypart center p);
draw p;
drawoptions (widhpen pencircle scaled 1pt);
^^^^^^^^^^^ withpen ^^^^^^^^^^^^^^^^^^^^
draw (2o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner p,h);
draw boundingbox p;
setbounds currentpicture to unitsquare xyscaled(w,h);
\stopuseMPgraphic
\defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}]
\defineframedtext[FunnyText][frame=off,background=FunnyFrame,width=f
it]
\def\StartFrame{\startFunnyText}
\def\StopFrame{\stopFunnyText}
\def\FrameTitle#1%
{\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut#1\hss}}}
\setMPtext{FunnyFrame}{}% Initiate.
Instead of the text in the label box I get the text "unknown". I type
\FrameTitle{Test}
\StartFrame
This is just a test.
\StopFrame
Regards, Micke P
this works ok here, when corrected for the error, so it looks like
your mp installation is not working ok
Hans
Hi again, thanks for your correction Hans! I still get the same error
after reinstalling tetex and ConTeXt. The only "unknown" I can find in
the logs is a line:
(unknown) cmr10 11.95514 fshow
in mpgraph.4000
Maybe someone has a clue what is going on? I have not edited some
I'm on a Red Hat 8.0 system with tetex-1.0.7-63 and the ConTeXt beta
from today. I have done texexec --make metafun. Should I do something
more? (I have done another document with a metapost image as background
image, and it works very well)
I have done all files available at
http://lillpelle.hemmet.chalmers.se/~micke/contextprob/
I include the (corrected) tex file again:
============ start file ==============
\startuseMPgraphic{FunnyFrame}
picture p;
numeric w, h, o;
p:=textext.rt(\MPstring{FunnyFrame}) ;
w:=OverlayWidth;
h:=OverlayHeight;
o:=BodyFontSize;
p:=p shifted (2o,h-ypart center p);
draw p;
drawoptions (withpen pencircle scaled 1pt);
draw (2o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner p,h);
draw boundingbox p;
setbounds currentpicture to unitsquare xyscaled(w,h);
\stopuseMPgraphic
\defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}]
\defineframedtext[FunnyText][frame=off,background=FunnyFrame,width=fit]
\def\StartFrame{\startFunnyText}
\def\StopFrame{\stopFunnyText}
\def\FrameTitle#1%
{\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut#1\hss}}}
\setMPtext{FunnyFrame}{}% Initiate.
\starttext
\FrameTitle{Test}
\StartFrame
This is just a test.
\StopFrame
\stoptext
============ stop file =============
Below is shown what I see in the prompt when I run texexec.
Best Regards, Micke P
[contextprob]$ texexec --pdf enkel.tex
TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002
executable : pdfetex
format : cont-en
inputfile : enkel
output : pdftex
interface : en
current mode : none
TeX run : 1
This is pdfeTeX, Version 3.14159-14h-released-20010417-2.1 (Web2C
7.3.3.1)
entering extended mode
(./enkel.tex{/usr/share/texmf/pdftex/config/pdftex.cfg}
ConTeXt ver: 2003.1.10 fmt: 2003.1.13 int: english mes: english
language : language en is active
system : cont-new loaded
(/usr/share/texmf/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex!
system (E-TEX) : [line 1497] \ifcsname
)
system : cont-old loaded
(/usr/share/texmf/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system : cont-fil loaded
(/usr/share/texmf/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
bodyfont : 12pt rm is loaded
language : patterns 2:2-en-2 3:2-uk-2 4:2-de-2 5:2-fr-2 7:2-it-2
2-nl-2 l
oaded
specials : tex,postscript,rokicki loaded
system : enkel.top loaded
(./enkel.top
specials : loading definition file tpd
(/usr/share/texmf/tex/context/base/spec-tpd.tex
specials : loading definition file fdf
(/usr/share/texmf/tex/context/base/spec-fdf.tex
system (E-TEX) : [line 1805] \ifcsname
)
specials : fdf loaded
)
specials : fdf,tpd loaded
)
pdftex : needs map file: original-context-symbol.map
pdftex : needs map file: pl0-ams-cmr.map
pdftex : needs map file: original-vogel-symbol.map
(./enkel.tuo) (./enkel.tuo) (./enkel.tuo) (./enkel.tuo) (./enkel.tuo)
(./enkel.tuo) (./enkel.tuo) (./enkel.tuo) (./enkel.tuo) (./enkel.tuo)
(./enkel.tuo) (./enkel.tuo) (./enkel.tuo)
systems : begin file enkel at line 27
Underfull \hbox (badness 10000) detected at line 33
[]
Underfull \hbox (badness 10000) detected at line 33
[]
Underfull \vbox (badness 10000) detected at line 33
Randomizer initialized to 1285911735. [MP to PDF] (./mpgraph.4000)
[1.1{/usr/sh
are/texmf/dvips/config/pdftex.map}{/usr/share/texmf/dvips/config/pad.ma
p}{/usr/
share/texmf/dvips/config/pgs.map}{/usr/share/texmf/dvips/config/peb.map
}]
systems : end file enkel at line 34
[flush and process mpgraph.mp afterwards] )
(see the transcript file for additional
information)
Output written on enkel.pdf (1 page, 9081 bytes).
Transcript written on enkel.log.
run time : 4 seconds
generating graphics : metaposting mpgraph.mp
TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002
metapost : mpgraph
format : metafun
This is MetaPost, Version 0.641 (Web2C 7.3.1)
(mpgraph.mp [4000] )
1 output file written: mpgraph.4000
Transcript written on mpgraph.log.
second MP run needed : 1 tex labels found
metapost to tex : mpgraph
executable : pdfetex
format : cont-en
inputfile : tmpgraph
output : dvips
interface : en
options : once nomp
current mode : none
This is pdfeTeX, Version 3.14159-14h-released-20010417-2.1 (Web2C
7.3.3.1)
entering extended mode
(./tmpgraph.tex{/usr/share/texmf/pdftex/config/pdftex.cfg}
ConTeXt ver: 2003.1.10 fmt: 2003.1.13 int: english mes: english
language : language en is active
system : cont-new loaded
(/usr/share/texmf/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex!
system (E-TEX) : [line 1497] \ifcsname
)
system : cont-old loaded
(/usr/share/texmf/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system : cont-fil loaded
(/usr/share/texmf/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
bodyfont : 12pt rm is loaded
language : patterns 2:2-en-2 3:2-uk-2 4:2-de-2 5:2-fr-2 7:2-it-2
2-nl-2 l
oaded
specials : tex,postscript,rokicki loaded
system : tmpgraph.top loaded
(./tmpgraph.top
specials : loading definition file dvi
(/usr/share/texmf/tex/context/base/spec-dvi.tex )
specials : tex loaded
specials : loading definition file ps
(/usr/share/texmf/tex/context/base/spec-ps.tex)
specials : tex,postscript loaded
specials : loading definition file tr
(/usr/share/texmf/tex/context/base/spec-tr.tex)
specials : tex,postscript,rokicki loaded
)
pdftex : needs map file: original-context-symbol.map
pdftex : needs map file: pl0-ams-cmr.map
pdftex : needs map file: original-vogel-symbol.map
[1.1]
systems : end file tmpgraph at line 4
)
Output written on tmpgraph.dvi (1 page, 208 bytes).
Transcript written on tmpgraph.log.
run time : 2 seconds
dvi to metapost : mpgraph
metapost : mpgraph
format : metafun
This is MetaPost, Version 0.641 (Web2C 7.3.1)
(mpgraph.mp )
Transcript written on mpgraph.log.
total run time : 4 seconds
sorting and checking : running texutil
TeXUtil 7.4 - ConTeXt / PRAGMA ADE 1992-2002
action : processing commands, lists and registers
option : sorting IJ under Y
option : converting high ASCII values
input file : enkel.tui
output file : enkel.tuo
passed commands : 9
remapped keys : 0
register entries : 0 -> 0 entries 0 references
synonym entries : 0 -> 0 entries
embedded files : 1
total run time : 11 seconds