pdflatex with simple Feynman

Haines Brown haines at histomat.net
Mon Dec 12 15:33:38 CET 2022


On Mon, Dec 12, 2022 at 02:02:51PM +0100, Herbert Voss wrote:
> 
> 
> Am 12.12.22 um 13:36 schrieb Haines Brown:
> > I have no trouble witn Feynman diagrams in a LuaLaTeX document, but
> > find it difficult to construct one in a LaTeX document. I construct a
> > c.tex file with the sample from the fmf manual:
> > 
> >    \documentclass[12pt]{article}
> >    \usepackage[utf8]{inputenc}
> 
> utf8 is  for years the default ...

> >    \usepackage[T1]{fontenc}
> >    \usepackage{feynmp-auto}
> >    \begin{document}
> should be
> 
> \begin{fmffile}{test}
> >     \begin{fmfgraph*}(40,30)
> >        \fmfpen{thick}
> >        \fmfleft{i1,i2}
> >        \fmfright{o1,o2}
> >        \fmf{fermion}{i1,v1,o1}
> >        \fmf{fermion}{i2,v2,o2}
> >        \fmf{photon,label=$q$}{v1,v2}
> >        \fmfdot{v1,v2}
> >      \end{fmfgraph*}
> >      \end{fmfile}
> \end{fmffile}
> 
> then it works for me with pdflatex
> 
> Herbert
> 
> >    \end{document}

Herbert, thanks, but not much luck. 

I now use a corrected Feynman tex file named feynman.tex:

\documentclass[12pt]{article}
\usepackage{inputenc}
\usepackage[T1]{fontenc}
\usepackage{feynmp-auto}
\begin{document}
  \begin{fmffile}{test}
    \begin{fmfgraph*}(40,30)
      \fmfpen{thick}
      \fmfleft{i1,i2}
      \fmfright{o1,o2}
      \fmf{fermion}{i1,v1,o1}
      \fmf{fermion}{i2,v2,o2}
      \fmf{photon,label=$q$}{v1,v2}
      \fmfdot{v1,v2}
  \end{fmfgraph*}
  \end{fmffile}
\end{document}

When I run pdflatex on this file a "test.mp" file is generated. I saw 
nothing problematic in it but wonder about "LaTeX_unitlength:=1.0pt;".

A PDF file is also generated 

  Output written on feynman.pdf (1 page, 3805 bytes).

  3805 bytes I'm sure is too small. In any case the PDF file 
  lacks any Feynman diagram. 

-- 

     Haines Brown 
 /"\
 \ /  ASCII Ribbon Campaign
  X    against HTML e-mail 
 / \



More information about the texhax mailing list.