A simple example

This is my first attempt at using tkz-euclide.

\begin{tikzpicture}
  \tkzDefPoint(0,0){B}
  \tkzDefPoint(8,0){A}
  \tkzDefPoint(7,4){C}
  \tkzDefPoint(1,8){D} 
  \tkzDrawSegment(A,B)
  \tkzDrawSegment(A,C)
  \tkzDrawSegment(C,D)
  \tkzDrawSegment(B,D)
  \tkzDrawSegment(B,C)
  \tkzDrawSegment(A,D)
  \tkzDefMidPoint(C,D)
  \tkzGetPoint{M}
  \tkzInterLL(C,B)(A,D) \tkzGetPoint{P}
  \tkzDrawPoints(A,B,C,D,M,P) 
  \tkzLabelPoints(A,B)
  \tkzLabelPoints[above](C,D)
  \tkzLabelPoints[below](M,P)
  \tkzCentroid(B,P,D)\tkzGetPoint{G}\tkzLabelPoint(G){\Large 4}
  \tkzCentroid(A,P,C)\tkzGetPoint{H}\tkzLabelPoint(H){\Large 1}
  \tkzCentroid(A,P,B)\tkzGetPoint{I}\tkzLabelPoint(I){\Large 2}
\end{tikzpicture}

Advertisements
This entry was posted in LaTeX and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s