2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-25 06:18:05 +02:00
This commit is contained in:
Martin Thoma 2013-11-23 12:49:28 +01:00
parent dc7ffd3994
commit 44194d8817
18 changed files with 236 additions and 0 deletions

1
.gitignore vendored
View file

@ -28,6 +28,7 @@
*.svg *.svg
*.thm *.thm
*.xdy *.xdy
*.dvi
*.pdf *.pdf

View file

@ -0,0 +1,31 @@
SOURCE = topology-simplex-0
DELAY = 80
DENSITY = 300
WIDTH = 500
make:
pdflatex $(SOURCE).tex -output-format=pdf
make clean
clean:
rm -rf $(TARGET) *.class *.html *.log *.aux
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](topology-simplex-0.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

View file

@ -0,0 +1,11 @@
\documentclass[varwidth=true, border=2pt]{standalone}
\usepackage{tikz}
\usepackage{amsmath,amssymb}
\begin{document}
\begin{tikzpicture}[thick]
\draw[thick, fill=black, black] (0cm,0cm) circle(0.1cm);
%\node[below] {$1$};
\end{tikzpicture}
\end{document}

View file

@ -0,0 +1,31 @@
SOURCE = topology-simplex-1
DELAY = 80
DENSITY = 300
WIDTH = 500
make:
pdflatex $(SOURCE).tex -output-format=pdf
make clean
clean:
rm -rf $(TARGET) *.class *.html *.log *.aux
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](topology-simplex-1.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View file

@ -0,0 +1,34 @@
\documentclass[varwidth=true, border=2pt]{standalone}
\usepackage{pgfplots}
\usepackage{tikz}
\usepackage{tkz-fct}
\usetikzlibrary{shapes.misc}
\begin{document}
\begin{tikzpicture}
\tikzstyle{point}=[thick,draw=black,cross out,inner sep=0pt,minimum width=4pt,minimum height=4pt]
\begin{axis}[
legend pos=south west,
axis x line=middle,
axis y line=middle,
grid = major,
width=5cm,
height=5cm,
grid style={dashed, gray!30},
xmin=0, % start the diagram at this x-coordinate
xmax=3, % end the diagram at this x-coordinate
ymin=0, % start the diagram at this y-coordinate
ymax=3, % end the diagram at this y-coordinate
%xlabel=$x$,
%ylabel=$y$,
tick align=outside,
minor tick num=-3,
enlargelimits=true,
tension=0.08]
\addplot[domain=0:2.5, red, thick,samples=20] {-x+2.5};
\node[point,label={[label distance=0cm]45:$e_0$}] at (axis cs:2.5,0) {};
\node[point,label={[label distance=0cm]0:$e_1$}] at (axis cs:0,2.5) {};
\end{axis}
\end{tikzpicture}
\end{document}

View file

@ -0,0 +1,31 @@
SOURCE = topology-simplex-2
DELAY = 80
DENSITY = 300
WIDTH = 500
make:
pdflatex $(SOURCE).tex -output-format=pdf
make clean
clean:
rm -rf $(TARGET) *.class *.html *.log *.aux
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](topology-simplex-2.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View file

@ -0,0 +1,33 @@
\documentclass[varwidth=true, border=2pt]{standalone}
\usepackage{pgfplots}
\usepackage{tikz}
\usepackage{tkz-fct}
\usetikzlibrary{shapes.misc}
\begin{document}
\begin{tikzpicture}
\tikzstyle{point}=[thick,draw=black,cross out,inner sep=0pt,minimum width=4pt,minimum height=4pt]
\begin{axis}[
legend pos=south west,
axis x line=middle,
axis y line=middle,
grid = major,
width=5cm,
height=5cm,
grid style={dashed, gray!30},
xmin=0, % start the diagram at this x-coordinate
xmax=3, % end the diagram at this x-coordinate
ymin=0, % start the diagram at this y-coordinate
ymax=3, % end the diagram at this y-coordinate
tick align=outside,
minor tick num=-3,
enlargelimits=true,
tension=0.08]
\node (a)[point,label={[label distance=0cm]5:$e_0$}] at (axis cs:2.5,0) {};
\node (b)[point,label={[label distance=0cm]5:$e_1$}] at (axis cs:0,2.5) {};
\node (c)[point,label={[label distance=0cm]0:$e_2$}] at (axis cs:2,2) {};
\draw[thick,fill=orange!50] (a.center) -- (b.center) -- (c.center) -- cycle;
\end{axis}
\end{tikzpicture}
\end{document}

View file

@ -0,0 +1,31 @@
SOURCE = topology-simplex-3
DELAY = 80
DENSITY = 300
WIDTH = 500
make:
pdflatex $(SOURCE).tex -output-format=pdf
make clean
clean:
rm -rf $(TARGET) *.class *.html *.log *.aux
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](topology-simplex-3.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View file

@ -0,0 +1,18 @@
\documentclass[varwidth=true, border=2pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes.misc}
\begin{document}
\begin{tikzpicture}
\tikzstyle{point}=[thick,draw=black,cross out,inner sep=0pt,minimum width=4pt,minimum height=4pt]
\node (a)[point,label={[label distance=0cm]180:$e_0$}] at (0,0) {};
\node (b)[point,label={[label distance=0cm]0:$e_1$}] at (2,0) {};
\node (c)[point,label={[label distance=0cm]0:$e_2$}] at (1,2) {};
\node (d)[point,label={[label distance=0cm]0:$e_3$}] at (1,0.7) {};
\draw (a.center) -- (b.center) -- (c.center) -- cycle;
\draw[dashed] (a.center) -- (d.center) -- (b.center);
\draw[dashed] (d.center) -- (c.center);
\end{tikzpicture}
\end{document}

3
tikz/triangle/Readme.md Normal file
View file

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