Jelajahi Sumber

created image

Martin Thoma 11 tahun lalu
induk
melakukan
a33d36f8c7

+ 31 - 0
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

+ 3 - 0
tikz/topo-halbgerade/Readme.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](topo-halbgerade.png)

TEMPAT SAMPAH
tikz/topo-halbgerade/topo-halbgerade.png


+ 18 - 0
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}