0

So i've been trying several threads in this forum on how to make my feynman diagrams look side by side. The problem is that no thing seems to work, this is how my two diagram look: enter image description here

and this is my code:

\begin{figure}[H]
\feynmandiagram [large, vertical= b to b1] {
a [particle=\(\nu_\mu\)] -- [anti fermion] b --  [charged boson,edge 
label=$Z^0$] b1 [dot],
c [particle=\(\nu_\mu\)] -- [ fermion] b,
b1 -- [double,with arrow=0.5,edge label=$\mathcal{P}$] i2,
b2 -- [anti fermion,edge label=$N$] i2,
b3 -- [fermion,edge label=$N$] i2,
b1 -- [charged scalar,edge label=$\pi^0$] i3,
}; 

\feynmandiagram [large, vertical=b to b1] {
a [particle=\(\nu_\mu\)] -- [anti fermion] b  -- [charged boson,edge 
label=$Z^0$] b1 [blob] ,
c [particle=\(\nu_\mu\)] -- [ fermion] b,

i4 -- [fermion,edge label=$N$] b1,
b1 -- [fermion, bend right=10, edge label = $Hadrons$] i5,
b1 -- [charged boson,edge label=$\pi^0$] i7,
};
\caption{\label{fig:fi} Semi inclusive COH + DIS + RES $\pi^0$ 
 production.}
\end{figure}

I would like to put them side by side with a "+" sign in between them. Any help will be greatly appreciated. Thanks!

2

The perhaps simplest way is to use the inline option and to put the diagrams in a math environment (because of the + and spacing).

\documentclass[a4paper]{article}
\usepackage{tikz-feynman}
\begin{document}
\begin{figure}[h]
\[
\feynmandiagram [large, vertical= b to b1,inline=(b1.base)] {
a [particle=\(\nu_\mu\)] -- [anti fermion] b --  [charged boson,edge 
label=$Z^0$] b1 [dot],
c [particle=\(\nu_\mu\)] -- [ fermion] b,
b1 -- [double,with arrow=0.5,edge label=$\mathcal{P}$] i2,
b2 -- [anti fermion,edge label=$N$] i2,
b3 -- [fermion,edge label=$N$] i2,
b1 -- [charged scalar,edge label=$\pi^0$] i3,
}; 
+
\feynmandiagram [large, vertical=b to b1,inline=(b1.base)] {
a [particle=\(\nu_\mu\)] -- [anti fermion] b  -- [charged boson,edge 
label=$Z^0$] b1 [blob] ,
c [particle=\(\nu_\mu\)] -- [ fermion] b,

i4 -- [fermion,edge label=$N$] b1,
b1 -- [fermion, bend right=10, edge label = $Hadrons$] i5,
b1 -- [charged boson,edge label=$\pi^0$] i7,
};
\]
\caption{\label{fig:fi} Semi inclusive COH + DIS + RES $\pi^0$ 
 production.}
\end{figure}
\end{document}

enter image description here

BTW, this is now at least your third question here, but so far you have not given any feedback on the answers you received. It would be great if you could do that.

  • Yes, true. I've been quite caught on with my thesis and forgot to give feedback. So far is been of great! The help here provided the three times is indeed useful. Without this site i wouldn't be able to learn proper latex. – user665997 Apr 4 '18 at 21:21
  • 1
    @spacecatbro What I mean is that, if the solution worked for you, you may accept them. Please see How do you accept an answer? and perhaps How does accepting an answer work?. This makes it clear(er) to others that a solution works. – user121799 Apr 4 '18 at 21:24
  • Excellent. Veryyyyy good and I upvote your answer. But can I also try to draw it if I can draw your picture with a different code? – Sebastiano Apr 4 '18 at 21:39
  • @Sebastiano Scusi, I do not understand the question. The nice diagrams are from the OP, all I did is to put them in a \[...\] environment and to use the inline option, which is explained in section 3.2.1 of the manual. – user121799 Apr 4 '18 at 21:43
  • @marmot I wanted to make a new one. Nothing will be for the next time. I would like to learn this too. :-) – Sebastiano Apr 4 '18 at 21:48

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.