Linux Commands Examples

A great documentation place for Linux commands

mptopdf

convert MetaPost to PDF


see also : tex - latex - mpost - pdftex

Synopsis

mptopdf FILE [ ... ]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
mptopdf overtake-free-path.mp
pdftops -eps overtake-free-path-1.pdf
mptopdf tandem_servers.mp
pdftops -eps tandem_servers-1.pdf
0
source
            
mptopdf simulation_model_packet_based_digital_sys.mp
pdftops -eps simulation_model_packet_based_digital_sys-1.pdf
pdftops -eps simulation_model_packet_based_digital_sys-1.pdf
mptopdf discrete_time_line.mp
pdftops -eps discrete_time_line-1.pdf
mptopdf continuous_time_line.mp
0
source
            
mptopdf discrete_time_line.mp
pdftops -eps discrete_time_line-1.pdf
mptopdf continuous_time_line.mp
pdftops -eps continuous_time_line-1.pdf
mptopdf simulation_model_dt_single_simple_wo_arri.mp
pdftops -eps simulation_model_dt_single_simple_wo_arri-1.pdf
0
source
            
echo "mptopdf_mps version ${VERSION}"
echo
echo "A wrapper that does these 3 things in sequence:"
echo "2. call mptopdf on the script file;"
echo "3. rename the generated -mps.pdf file to .pdf file."
echo
0
source
            
if ("$argv[1]" == "YES") then
mptopdf "${filename:r}.mp" # want to call it in continuous mode but don't know how
else
mptopdf "${filename:r}.mp"

description

mptopdf can convert MetaPost-generated EPS files to PDF, or it can process a MetaPost source file directly (see mpost(1)) and convert the generated EPS files to PDF.

options

All switches are specified in full here but can be abbreviated to the shortest unique prefix. Thus, --metaf works the same as --metafun.

--help

Print a terse help message.

--metafun

Use the metafun pre-compiled format to process the MetaPost source file. You usually don’t need this option, since metafun input is usually produced and processed as part of a texexec(1) run. Needs the --rawmp switch to take effect.

--rawmp

Process the source file with mpost(1) directly, rather than with texexec(1). This option is needed if you want to specify --metafun.

--latex

Typeseting labels using latex(1) rather than plain tex(1).

usage

To convert manfig.20 to manfig-20.pdf:

mptopdf manfig.20

You can convert more than one EPS file at once:

mptopdf manfig.20 otherfig.17 finalfig.8

Or you can give mptopdf(1) a pattern that it will expand:

mptopdf ’manfig.*’

Note the single quotes to protect the * from the shell. Of course, usually you can let the shell do the wildcard expansion and therefore leave off the quotes.

To convert figs.mp to figs-1.pdf, figs-2.pdf, ...

mptopdf figs.mp

If the labels are typeset with latex(1):

mptopdf --latex figs.mp

see also

tex , latex , mpost , pdftex , texexec.

ConTeXt wiki ⟨ URL: http://www.contextgarden.net ⟩ .


author

mptopdf(1) is part of the ConTeXt system by Hans Hagen et al, which is available from PRAGMA ADE ⟨ URL: http://www.pragma-ade.com/ ⟩ . This manpage was written by Sanjoy Mahajan <sanjoy[:at:]mit[:dot:]edu> and is in the public domain.

How can this site be more helpful to YOU ?


give  feedback