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

Marking decoration at position 1 is dropped when applied to bend to-path #1168

Open
muzimuzhi opened this issue Jun 16, 2022 · 0 comments
Open

Comments

@muzimuzhi
Copy link
Member

Brief outline of the bug

From https://tex.stackexchange.com/q/647904

When a marking decoration mark=at position 1 with {...} is applied to a straight line or dummy to-path, it works fine. But when the path is a bend to-path, like (0,0) to[in=30] (2,0), then the marking is not drawn. Meanwhile, mark=at position .99 with {...} survives.

Minimal working example (MWE)

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.markings}

\begin{document}
\begin{tikzpicture}[
  decoration={
    markings,
    mark=at position .99 with {\draw[red] (0,0) circle (3pt); },
    mark=at position 1 with { \draw[blue] (0,0) circle (5pt); }
  }
]
  \draw [postaction={decorate}] (0,0) to (2,0);
  \draw [yshift=-1cm, postaction={decorate}] (0,0) to[in=30] (2,0);
\end{tikzpicture}
\end{document}

image

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

No branches or pull requests

1 participant