Graphics, Figures & TablesGetting feynMF to work with MikTeX/TeXnicCenter

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
User avatar
Bozack
Posts: 117
Joined: Wed Feb 06, 2008 4:21 pm

Getting feynMF to work with MikTeX/TeXnicCenter

Post by Bozack »

Hi,

I'm trying to make some Feynman diagrams for a LaTeX document, and so I found the feynMF package, which seemed to be what I needed.

But I have a problem - I have no idea how to get it to work... How do I make a TeXnicCenter build profile such that a code like

Code: Select all

\begin{fmfgraph*}(30,40) \fmfpen{thick}
 \fmfleft{i1,i2} \fmfright{o1,o2}
 \fmf{fermion}{i1,v1,o1} \fmf{fermion}{i2,v2,o2}
 \fmf{boson}{v1,v2} \fmfdot{v1,v2}
\end{fmfgraph*}
will actually compile and be shown in a pdf file?
OS, LaTeX-system, editor: Arch Linux 64bit, TeXlive, Kile | Windows 10 Professional 64bit, MikTeX 4.9, TeXnicCenter 2.02 64bit

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Getting feynMF to work with MikTeX/TeXnicCenter

Post by localghost »

I suggest to study Section 2 (Usage, p. 8ff) of the feynmf manual very carefully. I can't see how a special profile for TXC could be useful.


Best regards
Thorsten
User avatar
Bozack
Posts: 117
Joined: Wed Feb 06, 2008 4:21 pm

Re: Getting feynMF to work with MikTeX/TeXnicCenter

Post by Bozack »

According to the same manual, at the bottom of page 9, to get it to work I should run first latex, then metafont and then latex again. Isn't this easiest done by making a texniccenter profile to do it for me?

Maybe my problem is that I really do not understand how metafont works... I haven't got the time to read the whole chapter 2 in the manual and/or anything on metafont for now, I just hoped that someone might have found an easy way to make it work. I'll take a look at it later :|

If anyone knows any other tools to make Feynman diagrams, in a somewhat easier way, please tell me.
OS, LaTeX-system, editor: Arch Linux 64bit, TeXlive, Kile | Windows 10 Professional 64bit, MikTeX 4.9, TeXnicCenter 2.02 64bit
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Getting feynMF to work with MikTeX/TeXnicCenter

Post by localghost »

Bozack wrote:According to the same manual, at the bottom of page 9, to get it to work I should run first latex, then metafont and then latex again. Isn't this easiest done by making a texniccenter profile to do it for me? [...]
You could add the according Metafont runs in the post-processor section of a TXC build profile.
Bozack wrote:[...] If anyone knows any other tools to make Feynman diagrams, in a somewhat easier way, please tell me.
Graphics packages like pgf/tikZ or pstricks would be appropriate alternatives.
Post Reply