JP-Ellis / tikz-feynman

Feynman Diagrams with TikZ
http://www.jpellis.me/projects/tikz-feynman
Other
146 stars 20 forks source link

[horizontal=a to b] not working #57

Open T0ky0Cat opened 6 years ago

T0ky0Cat commented 6 years ago

Hi! I already have an issue with the very first diagram. I am just trying to copy paste

\feynmandiagram [horizontal=a to b] { i1 -- [fermion] a -- [fermion] i2, a -- [photon] b, f1 -- [fermion] b -- [fermion] f2, };

But instead of a-b being horizontal I always get i1-a-i2 horizontal. Substituting horizontal with vertical or with horizontal' gives the exact same diagram. I don't know what I could possibly be doing wrong at this point.

Turgon-Aran-Gondolin commented 6 years ago

Did you choose xelatex as your compiler?

T0ky0Cat commented 6 years ago

Yes, I did.

Turgon-Aran-Gondolin commented 6 years ago

I never figured out how to use it with xelatex, but lualatex works fine.

T0ky0Cat commented 6 years ago

I switched to lualatex and now it works fine for me as well. Thank you!

liuyonghao156 commented 2 years ago

East Asian font type-setting actually relies on XeLaTeX, so using LuaLaTeX instead will not be an option for most of those works.

JP-Ellis commented 2 years ago

@liuyonghao156 Would some of the solutions described in some of the links below suit?

liuyonghao156 commented 2 years ago

@liuyonghao156 Would some of the solutions described in some of the links below suit?

Thanks for your reply! Yes, for those who're interested in using CJK with this package, luatexja is indeed a CJK interface for LuaLaTeX, but to my specific case, many templates we use are written for XeLaTeX due to its prevalence. I notice that XeLaTeX has limited support for TikZ features which is extensively used in this package, so I will definitely ticket my school's template maintainer on supporting LuaLaTeX in the future!