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 centered as it should #61

Open
zhyiyu opened this issue Oct 20, 2018 · 2 comments
Open

blob not centered as it should #61

zhyiyu opened this issue Oct 20, 2018 · 2 comments

Comments

@zhyiyu
Copy link

zhyiyu commented Oct 20, 2018

Hi, I was drawing a blob at a vertex, but it is not centered

\begin{feynman}

\vertex (a1);
\vertex[right = 3 cm of a1] (a2);
\vertex[above = 4 cm of a1] (a3);
\vertex[above right = 4 cm and 3 cm of a1] (a4);
\vertex[above right = 2 cm and 1.5 cm of a1, blob] (b) {};

\diagram*{
(a1) -- [fermion, edge label = \scriptsize{$p$}] (b),
(a2) -- [fermion, edge label' = \scriptsize{$p'$}] (b),
(b) -- [fermion, edge label' = \scriptsize{$k$}] (a3),
(b) -- [fermion, edge label = \scriptsize{$k'$}] (a4),

};
\end{feynman}

The blob is apparently not centered, which makes the whole diagram looks weird.

@zhyiyu zhyiyu changed the title Blob not centered at its position blob not centered as it should Apr 10, 2019
@jmarucha
Copy link

I don't know if you're there yet, but I found a workaround
Adding anchor=center to the vertex options after blob does the trick.

@zhyiyu
Copy link
Author

zhyiyu commented Mar 3, 2022

Thank you! I also figured out not long ago that if I set explicitly the coordinate for the very first vertex, then everything is fine:

\begin{feynman}

\vertex (a1) at (0.0, 0.0) {}; %% The first vertex has to have explicit coordinate!
\vertex[right = 3 cm of a1] (a2);
\vertex[above = 4 cm of a1] (a3);
\vertex[above right = 4 cm and 3 cm of a1] (a4);
\vertex[above right = 2 cm and 1.5 cm of a1, blob] (b) {};

\diagram*{
(a1) -- [fermion, edge label = \scriptsize{$p$}] (b),
(a2) -- [fermion, edge label' = \scriptsize{$p'$}] (b),
(b) -- [fermion, edge label' = \scriptsize{$k$}] (a3),
(b) -- [fermion, edge label = \scriptsize{$k'$}] (a4),

};
\end{feynman}

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

No branches or pull requests

2 participants