[metapost] What is the best approach for writing LaTeX specific commands in metapost
Rasmus Villemoes
burner+usenet at imf.au.dk
Tue Mar 1 18:54:50 CET 2011
Vafa Khalighi <vafakhlgh at gmail.com> writes:
> Thanks alot taco. That fixed it.
I had a similar situation, where I had a lot of .mp files, which all
needed the same LaTeX preamble (and also some common metapost
configuration). The solution was rather simple: I created
mp-tex-preamble.tex, containing all the "\documentclass
.... \begin{document}", and "mp_common.mp" containing stuff such as
prologues := 3 and various vardefs.
All the "actual" files now start
verbatimtex
\input{mp-tex-preamble}
etex
input mp-common;
--
Rasmus Villemoes
<http://rasmusvillemoes.dk/>
More information about the metapost
mailing list