Skip to content

Commit

Permalink
various minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed Sep 28, 2012
1 parent a7e3e56 commit 3be0369
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 44 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]
2 changes: 1 addition & 1 deletion documents/gallery/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SOURCE = gallery2
SOURCE = gallery

make:
pdflatex $(SOURCE).tex -output-format=pdf
Expand Down
35 changes: 24 additions & 11 deletions documents/gallery/gallery.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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
Expand All @@ -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
Expand Down
32 changes: 0 additions & 32 deletions tikz/taylorpolynom-sin/taylorpolynom-sin-pgf.tex

This file was deleted.

0 comments on commit 3be0369

Please sign in to comment.