mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
TikZed image
This commit is contained in:
parent
0177ad0048
commit
d8cced3a57
16 changed files with 165 additions and 2 deletions
31
tikz/rectangle-2/Makefile
Normal file
31
tikz/rectangle-2/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
|||
SOURCE = triangle-similar
|
||||
DELAY = 80
|
||||
DENSITY = 300
|
||||
WIDTH = 512
|
||||
|
||||
make:
|
||||
pdflatex $(SOURCE).tex -output-format=pdf
|
||||
make clean
|
||||
|
||||
clean:
|
||||
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
|
||||
|
||||
gif:
|
||||
pdfcrop $(SOURCE).pdf
|
||||
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
|
||||
make clean
|
||||
|
||||
png:
|
||||
make
|
||||
make svg
|
||||
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
|
||||
|
||||
transparentGif:
|
||||
convert $(SOURCE).pdf -transparent white result.gif
|
||||
make clean
|
||||
|
||||
svg:
|
||||
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
|
||||
pdf2svg $(SOURCE).pdf $(SOURCE).svg
|
||||
# Necessary, as pdf2svg does not always create valid svgs:
|
||||
inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
|
3
tikz/rectangle-2/Readme.md
Normal file
3
tikz/rectangle-2/Readme.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
Compiled example
|
||||
----------------
|
||||

|
BIN
tikz/rectangle-2/triangle-similar.png
Normal file
BIN
tikz/rectangle-2/triangle-similar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
32
tikz/rectangle-2/triangle-similar.tex
Normal file
32
tikz/rectangle-2/triangle-similar.tex
Normal file
|
@ -0,0 +1,32 @@
|
|||
\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}
|
Loading…
Add table
Add a link
Reference in a new issue