mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-19 11:38:05 +02:00
added number ray circle topology
This commit is contained in:
parent
2679e6a2d6
commit
cc2be1fd37
4 changed files with 80 additions and 0 deletions
31
tikz/number-ray-circle-topology/Makefile
Normal file
31
tikz/number-ray-circle-topology/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
|||
SOURCE = number-ray-circle-topology
|
||||
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/number-ray-circle-topology/Readme.md
Normal file
3
tikz/number-ray-circle-topology/Readme.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
Compiled example
|
||||
----------------
|
||||

|
BIN
tikz/number-ray-circle-topology/number-ray-circle-topology.png
Normal file
BIN
tikz/number-ray-circle-topology/number-ray-circle-topology.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
|
@ -0,0 +1,46 @@
|
|||
\documentclass[varwidth=true, border=2pt]{standalone}
|
||||
\usepackage{amsmath,amssymb}
|
||||
\usepackage{pgfplots}
|
||||
\usepackage{tikz}
|
||||
\usepackage{tkz-fct}
|
||||
\usetikzlibrary{shapes.misc}
|
||||
|
||||
\begin{document}
|
||||
\tikzset{
|
||||
point/.style={
|
||||
thick,
|
||||
draw=gray,
|
||||
cross out,
|
||||
inner sep=0pt,
|
||||
minimum width=4pt,
|
||||
minimum height=4pt,
|
||||
},
|
||||
}
|
||||
\begin{tikzpicture}
|
||||
|
||||
\draw[->] (-1.5,0) -- (5.5,0) node [below] {$\mathbb{R}$};
|
||||
|
||||
\foreach \x in {-1,...,5}
|
||||
\draw (\x,0.1) -- (\x,-0.1) node [below] {\x};
|
||||
|
||||
\foreach \x in {-1,...,4} {
|
||||
\draw[red] (\x+0.6,0.01) -- (\x+0.6,-0.14) node [below] {};
|
||||
\draw[red] (\x+1.2,0.01) -- (\x+1.2,-0.14) node [below] {};
|
||||
\draw[red] (\x+0.6,-0.07) -- (\x+1.2,-0.07) node [below] {};
|
||||
}
|
||||
|
||||
\begin{scope}[shift={(0,-2)}]
|
||||
\draw[thick] (0cm,0cm) circle(1cm);
|
||||
\draw[thick, red] ([shift={(216:1cm)}]-0.0,0) arc (216:-72:1cm);
|
||||
\draw (0:1cm) node[point, label={[right]{$0$}}] {};
|
||||
\path node[point, blue, label={[blue,above]{$\overline{a}$}}] (posU) at (-252:1cm) {};
|
||||
\path node[label={[red,left]{$U$}}] at (30:1cm) {};
|
||||
\end{scope}
|
||||
\draw (3.7cm,0cm) node[point, blue, label={[blue,above]{$a$}}] (posA) {};
|
||||
\draw (0.7cm,0cm) node[point, blue, label={[blue,above]{$\pi^{-1}(u)$}}] {};
|
||||
\draw[dashed, blue, thick] plot [smooth] coordinates{(posU) (0.2,-0.8) (2.5,-1) (posA)};
|
||||
|
||||
\draw[blue, dashed, thick] (3.7cm,0cm) arc (0:180:1.5 and 0.5);
|
||||
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
Loading…
Add table
Add a link
Reference in a new issue