ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: What's the easy way again?
Date: Fri, 19 May 2000 09:21:28 +0200	[thread overview]
Message-ID: <3.0.6.32.20000519092128.00b8a450@pop.wxs.nl> (raw)
In-Reply-To: <3.0.5.32.20000518232901.0087ac60@mail.northcoast.com>

I cc this to the list since more people can be interested. 

>>- upload the latest context
>>- pdftex --ini mptopdf 
>>- move the format to the right location 
>>- pdftex &mptopdf \relax yourfile.1 
>
>Worked perfectly, though I have no idea why \relax is there (other 

It's a way of telling tex to shut up and start working. Then some everypar
trick picks up the name. 

Here is a perl script that handles multiple files

# usage: mptopdf whatever.*

@files = glob "$ARGV[0].*" ;

$done   = 0 ;
$report = "MPtoPDF: $ARGV[0].* is converted to" ;

foreach (@files)
  { if (/\.(\d+)/)
     { system ("pdftex \&mptopdf \\relax $_") ;
       rename ("$_.pdf", "$_-$1.pdf") ;
       if ($done) { $report .= " +" }
       $report .= " $_-$1.pdf" ;
       ++$done } }

print "\n$report\n\n" if $done ;

Some day I will move it into texutil. Remind me. 

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


           reply	other threads:[~2000-05-19  7:21 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <3.0.5.32.20000518232901.0087ac60@mail.northcoast.com>]

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=3.0.6.32.20000519092128.00b8a450@pop.wxs.nl \
    --to=pragma@wxs.nl \
    --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).