From 3be0369ae927ea39fa9844af8aaa6361e05ff52e Mon Sep 17 00:00:00 2001 From: Martin Thoma Date: Fri, 28 Sep 2012 22:56:30 +0200 Subject: [PATCH] various minor changes --- README.md | 5 +++ documents/gallery/Makefile | 2 +- documents/gallery/gallery.tex | 35 +++++++++++++------ .../taylorpolynom-sin-pgf.tex | 32 ----------------- 4 files changed, 30 insertions(+), 44 deletions(-) delete mode 100644 tikz/taylorpolynom-sin/taylorpolynom-sin-pgf.tex diff --git a/README.md b/README.md index 8306ab49..21fa0495 100644 --- a/README.md +++ b/README.md @@ -30,3 +30,8 @@ some images here * [Many examples](http://www.f-lohmueller.de/) * [More examples with complete sources](http://www.ms.uky.edu/~lee/visual05/povray/povray.html) * [High quality examples](http://hof.povray.org/) + +Contact +======= +If you have examples or suggestions for improving given examples, +you send them to info@martin-thoma.de diff --git a/documents/gallery/Makefile b/documents/gallery/Makefile index 4eba1472..88eb1b27 100644 --- a/documents/gallery/Makefile +++ b/documents/gallery/Makefile @@ -1,4 +1,4 @@ -SOURCE = gallery2 +SOURCE = gallery make: pdflatex $(SOURCE).tex -output-format=pdf diff --git a/documents/gallery/gallery.tex b/documents/gallery/gallery.tex index 36eff795..3039cf4e 100644 --- a/documents/gallery/gallery.tex +++ b/documents/gallery/gallery.tex @@ -3,7 +3,7 @@ \usepackage{standalone} % needed for includestandalone \usepackage[utf8]{inputenc} % this is needed for umlauts \usepackage[ngerman]{babel} % this is needed for umlauts -\usepackage[T1]{fontenc}% this is needed for correct output of umlauts in pdf +\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf \usepackage{adjustbox} \usepackage{xcolor} @@ -14,10 +14,23 @@ \usetikzlibrary{arrows,positioning, calc} \tikzset{ -pil/.style={->,thick} + pil/.style={->,thick} } -\newenvironment{gallery}{}{} +\newenvironment{gallery}{% + \center +}{% + \par\endcenter +} + +\def\galleryimage#1{% + \adjustbox{width=4cm,height=4cm,keepaspectratio, center=4cm, + valign=M, set vsize={2cm}{2cm}, + %or: raise={.5\depth-.5\height}{2cm}{2cm}, + bgcolor=myLightGray,cfbox=borderColor 1px 0px 2px} + {\includestandalone{#1}}% + \space\ignorespaces +}% \begin{document} Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam @@ -36,16 +49,16 @@ Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. -\noindent \begin{gallery} -\adjustbox{width=4cm,height=4cm,keepaspectratio,bgcolor=myLightGray,cfbox=borderColor 1px 0px 2px}{\includestandalone{dot-product-1}} -\adjustbox{width=4cm,height=4cm,keepaspectratio,bgcolor=myLightGray,cfbox=borderColor 1px 0px 2px}{\includestandalone{dot-product-2}} -\adjustbox{width=4cm,height=4cm,keepaspectratio,bgcolor=myLightGray,cfbox=borderColor 1px 0px 2px}{\includestandalone{dot-product-3-1}} -\adjustbox{width=4cm,height=4cm,keepaspectratio,bgcolor=myLightGray,cfbox=borderColor 1px 0px 2px}{\includestandalone{dot-product-6}} -\adjustbox{width=4cm,height=4cm,keepaspectratio,bgcolor=myLightGray,cfbox=borderColor 1px 0px 2px}{\includestandalone{equilateral-triangle}} -\adjustbox{width=4cm,height=4cm,keepaspectratio,bgcolor=myLightGray,cfbox=borderColor 1px 0px 2px}{\includestandalone{equilateral-triangle-heights}} + \galleryimage{dot-product-1} + \galleryimage{dot-product-2} + \galleryimage{dot-product-3-1} + \galleryimage{dot-product-6} + \galleryimage{equilateral-triangle} + \galleryimage{equilateral-triangle-heights} \end{gallery} - + + Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent diff --git a/tikz/taylorpolynom-sin/taylorpolynom-sin-pgf.tex b/tikz/taylorpolynom-sin/taylorpolynom-sin-pgf.tex deleted file mode 100644 index eb127429..00000000 --- a/tikz/taylorpolynom-sin/taylorpolynom-sin-pgf.tex +++ /dev/null @@ -1,32 +0,0 @@ -\documentclass[varwidth=true, border=2pt]{standalone} - -\usepackage{pgfplots} -\usepackage{tikz} -\usetikzlibrary{arrows, positioning, calc} - -\begin{document} -\begin{tikzpicture} - \begin{axis}[ - axis x line=middle, - axis y line=middle, - enlarge y limits=true, - xmin=-8, xmax=8, % Positive domain... - width=15cm, height=8cm, % size of the image - grid = major, - grid style={dashed, gray!30}, - ymin=-4, % start the diagram at this y-coordinate - ymax= 4, % end the diagram at this y-coordinate - axis background/.style={fill=white}, - ylabel=$y$, - xlabel=$x$, - legend style={at={(0.07,0.35)}, anchor=north} - ] - \addplot[domain=-8:8,thick,samples=100,red] {x}; - \addplot[domain=-8:8,thick,samples=100,green] {x-x^3/6}; - \addplot[domain=-8:8,thick,samples=100,blue] {x-x^3/6+x^5/120}; - %\addplot[domain=-8:8,thick,samples=100,pink] {x-x^3/6+x^5/120-x^7/5040+x^9/362880-x^11/3916800}; - \addplot[domain=-8:8,thick,samples=100,black] {sin(deg(x))}; - \legend{$T_1$, $T_3$, $T_5$, $T_{11}$, $T_\infty$} - \end{axis} -\end{tikzpicture} -\end{document}