Re: [NTG-context] MetaPost with etex/btex
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'. \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 ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Can I compare with someone?
Staszek, > > I've recently installed tetex 2.0.2. I am having difficulty with Metapost > > [...] > > Now, when I compile, texexec seems to be invoked. Is this what happens on > > your systems? Is this correct behavior? > > > > [EMAIL PROTECTED] darnold]$ mpost junk > > This is MetaPost, Version 0.641 (Web2C 7.4.5) > > (junk.mp > > TeXExec 4.0 - ConTeXt / PRAGMA ADE 1997-2003 > > It seems that somebody changed texmf.cnf, e.g. declaring here > something like: > TEX = context Aha! I found this in my texmf.cnf. % What MetaPost runs to make MPX files. This is passed an option -troff % if MP is in troff mode. Set to `0' to disable this feature. MPXCOMMAND = texexec --mptex > or, worse, changed makempx script. > Anyway, tetex 2.0.2, as it is distributed is OK. > > I've observed that some Linux distributions provide changed tetex > config files, not always in a happy way... > I don't know how such situation could be cured, as packages are often > not signed. The notable example is still not updated tetex in > the _current_ RedHat9.0. It is still tetex 1.0.7, but broken in many > parts. > > -- David Arnold College of the Redwoods. Mathematics Department 7351 Tompkins Hill Road Eureka, CA 95501 Office phone: 707-476-4222 Fax: 707-476-4424 Home page: http://online.redwoods.edu/instruct/darnold/ ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Can I compare with someone?
On Wed, 10 Dec 2003, David Arnold wrote: > I've recently installed tetex 2.0.2. I am having difficulty with Metapost > [...] > Now, when I compile, texexec seems to be invoked. Is this what happens on > your systems? Is this correct behavior? > > [EMAIL PROTECTED] darnold]$ mpost junk > This is MetaPost, Version 0.641 (Web2C 7.4.5) > (junk.mp > TeXExec 4.0 - ConTeXt / PRAGMA ADE 1997-2003 It seems that somebody changed texmf.cnf, e.g. declaring here something like: TEX = context or, worse, changed makempx script. Anyway, tetex 2.0.2, as it is distributed is OK. I've observed that some Linux distributions provide changed tetex config files, not always in a happy way... I don't know how such situation could be cured, as packages are often not signed. The notable example is still not updated tetex in the _current_ RedHat9.0. It is still tetex 1.0.7, but broken in many parts. -- Staszek Wawrykiewicz [EMAIL PROTECTED] ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \setuphead question (long section lines not wrapping)
Re your question about the section numbering with a dot: This is nothing I found out, but something Hans (who else?) posted to the list a while ago, and I believe it does what you want to achieve: \setuplabeltext[section={{},{.}}] Best Thomas ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: ConTeXt Switcher?
someone (not sure who) said: > I know XML source should work, but at least for me, creating XML source > is unproductive. I work with a text editor and find writing this: > > ``Hello world,'' says HAL. > > much more productive than writing this: > > “Hello world”, says HAL. > > Maybe I'm missing something, but for writing, XML's markup requirements > -- which are invisible to field-based data entry screen -- are way too > intense for hand-editing. TeX source is much less verbose. It is easier > to create, proof (both visually and audibly), spell check > troubleshoot, etc. I have not seen an editor capable of doing XML > source in a productive manner, like (La)TeX with text editor. You're missing something. For one, your above example would be: Hello world, says HAL. Second, try something like nXML mode for emacs, or the XML plug-in for jEdit. Real-time markup validation, tag-completion, spell-checking, etc. Finally, you're missing the biggest point of all: XML is about reuse. You cleanly separate markup from presentation so that -- among other things -- you can trivially transform that to different output. Bruce ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re : [NTG-context] Re: Re : [NTG-context] Re: Re : MetaPost with etex/btex
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 ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re : [NTG-context] Re: psfrag
Patrick Gundlach wrote : Hi David, > So, is there any ConTeXt equivalent to LaTeX's \psfrag command? No. > It would be very useful to process PostScript output from vector > graphics drawing programs. How does psfrag from LaTeX work internally? Perhaps we are able to make something similar. I don't know how about its internals, but here's a usage example. For instance, using some vector graphics program, I write a text label "alpha" on some figure, and I print this figure in an EPS file. Then, using PSfrag, right before \including the EPS file, I tell PSfrag to replace "alpha" with "$\alpha $": \psfrag{alpha}{$\alpha$} \includegraphics{some_eps_file} I believe PSfrag works in conjunction with dvips. There's this PS file which may give you some clue: texmf/dvips/psfrag/psfrag.pro I can neither read TeX code nor PS code, but it is likely that it builds some sort of lookup table for the labels. If I can help anyway, please tell me. There are those two other files: texmf/tex/plain/graphics/psfrag.tex texmf/tex/latex/misc/psfrag.sty David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Re : [NTG-context] Re: Re : MetaPost with etex/btex
Hi, what ConTeXt version do you have? It sounds like an older one. Patrick -- mon trainsistor j'adore ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re : [NTG-context] Re: Re : MetaPost with etex/btex
Patrick Gundlach wrote : Do you have \protectbufferstrue in cont-sys.tex? That was the exact point. It fixed it. Thanks a lot! David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: texexec page selection changes output?
Hello out there > I recently used texexec to select a given page from a file (attached) of > three pages: > texexec --pdfselect --selection=2 --result=cover2-tx.pdf covers.pdf When I try to do the above, ConTeXt looks for a font "aicmti10". What is going on here? Something misconfigured? This is pdfeTeXk, Version 3.141592-1.11a-2.1 (Web2C 7.5.2) \write18 enabled. %&-line parsing enabled. (/opt/texlive/8/texmf/web2c/cp8bit.tcx) entering extended mode (./texexec.tex{/opt/local/texmf/pdftex/config/pdftex.cfg} ConTeXt ver: 2003.11.27 fmt: 2003.11.30 int: english mes: english [...] systems: begin file texexec at line 14 <./covers.pdf{/opt/texlive/8/texmf/fonts/map/pdftex/updmap/pdftex.map}{/opt/lo cal/texmf/dvips/config/dolly.map}{/opt/local/texmf/dvips/config/typedesign.map} kpathsea: Running mktextfm aicmti10 mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input aicmti10 This is METAFONT, Version 2.71828 (Web2C 7.5.2) (/opt/texlive/8/texmf/web2c/cp8bit.tcx) kpathsea: Running mktexmf aicmti10 -> error Patrick -- mon trainsistor j'adore ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Re : MetaPost with etex/btex
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 ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: psfrag
Hi David, > So, is there any ConTeXt equivalent to LaTeX's \psfrag command? No. > It would be very useful to process PostScript output from vector > graphics drawing programs. How does psfrag from LaTeX work internally? Perhaps we are able to make something similar. Patrick -- mon trainsistor j'adore ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re : [NTG-context] MetaPost with etex/btex
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? ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] MetaPost with etex/btex
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
[NTG-context] psfrag
Hello, I know this topic was treated in the past years, but I couldn't find the answer in mailing list archives. So, is there any ConTeXt equivalent to LaTeX's \psfrag command? It would be very useful to process PostScript output from vector graphics drawing programs. David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] MetaPost with etex/btex
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 ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context