ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Mathtimes
Date: Sun, 29 Aug 1999 14:33:38 +0200	[thread overview]
Message-ID: <37C928A2.40B8AE87@wxs.nl> (raw)
In-Reply-To: <3.0.5.32.19990827221345.00b2e650@mail.northcoast.com>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed;, Size: 2295 bytes --]

This is a multi-part message in MIME format.
--------------148F34903EF7F56658D9491A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

David Arnold wrote:

> at the beginning of my Metapost file, as in the attached twomasses.mp, I
> can use distiller to produce twomasses.pdf from the resulting twomasses.1,
> no problem. Everything looks good at this end. Open the pdf file for me and
> see if all looks well to you.
> 
> Then, if I comment out the above lines, computer modern is assumed and
> distiller will not deal with the resulting twomasses.1.

Indeed. As I told you before, MP output expects DVIPS. Nevertheless, you
can use the attached script to convert a .1 file into an .mps that can
be handled by distiller. 

-----------------------------------------------------------------
                                          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
-----------------------------------------------------------------
--------------148F34903EF7F56658D9491A
Content-Type: application/x-perl;
 name="mptomps.pl"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="mptomps.pl"

# copyright : PRAGMA ADE / Hans Hagen / 29 aug 1999
# 
# PRAGMA Advanced Document Engineering / www.prama-ade.nl 
#
# This script is part of ConTeXt and will be incorporated into texutil. 

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

foreach $file (@files) 
  { ($name,$suffix) = split (/\./, $file) ; 
    if (open(INP,$file)&&open(OUT,">$name.mps"))  
      { print "$file => $name.mps" ; 
        while (<INP>)
          { chomp ; 
            if (/%%DocumentFonts: (.*)/) 
              { @fonts = split (/ /, $1) ; 
                print OUT "%%DocumentFonts:" ; 
                print " : cm fonts" ; 
                foreach (@fonts) 
                  { if (/^cm/i) { $_ = uc $_ ; print " $_" } 
                    print OUT " $_" }
                print OUT "\n" }
            elsif (/\s*(\/cm.*)\s*(\/cm.*) def/i) 
              { print OUT " $1 " . uc $2 . " def\n" } 
            else 
              { print OUT "$_\n" } } 
        print "\n" ; 
        close (INP) ; 
        close (OUT) } }   

--------------148F34903EF7F56658D9491A--


           reply	other threads:[~1999-08-29 12:33 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <3.0.5.32.19990827221345.00b2e650@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=37C928A2.40B8AE87@wxs.nl \
    --to=pragma@wxs.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).