* MetaPost with etex/btex @ 2003-12-14 8:03 David Munger 2003-12-14 12:01 ` Willi Egger 0 siblings, 1 reply; 8+ messages in thread From: David Munger @ 2003-12-14 8:03 UTC (permalink / raw) Hello, The following code results in no label output: \starttext \startMPcode label.top(btex Some label etex, (1cm,1cm)) ; \stopMPcode \stoptext I'm using ConTeXt 2003.12.12. By the way, why don't \startMPgraphic and \stopMPgraphic do anything? David ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: MetaPost with etex/btex 2003-12-14 8:03 MetaPost with etex/btex David Munger @ 2003-12-14 12:01 ` Willi Egger 2003-12-14 13:46 ` Re : " David Munger 2003-12-14 19:47 ` David Arnold 0 siblings, 2 replies; 8+ messages in thread From: Willi Egger @ 2003-12-14 12:01 UTC (permalink / raw) [-- Attachment #1: Type: text/plain, Size: 541 bytes --] Hi David, The use of the different possibilities of including metapost graphics in ConTeXt are described in the METAFUN-manual on pages 9, 81-82, 115 For your refernce I attach a small demo file using your code ... Kind regards Willi David Munger wrote: > Hello, > > The following code results in no label output: > > \starttext > \startMPcode > label.top(btex Some label etex, (1cm,1cm)) ; > \stopMPcode > \stoptext > > I'm using ConTeXt 2003.12.12. > > > By the way, why don't \startMPgraphic and \stopMPgraphic do anything? > [-- Attachment #2: MPcode.tex --] [-- Type: text/plain, Size: 769 bytes --] \setupoutput[pdftex] \starttext \section{Including the MPcode in the placefigure mechanism} \placefigure [here] [] {the label} {\startMPcode label.top(btex Some label 1 etex, (1cm,1cm)) ; \stopMPcode} \section{startMPgraphic -- placeMPgraphic} \startMPgraphic label.top(btex Some label 2 etex, (1cm,1cm)) ; \stopMPgraphic \loadcurrentMPgraphic{width=15cm} \placeMPgraphic \section{startuseMPgraphic -- useMPgraphic} \startuseMPgraphic{Label2} label.top(btex Some label 3 etex, (1cm,1cm)) ; \stopuseMPgraphic \useMPgraphic{Label2} \section{startreusableMPgrpahic -- reuseMPgraphic} \startreusableMPgraphic{Label3} label.top(btex Some label 4 etex, (1cm,1cm)) ; \stopreusableMPgraphic \reuseMPgraphic{Label3} \stoptext ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re : MetaPost with etex/btex 2003-12-14 12:01 ` Willi Egger @ 2003-12-14 13:46 ` David Munger 2003-12-14 14:34 ` Patrick Gundlach 2003-12-14 19:47 ` David Arnold 1 sibling, 1 reply; 8+ messages in thread From: David Munger @ 2003-12-14 13:46 UTC (permalink / raw) Hi Willi, Thanks for the examples, they'll sure be useful. But I realize I have not been precise enough in my post. The point is that \startMPcode fill fullcircle scaled 1cm withcolor red ; \stopMPcode works, while \startMPcode label.top("Some label", (1cm,1cm)) ; \stopMPcode produces some garbage between "Some" and "label", and \startMPcode label.top(btex Some label etex, (1cm,1cm)) ; \stopMPcode doesn't work at all. Sorry for being that vague. David On 2003-12-14 07:01:34, Willi Egger wrote : > Hi David, > > The use of the different possibilities of including metapost graphics in > ConTeXt are described in the METAFUN-manual on pages 9, 81-82, 115 > > For your refernce I attach a small demo file using your code ... > > Kind regards Willi > > > > David Munger wrote: > >> Hello, >> >> The following code results in no label output: >> >> \starttext >> \startMPcode >> label.top(btex Some label etex, (1cm,1cm)) ; >> \stopMPcode >> \stoptext >> >> I'm using ConTeXt 2003.12.12. >> >> >> By the way, why don't \startMPgraphic and \stopMPgraphic do anything? >> ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re : MetaPost with etex/btex 2003-12-14 13:46 ` Re : " David Munger @ 2003-12-14 14:34 ` Patrick Gundlach 2003-12-14 15:01 ` Re : [NTG-context] " David Munger 0 siblings, 1 reply; 8+ messages in thread From: Patrick Gundlach @ 2003-12-14 14:34 UTC (permalink / raw) Hi David, > Sorry for being that vague. You are still very vague. Your posted example works fine here. Please report what ConTeXt/texexec version you have. You might think of posting your logfile. Do you have \protectbufferstrue in cont-sys.tex? Patrick -- mon trainsistor j'adore ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re : [NTG-context] Re: Re : MetaPost with etex/btex 2003-12-14 14:34 ` Patrick Gundlach @ 2003-12-14 15:01 ` David Munger 2003-12-14 15:23 ` Patrick Gundlach 0 siblings, 1 reply; 8+ messages in thread From: David Munger @ 2003-12-14 15:01 UTC (permalink / raw) Patrick Gundlach wrote : > Do you have \protectbufferstrue in cont-sys.tex? That was the exact point. It fixed it. Thanks a lot! David ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re : [NTG-context] Re: Re : MetaPost with etex/btex 2003-12-14 15:01 ` Re : [NTG-context] " David Munger @ 2003-12-14 15:23 ` Patrick Gundlach 2003-12-14 15:51 ` Re : [NTG-context] " David Munger 0 siblings, 1 reply; 8+ messages in thread From: Patrick Gundlach @ 2003-12-14 15:23 UTC (permalink / raw) Hi, what ConTeXt version do you have? It sounds like an older one. Patrick -- mon trainsistor j'adore ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re : [NTG-context] Re: Re : [NTG-context] Re: Re : MetaPost with etex/btex 2003-12-14 15:23 ` Patrick Gundlach @ 2003-12-14 15:51 ` David Munger 0 siblings, 0 replies; 8+ messages in thread From: David Munger @ 2003-12-14 15:51 UTC (permalink / raw) > what ConTeXt version do you have? It sounds like an older one. texexec says: ConTeXt ver: 2003.12.12 fmt: 2003.12.14 int: english mes: english Freshly downloaded, but poorly installed by a novice... Actually I replaced the ConTeXt part from the debian unstable package source. So teTeX and ConTeXt are not synchronized. David ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: MetaPost with etex/btex 2003-12-14 12:01 ` Willi Egger 2003-12-14 13:46 ` Re : " David Munger @ 2003-12-14 19:47 ` David Arnold 1 sibling, 0 replies; 8+ messages in thread From: David Arnold @ 2003-12-14 19:47 UTC (permalink / raw) Hmmm,... I haven't tried this sort of thing for a while, so I downloaded the new beta into my Miktex system, regenerated formats, and attempted to compile the code below. I got the following error: ! Undefined control sequence. l.1 \global \loadfontfileoncetrue % ! You can't use a prefix with `\shipout'. <to be read again> \shipout l.2 \shipout \hbox{\smash{\hbox{\hbox{% line 226 C:\temp\junk-mpgraph.mp [1] ) (see the transcript file for additional information) I have write18 enabled in miktex.ini, and adjusted cont-sys.tex: % Enabling run time \METAPOST\ (also enable \write18 in % texmf.cnf): \runMPgraphicstrue \runMPTEXgraphicstrue % This saves some runtime, but needs a format, which you can % make with 'texexec --make --alone metafun'. Make sure that % the mem files are moved to the used web2c path (locate with % 'kpsewhich plain.mem'). \useMETAFUNformattrue % Enabling nested pretty printing: \newprettytrue % This can be a way to get things working on system with % name clashes. (Some \TeX's tend do search system wide.) \protectbufferstrue Anyone have an idea what I am doing wrong? At 01:01 PM 12/14/03 +0100, you wrote: >Hi David, > >The use of the different possibilities of including metapost graphics in >ConTeXt are described in the METAFUN-manual on pages 9, 81-82, 115 > >For your refernce I attach a small demo file using your code ... > >Kind regards Willi > > > >David Munger wrote: > >> Hello, >> >> The following code results in no label output: >> >> \starttext >> \startMPcode >> label.top(btex Some label etex, (1cm,1cm)) ; >> \stopMPcode >> \stoptext >> >> I'm using ConTeXt 2003.12.12. >> >> >> By the way, why don't \startMPgraphic and \stopMPgraphic do anything? >> > >\setupoutput[pdftex] >\starttext > >\section{Including the MPcode in the placefigure mechanism} > >\placefigure > [here] > [] > {the label} > {\startMPcode > label.top(btex Some label 1 etex, (1cm,1cm)) ; > \stopMPcode} > >\section{startMPgraphic -- placeMPgraphic} > >\startMPgraphic > label.top(btex Some label 2 etex, (1cm,1cm)) ; >\stopMPgraphic > >\loadcurrentMPgraphic{width=15cm} >\placeMPgraphic > >\section{startuseMPgraphic -- useMPgraphic} > >\startuseMPgraphic{Label2} > label.top(btex Some label 3 etex, (1cm,1cm)) ; >\stopuseMPgraphic > >\useMPgraphic{Label2} > >\section{startreusableMPgrpahic -- reuseMPgraphic} > >\startreusableMPgraphic{Label3} > label.top(btex Some label 4 etex, (1cm,1cm)) ; >\stopreusableMPgraphic > >\reuseMPgraphic{Label3} > >\stoptext ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2003-12-14 19:47 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2003-12-14 8:03 MetaPost with etex/btex David Munger 2003-12-14 12:01 ` Willi Egger 2003-12-14 13:46 ` Re : " David Munger 2003-12-14 14:34 ` Patrick Gundlach 2003-12-14 15:01 ` Re : [NTG-context] " David Munger 2003-12-14 15:23 ` Patrick Gundlach 2003-12-14 15:51 ` Re : [NTG-context] " David Munger 2003-12-14 19:47 ` David Arnold
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).