ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* btex and DeclareGraphicsRule question
@ 2011-02-24 21:12 Rebecca Searls
  2011-02-25 12:50 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Rebecca Searls @ 2011-02-24 21:12 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1919 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 2335 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: btex and DeclareGraphicsRule question
  2011-02-24 21:12 btex and DeclareGraphicsRule question Rebecca Searls
@ 2011-02-25 12:50 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2011-02-25 12:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Rebecca Searls

On 24-2-2011 10:12, Rebecca Searls wrote:
> Why does stmt, label(btex Au dessus  etex, (0,0));
> fail when using stmt, \DeclareGraphicsRule{*}{mps}{*}{}
> but works with stmt, \DeclareGraphicsRule{*}{eps}{*}{}

looks like latex

> 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.

probably a configuration error at the latex end

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-25 12:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-24 21:12 btex and DeclareGraphicsRule question Rebecca Searls
2011-02-25 12:50 ` Hans Hagen

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).