forked from MartinThoma/LaTeX-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad0c3c4
commit 8441632
Showing
24 changed files
with
548 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
32 changes: 32 additions & 0 deletions
32
documents/GeoTopo/figures/torus-invalid-triangulation-1.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
\begin{tikzpicture} | ||
\node (a) at (0,0) {}; | ||
\node (b) at (1,0) {}; | ||
\node (c) at (1,1) {}; | ||
\node (d) at (0,1) {}; | ||
\coordinate (m) at ($(a)!0.5!(c)$); | ||
\coordinate (ab) at ($(a)!0.5!(b)$); | ||
\coordinate (bc) at ($(b)!0.5!(c)$); | ||
\coordinate (cd) at ($(c)!0.5!(d)$); | ||
\coordinate (ad) at ($(a)!0.5!(d)$); | ||
\draw[pattern=north west lines] (d.center) -- (ad.center) -- (m.center); | ||
\draw[pattern=dots] (m.center) -- (bc.center) -- (c.center); | ||
\draw (a.center) -- (b.center) -- (c.center) -- (d.center) -- cycle; | ||
\begin{scope}[decoration={ | ||
markings, | ||
mark=at position 0.6 with {\arrow{>}}} | ||
] | ||
\draw[postaction={decorate}] (a.center) -- (b.center); | ||
\draw[postaction={decorate}] (d.center) -- (c.center); | ||
\end{scope} | ||
|
||
\begin{scope}[decoration={ | ||
markings, | ||
mark=at position 0.55 with {\arrow{>>}}} | ||
] | ||
\draw[postaction={decorate}] (b.center) -- (c.center); | ||
\draw[postaction={decorate}] (a.center) -- (d.center); | ||
\end{scope} | ||
\draw (ab.center) -- (cd.center); | ||
\draw (a.center) -- (c.center); | ||
\draw (b.center) -- (d.center); | ||
\end{tikzpicture} |
39 changes: 39 additions & 0 deletions
39
documents/GeoTopo/figures/torus-invalid-triangulation-2.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
\begin{tikzpicture} | ||
\node (a) at (0,0) {}; | ||
\node (b) at (1,0) {}; | ||
\node (c) at (1,1) {}; | ||
\node (d) at (0,1) {}; | ||
\coordinate (m) at ($(a)!0.5!(c)$); | ||
\coordinate (ab) at ($(a)!0.5!(b)$); | ||
\coordinate (bc) at ($(b)!0.5!(c)$); | ||
\coordinate (cd) at ($(c)!0.5!(d)$); | ||
\coordinate (ad) at ($(a)!0.5!(d)$); | ||
\coordinate (left-intersection) at ($(m)!0.5!(d)$); | ||
\coordinate (right-intersection) at ($(m)!0.5!(c)$); | ||
\draw[pattern=north west lines] (ad.center) -- (left-intersection.center) -- (m.center); | ||
\draw[pattern=dots] (m.center) -- (right-intersection.center) -- (bc.center); | ||
\draw (a.center) -- (b.center) -- (c.center) -- (d.center) -- cycle; | ||
\draw (bc.center) -- (ad.center); | ||
\draw (cd.center) -- (ad.center); | ||
\draw (cd.center) -- (bc.center); | ||
\draw (ad.center) -- (ab.center); | ||
\draw (ab.center) -- (bc.center); | ||
\begin{scope}[decoration={ | ||
markings, | ||
mark=at position 0.6 with {\arrow{>}}} | ||
] | ||
\draw[postaction={decorate}] (a.center) -- (b.center); | ||
\draw[postaction={decorate}] (d.center) -- (c.center); | ||
\end{scope} | ||
|
||
\begin{scope}[decoration={ | ||
markings, | ||
mark=at position 0.55 with {\arrow{>>}}} | ||
] | ||
\draw[postaction={decorate}] (b.center) -- (c.center); | ||
\draw[postaction={decorate}] (a.center) -- (d.center); | ||
\end{scope} | ||
\draw (ab.center) -- (cd.center); | ||
\draw (a.center) -- (c.center); | ||
\draw (b.center) -- (d.center); | ||
\end{tikzpicture} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
\begin{tikzpicture} | ||
\node (a) at (0,0) {}; | ||
\node (b) at (1,0) {}; | ||
\node (c) at (1,1) {}; | ||
\node (d) at (0,1) {}; | ||
\coordinate (m) at ($(a)!0.5!(c)$); | ||
\coordinate (ab2) at ($(a)!0.5!(b)$); | ||
\coordinate (ab1) at ($(a)!0.5!(ab2)$); | ||
\coordinate (ab3) at ($(b)!0.5!(ab2)$); | ||
\coordinate (bc2) at ($(b)!0.5!(c)$); | ||
\coordinate (bc1) at ($(b)!0.5!(bc2)$); | ||
\coordinate (bc3) at ($(c)!0.5!(bc2)$); | ||
\coordinate (cd2) at ($(c)!0.5!(d)$); | ||
\coordinate (cd1) at ($(c)!0.5!(cd2)$); | ||
\coordinate (cd3) at ($(d)!0.5!(cd2)$); | ||
\coordinate (ad2) at ($(a)!0.5!(d)$); | ||
\coordinate (ad1) at ($(a)!0.5!(ad2)$); | ||
\coordinate (ad3) at ($(d)!0.5!(ad2)$); | ||
\coordinate (corner1) at ($(a)!0.25!(bc3)$); | ||
\coordinate (corner2) at ($(c)!0.25!(ad1)$); | ||
\draw (a.center) -- (b.center) -- (c.center) -- (d.center) -- cycle; | ||
%horizontal | ||
\draw (a.center) -- (bc3.center); | ||
\draw (cd3.center) -- (ad3.center); | ||
\draw (ab3.center) -- (bc1.center); | ||
\draw (cd3.center) -- (ad1.center); | ||
\draw (ab3.center) -- (bc3.center); | ||
\draw (ab1.center) -- (corner1.center); | ||
\draw (ad1.center) -- (corner1.center); | ||
\draw (ab3.center) -- (corner1.center); | ||
\draw (c.center) -- (corner2.center); | ||
\draw (cd1.center) -- (corner2.center); | ||
\draw (bc3.center) -- (corner2.center); | ||
\draw (cd3.center) -- (corner2.center); | ||
\draw (corner1.center) -- (corner2.center); | ||
\draw (ad1.center) -- (corner2.center); | ||
|
||
\begin{scope}[decoration={ | ||
markings, | ||
mark=at position 0.6 with {\arrow{>}}} | ||
] | ||
\draw[postaction={decorate}] (a.center) -- (b.center); | ||
\draw[postaction={decorate}] (d.center) -- (c.center); | ||
\end{scope} | ||
|
||
\begin{scope}[decoration={ | ||
markings, | ||
mark=at position 0.55 with {\arrow{>>}}} | ||
] | ||
\draw[postaction={decorate}] (b.center) -- (c.center); | ||
\draw[postaction={decorate}] (a.center) -- (d.center); | ||
\end{scope} | ||
\end{tikzpicture} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
\begin{tikzpicture} | ||
\node (a) at (0,0) {}; | ||
\node (b) at (1,0) {}; | ||
\node (c) at (1,1) {}; | ||
\node (d) at (0,1) {}; | ||
\coordinate (m) at ($(a)!0.5!(c)$); | ||
\coordinate (ab2) at ($(a)!0.5!(b)$); | ||
\coordinate (ab1) at ($(a)!0.5!(ab2)$); | ||
\coordinate (ab3) at ($(b)!0.5!(ab2)$); | ||
\coordinate (bc2) at ($(b)!0.5!(c)$); | ||
\coordinate (bc1) at ($(b)!0.5!(bc2)$); | ||
\coordinate (bc3) at ($(c)!0.5!(bc2)$); | ||
\coordinate (cd2) at ($(c)!0.5!(d)$); | ||
\coordinate (cd1) at ($(c)!0.5!(cd2)$); | ||
\coordinate (cd3) at ($(d)!0.5!(cd2)$); | ||
\coordinate (ad2) at ($(a)!0.5!(d)$); | ||
\coordinate (ad1) at ($(a)!0.5!(ad2)$); | ||
\coordinate (ad3) at ($(d)!0.5!(ad2)$); | ||
\draw (a.center) -- (b.center) -- (c.center) -- (d.center) -- cycle; | ||
%horizontal | ||
\draw (bc1.center) -- (ad1.center); | ||
\draw (bc2.center) -- (ad2.center); | ||
\draw (bc3.center) -- (ad3.center); | ||
%vertical | ||
\draw (ab1.center) -- (cd3.center); | ||
\draw (ab2.center) -- (cd2.center); | ||
\draw (ab3.center) -- (cd1.center); | ||
%diagonal | ||
\draw (ad3.center) -- (cd3.center); | ||
\draw (ad2.center) -- (cd2.center); | ||
\draw (ad1.center) -- (cd1.center); | ||
\draw (a.center) -- (c.center); | ||
\draw (ab1.center) -- (bc3.center); | ||
\draw (ab2.center) -- (bc2.center); | ||
\draw (ab3.center) -- (bc1.center); | ||
\begin{scope}[decoration={ | ||
markings, | ||
mark=at position 0.6 with {\arrow{>}}} | ||
] | ||
\draw[postaction={decorate}] (a.center) -- (b.center); | ||
\draw[postaction={decorate}] (d.center) -- (c.center); | ||
\end{scope} | ||
|
||
\begin{scope}[decoration={ | ||
markings, | ||
mark=at position 0.55 with {\arrow{>>}}} | ||
] | ||
\draw[postaction={decorate}] (b.center) -- (c.center); | ||
\draw[postaction={decorate}] (a.center) -- (d.center); | ||
\end{scope} | ||
\end{tikzpicture} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
SOURCE = torus-invalid-triangulation-1 | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Compiled example | ||
---------------- | ||
![Example](torus-invalid-triangulation-1.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions
42
tikz/torus-invalid-triangulation-1/torus-invalid-triangulation-1.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
\documentclass[varwidth=true, border=2pt]{standalone} | ||
\usepackage{tikz} | ||
\usetikzlibrary{patterns,calc,decorations.markings} | ||
|
||
\begin{document} | ||
\begin{tikzpicture} | ||
\node (a) at (0,0) {}; | ||
\node (b) at (1,0) {}; | ||
\node (c) at (1,1) {}; | ||
\node (d) at (0,1) {}; | ||
\coordinate (m) at ($(a)!0.5!(c)$); | ||
\coordinate (ab) at ($(a)!0.5!(b)$); | ||
\coordinate (bc) at ($(b)!0.5!(c)$); | ||
\coordinate (cd) at ($(c)!0.5!(d)$); | ||
\coordinate (ad) at ($(a)!0.5!(d)$); | ||
\draw[pattern=north west lines] (d.center) -- (ad.center) -- (m.center); | ||
\draw[pattern=dots] (m.center) -- (bc.center) -- (c.center); | ||
\draw (a.center) -- (b.center) -- (c.center) -- (d.center) -- cycle; | ||
\begin{scope}[decoration={ | ||
markings, | ||
mark=at position 0.6 with {\arrow{>}}} | ||
] | ||
\draw[postaction={decorate}] (a.center) -- (b.center); | ||
\draw[postaction={decorate}] (d.center) -- (c.center); | ||
\end{scope} | ||
|
||
\begin{scope}[decoration={ | ||
markings, | ||
mark=at position 0.55 with {\arrow{>>}}} | ||
] | ||
\draw[postaction={decorate}] (b.center) -- (c.center); | ||
\draw[postaction={decorate}] (a.center) -- (d.center); | ||
\end{scope} | ||
\draw (ab.center) -- (cd.center); | ||
\draw (a.center) -- (c.center); | ||
\draw (b.center) -- (d.center); | ||
|
||
%\draw[pattern=north west lines] (a.center) -- (b.center) -- (z.center) --cycle; | ||
%\draw[pattern=dots] (b.center) -- (c.center) -- (z.center) --cycle; | ||
%\draw[pattern=crosshatch] (a.center) -- (c.center) -- (z.center) --cycle; | ||
\end{tikzpicture} | ||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
SOURCE = torus-invalid-triangulation-2 | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Compiled example | ||
---------------- | ||
![Example](torus-invalid-triangulation-2.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions
45
tikz/torus-invalid-triangulation-2/torus-invalid-triangulation-2.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
\documentclass[varwidth=true, border=2pt]{standalone} | ||
\usepackage{tikz} | ||
\usetikzlibrary{patterns,calc,decorations.markings} | ||
|
||
\begin{document} | ||
\begin{tikzpicture} | ||
\node (a) at (0,0) {}; | ||
\node (b) at (1,0) {}; | ||
\node (c) at (1,1) {}; | ||
\node (d) at (0,1) {}; | ||
\coordinate (m) at ($(a)!0.5!(c)$); | ||
\coordinate (ab) at ($(a)!0.5!(b)$); | ||
\coordinate (bc) at ($(b)!0.5!(c)$); | ||
\coordinate (cd) at ($(c)!0.5!(d)$); | ||
\coordinate (ad) at ($(a)!0.5!(d)$); | ||
\coordinate (left-intersection) at ($(m)!0.5!(d)$); | ||
\coordinate (right-intersection) at ($(m)!0.5!(c)$); | ||
\draw[pattern=north west lines] (ad.center) -- (left-intersection.center) -- (m.center); | ||
\draw[pattern=dots] (m.center) -- (right-intersection.center) -- (bc.center); | ||
\draw (a.center) -- (b.center) -- (c.center) -- (d.center) -- cycle; | ||
\draw (bc.center) -- (ad.center); | ||
\draw (cd.center) -- (ad.center); | ||
\draw (cd.center) -- (bc.center); | ||
\draw (ad.center) -- (ab.center); | ||
\draw (ab.center) -- (bc.center); | ||
\begin{scope}[decoration={ | ||
markings, | ||
mark=at position 0.6 with {\arrow{>}}} | ||
] | ||
\draw[postaction={decorate}] (a.center) -- (b.center); | ||
\draw[postaction={decorate}] (d.center) -- (c.center); | ||
\end{scope} | ||
|
||
\begin{scope}[decoration={ | ||
markings, | ||
mark=at position 0.55 with {\arrow{>>}}} | ||
] | ||
\draw[postaction={decorate}] (b.center) -- (c.center); | ||
\draw[postaction={decorate}] (a.center) -- (d.center); | ||
\end{scope} | ||
\draw (ab.center) -- (cd.center); | ||
\draw (a.center) -- (c.center); | ||
\draw (b.center) -- (d.center); | ||
\end{tikzpicture} | ||
\end{document} |
Oops, something went wrong.