2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00

TikZ'ed image

This commit is contained in:
Martin Thoma 2014-01-22 08:11:04 +01:00
parent d8cced3a57
commit ae3f4e8133
12 changed files with 55 additions and 37 deletions

View file

@ -1,4 +1,4 @@
SOURCE = triangle-similar
SOURCE = rectangle-2.2
DELAY = 80
DENSITY = 300
WIDTH = 512

View file

@ -1,3 +1,3 @@
Compiled example
----------------
![Example](triangle-similar.png)
![Example](rectangle-2.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

View file

@ -0,0 +1,15 @@
\documentclass[varwidth=true, border=2pt]{standalone}
\usepackage{tkz-euclide}
\begin{document}
\usetkzobj{all}
\begin{tikzpicture}
\tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
\tkzSetUpLine[line width=1]
\tkzDefPoints{0/0/A, 4/0/B, 4/2/C, 0/2/D, 3/2/E, 4/1/F, 1/0/G, 1/-1/H}
\tkzDrawPolygon[fill=black!20](A,B,C,D)
\tkzDrawPolygon[orange,fill=orange!20](E,C,F)
\tkzDrawPolygon[orange,fill=orange!20](A,G,H)
\tkzDrawPoints(A,B,C,D)
\end{tikzpicture}
\end{document}

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View file

@ -0,0 +1,17 @@
\documentclass[varwidth=true, border=2pt]{standalone}
\usepackage{tkz-euclide}
\usepackage{tikz}
\usetikzlibrary{patterns}
\begin{document}
\usetkzobj{all}
\begin{tikzpicture}
\tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
\tkzSetUpLine[line width=1]
\tkzDefPoints{0/0/A, 4/0/B, 4/2/C, 0/2/D}
\tkzDrawPolygon(A,B,C,D)
\tkzDrawPolygon[pattern=north east lines](A,B,C)
\tkzDrawPolygon[pattern=north west lines](C,D,A)
\tkzDrawPoints(A,B,C,D)
\end{tikzpicture}
\end{document}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

View file

@ -1,32 +0,0 @@
\documentclass[varwidth=true, border=2pt]{standalone}
\usepackage{tikz}
\usepackage{tkz-euclide}
\begin{document}
\usetkzobj{all}
\begin{tikzpicture}
\tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
\tkzSetUpLine[line width=1]
\tkzDefPoints{0/0/A, 3/0/B', 2/2/C, 4/4/C'}
\tkzDefLine[parallel=through C](B',C') \tkzGetPoint{Phelper}
\tkzInterLL(A,B')(C,Phelper) \tkzGetPoint{B}
\tkzDrawLine[add=0 and 0.2](A,B')
\tkzDrawLine[add=0 and 0.2](A,C')
\tkzDrawSegment(B',C')
\node at ($(A)+(-0.1,-0.2)$) {$A$};
\node at ($(B')+(0.2,-0.2)$) {$B'$};
\node at ($(C')+(0,0.4)$) {$C'$};
\node at ($(B)+(0.2,-0.2)$) {$B$};
\node at ($(C)+(0.28,0.5)$) {$C$};
\tkzDrawPolygon[ultra thick,color=blue,fill=blue!20](A,B',C')
\tkzDrawPolygon[line width=0.3pt,color=red,fill=red!20](A,B,C)
\tkzDrawPoints(A,B',C',B,C)
\tkzLabelSegment[below,red](A,B){$c$}
\tkzLabelSegment[left,red](A,C){$b$}
\tkzLabelSegment[right,red](B,C){$a$}
\tkzLabelSegment[below,blue,pos=0.8](A,B'){$c'$}
\tkzLabelSegment[left,blue,pos=0.8](A,C'){$b'$}
\tkzLabelSegment[right,blue](B',C'){$a'$}
\end{tikzpicture}
\end{document}