Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blob not appearing at vertex #24

Open
Isanderson opened this issue Mar 28, 2016 · 3 comments
Open

Blob not appearing at vertex #24

Isanderson opened this issue Mar 28, 2016 · 3 comments
Labels
Milestone

Comments

@Isanderson
Copy link

I am trying to generate a mu \to e \gamma diagram with an effective operator at the vertex. My current code for the diagram is

\begin{feynman}
  \vertex (a1) {\(\mu\)};
  \vertex[right=1.5cm of a1, blob] (a2);
  \vertex[right=1.5cm of a2] (a3) {\(e\)};
  \vertex[above=1cm of a3] (p){\(\gamma \)};

  \diagram* {
    (a1) -- [fermion, momentum' = \( p \)] (a2) -- [fermion, momentum' = \(p-q\)] (a3),
    (a2) -- [photon, momentum = \(q\)] (p)
  };
\end{feynman}

However it does not generate the blob (it generates the rest of the diagram just fine).

I cannot figure out why not - any ideas?

@JP-Ellis JP-Ellis added the bug label Mar 28, 2016
@JP-Ellis JP-Ellis added this to the v1.1.1 milestone Mar 28, 2016
@JP-Ellis
Copy link
Owner

This seems to be a bug in the way styles are handled when created through the \vertex command which will need to be fixed.

In the mean time, you can use:

\begin{feynman}
  \vertex (a1) {\(\mu\)};
  \node[right=1.5cm of a1, blob] (a2) {};
  \vertex[right=1.5cm of a2] (a3) {\(e\)};
  \vertex[above=1cm of a3] (p){\(\gamma \)};

  \diagram* {
    (a1) -- [fermion, momentum' = \( p \)] (a2) -- [fermion, momentum' = \(p-q\)] (a3),
    (a2) -- [photon, momentum = \(q\)] (p)
  };
\end{feynman}

which should produce what you want.

@Isanderson
Copy link
Author

The temporary solution works just fine, thanks!

@losmaxos
Copy link

Hi,
I think this is due to the way TikZ handles node drawing.
Nodes are only drawn if they have a name argument.
If you include an empty nsame argument after the blob vertex,
it will be drawn just fine:

\vertex[right=1.5cm of a1, blob] (a2) {};

Hope this helps, greetings to the maintainer of Tikz-Feynman!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants