- Produce the Metapost file using the appropriate latex code.
- Manually give it to Metapost (I tried to put it in the preprocessor directive of PDFLaTeX output profile, but to no avail)
- Separately print on a PDF file the diagrams I need
- Insert them in the document via \includegraphics.
General ⇒ feynmp | Integration into TeXnicCenter
feynmp | Integration into TeXnicCenter
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
feynmp | Integration into TeXnicCenter
Since I couldn't find any answer on how to make texnic center interact with feynmp, I thought about asking how to make kile work with it instead. Turns out the solution is surprisingly fast, and works just fine with texnic center too.
As you can see here
http://tex.stackexchange.com/questions/ ... -or-feynmp, by using the code
Code: Select all
\usepackage{feynmp}
\DeclareGraphicsRule{*}{mps}{*}{}
\makeatletter
\def\endfmffile{%
\fmfcmd{\p@rcent\space the end.^^J%
end.^^J%
endinput;}%
\if@fmfio
\immediate\closeout\@outfmf
\fi
\ifnum\pdfshellescape=\@ne
\immediate\write18{mpost \thefmffile}%
\fi}
\makeatother
feynmp | Integration into TeXnicCenter
Code: Select all
\newenvironment{feynman}[1][1]{
\begin{fmffile}{fey_#1}
\begin{fmfgraph}(40,25)\fmfkeep{#1}
\fmfpen{thin}
}{
\end{fmfgraph}
\end{fmffile}
}