From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66365 Path: news.gmane.org!not-for-mail From: Rebecca Searls Newsgroups: gmane.comp.tex.context Subject: btex and DeclareGraphicsRule question Date: Thu, 24 Feb 2011 13:12:16 -0800 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1108829006==" X-Trace: dough.gmane.org 1298581980 1690 80.91.229.12 (24 Feb 2011 21:13:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Feb 2011 21:13:00 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 24 22:12:55 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PsiUY-0003Hy-Ro for gctc-ntg-context-518@m.gmane.org; Thu, 24 Feb 2011 22:12:54 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 379D5CAA69; Thu, 24 Feb 2011 22:12:53 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id FrhEwNnUBc-p; Thu, 24 Feb 2011 22:12:41 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DEBB0CAA5E; Thu, 24 Feb 2011 22:12:40 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 438D8CAA5E for ; Thu, 24 Feb 2011 22:12:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id DcZflxe+-2MM for ; Thu, 24 Feb 2011 22:12:18 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id A9F6FCAA58 for ; Thu, 24 Feb 2011 22:12:18 +0100 (CET) Original-Received: from mail-qw0-f41.google.com (mail-qw0-f41.google.com [209.85.216.41]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p1OLCHUF025269 for ; Thu, 24 Feb 2011 22:12:17 +0100 Original-Received: by qwd7 with SMTP id 7so1032980qwd.14 for ; Thu, 24 Feb 2011 13:12:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=dolFm+1AA0eF81Vvz7oaUZt+7QoLoGQwTMwIzt9J80o=; b=VFc4mHL8/USBp96///0ThIpBEs/nxHdlxfnuqOAPKF9GDasJt8pvnN5itdj/xzHwjS 6J11rXMs0wvbeoXiQJeKjvU/BKajFhZNx5W4qExLxP6EcKfrf+kxHPul+Tiv0t4PxriN P+6jyE0DO5WjAo6Z0wcJxea0IAMiCf76I5bCc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Z75/VqyRdB18hkhumNfSlHkAMndV5jc7ckA1D9mqlaHEQx+I41U5ea4dsnsl6urwy0 2Z3XCf1lnPAevNn1Bgqt1MEbocCSg9qUp0mn/xwNsCgCR1BODVsNUakAPwu75laTLWUY qQ9sxMr+n0GuIAPQT9uENRaVGtlnXqEZGWvxU= Original-Received: by 10.229.221.17 with SMTP id ia17mr1199331qcb.6.1298581936573; Thu, 24 Feb 2011 13:12:16 -0800 (PST) Original-Received: by 10.229.79.14 with HTTP; Thu, 24 Feb 2011 13:12:16 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05EbVchSM - 4e561b1f1d2b - 20110224 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.216 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:66365 Archived-At: --===============1108829006== Content-Type: multipart/alternative; boundary=0016362842980a900d049d0dab00 --0016362842980a900d049d0dab00 Content-Type: text/plain; charset=ISO-8859-1 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. --0016362842980a900d049d0dab00 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Why does stmt, label(btex Au dessus=A0 etex, (0,0));
fail when u= sing stmt, \DeclareGraphicsRule{*}{mps}{*}{}
but works with stmt, \Decla= reGraphicsRule{*}{eps}{*}{}

I am running texlive/2010.


He= re 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) (kpat= hsea version 6.0.0)
(./xtest.mpfatal: Command failed: etex --parse-first= -line --interaction=3Dnonstopmode mpIYqrrH.tex; see mpxerr.log
>> xtest.mp
>> xtest.mpx
= ! Unable to make mpx file.
l.15 label(btex
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 Au dessus=A0 etex, (0,0));
Transcript written on x= test.log.




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

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


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

\usepackage[\dvi= drv]{color}
\usepackage[\dvidrv]{graphicx}=A0 %
=A0 \DeclareGraphicsRule{*}{mps}{*}{= } % make pdflatex take fig.1 as metapost.
%=A0 \DeclareGraphicsRule{*}{e= ps}{*}{} % make pdflatex take fig.1 as metapost.
\endinput

--- xs= tyle.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}{
=A0=A0=A0=A0= =A0=A0=A0=A0=A0 \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 no= t eps.













--0016362842980a900d049d0dab00-- --===============1108829006== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1108829006==--