ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Denis B. Roegel" <Denis.Roegel@loria.fr>
Cc: Denis.Roegel@loria.fr (Denis B. Roegel),
	ntg-context@ntg.nl (NTG-ConTeXt)
Subject: Re: texexec not launching mpost
Date: Thu, 19 Oct 2000 15:01:23 +0200 (MET DST)	[thread overview]
Message-ID: <200010191301.PAA21012@bar.loria.fr> (raw)
In-Reply-To: <Pine.GSO.4.21.0010191059560.9064-100000@AMath13> from "Mr. Wang Lei" at Oct 19, 2000 11:21:33 AM

`Mr. Wang Lei' wrote
>   
>   On Wed, 18 Oct 2000, Denis B. Roegel wrote:
>   
>   > When I run texexec on the file below, the mpgraph.mp file
>   > is created, but not metaposted. I can call texexec as many
>   > times as I want, it doesn't help. I have to call mpost 
>   > by hand and then it works. I have shell_escape = 1 if
>   
>                         it should be "shell_escape = t"

I thought anything different from f is true.
Anyway, when I make this change and create a cont-sys.tex
(where should this file be located in my $HOME/texmf tree?)
it doesn't work any better. Please keep in mind that in
certain cases, texexec launches the compilation of mpgraph.mp,
but not in this case. Hence, there might be another problem.

>   
>   You need set other environment as suggestted by hans
>   in metafun manual. you can see if you have set the following
>   in your cont-sys.tex:
>   
>      \runMPgraphicstrue 
>   \runMPTEXgraphicstrue
>     \recycleMPslotstrue 
>   \useMETAFUNformattrue
>   
>   You'd better set metapost command using texexec in you
>   texmf.cnf:
>   
>   MPXCOMMAND = texexec --mptex
>   TEX = texexec --once --batch --nomp

I am a bit reluctant to make these changes, since I will not
always be using texexec. I often use tex, latex and mpost alone.

I case it matters, below is the compilation of my example
with no prior mpgraph present:

bar context2 221 % texexec test16

 TeXExec 2.2 - ConTeXt / PRAGMA ADE 1997-2000

            executable : pdfetex
                format : cont-en
             inputfile : test16
                output : standard
             interface : en
          current mode : all
               TeX run : 1

This is pdfeTeX, Version 3.14159-14f-released-20000525-2.1 (Web2C 7.3.2x)
entering extended mode
(./test16.tex{/local/hugo/texlive5/texmf/pdftex/config/pdftex.cfg}

ConTeXt  ver: 2000.9.21  fmt: 2000.10.5  int: english  mes: english

language       : language en is active
system         : cont-new loaded
(/usr/local/tex/texmflocal/tex/context/base/cont-new.tex
systems        : beware: some patches loaded from cont-new.tex!
)
system         : cont-old loaded
(/usr/local/tex/texmflocal/tex/context/base/cont-old.tex
loading        : Context Old Macros
)
system         : cont-fil loaded
(/usr/local/tex/texmflocal/tex/context/base/cont-fil.tex
loading        : Context File Synonyms
)
system         : cont-sys loaded
(./cont-sys.tex)
bodyfont       : 12pt rm is loaded
language       : patterns 2-en-2 2-de-2 2-fr-2 2-nl-2 loaded
specials       : tex,postscript,rokicki loaded
system         : test16.top loaded                            
(./test16.top) (./test16.tuo) (./test16.tuo) (./test16.tuo) (./test16.tuo)
(./test16.tuo) (./test16.tuo) (./test16.tuo) (./test16.tuo) (./test16.tuo)
(./test16.tuo) (./test16.tuo) (./test16.tuo)
systems        : begin file test16 at line 1
color          : rgb color space is supported
color          : cmyk color space is supported
color          : system rgb is global activated
layout         : calculating backgrounds
Randomizer initialized to 1045559809.
 TeXExec 2.2 - ConTeXt / PRAGMA ADE 1997-2000

       metapost to tex : mpgraph
            executable : pdfetex
                format : cont-en
             inputfile : tmpgraph
                output : standard
             interface : en
               options : once batch nomp
          current mode : all

This is pdfeTeX, Version 3.14159-14f-released-20000525-2.1 (Web2C 7.3.2x)
entering extended mode

              run time : 1 seconds
       dvi to metapost : mpgraph
              metapost : mpgraph
                format : metafun
This is MetaPost, Version 0.641 (Web2C 7.3.2x)

figures        : figure mpgraph can not be found
(./test16.tuo) [1.1] [2.2]
systems        : end file test16 at line 105
 )
Output written on test16.dvi (2 pages, 4744 bytes).
Transcript written on test16.log.

              run time : 5 seconds
  sorting and checking : running texutil

 TeXUtil 7.3 - ConTeXt / PRAGMA ADE 1992-2000

                action : processing commands, lists and registers
                option : sorting IJ under Y
                option : converting high ASCII values
            input file : test16.tui
           output file : test16.tuo
       passed commands : 5
         remapped keys : 0
      register entries : 0 -> 0 entries 0 references
       synonym entries : 0 -> 0 entries
        embedded files : 1
bar context2 222 %                               

------------------------------------------------------------------------

But the copilation of 

\setupcolors[state=start]
\starttext
\runMPgraphicstrue

\def\processword#1{\noindent\framed[frame=off,background=lions]{#1}\space}

\startuniqueMPgraphic{lions b}
  path p; p:=fullsquare
    xyscaled (\overlaywidth,\overlayheight) randomized 5pt;
  pickup pencircle scaled 1pt;
  fill p withcolor .850white; draw p withcolor .625yellow;
\stopuniqueMPgraphic

\defineoverlay[lions][\uniqueMPgraphic{lions b}]

\setupalign[broad,middle]

\processwords
{As you may know, \TeX's ambassador is a lion, while \METAFONT{} is
represented by a lioness. It is still unclear if they have a relationship,
but if so, and if a baby is born, may it enjoy \METAFUN.}

\stoptext                            

triggers metapost with exactly the same environment.

Even if I add \runMPgraphicstrue to my first example (previous posting),
there are still no mpgraph.1, etc. around.

When I did the tests, I took care to remove all auxiliary files
in both cases.

Denis


  parent reply	other threads:[~2000-10-19 13:01 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-18 21:18 Denis B. Roegel
2000-10-19  3:21 ` Mr. Wang Lei
2000-10-19  9:04   ` Hans Hagen
2000-10-19 11:41     ` Mr. Wang Lei
2000-10-19 13:01   ` Denis B. Roegel [this message]
2000-10-19 13:45     ` Hans Hagen
2000-10-19 19:17       ` Denis B. Roegel
2000-10-19 19:30         ` Denis B. Roegel
2000-10-20  2:34           ` Mr. Wang Lei
2000-10-20 14:13             ` Denis B. Roegel
2000-10-20 15:59               ` Hans Hagen
2000-10-20 18:56                 ` Denis B. Roegel
2000-10-20 19:09                   ` Marc van Dongen
2000-10-21 21:46                     ` Denis B. Roegel
2000-10-22 18:49                       ` Hans Hagen
2000-10-22 18:30                   ` Hans Hagen
2000-10-23 19:34                     ` Denis B. Roegel
2000-10-24  6:48                       ` Hans Hagen
2000-10-20 17:36               ` Mr. Lei Wang
     [not found] <3.0.6.32.20001027113959.0154f7a0@pop.wxs.nl>
     [not found] ` <200010271431.QAA03427@bar.loria.fr>
2000-10-27 15:55   ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200010191301.PAA21012@bar.loria.fr \
    --to=denis.roegel@loria.fr \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).