Coder Social home page Coder Social logo

Comments (4)

JP-Ellis avatar JP-Ellis commented on June 30, 2024

It's a feature I've been intending to add, but haven't gotten around to doing that yet. There's already a double option from Ti_k_Z which I can tweak to make it compatible with Ti_k_Z-Feynman, but triple lines will probably take slightly more work.

from tikz-feynman.

martin-ueding avatar martin-ueding commented on June 30, 2024

I would be happy with the double line. The triple line is just something that I thought to work out analogously. As it does not seem to be the case, I think it could wait.

from tikz-feynman.

JP-Ellis avatar JP-Ellis commented on June 30, 2024

Actually, it seems like it might be a little trickier than I naively expected, as it isn't immediately obvious how they lines should reach the vertices (this becomes very noticeable for large line separations as shown below, and is the same issue as with #21).

If you just want straight doubled lines, you can just use double from Ti_k_Z. Note that this actually draws two lines on top of each other, with the second one being filled white, so this doesn't work well if you have a background image for example.

\documentclass[tikz,border=5p]{standalone}

\usepackage[compat=1.1.0]{tikz-feynman}

\begin{document}
\feynmandiagram {
  a -- [double] b -- [photon] {c, d},
};
\feynmandiagram {
  a -- [double distance=2pt] b -- [photon] {c, d},
};
\end{document}

rodd-0
rodd-1

I hope that helps in the mean time.

from tikz-feynman.

Turgon-Aran-Gondolin avatar Turgon-Aran-Gondolin commented on June 30, 2024

But how can I draw a double fermion line? i.e. a double line with arrows?

from tikz-feynman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.