更改乳胶箭头图中动量箭头的大小和位置

发布于 2025-01-31 16:55:05 字数 1377 浏览 3 评论 0原文

我正在为乳胶中的康普顿散射制作Feynman图。实际上有两个图。第一个还可以。该代码是:

\begin{tikzpicture}
  \begin{feynman}
    \diagram[horizontal=a to b] {
  i1 [particle=\(e^{-}\)] -- [fermion,momentum'=\(p_{i}\)] a -- [photon,reversed momentum'=\(k_{i}\)] f1 [particle=\(\gamma\)],
  a -- [fermion] b,
  i2 [particle=\(\gamma\)] -- [photon,reversed momentum'=\(k_{f}\)] b -- [fermion,momentum'=\(p_{f}\)] f2 [particle=\(e^{-}\)],
};
  \end{feynman}
\end{tikzpicture}

它导致: “第一个图”

现在,第二个图并不能很好。

代码为:

\begin{tikzpicture}
  \begin{feynman}
    \diagram[horizontal=a to b] {
      i1 [particle=\(p_{i}\)]
         -- [fermion,momentum'=\(p_{i}\)] a
         -- [draw=none] f1 [particle=\(\gamma\)],
      a -- [fermion, edge label'=\( \)] b,
      f2 [particle=\(\gamma\)]
         --  [draw=none] b
         -- [fermion,momentum'=\(p_{f}\)] i2 [particle=\(p_{f}\)],
    };
    \diagram* {
      (a) -- [photon,momentum'=\(k_{f}\)] (f2),
      (f1) -- [photon,,momentum'=\(k_{i}\)] (b),
    };
  \end{feynman}
\end{tikzpicture}

它导致:“二维”

我希望光子动量箭头在光子线上,而比它们短现在。我也希望它们是在光子线的开头而不是中间的。此图显示了我希望该图的外观。红线显示箭头应该在哪里。 “

欢迎任何帮助! 谢谢

I am making a Feynman diagram for Compton scattering in LaTeX. There are two diagrams actually. First one is ok. The code is:

\begin{tikzpicture}
  \begin{feynman}
    \diagram[horizontal=a to b] {
  i1 [particle=\(e^{-}\)] -- [fermion,momentum'=\(p_{i}\)] a -- [photon,reversed momentum'=\(k_{i}\)] f1 [particle=\(\gamma\)],
  a -- [fermion] b,
  i2 [particle=\(\gamma\)] -- [photon,reversed momentum'=\(k_{f}\)] b -- [fermion,momentum'=\(p_{f}\)] f2 [particle=\(e^{-}\)],
};
  \end{feynman}
\end{tikzpicture}

It results in:
First diagram

Now, the second diagram did not end up well.

Code is:

\begin{tikzpicture}
  \begin{feynman}
    \diagram[horizontal=a to b] {
      i1 [particle=\(p_{i}\)]
         -- [fermion,momentum'=\(p_{i}\)] a
         -- [draw=none] f1 [particle=\(\gamma\)],
      a -- [fermion, edge label'=\( \)] b,
      f2 [particle=\(\gamma\)]
         --  [draw=none] b
         -- [fermion,momentum'=\(p_{f}\)] i2 [particle=\(p_{f}\)],
    };
    \diagram* {
      (a) -- [photon,momentum'=\(k_{f}\)] (f2),
      (f1) -- [photon,,momentum'=\(k_{i}\)] (b),
    };
  \end{feynman}
\end{tikzpicture}

It results in: Second diagram

I want the photon momentum arrows to be above the photon lines, and shorter than they are now. I would also like them to be by the beginning of the photon line, not in the middle. This image shows approximately how I would want the diagram to look like. Red lines show where the arrows should be.
New image

Any help is welcome!
Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

淡莣 2025-02-07 16:55:05
% !TeX TS-program = lualatex
\documentclass{article}

\usepackage{tikz-feynman}

\begin{document}

\begin{tikzpicture}
  \begin{feynman}
    \diagram[horizontal=a to b] {
      i1 [particle=\(p_{i}\)]
         -- [fermion,momentum'=\(p_{i}\)] a
         -- [draw=none] f1 [particle=\(\gamma\)],
      a -- [fermion, edge label'=\( \)] b,
      f2 [particle=\(\gamma\)]
         --  [draw=none] b
         -- [fermion,momentum'=\(p_{f}\)] i2 [particle=\(p_{f}\)],
    };
    \diagram* {
      (a) -- [
                photon,
                momentum={[
                  arrow shorten=0.25, 
                  xshift=4mm,
                  yshift=2mm
                ]$k_{f}$}
              ] (f2),
      (f1) -- [
                photon,
                momentum={[
                  arrow shorten=0.25,
                  xshift=-4mm,
                  yshift=2mm
                ]$k_{i}$}
              ] (b),
    };
  \end{feynman}
\end{tikzpicture}

\end{document}

% !TeX TS-program = lualatex
\documentclass{article}

\usepackage{tikz-feynman}

\begin{document}

\begin{tikzpicture}
  \begin{feynman}
    \diagram[horizontal=a to b] {
      i1 [particle=\(p_{i}\)]
         -- [fermion,momentum'=\(p_{i}\)] a
         -- [draw=none] f1 [particle=\(\gamma\)],
      a -- [fermion, edge label'=\( \)] b,
      f2 [particle=\(\gamma\)]
         --  [draw=none] b
         -- [fermion,momentum'=\(p_{f}\)] i2 [particle=\(p_{f}\)],
    };
    \diagram* {
      (a) -- [
                photon,
                momentum={[
                  arrow shorten=0.25, 
                  xshift=4mm,
                  yshift=2mm
                ]$k_{f}$}
              ] (f2),
      (f1) -- [
                photon,
                momentum={[
                  arrow shorten=0.25,
                  xshift=-4mm,
                  yshift=2mm
                ]$k_{i}$}
              ] (b),
    };
  \end{feynman}
\end{tikzpicture}

\end{document}

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文