Re: textext() doesn't work on my MikTeX distr.
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
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
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
Mojca Miklavec wrote:
system(texexec --batch --output=dvips --mpformat=metafun --mptex --nomp --once x-origin-mpgraph)...disabled.
run: kpsewhich texmf.cnf and search in that file for write18, enable it and your setup will work Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen wrote:
Mojca Miklavec wrote:
system(texexec --batch --output=dvips --mpformat=metafun --mptex --nomp --once x-origin-mpgraph)...disabled.
run:
kpsewhich texmf.cnf
and search in that file for write18, enable it and your setup will work
Hans
Thanks a lot to both of you. It finally works. The line I had to change was in miktex.ini. (I never had to bother about MikTeX specific issues till now and I didn't expect the problem to lie so deep in the system.) Thanks, Mojca Now I've found a couple of old posts with more or less the same problem on this and some other mailing lists, but I didn't know what to look for before. Would it make sense to add just a short hint for newbies somewhere at the beginning of the manual, warning that write18 has to be enabled in order to process some graphics properly?
Mojca Miklavec said this at Fri, 15 Oct 2004 13:10:46 +0200:
Thanks a lot to both of you. It finally works. The line I had to change was in miktex.ini. (I never had to bother about MikTeX specific issues till now and I didn't expect the problem to lie so deep in the system.)
I found it bad to do this so deep in the system as well. I found a way that enables \write18 only for ConTeXt, using the texexec configuration file. I documented it at: http://contextgarden.net/Texexec.ini Basically, you would change texexec.ini so that it had the line: for miktex set TeXPassString to --alias=context -shell-escape ...is there any reason why this wouldn't work for MikTeX? or, for that matter, for general ConTeXt use?
Would it make sense to add just a short hint for newbies somewhere at the beginning of the manual, warning that write18 has to be enabled in order to process some graphics properly?
:) I suppose Hans could, but it would mean fewer people come join the ConTeXt community... -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Adam Lindsay wrote:
:) I suppose Hans could, but it would mean fewer people come join the ConTeXt community...
if you don't run mp graphics using write 18 (disabled in texmf.cnf as well as in cont-sys.tex) then mp should be called in between (same as --automp) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (5)
-
Adam Lindsay
-
Hans Hagen
-
Mojca Miklavec
-
Patrick Gundlach
-
Patrick Gundlach