# I am facing trouble with the tikz-feynman package that I have recently installed. I am currently using LuaTex as the engine in TexLive. Also, I am using a non-English language, so I am using ltjsarticle as my documentclass (this might not be the main problem but I will state it anyway).
As is said in the title, the main problem is that despite using a sample code from CTAN (or maybe some other site), I get a Feynman diagram that looks like the one posted in this page.
Here is the code that I have used:


    \feynmandiagram [small, horizontal=a to t1] 
        { a [particle=\(\pi^{0}\)] -- [scalar] t1 -- t2 -- t3 -- t1, t2 -- 
        [photon] p1 [particle=\(\gamma\)], t3 -- [photon] p2 [particle=\(\gamma\)], };

    \feynmandiagram [inline=(b), horizontal=a to b, red] 
        {a -- b -- {c [particle={\(\alpha\)}], d [particle=\(\beta\)]}


I am totally confused. Please help

there are overlaps among the particle letters

  • 1
    If you remove \usepackage[dvipdfmx]{graphicx}, it works fine. (I dunno why, I'm a newcomer to lualatex.) It also works if you put \usepackage{graphicx}. – marmot Jan 4 '18 at 17:53
  • There is at least one other place where lualatex and dvipdfmx appear to interfere, see p.8 of the microtype documentation. – marmot Jan 4 '18 at 18:15
  • One more thing: if you put \usepackage[dvipdfmx]{graphicx} after \usepackage[compat=1.1.0]{tikz-feynman}, this produces an error. If you put \usepackage{graphicx}, it again works fine. – marmot Jan 4 '18 at 23:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.