mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-24 22:08:04 +02:00
misc
This commit is contained in:
parent
dc7ffd3994
commit
44194d8817
18 changed files with 236 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -28,6 +28,7 @@
|
|||
*.svg
|
||||
*.thm
|
||||
*.xdy
|
||||
*.dvi
|
||||
|
||||
*.pdf
|
||||
|
||||
|
|
31
tikz/topology-simplex-0/Makefile
Normal file
31
tikz/topology-simplex-0/Makefile
Normal 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
|
3
tikz/topology-simplex-0/Readme.md
Normal file
3
tikz/topology-simplex-0/Readme.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
Compiled example
|
||||
----------------
|
||||

|
BIN
tikz/topology-simplex-0/topology-simplex-0.png
Normal file
BIN
tikz/topology-simplex-0/topology-simplex-0.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.7 KiB |
11
tikz/topology-simplex-0/topology-simplex-0.tex
Normal file
11
tikz/topology-simplex-0/topology-simplex-0.tex
Normal 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}
|
31
tikz/topology-simplex-1/Makefile
Normal file
31
tikz/topology-simplex-1/Makefile
Normal 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
|
3
tikz/topology-simplex-1/Readme.md
Normal file
3
tikz/topology-simplex-1/Readme.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
Compiled example
|
||||
----------------
|
||||

|
BIN
tikz/topology-simplex-1/topology-simplex-1.png
Normal file
BIN
tikz/topology-simplex-1/topology-simplex-1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
34
tikz/topology-simplex-1/topology-simplex-1.tex
Normal file
34
tikz/topology-simplex-1/topology-simplex-1.tex
Normal 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}
|
31
tikz/topology-simplex-2/Makefile
Normal file
31
tikz/topology-simplex-2/Makefile
Normal 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
|
3
tikz/topology-simplex-2/Readme.md
Normal file
3
tikz/topology-simplex-2/Readme.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
Compiled example
|
||||
----------------
|
||||

|
BIN
tikz/topology-simplex-2/topology-simplex-2.png
Normal file
BIN
tikz/topology-simplex-2/topology-simplex-2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
33
tikz/topology-simplex-2/topology-simplex-2.tex
Normal file
33
tikz/topology-simplex-2/topology-simplex-2.tex
Normal 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}
|
31
tikz/topology-simplex-3/Makefile
Normal file
31
tikz/topology-simplex-3/Makefile
Normal 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
|
3
tikz/topology-simplex-3/Readme.md
Normal file
3
tikz/topology-simplex-3/Readme.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
Compiled example
|
||||
----------------
|
||||

|
BIN
tikz/topology-simplex-3/topology-simplex-3.png
Normal file
BIN
tikz/topology-simplex-3/topology-simplex-3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
18
tikz/topology-simplex-3/topology-simplex-3.tex
Normal file
18
tikz/topology-simplex-3/topology-simplex-3.tex
Normal 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
3
tikz/triangle/Readme.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
Compiled example
|
||||
----------------
|
||||

|
Loading…
Add table
Add a link
Reference in a new issue