[pstricks] Combining PSTricks and Metapost

David Arnold dwarnold45 at suddenlink.net
Sat Aug 29 17:53:25 CEST 2009


All,

I truly thought Herbert Voss (see below) had the solution. However,  
using the sequence:

1. latex --shell-escape fonttest.tex

2. dvips -o fonttest-pics.ps fonttest.dvi

3. ps2pdf -dAutoRotatePages=/None fonttest-pics.ps fonttest-pics.pdf

4. pdflatex tonttest.tex

on the adjusted file fonttest.tex (attached), the second step now  
produces:

This is dvips(k) 5.97 Copyright 2008 Radical Eye Software (www.radicaleye.com 
)
' TeX output 2009.08.29:0836' -> fonttest-pics.ps
dvips: Font lmsy10 used in file fonttest.1 is not in the mapping file.
dvips: Font rm-lmr12 used in file fonttest.1 is not in the mapping file.

My search for psfonts.map:

david-arnolds-macbook-pro:optimath darnold$ kpsewhich psfonts.map
/usr/local/texlive/2008/texmf-var/fonts/map/dvips/updmap/psfonts.map

The resulting pdf file is attached, including the perl script we use  
to compile. Our minus sign is still missing.

Acrobat reports these fonts in fonttest.pdf.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedGraphic.tiff
Type: image/tiff
Size: 88164 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20090829/8980b6c1/attachment-0001.tiff>
-------------- next part --------------





Any help appreciated.

David Arnold
College of the Redwoods
http://msenux.redwoods.edu/~darnold/index.php


-------------- next part --------------
A non-text attachment was scrubbed...
Name: fonttest.tex
Type: application/octet-stream
Size: 2164 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20090829/8980b6c1/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OTlatex.pl
Type: text/x-perl-script
Size: 2551 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20090829/8980b6c1/attachment-0001.bin>
-------------- next part --------------


On Aug 29, 2009, at 3:45 AM, Herbert Voss wrote:

> David Arnold schrieb:
>
>> We have developed a testing system that serves up quizzes to our
>> students on-the-fly. Our database contains both Metapost code and
>> PSTricks code in some instances, so we are currently compiling with  
>> the
>> attached script: OTlatex.pl.
>>
>> I've also provided a sample file, fonttest.tex. You can run the  
>> script
>> by first making it executable with chmod +x OTlatex.pl and executing:
>
> with latest texlive2009 TeX uses by default the Latin Modern fonts
>
> voss at shania:~/tmp> pdffonts fonttest.pdf
> name                                 type              emb sub uni  
> object ID
> ------------------------------------ ----------------- --- --- ---  
> ---------
> UZOZVS+LMRoman12-Bold                Type 1            yes yes  
> no       6  0
> JEHIDO+LMRoman12-Regular             Type 1            yes yes  
> no       7  0
> JEHIDO+LMRoman12-Regular             Type 1            yes yes  
> no       8  0
> TBEVRU+LMMathSymbols10-Regular       Type 1            yes yes  
> no       9  0
> WFWVWL+LMMathItalic12-Regular        Type 1            yes yes  
> no      10  0
> TBEVRU+LMMathSymbols10-Regular       Type 1            yes yes  
> no      16  0
> HPHXQC+LMRoman10-Regular             Type 1            yes yes  
> no      19  0
>
>
> However, you should use
>
> \documentclass[12pt]{article}
> \usepackage[T1]{fontenc}
> \usepackage{lmodern}
>
> in your document. Then the lm fonts should be used by default.
>
> Herbert
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks



More information about the PSTricks mailing list