2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-18 19:18:21 +02:00
LaTeX-examples/documents/GeoTopo/figures/torus-triangulation-minimal.tex
Martin Thoma 7740f0147f Remove trailing spaces
The commands

find . -type f -name '*.md' -exec sed --in-place 's/[[:space:]]\+$//' {} \+

and

find . -type f -name '*.tex' -exec sed --in-place 's/[[:space:]]\+$//' {} \+

were used to do so.
2015-10-14 14:25:34 +02:00

53 lines
No EOL
1.9 KiB
TeX

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