mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-19 11:38:05 +02:00
various minor changes
This commit is contained in:
parent
a7e3e56a42
commit
3be0369ae9
4 changed files with 30 additions and 44 deletions
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
SOURCE = gallery2
|
||||
SOURCE = gallery
|
||||
|
||||
make:
|
||||
pdflatex $(SOURCE).tex -output-format=pdf
|
||||
|
|
|
@ -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 @@ voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
|
|||
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
|
||||
|
|
|
@ -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}
|
Loading…
Add table
Add a link
Reference in a new issue