pdflatex with simple Feynman

Herbert Voss Herbert.Voss at fu-berlin.de
Mon Dec 12 15:47:26 CET 2022


Am 12.12.22 um 15:33 schrieb Haines Brown:
> 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}

I meant that the complete line is nowadays superflous.


However, with an up-to-date TL2022 I have the following output
with your example with a correct pdf:

bash-3.2$ pdflatex document3
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) 
(preloaded format=pdflatex)
  restricted \write18 enabled.
entering extended mode
(./document3.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2022-11-02>
(/usr/local/texlive/2022/texmf-dist/tex/latex/base/article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
(/usr/local/texlive/2022/texmf-dist/tex/latex/base/size12.clo))
(/usr/local/texlive/2022/texmf-dist/tex/latex/base/fontenc.sty)
(/usr/local/texlive/2022/texmf-dist/tex/latex/feynmp-auto/feynmp-auto.sty
(/usr/local/texlive/2022/texmf-dist/tex/latex/feynmf/feynmp.sty
(/usr/local/texlive/2022/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2022/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2022/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/local/texlive/2022/texmf-dist/tex/latex/graphics-def/pdftex.def)))
(/usr/local/texlive/2022/texmf-dist/tex/generic/iftex/ifpdf.sty
(/usr/local/texlive/2022/texmf-dist/tex/generic/iftex/iftex.sty))
(/usr/local/texlive/2022/texmf-dist/tex/generic/iftex/ifxetex.sty)
(/usr/local/texlive/2022/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
(/usr/local/texlive/2022/texmf-dist/tex/generic/infwarerr/infwarerr.sty)
(/usr/local/texlive/2022/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty)))
(/usr/local/texlive/2022/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def)
(./document3.aux)
(/usr/local/texlive/2022/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) 
(/usr/local/texlive/2022/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty
(/usr/local/texlive/2022/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
[MP to PDF] (./test.1) (./test.t1) 
[1{/usr/local/texlive/2022/texmf-var/fonts/m
ap/pdftex/updmap/pdftex.map}] (./document3.aux) 
){/usr/local/texlive/2022/texmf
-dist/fonts/enc/dvips/cm-super/cm-super-t1.enc}</usr/local/texlive/2022/texmf-d
ist/fonts/type1/public/amsfonts/cm/cmmi12.pfb></usr/local/texlive/2022/texmf-di
st/fonts/type1/public/cm-super/sfrm1200.pfb>
Output written on document3.pdf (1 page, 13502 bytes).
Transcript written on document3.log.



Herbert


> \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.
>



More information about the texhax mailing list.