ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "George N. White III" <gnwiii@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: texexec+mpost cmr10 vs CMR10 trouble using dvips backend
Date: Sun, 15 Apr 2007 13:56:58 -0300	[thread overview]
Message-ID: <22af238a0704150956y2d1c3cb6lef70feb15fdf41ab@mail.gmail.com> (raw)
In-Reply-To: <E1Hd6Zj-0000Ui-00@skye.ra.phy.cam.ac.uk>

On 4/15/07, Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk> wrote:

> > If you set prologues := 1 in the mp file, that should help.
>
> That still gave Courier fonts after including fig.1 in test.ps.
>
> > In a new metapost (texlive2007) you can even generate an
> > image with the font included by using prologues := 3.
>
> That worked.  [I'm using MetaPost 0.993 (Web2C 7.5.6) from the Debian
> texlive2007-2 packages.]
>
> >From p.24 of the corresponding mpman.pdf manual:
>
>    It is worth noting that the default value prologues:=0 is
>    sufficient for graphics included in TEX-based documents.
>
> Does that need a slight exception added to it?  Or have I
> misconfigured something in the toolchain from .tex + .mp to .ps?  By
> the way, the figure works fine with prologues := 0 if I include it
> (using epsf.tex) in a plain-TeX document.

Your ConTeXt example is using the default latin modern fonts.  The reason
the mpost files work with plain TeX is that the cm fonts are being
used by plain tex, so
the fonts are already defined in the .ps file when the font commands
in the figure file
are found.

> So I think there's something slightly off about what ConTeXt is doing.

On my systems I have modified the map files to use the lm-rep map
files (so cm fonts are replaced by lm fonts).  Your example works for
me with TL2007 on FC5 in both plain tex and context.  In context, I
see:

TeXUtil | tuo file saved
This is dvips(k) 5.96 Copyright 2005 Radical Eye Software (www.radicaleye.com)
' TeX output 2007.04.15:1332' -> t.ps
<tex.pro><lm-ec.enc><lm-rep-cmrm.enc><finclude.pro><texps.pro><special.pro>.
<lmr10.pfb><lmr12.pfb>[1<./fig.1>]
TeXExec | runtime: 6.214806

The resulting .ps file has:

%%BeginFont: CMR10
%!PS-AdobeFont-1.0: LMRoman10-Regular 1.010

while for plain tex (using dvips -P pdf ...):
This is dvips(k) 5.96 Copyright 2005 Radical Eye Software (www.radicaleye.com)
' TeX output 2007.04.15:1327' -> pt.ps
<tex.pro><alt-rule.pro><lm-rep-cmrm.enc><finclude.pro><texps.pro>
<special.pro>. <lmr10.pfb>[1<fig.1>]

For debian, the procedure for changing updmap.cnf has been debianized,
but it is mentioned in the README for the lmodern package (watch out
for a typo in the example entry:  "test" --> "text").   If you do
this, you might want to include the following:

$ cat lm-subset-ams.map
# AMS fonts not provided by lm-rep
# needed with the lm-rep maps to avoid duplicate entries from the ams maps
# msbm
msbm5 MSBM5 <msbm5.pfb
msbm6 MSBM7 <msbm7.pfb
msbm7 MSBM7 <msbm7.pfb
msbm8 MSBM7 <msbm7.pfb
msbm9 MSBM10 <msbm10.pfb
msbm10 MSBM10 <msbm10.pfb

-- 
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

  reply	other threads:[~2007-04-15 16:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-15  4:43 Sanjoy Mahajan
2007-04-15  4:55 ` Aditya Mahajan
2007-04-15 16:45   ` Sanjoy Mahajan
2007-04-15  6:49 ` Taco Hoekwater
2007-04-15 15:23   ` Sanjoy Mahajan
2007-04-15 16:56     ` George N. White III [this message]
2007-04-17  2:03       ` Sanjoy Mahajan
2007-04-15 16:58     ` Wolfgang Schuster
2007-04-16  5:02       ` Sanjoy Mahajan
2007-04-16 14:21         ` George N. White III
2007-04-17  2:12           ` Sanjoy Mahajan

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=22af238a0704150956y2d1c3cb6lef70feb15fdf41ab@mail.gmail.com \
    --to=gnwiii@gmail.com \
    --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).