summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzEuclide-15-2-1.tex
blob: cff3b62052db6b362d238ad70893e5136b1d6c5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
\input{preamble-standalone.ltx}
\begin{document}

% Ex. No. 85 (Section 15.2.1 : Place an arrow on segment)

\begin{tikzpicture}
  \tikzset{
    arr/.style={postaction=decorate,
    decoration={markings,
    mark=at position .5 with {\arrow[thick]{#1}}
      }}}
  \tkzDefPoint(0,0){A}
  \tkzDefPoint(4,0){B}
  \tkzDrawSegments[arr=stealth](A,B)
  \tkzDrawPoints(A,B)
\end{tikzpicture}

\end{document}