mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-19 11:38:05 +02:00
created image
This commit is contained in:
parent
ebd91912c1
commit
a33d36f8c7
4 changed files with 52 additions and 0 deletions
31
tikz/topo-halbgerade/Makefile
Normal file
31
tikz/topo-halbgerade/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
|||
SOURCE = topo-halbgerade
|
||||
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/topo-halbgerade/Readme.md
Normal file
3
tikz/topo-halbgerade/Readme.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
Compiled example
|
||||
----------------
|
||||

|
BIN
tikz/topo-halbgerade/topo-halbgerade.png
Normal file
BIN
tikz/topo-halbgerade/topo-halbgerade.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.9 KiB |
18
tikz/topo-halbgerade/topo-halbgerade.tex
Normal file
18
tikz/topo-halbgerade/topo-halbgerade.tex
Normal file
|
@ -0,0 +1,18 @@
|
|||
\documentclass[varwidth=true, border=2pt]{standalone}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{snakes}
|
||||
|
||||
\begin{document}
|
||||
\begin{tikzpicture}
|
||||
\tikzstyle{point}=[circle,thick,draw=black,fill=black,inner sep=0pt,minimum width=4pt,minimum height=4pt]
|
||||
\node (Pleft) at (0,0) {};
|
||||
\node (P)[point,label=90:$P$] at (2,0) {};
|
||||
\node (R)[point,label=90:$R$] at (4,0) {};
|
||||
\node (Rright) at (6,0) {};
|
||||
\draw[red,dashed,very thick] (Pleft) -- (P);
|
||||
\draw[green,dotted,very thick] (P) -- (R) -- (Rright);
|
||||
\draw [thick,decoration={brace,mirror,raise=0.2cm},decorate,red] (Pleft) -- (P) node [pos=0.5,anchor=north,yshift=-0.25cm,red] {$PR^-$};
|
||||
\draw [thick,decoration={brace,mirror,raise=0.2cm},decorate] (P) -- (R) node [pos=0.5,anchor=north,yshift=-0.25cm] {$\overline{PR}$};
|
||||
\draw [thick,decoration={brace,mirror,raise=0.8cm},decorate,green] (P) -- (Rright) node [pos=0.5,anchor=north,yshift=-0.85cm,green] {$PR^+$};
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
Loading…
Add table
Add a link
Reference in a new issue