mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
added circle as an example for a convex metric space
This commit is contained in:
parent
de0f3cc3cf
commit
cbf9a3172c
2 changed files with 58 additions and 0 deletions
32
tikz/circle-convex-metric-space/Makefile
Normal file
32
tikz/circle-convex-metric-space/Makefile
Normal file
|
@ -0,0 +1,32 @@
|
|||
SOURCE = circle-convex-metric-space
|
||||
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:
|
||||
make
|
||||
#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
|
|
@ -0,0 +1,26 @@
|
|||
\documentclass[varwidth=true, border=2pt]{standalone}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{shapes, calc, shapes, arrows}
|
||||
\usepackage{amsmath,amssymb}
|
||||
|
||||
\usepackage{xcolor}
|
||||
\definecolor{xvectorcolor}{HTML}{77933C}
|
||||
|
||||
\begin{document}
|
||||
\begin{tikzpicture}
|
||||
\path (160:1) coordinate (X);
|
||||
\path ( 20:1) coordinate (Y);
|
||||
\path ( 80:1) coordinate (Z);
|
||||
|
||||
\draw (0,0) circle (1);
|
||||
|
||||
\fill[color=blue] (X) circle (2pt);
|
||||
\draw[blue] (X) node [right] {$x$};
|
||||
|
||||
\fill[color=blue] (Y) circle (2pt);
|
||||
\draw[blue] (Y) node [left] {$y$};
|
||||
|
||||
\fill[color=red] (Z) circle (2pt);
|
||||
\draw[red] (Z) node [below] {$z$};
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
Loading…
Add table
Add a link
Reference in a new issue