ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
Subject: Re: Problem using mptopdf with Metapost containing LaTeX
Date: Thu, 04 Jan 2007 13:55:21 +0000	[thread overview]
Message-ID: <E1H2T3x-0002xJ-00@skye.ra.phy.cam.ac.uk> (raw)
In-Reply-To: Your message of "Thu, 04 Jan 2007 10:32:02 +0100." <459CC992.80908@wxs.nl>

> does adding a --latex directive help?

I also tried 'TEX=latex mptopdf thatfile.mp' but it didn't work,
though 'TEX=latex mpost thatfile.mp' worked.  Not sure if any of the
included post to c.t.t. is relevant, although I can no longer
reproduce this part -- not sure why:

  But setting the TEX env variable worked (without the %&
  line):

    TEX=latex mptopdf yourfile.mp

-Sanjoy

===========================================================

Date:    03 Jan 2007 16:47:11 GMT
From:    Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
Subject: Re: Problems using mptopdf
To:      comp.text.tex

> I tried to add '%&LaTeX' after the verbatimtex line but it doesn't
> change anything.

Did you try %&latex ?  Not sure if the MacOS filesystem is case
sensitive, but on regular Unix/Linux it matters.

Does 'mpost yourfile.mp' work?  Even when I put in %&latex (lowercase)
after the verbatimtex, it didn't work at first here (Ubuntu 6.10,
mostly TeXLive 2005 with 2006.12.27 context, mpost 0.993, i386).  This
subcommand failed:

   tex --parse-first-line --interaction=nonstopmode mpxerr.tex

Running it by hand shows where the failure is:

  This is TeXk, Version 3.141592 (Web2C 7.5.5)
   %&-line parsing enabled.
  ---! /var/lib/texmf/web2c/latex.fmt was written by pdftex
  (Fatal format file error; I'm stymied)

The problem is that latex is nowadays a symlink to pdftex (or pdfetex)
so when latex.fmt was generated, it was generated by pdfetex.  Whereas
'tex' is still regular (non-pdf) tex, so when it reads the '%&latex'
line, it loads latex.fmt and cannot understand it.

So I made tex a symlink to pdfetex, and 'mpost yourfile.mp' worked
then.

But 'mptopdf yourfile.mp' fails in the same place as for you.  Not
sure why.  But setting the TEX env variable worked (without the %&
line):

  TEX=latex mptopdf yourfile.mp

You might post your example to the context mailing list
(ntg-context@ntg.nl), where you will get more expert assistance.

-Sanjoy

`Not all those who wander are lost.' (J.R.R. Tolkien)

  parent reply	other threads:[~2007-01-04 13:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-04  7:50 Martin Buchmann
2007-01-04  9:32 ` Hans Hagen
2007-01-04 10:30   ` Taco Hoekwater
2007-01-04 13:24   ` Martin Buchmann
2007-01-04 13:55   ` Sanjoy Mahajan [this message]
2007-01-04  9:44 ` Taco Hoekwater

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=E1H2T3x-0002xJ-00@skye.ra.phy.cam.ac.uk \
    --to=sanjoy@mrao.cam.ac.uk \
    --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).