2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-19 11:38:05 +02:00

Gezeichnetes Bild durch TikZ ersetzt

This commit is contained in:
Martin Thoma 2014-01-13 22:40:36 +01:00
parent e11b789a18
commit 4bb6678a48
8 changed files with 61 additions and 1 deletions

Binary file not shown.

View file

@ -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}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

View file

@ -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}

View file

@ -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

View file

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View file

@ -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}