diff --git a/tikz/topo-halbgerade/Makefile b/tikz/topo-halbgerade/Makefile new file mode 100644 index 0000000..434de66 --- /dev/null +++ b/tikz/topo-halbgerade/Makefile @@ -0,0 +1,31 @@ +SOURCE = topo-halbgerade +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 diff --git a/tikz/topo-halbgerade/Readme.md b/tikz/topo-halbgerade/Readme.md new file mode 100644 index 0000000..20d1c25 --- /dev/null +++ b/tikz/topo-halbgerade/Readme.md @@ -0,0 +1,3 @@ +Compiled example +---------------- +![Example](topo-halbgerade.png) diff --git a/tikz/topo-halbgerade/topo-halbgerade.png b/tikz/topo-halbgerade/topo-halbgerade.png new file mode 100644 index 0000000..4322575 Binary files /dev/null and b/tikz/topo-halbgerade/topo-halbgerade.png differ diff --git a/tikz/topo-halbgerade/topo-halbgerade.tex b/tikz/topo-halbgerade/topo-halbgerade.tex new file mode 100644 index 0000000..0a5725e --- /dev/null +++ b/tikz/topo-halbgerade/topo-halbgerade.tex @@ -0,0 +1,18 @@ +\documentclass[varwidth=true, border=2pt]{standalone} +\usepackage{tikz} +\usetikzlibrary{snakes} + +\begin{document} +\begin{tikzpicture} + \tikzstyle{point}=[circle,thick,draw=black,fill=black,inner sep=0pt,minimum width=4pt,minimum height=4pt] + \node (Pleft) at (0,0) {}; + \node (P)[point,label=90:$P$] at (2,0) {}; + \node (R)[point,label=90:$R$] at (4,0) {}; + \node (Rright) at (6,0) {}; + \draw[red,dashed,very thick] (Pleft) -- (P); + \draw[green,dotted,very thick] (P) -- (R) -- (Rright); + \draw [thick,decoration={brace,mirror,raise=0.2cm},decorate,red] (Pleft) -- (P) node [pos=0.5,anchor=north,yshift=-0.25cm,red] {$PR^-$}; + \draw [thick,decoration={brace,mirror,raise=0.2cm},decorate] (P) -- (R) node [pos=0.5,anchor=north,yshift=-0.25cm] {$\overline{PR}$}; + \draw [thick,decoration={brace,mirror,raise=0.8cm},decorate,green] (P) -- (Rright) node [pos=0.5,anchor=north,yshift=-0.85cm,green] {$PR^+$}; +\end{tikzpicture} +\end{document}