[NTG-context] btex and DeclareGraphicsRule question

2011-02-24 Thread Rebecca Searls
Why does stmt, label(btex Au dessus  etex, (0,0));
fail when using stmt, \DeclareGraphicsRule{*}{mps}{*}{}
but works with stmt, \DeclareGraphicsRule{*}{eps}{*}{}

I am running texlive/2010.


Here is the error msg I get when using mps.

/usr/local/texlive/2010/bin/i386-linux/mpost xtest.mp
This is MetaPost, version 1.211 (TeX Live 2010) (kpathsea version 6.0.0)
(./xtest.mpfatal: Command failed: etex --parse-first-line
--interaction=nonstopmode mpIYqrrH.tex; see mpxerr.log
 xtest.mp
 xtest.mpx
! Unable to make mpx file.
l.15 label(btex
Au dessus  etex, (0,0));
Transcript written on xtest.log.




-- xtext.mp
%
verbatimtex
%latex
\documentclass{book}
\usepackage{dvidrv} \usepackage{hrefout}
\usepackage{xbookjh}
\usepackage{xstyle}
\usepackage{verbatim}
\begin{document}
etex

beginfig(1);
label(Au dessus  ,(0,0));
label(btex Au dessus  etex, (0,0));
endfig;
bye;


--- xbookjh.sty
\ProvidesPackage{bookjh}[2001/05/24 Material for _Linear Algebra_ (JH)]

\usepackage[\dvidrv]{color}
\usepackage[\dvidrv]{graphicx}  %
  \DeclareGraphicsRule{*}{mps}{*}{} % make pdflatex take fig.1 as metapost.
%  \DeclareGraphicsRule{*}{eps}{*}{} % make pdflatex take fig.1 as metapost.
\endinput

--- xstyle.sty
\AtBeginDocument{\newlength{\heightofcdot}
\newlength{\widthofcdot}
\settoheight{\heightofcdot}{$\cdot$}
\settowidth{\widthofcdot}{$\cdot$}
\newsavebox{\dotprodcircle}
\savebox{\dotprodcircle}{\includegraphics{dotprod.1}}
\newcommand{\dotprod}{\mathbin{\raisebox{.5\heightofcdot}{
  \makebox[\widthofcdot]{$\smash{\usebox{\dotprodcircle}}$}


Alternatively if I use stmt, \DeclareGraphicsRule{*}{mps}{*}{}
and comment out all the lines in xstyle.sty no error is generated
when mpost is run.

I don't understand what in xstyle.sty can be having an affect on
\DeclareGraphicsRule{*}{mps}{*}{}.

Can anyone provide any helpful information?

My preference is to use mps and not eps.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Question: [mpost .. texnum.mpfatal: Command failed]

2011-01-04 Thread Rebecca Searls
Hello,

I am using the default implementation of TeXLive 2010 which provides
MetaPost 1.211
on Windows 7.  I'm getting a fatal error on texnum.mp on the simplest
possible use
of graph.  Here is the simplest possible test case that shows the error:

  input graph
  end


Here is the error message I get.

C:\texlive\2010\bin\win32\mpost xtest
This is MetaPost, version 1.211 (Web2C 2010) (kpathsea version 6.0.0)
(./xtest.mp (c:/TeXLive/2010/texmf-dist/metapost/base/graph.mp
(c:/TeXLive/2010/texmf-dist/metapost/base/marith.mp
(c:/TeXLive/2010/texmf-dist/metapost/base/string.mp))
(c:/TeXLive/2010/texmf-dist/metapost/base/format.mp
(c:/TeXLive/2010/texmf-dist/metapost/base/string.mp)
(c:/TeXLive/2010/texmf-dist/metapost/base/texnum.mpfatal: Command
failed: etex -
-parse-first-line --interaction=nonstopmode mpa05524.tex; see mpxerr.log
 texnum.mp
 texnum.mpx
! Unable to make mpx file.
l.17 init_numbers(btex
  $-$etex, btex$1$etex, btex${\times}10$etex,
Transcript written on xtest.log.


Here is the information I get when running etex.

C:\texlive\2010\bin\win32\etex --parse-first-line
--interaction=nonstopmode mpxerr.tex
This is pdfTeX, Version 3.1415926-1.40.11 (Web2C 2010)
 restricted \write18 enabled.
entering extended mode
(./mpxerr.tex [1] [1] [1] [1] [1] [1] )
Output written on mpxerr.dvi (6 pages, 672 bytes).
Transcript written on mpxerr.log.

Is there something I need to configure in TeXLive or my .mp file in
order to get this to work?  Or is there some other debugging I can do to
determine
how to resolve this problem?
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___