* why btex...etex or textext() does not work?
@ 2003-03-09 12:58 Vit Zyka
2003-03-10 12:07 ` Guy Worthington
2003-03-10 13:43 ` Patrick Gundlach
0 siblings, 2 replies; 5+ messages in thread
From: Vit Zyka @ 2003-03-09 12:58 UTC (permalink / raw)
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1510 bytes --]
Hallo ConTeXt list member,
I am new member in the list so apologize if I ask for something trivial.
But I have been looking in documentation, in ConTeXt source code, in the
Net... Unsuccessfully. Perhaps someone here will known.
I have this simple file zk.tex:
%---------------------
\starttext
Hallo.
\startuseMPgraphic{zk}
picture p;
p:= btex Text1 etex;
% p:= textext("Text2");
% label(btex Text3 etex, origin);
draw p;
draw origin--(1cm,1cm);
\stopuseMPgraphic
\useMPgraphic{zk}
\stoptext
%----------------------
When I run
texexec zk
the compilation pass successfuly but the result is without line
and "Text1". In the case of "Text2" I obtain line and "unknown" (picture)
text and in the case of "Text3" the same as in "Text1". The log file from
my recent context distribution on Linux web2c is in the attachment.
The file mpgraph.mpx is created with correct content (Text1). But next run
of metapost does not include it. The only way how to obtain desired
result is to run mpost directly
mpost mpgraph.mp
But it is not possible with the "textext".
The instalation is standard. Only I set
\setupoutput[pdftex]
\usesymbols[nav]
\setupsymbolset[navigation 1]
\recycleMPslotstrue
\runMPgraphicstrue
\runMPTEXgraphicstrue
\useMETAFUNformattrue
in cont-sys.tex
So, what I am doing worse?
Thanks
Vit
--
_________________________________
| Vit Zyka, researcher, CTU FEE |
| Center for Machine Perception |
| zyka@ http://cmp.felk.cvut.cz |
---------------------------------
[-- Attachment #2: Type: TEXT/PLAIN, Size: 12899 bytes --]
texexec --automprun zk
TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002
executable : pdfetex
format : cont-en
inputfile : zk
output : standard
interface : en
current mode : none
TeX run : 1
This is pdfeTeX, Version 3.14159-pre-1.0-unofficial-20010704-2.1 (Web2C 7.3.3.1)
entering extended mode
(./zk.tex{/usr/TeX/texmf-local/pdftex/config/pdftex.cfg}
ConTeXt ver: 2003.1.31 fmt: 2003.3.9 int: english mes: english
language : language en is active
<protectionstate 0>
system : cont-new loaded
(/usr/TeX/texmf-local/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex!
system (E-TEX) : [line 726] \ifcsname
)
system : cont-old loaded
(/usr/TeX/texmf-local/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system : cont-fil loaded
(/usr/TeX/texmf-local/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system : cont-sys loaded
(/usr/TeX/texmf-local/tex/context/base/cont-sys.tex
specials : loading definition file tpd
(/usr/TeX/texmf-local/tex/context/base/spec-tpd.tex
specials : loading definition file fdf
(/usr/TeX/texmf-local/tex/context/base/spec-fdf.tex <unprotect 3>
system (E-TEX) : [line 1815] \ifcsname
<unprotect 4> <protect 4> <protect 3>)
specials : fdf loaded
)
specials : fdf,tpd loaded
symbols : loading symbolset nav
(/usr/TeX/texmf-local/tex/context/base/symb-nav.tex
pdftex : needs map file: original-context-symbol.map
pdftex : needs map file: pl0-ams-cmr.map
pdftex : needs map file: original-vogel-symbol.map
))
bodyfont : 12pt rm is loaded
language : patterns 2:2-en-2 4:2-de-2 5:2-fr-2 6:2-es-2 loaded
specials : fdf,tpd loaded
system : zk.top loaded
(./zk.top) (./zk.tuo) (./zk.tuo) (./zk.tuo) (./zk.tuo) (./zk.tuo) (./zk.tuo)
(./zk.tuo) (./zk.tuo) (./zk.tuo) (./zk.tuo) (./zk.tuo) (./zk.tuo) (./zk.tuo)
(./zk.tuo)
systems : begin file zk at line 1
Randomizer initialized to 958064153. [MP mpgraph.1] [1.1{/usr/TeX/texmf/pdftex/
config/psfonts.map}{/usr/TeX/texmf/pdftex/config/rawfonts.map}{/usr/TeX/texmf/d
vips/cspsfonts/csfontd.mapfile}{/usr/TeX/texmf-local/dvips/config/truetype.map}
{/usr/TeX/texmf-local/dvips/config/mathpi.map}{/usr/TeX/texmf-local/dvips/confi
g/mt-plus.map}{/usr/TeX/texmf-local/dvips/config/mt-yy.map}{/usr/TeX/texmf-loca
l/dvips/config/storm.map}{/usr/TeX/texmf-local/dvips/config/slido.map}{/usr/TeX
/texmf-local/dvips/config/cmpfonts.map}{/usr/TeX/texmf-local/dvips/config/adobe
euro.map}{/usr/TeX/texmf-local/dvips/config/context.map
Warning: pdfetex (file /usr/TeX/texmf-local/dvips/config/context.map): entry fo
r `contnav' already exists, duplicates ignored
}]
systems : end file zk at line 13
[flush and process mpgraph.mp afterwards] )</usr/TeX/texmf/fonts/type1/bluesky/
cm/cmr12.pfb>
Output written on zk.pdf (1 page, 4153 bytes).
Transcript written on zk.log.
run time : 1 seconds
generating graphics : metaposting mpgraph.mp
TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002
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-pre-1.0-unofficial-20010704-2.1 (Web2C 7.3.3.1)
entering extended mode
(./tmpgraph.tex{/usr/TeX/texmf-local/pdftex/config/pdftex.cfg}
ConTeXt ver: 2003.1.31 fmt: 2003.3.9 int: english mes: english
language : language en is active
<protectionstate 0>
system : cont-new loaded
(/usr/TeX/texmf-local/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex!
system (E-TEX) : [line 726] \ifcsname
)
system : cont-old loaded
(/usr/TeX/texmf-local/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system : cont-fil loaded
(/usr/TeX/texmf-local/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system : cont-sys loaded
(/usr/TeX/texmf-local/tex/context/base/cont-sys.tex
specials : loading definition file tpd
(/usr/TeX/texmf-local/tex/context/base/spec-tpd.tex
specials : loading definition file fdf
(/usr/TeX/texmf-local/tex/context/base/spec-fdf.tex <unprotect 3>
system (E-TEX) : [line 1815] \ifcsname
<unprotect 4> <protect 4> <protect 3>)
specials : fdf loaded
)
specials : fdf,tpd loaded
symbols : loading symbolset nav
(/usr/TeX/texmf-local/tex/context/base/symb-nav.tex
pdftex : needs map file: original-context-symbol.map
pdftex : needs map file: pl0-ams-cmr.map
pdftex : needs map file: original-vogel-symbol.map
))
bodyfont : 12pt rm is loaded
language : patterns 2:2-en-2 4:2-de-2 5:2-fr-2 6:2-es-2 loaded
specials : fdf,tpd loaded
system : tmpgraph.top loaded
(./tmpgraph.top
specials : loading definition file dvi
(/usr/TeX/texmf-local/tex/context/base/spec-dvi.tex <unprotect 3> <protect 3>)
specials : tex loaded
specials : loading definition file ps
(/usr/TeX/texmf-local/tex/context/base/spec-ps.tex)
specials : tex,postscript loaded
specials : loading definition file tr
(/usr/TeX/texmf-local/tex/context/base/spec-tr.tex)
specials : tex,postscript,rokicki loaded
) [1.1]
systems : end file tmpgraph at line 4
)
Output written on tmpgraph.dvi (1 page, 200 bytes).
Transcript written on tmpgraph.log.
run time : 1 seconds
dvi to metapost : mpgraph
metapost : mpgraph
format : metafun
This is MetaPost, Version 0.641 (Web2C 7.3.3.1)
(mpgraph.mp )
Transcript written on mpgraph.log.
total run time : 2 seconds
sorting and checking : running texutil
TeXUtil 7.3 - ConTeXt / PRAGMA ADE 1992-2000
action : processing commands, lists and registers
option : sorting IJ under Y
option : converting high ASCII values
input file : zk.tui
output file : zk.tuo
passed commands : 9
remapped keys : 0
register entries : 0 -> 0 entries 0 references
synonym entries : 0 -> 0 entries
embedded files : 1
TeX run : 2
This is pdfeTeX, Version 3.14159-pre-1.0-unofficial-20010704-2.1 (Web2C 7.3.3.1)
entering extended mode
(./zk.tex{/usr/TeX/texmf-local/pdftex/config/pdftex.cfg}
ConTeXt ver: 2003.1.31 fmt: 2003.3.9 int: english mes: english
language : language en is active
<protectionstate 0>
system : cont-new loaded
(/usr/TeX/texmf-local/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex!
system (E-TEX) : [line 726] \ifcsname
)
system : cont-old loaded
(/usr/TeX/texmf-local/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system : cont-fil loaded
(/usr/TeX/texmf-local/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system : cont-sys loaded
(/usr/TeX/texmf-local/tex/context/base/cont-sys.tex
specials : loading definition file tpd
(/usr/TeX/texmf-local/tex/context/base/spec-tpd.tex
specials : loading definition file fdf
(/usr/TeX/texmf-local/tex/context/base/spec-fdf.tex <unprotect 3>
system (E-TEX) : [line 1815] \ifcsname
<unprotect 4> <protect 4> <protect 3>)
specials : fdf loaded
)
specials : fdf,tpd loaded
symbols : loading symbolset nav
(/usr/TeX/texmf-local/tex/context/base/symb-nav.tex
pdftex : needs map file: original-context-symbol.map
pdftex : needs map file: pl0-ams-cmr.map
pdftex : needs map file: original-vogel-symbol.map
))
bodyfont : 12pt rm is loaded
language : patterns 2:2-en-2 4:2-de-2 5:2-fr-2 6:2-es-2 loaded
specials : fdf,tpd loaded
system : zk.top loaded
(./zk.top) (./zk.tuo) (./zk.tuo) (./zk.tuo) (./zk.tuo) (./zk.tuo) (./zk.tuo)
(./zk.tuo) (./zk.tuo) (./zk.tuo) (./zk.tuo) (./zk.tuo) (./zk.tuo) (./zk.tuo)
(./zk.tuo)
systems : begin file zk at line 1
Randomizer initialized to 958064153. [MP mpgraph.1] [1.1{/usr/TeX/texmf/pdftex/
config/psfonts.map}{/usr/TeX/texmf/pdftex/config/rawfonts.map}{/usr/TeX/texmf/d
vips/cspsfonts/csfontd.mapfile}{/usr/TeX/texmf-local/dvips/config/truetype.map}
{/usr/TeX/texmf-local/dvips/config/mathpi.map}{/usr/TeX/texmf-local/dvips/confi
g/mt-plus.map}{/usr/TeX/texmf-local/dvips/config/mt-yy.map}{/usr/TeX/texmf-loca
l/dvips/config/storm.map}{/usr/TeX/texmf-local/dvips/config/slido.map}{/usr/TeX
/texmf-local/dvips/config/cmpfonts.map}{/usr/TeX/texmf-local/dvips/config/adobe
euro.map}{/usr/TeX/texmf-local/dvips/config/context.map
Warning: pdfetex (file /usr/TeX/texmf-local/dvips/config/context.map): entry fo
r `contnav' already exists, duplicates ignored
}]
systems : end file zk at line 13
[flush and process mpgraph.mp afterwards] )</usr/TeX/texmf/fonts/type1/bluesky/
cm/cmr12.pfb>
Output written on zk.pdf (1 page, 4153 bytes).
Transcript written on zk.log.
run time : 1 seconds
generating graphics : metaposting mpgraph.mp
TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002
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-pre-1.0-unofficial-20010704-2.1 (Web2C 7.3.3.1)
entering extended mode
(./tmpgraph.tex{/usr/TeX/texmf-local/pdftex/config/pdftex.cfg}
ConTeXt ver: 2003.1.31 fmt: 2003.3.9 int: english mes: english
language : language en is active
<protectionstate 0>
system : cont-new loaded
(/usr/TeX/texmf-local/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex!
system (E-TEX) : [line 726] \ifcsname
)
system : cont-old loaded
(/usr/TeX/texmf-local/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system : cont-fil loaded
(/usr/TeX/texmf-local/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system : cont-sys loaded
(/usr/TeX/texmf-local/tex/context/base/cont-sys.tex
specials : loading definition file tpd
(/usr/TeX/texmf-local/tex/context/base/spec-tpd.tex
specials : loading definition file fdf
(/usr/TeX/texmf-local/tex/context/base/spec-fdf.tex <unprotect 3>
system (E-TEX) : [line 1815] \ifcsname
<unprotect 4> <protect 4> <protect 3>)
specials : fdf loaded
)
specials : fdf,tpd loaded
symbols : loading symbolset nav
(/usr/TeX/texmf-local/tex/context/base/symb-nav.tex
pdftex : needs map file: original-context-symbol.map
pdftex : needs map file: pl0-ams-cmr.map
pdftex : needs map file: original-vogel-symbol.map
))
bodyfont : 12pt rm is loaded
language : patterns 2:2-en-2 4:2-de-2 5:2-fr-2 6:2-es-2 loaded
specials : fdf,tpd loaded
system : tmpgraph.top loaded
(./tmpgraph.top
specials : loading definition file dvi
(/usr/TeX/texmf-local/tex/context/base/spec-dvi.tex <unprotect 3> <protect 3>)
specials : tex loaded
specials : loading definition file ps
(/usr/TeX/texmf-local/tex/context/base/spec-ps.tex)
specials : tex,postscript loaded
specials : loading definition file tr
(/usr/TeX/texmf-local/tex/context/base/spec-tr.tex)
specials : tex,postscript,rokicki loaded
) [1.1]
systems : end file tmpgraph at line 4
)
Output written on tmpgraph.dvi (1 page, 200 bytes).
Transcript written on tmpgraph.log.
run time : 0 seconds
dvi to metapost : mpgraph
metapost : mpgraph
format : metafun
This is MetaPost, Version 0.641 (Web2C 7.3.3.1)
(mpgraph.mp )
Transcript written on mpgraph.log.
total run time : 2 seconds
sorting and checking : running texutil
TeXUtil 7.3 - ConTeXt / PRAGMA ADE 1992-2000
action : processing commands, lists and registers
option : sorting IJ under Y
option : converting high ASCII values
input file : zk.tui
output file : zk.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 : 6 seconds
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: why btex...etex or textext() does not work?
2003-03-09 12:58 why btex...etex or textext() does not work? Vit Zyka
@ 2003-03-10 12:07 ` Guy Worthington
2003-03-10 13:43 ` Patrick Gundlach
1 sibling, 0 replies; 5+ messages in thread
From: Guy Worthington @ 2003-03-10 12:07 UTC (permalink / raw)
Vit Zyka wrote:
> Hallo ConTeXt list member,
Hi Vit.
> [test case snipped]
In your first test case (where you draw the string "Text1" and a line)
my output .dvi file is also without "Text1" and the line.
If I run the first test case with the options:
texexec --pdf zk
my pdf file does have the line and "Text1"
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: why btex...etex or textext() does not work?
2003-03-09 12:58 why btex...etex or textext() does not work? Vit Zyka
2003-03-10 12:07 ` Guy Worthington
@ 2003-03-10 13:43 ` Patrick Gundlach
2003-03-11 9:39 ` Vit Zyka
[not found] ` <Pine.LNX.4.33L2.0303111016060.1975-100000@boruvka.felk.cvu t.cz>
1 sibling, 2 replies; 5+ messages in thread
From: Patrick Gundlach @ 2003-03-10 13:43 UTC (permalink / raw)
Vit Zyka <zyka@cmp.felk.cvut.cz> writes:
Hello Vit,
> I am new member in the list so apologize if I ask for something trivial.
> But I have been looking in documentation, in ConTeXt source code, in the
> Net... Unsuccessfully. Perhaps someone here will known.
I bet you don't have \protectbufferstrue enabled in
cont-sys.tex. Please double check and enable this option if disabled.
Don't know where or if this is documented.
Patrick
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Re: why btex...etex or textext() does not work?
2003-03-10 13:43 ` Patrick Gundlach
@ 2003-03-11 9:39 ` Vit Zyka
[not found] ` <Pine.LNX.4.33L2.0303111016060.1975-100000@boruvka.felk.cvu t.cz>
1 sibling, 0 replies; 5+ messages in thread
From: Vit Zyka @ 2003-03-11 9:39 UTC (permalink / raw)
> I bet you don't have \protectbufferstrue enabled in
> cont-sys.tex. Please double check and enable this option if disabled.
Ou, yesss! Have I miss this switch in the documentation (metafun, ...)
or it is secret options with indent to inprove ConTeXt skils
by spending some days by searching the code? ;-)
Thanks for the answer (to Patrick) and many thanks (to Hans) for
fascinating ConTeXt. It is only one sw I know to create document in the
form of dodecahedron (after glueing) with photo on every face with
semitransparent text along the curve to fit deaf place in the photo.
Vit Zyka
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Re: why btex...etex or textext() does not work?
[not found] ` <Pine.LNX.4.33L2.0303111016060.1975-100000@boruvka.felk.cvu t.cz>
@ 2003-03-12 10:23 ` Hans Hagen
0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2003-03-12 10:23 UTC (permalink / raw)
At 10:39 AM 3/11/2003 +0100, you wrote:
> > I bet you don't have \protectbufferstrue enabled in
> > cont-sys.tex. Please double check and enable this option if disabled.
>
>Ou, yesss! Have I miss this switch in the documentation (metafun, ...)
>or it is secret options with indent to inprove ConTeXt skils
>by spending some days by searching the code? ;-)
>
>Thanks for the answer (to Patrick) and many thanks (to Hans) for
>fascinating ConTeXt. It is only one sw I know to create document in the
>form of dodecahedron (after glueing) with photo on every face with
>semitransparent text along the curve to fit deaf place in the photo.
sounds interesting, how about writing an article on that (the ntg maps is
always looking for articles)
(btw, anyone is invited to write articles)
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-03-12 10:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-09 12:58 why btex...etex or textext() does not work? Vit Zyka
2003-03-10 12:07 ` Guy Worthington
2003-03-10 13:43 ` Patrick Gundlach
2003-03-11 9:39 ` Vit Zyka
[not found] ` <Pine.LNX.4.33L2.0303111016060.1975-100000@boruvka.felk.cvu t.cz>
2003-03-12 10:23 ` 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).