mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
added many images
This commit is contained in:
parent
8654f2d45e
commit
a8e6ccd140
24 changed files with 357 additions and 7 deletions
31
tikz/topology-paths-in-r2/Makefile
Normal file
31
tikz/topology-paths-in-r2/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
|||
SOURCE = topology-paths-in-r2
|
||||
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/topology-paths-in-r2/Readme.md
Normal file
3
tikz/topology-paths-in-r2/Readme.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
Compiled example
|
||||
----------------
|
||||

|
BIN
tikz/topology-paths-in-r2/topology-paths-in-r2.png
Normal file
BIN
tikz/topology-paths-in-r2/topology-paths-in-r2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
34
tikz/topology-paths-in-r2/topology-paths-in-r2.tex
Normal file
34
tikz/topology-paths-in-r2/topology-paths-in-r2.tex
Normal file
|
@ -0,0 +1,34 @@
|
|||
\documentclass[varwidth=true, border=2pt]{standalone}
|
||||
|
||||
\usepackage{pgfplots}
|
||||
\usepackage{tikz}
|
||||
|
||||
\begin{document}
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
legend pos=south west,
|
||||
axis x line=middle,
|
||||
axis y line=middle,
|
||||
%grid = major,
|
||||
width=9cm,
|
||||
height=9cm,
|
||||
grid style={dashed, gray!30},
|
||||
xmin=-2, % start the diagram at this x-coordinate
|
||||
xmax= 1, % end the diagram at this x-coordinate
|
||||
ymin=-1, % start the diagram at this y-coordinate
|
||||
ymax= 5, % end the diagram at this y-coordinate
|
||||
%axis background/.style={fill=white},
|
||||
%xlabel=$x$,
|
||||
%ylabel=$y$,
|
||||
ticks=none,
|
||||
%tick align=outside,
|
||||
%minor tick num=-3,
|
||||
enlargelimits=true,
|
||||
tension=0.08]
|
||||
\addplot[mark=none, orange, smooth cycle, thick, tension=1, dashed] coordinates {%
|
||||
(0,0) (-1,1) (-2,2) (-1,3) (0, 3) (1, 4)};
|
||||
\addplot[mark=none, blue, smooth cycle, thick, tension=3] coordinates {%
|
||||
(0,0) (-1,1) (-2,2) (-1,3) (0, 3) (1, 4)};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
Loading…
Add table
Add a link
Reference in a new issue