Browse Source

Gezeichnetes Bild durch TikZ ersetzt

Martin Thoma 11 năm trước cách đây
mục cha
commit
4bb6678a48

BIN
documents/GeoTopo/GeoTopo.pdf


+ 1 - 1
documents/GeoTopo/Kapitel3.tex

@@ -409,7 +409,7 @@ Für einen Weg $\gamma$ sei $[\gamma]$ seine \textbf{Homotopieklasse}\xindex{Hom
         \item
             \begin{figure}
                 \centering
-                \includegraphics[width=0.2\linewidth, keepaspectratio]{figures/todo/topologischer-raum-x.png}
+                \input{figures/topologischer-raum-x.tex}
                 \caption{Topologischer Raum $X$}
                 \label{fig:top-raum-kreise}
             \end{figure}

BIN
documents/GeoTopo/figures/todo/topologischer-raum-x.png


+ 10 - 0
documents/GeoTopo/figures/topologischer-raum-x.tex

@@ -0,0 +1,10 @@
+\begin{tikzpicture}[thick]
+    \tikzstyle{point}=[circle,thick,draw=black,fill=black,inner sep=0pt,minimum width=4pt,minimum height=4pt]
+    \node[blue]   at (4.5, 1.7) {$a$};
+    \node[purple] at (7.5, 1.7) {$b$};
+    \begin{scope}[xshift=5cm, yshift=1cm]
+        \draw[blue,->]   (  0,0)+(150:0.7cm) arc (150:510:0.7cm);
+        \draw[purple,<-] (1.4,0)+( 40:0.7cm) arc (40:400:0.7cm);
+        \node (z)[point,label={[label distance=0.2cm]-90:$x$}] at (0.7,0) {};
+    \end{scope}
+\end{tikzpicture}

+ 31 - 0
tikz/topologischer-raum-x/Makefile

@@ -0,0 +1,31 @@
+SOURCE = topologischer-raum-x
+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/topologischer-raum-x/Readme.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](topologischer-raum-x.png)

BIN
tikz/topologischer-raum-x/topologischer-raum-x.png


+ 16 - 0
tikz/topologischer-raum-x/topologischer-raum-x.tex

@@ -0,0 +1,16 @@
+\documentclass[varwidth=true, border=2pt]{standalone}
+\usepackage{tikz}
+\usetikzlibrary{patterns}
+
+\begin{document}
+\begin{tikzpicture}[thick]
+    \tikzstyle{point}=[circle,thick,draw=black,fill=black,inner sep=0pt,minimum width=4pt,minimum height=4pt]
+    \node[blue]   at (4.5, 1.7) {$a$};
+    \node[purple] at (7.5, 1.7) {$b$};
+    \begin{scope}[xshift=5cm, yshift=1cm]
+        \draw[blue,->]   (  0,0)+(150:0.7cm) arc (150:510:0.7cm);
+        \draw[purple,<-] (1.4,0)+( 40:0.7cm) arc (40:400:0.7cm);
+        \node (z)[point,label={[label distance=0.2cm]-90:$x$}] at (0.7,0) {};
+    \end{scope}
+\end{tikzpicture}
+\end{document}