画费曼图为什么出现这种错误 ?

发布于 2022-11-08 18:07:49

01.png

\documentclass{article} 
\usepackage{tikz}
\usepackage[compat=1.1.0]{tikz-feynman}
\begin{document}
\feynmandiagram[horizontal=a to b]{
    i1−−[fermion] a−−[fermion] i2, 
    a−−[photon] b,
    f1−−[fermion] b−−[fermion]f2,};
\end{document}

查看更多

关注者
0
被浏览
530
Swit
Swit 2022-11-08
LaTeX nubility!

应该是 dash 的原因:
cca3a1e63167e227834f0bc97378f0c4.png

2 个回答
LaTeXStudio
LaTeXStudio 2022-11-08
这家伙很懒,什么也没写!

测试了下,字符里面有UTF8 字符:

\documentclass{article}
\usepackage{tikz}
\usepackage[compat=1.1.0]{tikz-feynman}
\begin{document}
\feynmandiagram[horizontal=a to b]{
    i1--[fermion] a--[fermion] i2,
    a--[photon] b,
    f1--[fermion] b--[fermion]f2,};
\end{document}

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览