| 1 |
%% bondgraph_arrow.tex |
| 2 |
%% Copyright (c) 2010, Jean-Francois Dupuis |
| 3 |
% |
| 4 |
% This work may be distributed and/or modified under the |
| 5 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 6 |
% of this license or (at your option) any later version. |
| 7 |
% The latest version of this license is in |
| 8 |
% http://www.latex-project.org/lppl.txt |
| 9 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 10 |
% version 2005/12/01 or later. |
| 11 |
% |
| 12 |
% This work has the LPPL maintenance status `maintained'. |
| 13 |
% |
| 14 |
% The Current Maintainer of this work is Jean-Francois Dupuis. |
| 15 |
% |
| 16 |
% This work consists of the files bondgraph.sty, bondgraph_arrows.tex |
| 17 |
% and bondgraph_example.tex. |
| 18 |
|
| 19 |
\pgfarrowsdeclare{left to}{left to} |
| 20 |
{ |
| 21 |
\pgfutil@tempdima=-0.84pt% |
| 22 |
\advance\pgfutil@tempdima by-1.3\pgflinewidth% |
| 23 |
\pgfutil@tempdimb=0.21pt% |
| 24 |
\advance\pgfutil@tempdimb by.625\pgflinewidth% |
| 25 |
\pgfarrowsleftextend{+\pgfutil@tempdima} |
| 26 |
\pgfarrowsrightextend{+\pgfutil@tempdimb} |
| 27 |
} |
| 28 |
{ |
| 29 |
\pgfutil@tempdima=0.28pt% |
| 30 |
\advance\pgfutil@tempdima by.3\pgflinewidth% |
| 31 |
\pgfsetlinewidth{0.8\pgflinewidth} |
| 32 |
\pgfsetdash{}{+0pt} |
| 33 |
\pgfsetroundcap |
| 34 |
\pgfsetroundjoin |
| 35 |
\pgfpathmoveto{\pgfqpoint{-3\pgfutil@tempdima}{4\pgfutil@tempdima}} |
| 36 |
\pgfpathcurveto |
| 37 |
{\pgfqpoint{-2.75\pgfutil@tempdima}{2.5\pgfutil@tempdima}} |
| 38 |
{\pgfqpoint{0pt}{0.25\pgfutil@tempdima}} |
| 39 |
{\pgfqpoint{0.75\pgfutil@tempdima}{0pt}} |
| 40 |
\pgfpathcurveto |
| 41 |
{\pgfqpoint{0.55\pgfutil@tempdima}{-0.125\pgflinewidth}} |
| 42 |
{\pgfqpoint{0.5\pgfutil@tempdima}{-0.125\pgflinewidth}} |
| 43 |
{\pgfqpoint{0.5\pgfutil@tempdima}{-0.125\pgflinewidth}} |
| 44 |
\pgfpathlineto{\pgfqpoint{0pt}{-0.125\pgflinewidth}} |
| 45 |
\pgfusepathqstroke |
| 46 |
} |
| 47 |
|
| 48 |
\pgfarrowsdeclare{|}{|} |
| 49 |
{ |
| 50 |
\pgfarrowsleftextend{+-0.25\pgflinewidth} |
| 51 |
\pgfarrowsrightextend{+.75\pgflinewidth} |
| 52 |
} |
| 53 |
{ |
| 54 |
\pgfutil@tempdima=2pt% |
| 55 |
\advance\pgfutil@tempdima by1.5\pgflinewidth% |
| 56 |
\pgfsetdash{}{+0pt} |
| 57 |
\pgfsetrectcap |
| 58 |
\pgfpathmoveto{\pgfqpoint{0.25\pgflinewidth}{-\pgfutil@tempdima}} |
| 59 |
\pgfpathlineto{\pgfqpoint{0.25\pgflinewidth}{\pgfutil@tempdima}} |
| 60 |
\pgfusepathqstroke |
| 61 |
} |