Latex

From Metapost

(Difference between revisions)
Line 3: Line 3:
   \\documentclass{article}
   \\documentclass{article}
   \\usepackage{ifpdf}
   \\usepackage{ifpdf}
-
 
   \\ifpdf
   \\ifpdf
     \\usepackage[pdftex]{graphicx}
     \\usepackage[pdftex]{graphicx}
Line 10: Line 9:
     \\usepackage{graphicx}
     \\usepackage{graphicx}
   \\fi
   \\fi
-
 
 
   \\begin{document}
   \\begin{document}
     \\includegraphics{yourfile.1}
     \\includegraphics{yourfile.1}
   \\end{document}
   \\end{document}

Revision as of 23:05, 24 September 2006

To embed your files in latex/pdflatex use:

 \\documentclass{article}
 \\usepackage{ifpdf}
 \\ifpdf
   \\usepackage[pdftex]{graphicx}
   \\DeclareGraphicsRule{*}{mps}{*}{} 
 \\else
   \\usepackage{graphicx}
 \\fi
 \\begin{document}
   \\includegraphics{yourfile.1}
 \\end{document}
Personal tools