Latex

From Metapost

(Difference between revisions)
 
(2 intermediate revisions not shown)
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}

Current revision as of 00:01, 3 March 2009

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