Created
December 20, 2014 07:50
-
-
Save zr-tex8r/e696e4cf06b3a3cd3f6f to your computer and use it in GitHub Desktop.
TikZ: a variant of the arrow tip 'to' that really looks like '\to'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\def\tcqqa@scale{1.5} | |
\pgfarrowsdeclare{to'}{to'} | |
{% | |
\pgfutil@tempdima=\tcqqa@scale\pgflinewidth | |
\pgfutil@tempdima=-3\pgfutil@tempdima | |
\advance\pgfutil@tempdima -0.5\pgflinewidth | |
\pgfutil@tempdimb=\tcqqa@scale\pgflinewidth | |
\pgfutil@tempdimb=0.75\pgfutil@tempdimb | |
\advance\pgfutil@tempdimb 0.5\pgflinewidth | |
\pgfarrowsleftextend{+\pgfutil@tempdima}% | |
\pgfarrowsrightextend{+\pgfutil@tempdimb}% | |
} | |
{% | |
\pgfutil@tempdima=\tcqqa@scale\pgflinewidth | |
\pgfsetdash{}{+0pt}% | |
\pgfsetroundcap | |
\pgfsetroundjoin | |
\pgfpathmoveto{\pgfqpoint{-3\pgfutil@tempdima}{4\pgfutil@tempdima}}% | |
\pgfpathcurveto | |
{\pgfqpoint{-2.75\pgfutil@tempdima}{2.5\pgfutil@tempdima}}% | |
{\pgfqpoint{0pt}{0.25\pgfutil@tempdima}}% | |
{\pgfqpoint{0.75\pgfutil@tempdima}{0pt}}% | |
\pgfpathcurveto | |
{\pgfqpoint{0pt}{-0.25\pgfutil@tempdima}}% | |
{\pgfqpoint{-2.75\pgfutil@tempdima}{-2.5\pgfutil@tempdima}}% | |
{\pgfqpoint{-3\pgfutil@tempdima}{-4\pgfutil@tempdima}}% | |
\pgfusepathqstroke | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment