* textext() doesn't work on my MikTeX distr.
@ 2004-10-13 1:38 Mojca Miklavec
2004-10-13 10:45 ` Patrick Gundlach
0 siblings, 1 reply; 4+ messages in thread
From: Mojca Miklavec @ 2004-10-13 1:38 UTC (permalink / raw)
The following example works on live@contextgarden, but on my computer it
only writes "unknown" at the place of "x". btex etex also doesn't work
in ConTeXt (metaplay) on my computer, although it does without any
problems in metapost/mptopdf.
\starttext
\startMPpage
draw textext.origin("x");
draw fullcircle scaled 2cm;
\stopMPpage
\stoptext
I use the latest MikTeX distribution (although ConTeXt may not be really
up-to-date, but that shouldn't be a problem, I suppose). It's probably
just a matter of a single setting or so (it should be corrected in
MikTeX as well if that's the case), but I don't know where to start looking.
Thanks for help, Mojca Miklavec
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <416D1849.9080106@guest.arnes.si>]
* Re: textext() doesn't work on my MikTeX distr.
[not found] <416D1849.9080106@guest.arnes.si>
@ 2004-10-13 14:38 ` Patrick Gundlach
2004-10-15 3:36 ` Mojca Miklavec
0 siblings, 1 reply; 4+ messages in thread
From: Patrick Gundlach @ 2004-10-13 14:38 UTC (permalink / raw)
Cc: ntg-context
Hello Mojca,
> > do you have
> >
> > \protectbufferstrue
> >
> > in cont-sys.tex?
>
> I renamed the file once for some reason (I don't remember why, but
> I've probably read something about removing the file; my apologises if
> I accused MikTeX for that).
>
> Now I renamed the file back, (\protectbufferstrue was already there),
> executed texexec --make -all, but now I get an empty PDF file instead
> of at least a circle. And even if I delete this line, it makes no
> change.
Hmm, strange. Please post the complete log to the list(!). And perhaps
you can post the relevant lines of cont-sys.tex. Do you have
shell-escape (=write18) enabled in MikTeX? I don't know where to look
(I don't use MikTeX).
Patrick
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: textext() doesn't work on my MikTeX distr.
2004-10-13 14:38 ` Patrick Gundlach
@ 2004-10-15 3:36 ` Mojca Miklavec
2004-10-15 7:37 ` Patrick Gundlach
0 siblings, 1 reply; 4+ messages in thread
From: Mojca Miklavec @ 2004-10-15 3:36 UTC (permalink / raw)
>> > do you have
>> >
>> > \protectbufferstrue
>> >
>> > in cont-sys.tex?
>>
>>I renamed the file once for some reason (I don't remember why, but
>>I've probably read something about removing the file; my apologises if
>>I accused MikTeX for that).
>>
>>Now I renamed the file back, (\protectbufferstrue was already there),
>>executed texexec --make -all, but now I get an empty PDF file instead
>>of at least a circle. And even if I delete this line, it makes no
>>change.
>
> Hmm, strange. Please post the complete log to the list(!). And perhaps
> you can post the relevant lines of cont-sys.tex. Do you have
> shell-escape (=write18) enabled in MikTeX?
(If I knew what that was ...) :(
> I don't know where to look
> (I don't use MikTeX).
> Patrick
I don't like posting garbagge on the mailing list, but here it is:
This is my complete cont-sys.tex:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\unprotect
\setupoutput [pdf]
\runMPgraphicstrue
\runMPTEXgraphicstrue
\useMETAFUNformattrue
\newprettytrue
\protectbufferstrue
\protect \endinput
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
This is my file:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\starttext
\startMPpage
draw textext.origin("x");
draw fullcircle scaled 2cm;
\stopMPpage
\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
And these are the logs:
[probably with something worht pointing out]
system(texexec --batch --output=dvips --mpformat=metafun --mptex --nomp
--once
x-origin-mpgraph)...disabled.
.log
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
This is pdfeTeX, Version 3.141592-1.20a-2.2 (MiKTeX 2.4) (preloaded
format=cont-en 2004.10.2) 15 OCT 2004 05:25
entering extended mode
**x-origin.tex
(x-origin.tex
ConTeXt ver: 2004.8.15 fmt: 2004.10.2 int: english mes: english
language : language en is active
<protectionstate 0>
system : cont-new loaded
(C:\Programme\MikTeX\tex\context\base\cont-new.tex
systems : beware: some patches loaded from cont-new.tex!
color : palette rollover is available
system (E-TEX) : [line 567]
system (E-TEX) : [line 622]
)
system : cont-old loaded
(C:\Programme\MikTeX\tex\context\base\cont-old.tex
loading : Context Old Macros
)
system : cont-fil loaded
(C:\Programme\MikTeX\tex\context\base\cont-fil.tex
loading : Context File Synonyms
)
system : cont-sys loaded
(C:\Programme\MikTeX\tex\context\base\cont-sys.tex
specials : loading definition file tpd
(C:\Programme\MikTeX\tex\context\base\spec-tpd.tex
specials : loading definition file fdf
(C:\Programme\MikTeX\tex\context\base\spec-fdf.tex <unprotect 3>
<unprotect 4>
system (E-TEX) : [line 2253] \ifcsname
<protect 4> <protect 3>)
specials : fdf loaded
<unprotect 3> <protect 3>)
specials : fdf,tpd loaded
)
bodyfont : 12pt rm is loaded
language : patterns 2:2-en-2 4:2-de-2 5:2-fr-2 6:2-es-2 7:2-it-2
8:2-nl-2
loaded
specials : fdf,tpd loaded
system : x-origin.top loaded
(./x-origin.top) (./x-origin.tuo) (./x-origin.tuo) (./x-origin.tuo)
(./x-origin.tuo) (./x-origin.tuo) (./x-origin.tuo) (./x-origin.tuo)
(./x-origin.tuo) (./x-origin.tuo) (./x-origin.tuo) (./x-origin.tuo)
(./x-origin.tuo) (./x-origin.tuo) (./x-origin.tuo)
fonts : needs map file: ec-public-lm.map
fonts : needs map file: original-base.map
systems : begin file x-origin at line 1
systems : randomizer starts with 385210193
system(texexec --batch --output=dvips --mpformat=metafun --mptex --nomp
--once
x-origin-mpgraph)...disabled.
[MP x-origin-mpgraph.1] [1.1]
systems : end file x-origin at line 6
)
Here is how much of TeX's memory you used:
1015 strings out of 66088
14690 string characters out of 724779
440778 words of memory out of 1079542
32633 multiletter control sequences out of 35000
10284 words of font info for 34 fonts, out of 500000 for 1000
54 hyphenation exceptions out of 607
37i,14n,34p,286b,454s stack positions out of
1500i,500n,5000p,200000b,32768s
4 PDF objects out of 300000
0 named destinations out of 300000
1 words of extra memory for PDF output out of 65536
Output written on x-origin.pdf (1 page, 1008 bytes).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
.tmp
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% x-origin.top
\unprotect
\def\MPOSTbatchswitch {--interaction=batchmode}\def\MPOSTnonstopswitch
{--interaction=nonstopmode}\def\MPOSTformatswitch {--alias=mpost
--translate-file=natural.tcx
--undump=}\setupsystem[\c!gebied={"C:/mojcam/"}]
\setupsystem[\c!n=2]
\setupsystem[inputfile=x-origin.tex]
\protect
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Thank you, Mojca
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: textext() doesn't work on my MikTeX distr.
2004-10-15 3:36 ` Mojca Miklavec
@ 2004-10-15 7:37 ` Patrick Gundlach
0 siblings, 0 replies; 4+ messages in thread
From: Patrick Gundlach @ 2004-10-15 7:37 UTC (permalink / raw)
Hello Mojca,
I can only guess, since I (do I repeat myself?) don't have MikTeX
installed.
It seems that you don't have shell-escape or write18 enabled. This
feature lets you run external programs from your tex-run. This is a
potential security hole, so it is disabled by default. You have two
options, enable write18 by using --shell-escape on the command line
(see http://www.phys.uvic.ca/Help_Guides/miktex.html#IDX164 ) or tell
ConTeXt to do without (that's what I have on live.contextgarden.net)
[cont-sys.tex:]
> \unprotect
> \setupoutput [pdf]
this should be [pdftex], not [pdf] (please correct me if I'm wrong)
> \runMPgraphicstrue
> \runMPTEXgraphicstrue
disable these two:
% \runMPgraphicstrue
% \runMPTEXgraphicstrue
[...]
Hope this helps.
Patrick
--
ConTeXt wiki: http://contextgarden.net
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-10-15 7:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-13 1:38 textext() doesn't work on my MikTeX distr Mojca Miklavec
2004-10-13 10:45 ` Patrick Gundlach
[not found] <416D1849.9080106@guest.arnes.si>
2004-10-13 14:38 ` Patrick Gundlach
2004-10-15 3:36 ` Mojca Miklavec
2004-10-15 7:37 ` Patrick Gundlach
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).