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

Wrong sign in xshift of node in with reversed arrow? #48

Open
TorbjornT opened this issue Jan 14, 2018 · 1 comment
Open

Wrong sign in xshift of node in with reversed arrow? #48

TorbjornT opened this issue Jan 14, 2018 · 1 comment

Comments

@TorbjornT
Copy link

This is in reference to https://tex.stackexchange.com/questions/377299/tikz-feynman-asymmetry-between-particle-and-antiparticle-lines/410367#410367

Should the xshift of the node in with reversed arrow have the opposite sign as that in with arrow? Currently both with arrow:

xshift=-0.5mm,

and with reversed arrow:

xshift=-0.5mm,

do xshift=-0.5mm, causing the asymmetry mentioned in that TeX.SX post.

@losmaxos
Copy link

Hi,
seems like this is due to TikZ not placing the isoscele triangles "half-width-center" at the lines' center,
but rather at their center of gravity or something like this. This roughly needs an xshift of 1/6 the arrows width, see below.
In addition to the symmetry desired by the original poster (arrows point in SAME direction), we also want symmetry when we have a fermion and an antifermion right above each other, with the arrows pointing in OPPOSITE directions.

What worked for me was using for with arrow:

      xshift= -0.166666*arrow width,

and for reversed arrow:

      xshift= 0.166666*arrow width,

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