Font problems

From Metapost

Sometimes, text in the diagrams produced by MetaPost might look ugly. The most common reason, lack of sufficient font information in Metapost output, is dealt with on this page. You might also want to read more about different methods of typesetting text in Metapost.

By default, files produced by Metapost are PostScript fragments, which are not self-contained. This is fine, as long as you don't plan to view them directly but embed in other files or/and do some post-processing (see the first two sections). If you want to be able to view your Metapost output directly, see the last section.

For more information, see [1]

Contents

Standalone output

PS

mps2eps converts a given MPS to a self-contained EPS file with the necessary fonts included.

 mpost mydiagrams.mp
 mps2eps mydiagrams.1 > mydiagrams-1.eps

PDF

The following will produce mydiagrams-1.pdf:

 mpost mydiagrams.mp
 mptopdf mydiagrams.1   

Standalone output with latex

Prepare a Latex file mydocument.tex that embeds your diagrams. If you just want to see your diagrams, use the standard mproof.tex:

 tex mproof mydiagrams.1 mydiagrams.2 ...

PS

Use the "-j0" option of dvips:

 mpost mydiagrams.mp
 latex mydocument.tex
 dvips -j0 mydocument.dvi > mydocument.ps

PDF

PDFLatex can handle MPS files directly. See the Latex page for examples and more information.

 mpost mydiagrams.mp
 pdflatex mydocument.tex

Hello! Excellent site, but most of messages here are not related to its contents...

mature lesbians | gay boys | lesbian movie | adult home videos

Personal tools