* 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; 9+ 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] 9+ messages in thread
* Re: Re: textext() doesn't work on my MikTeX distr. 2004-10-13 14:38 ` textext() doesn't work on my MikTeX distr Patrick Gundlach @ 2004-10-15 3:36 ` Mojca Miklavec 2004-10-15 7:37 ` Patrick Gundlach 2004-10-15 7:38 ` Hans Hagen 0 siblings, 2 replies; 9+ 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] 9+ 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 2004-10-15 7:38 ` Hans Hagen 1 sibling, 0 replies; 9+ 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] 9+ messages in thread
* Re: Re: textext() doesn't work on my MikTeX distr. 2004-10-15 3:36 ` Mojca Miklavec 2004-10-15 7:37 ` Patrick Gundlach @ 2004-10-15 7:38 ` Hans Hagen 2004-10-15 11:10 ` Mojca Miklavec 1 sibling, 1 reply; 9+ messages in thread From: Hans Hagen @ 2004-10-15 7:38 UTC (permalink / raw) 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 ----------------------------------------------------------------- ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: textext() doesn't work on my MikTeX distr. 2004-10-15 7:38 ` Hans Hagen @ 2004-10-15 11:10 ` Mojca Miklavec 2004-10-15 15:27 ` Adam Lindsay 0 siblings, 1 reply; 9+ messages in thread From: Mojca Miklavec @ 2004-10-15 11:10 UTC (permalink / raw) 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? ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: textext() doesn't work on my MikTeX distr. 2004-10-15 11:10 ` Mojca Miklavec @ 2004-10-15 15:27 ` Adam Lindsay 2004-10-15 16:21 ` Hans Hagen 0 siblings, 1 reply; 9+ messages in thread From: Adam Lindsay @ 2004-10-15 15:27 UTC (permalink / raw) 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 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: textext() doesn't work on my MikTeX distr. 2004-10-15 15:27 ` Adam Lindsay @ 2004-10-15 16:21 ` Hans Hagen 0 siblings, 0 replies; 9+ messages in thread From: Hans Hagen @ 2004-10-15 16:21 UTC (permalink / raw) 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 ----------------------------------------------------------------- ^ permalink raw reply [flat|nested] 9+ messages in thread
* 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; 9+ 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] 9+ messages in thread
* Re: textext() doesn't work on my MikTeX distr. 2004-10-13 1:38 Mojca Miklavec @ 2004-10-13 10:45 ` Patrick Gundlach 0 siblings, 0 replies; 9+ messages in thread From: Patrick Gundlach @ 2004-10-13 10:45 UTC (permalink / raw) Hello Mojca Miklavec, > 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. do you have \protectbufferstrue in cont-sys.tex? Patrick -- ConTeXt wiki: http://contextgarden.net ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-10-15 16:21 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <416D1849.9080106@guest.arnes.si> 2004-10-13 14:38 ` textext() doesn't work on my MikTeX distr Patrick Gundlach 2004-10-15 3:36 ` Mojca Miklavec 2004-10-15 7:37 ` Patrick Gundlach 2004-10-15 7:38 ` Hans Hagen 2004-10-15 11:10 ` Mojca Miklavec 2004-10-15 15:27 ` Adam Lindsay 2004-10-15 16:21 ` Hans Hagen 2004-10-13 1:38 Mojca Miklavec 2004-10-13 10:45 ` 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).