mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-19 11:38:05 +02:00
added gallery
This commit is contained in:
parent
24d2ba7a60
commit
e085c38e97
8 changed files with 243 additions and 0 deletions
8
documents/gallery/Makefile
Normal file
8
documents/gallery/Makefile
Normal file
|
@ -0,0 +1,8 @@
|
|||
SOURCE = gallery
|
||||
|
||||
make:
|
||||
pdflatex $(SOURCE).tex -output-format=pdf
|
||||
make clean
|
||||
|
||||
clean:
|
||||
rm -rf $(TARGET) *.class *.html *.log *.aux *.out *.ind *.idx *.ilg *.toc *.bbl *.blg
|
20
documents/gallery/dot-product-1.tex
Normal file
20
documents/gallery/dot-product-1.tex
Normal file
|
@ -0,0 +1,20 @@
|
|||
\documentclass[varwidth=true, border=2pt]{standalone}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{arrows,positioning}
|
||||
|
||||
|
||||
\begin{document}
|
||||
\begin{tikzpicture}
|
||||
\tikzset{
|
||||
%Define standard arrow tip
|
||||
>=stealth',
|
||||
% Define arrow style
|
||||
pil/.style={->,thick}
|
||||
}
|
||||
|
||||
\draw[fill=green!30] (0,0) -- (90:.75cm) arc (90:27:.75cm);
|
||||
\draw[pil,color=black] (0,0) -- node[right=2pt] {$\vec a$} (27:2.2cm);
|
||||
\draw[pil,color=black] (0,0) -- node[near end, right=-3pt] {$\vec b$} (90:2cm);
|
||||
\draw(60:0.5cm) node {$\varphi$};
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
26
documents/gallery/dot-product-2.tex
Normal file
26
documents/gallery/dot-product-2.tex
Normal file
|
@ -0,0 +1,26 @@
|
|||
\documentclass[varwidth=true, border=2pt]{standalone}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{arrows,positioning}
|
||||
\tikzset{
|
||||
%Define standard arrow tip
|
||||
>=stealth',
|
||||
% Define arrow style
|
||||
pil/.style={
|
||||
->,
|
||||
thick}
|
||||
}
|
||||
|
||||
\begin{document}
|
||||
\begin{tikzpicture}
|
||||
\draw[fill=gray!30] (27:0.90) -- node[right=-0.28cm, near end] {$\cdot$} (27:1.08)
|
||||
arc (27:117:.18cm);
|
||||
\draw[fill=green!30] (0,0) -- (90:.55cm) arc (90:27:.55cm);
|
||||
\draw[pil,color=red] (0,0) -- node[right=2pt] {$\vec a$} (27:3cm);
|
||||
\draw[pil,color=blue] (0,0) -- node[near end, right=-3pt] {$\vec b$} (90:2cm);
|
||||
|
||||
\draw[pil,color=violet] (0,0) -- node[near start, right=7pt] {$\vec b_{\vec a}$} (27:0.90cm);
|
||||
\draw[color=gray, dashed] (27:0.90) -- node[near end, right] {} (90:2cm);
|
||||
|
||||
\draw(60:0.35cm) node {$\varphi$};
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
17
documents/gallery/dot-product-3-1.tex
Normal file
17
documents/gallery/dot-product-3-1.tex
Normal file
|
@ -0,0 +1,17 @@
|
|||
\documentclass[varwidth=true, border=2pt]{standalone}
|
||||
\usepackage{gensymb}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{arrows,positioning,decorations.pathreplacing,shapes}
|
||||
\tikzset{
|
||||
%Define standard arrow tip
|
||||
>=stealth',
|
||||
% Define arrow style
|
||||
pil/.style={->,thick}
|
||||
}
|
||||
|
||||
\begin{document}
|
||||
\begin{tikzpicture}
|
||||
\draw[pil] (0,0) -- node[near end, above] {$\vec a$} (3cm, 0cm);
|
||||
\draw[pil] (0,0.5cm) -- node[near end, above] {$\vec b$} (2cm,0.5cm);
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
18
documents/gallery/dot-product-6.tex
Normal file
18
documents/gallery/dot-product-6.tex
Normal file
|
@ -0,0 +1,18 @@
|
|||
\documentclass[varwidth=true, border=2pt]{standalone}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{arrows,positioning}
|
||||
\tikzset{
|
||||
%Define standard arrow tip
|
||||
>=stealth',
|
||||
% Define arrow style
|
||||
pil/.style={->,thick}
|
||||
}
|
||||
|
||||
\begin{document}
|
||||
\begin{tikzpicture}
|
||||
\draw[fill=gray!30, label=$a$] (0,0) -- node[above, near start] {$\cdot$} (0.5,0)
|
||||
arc (0:90:0.5cm);
|
||||
\draw[pil] (0,0) -- node[near end, above] {$\vec e_1$} (2cm, 0);
|
||||
\draw[pil] (0,0) -- node[near end, right] {$\vec e_2$} (0, 2cm);
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
66
documents/gallery/equilateral-triangle-heights.tex
Normal file
66
documents/gallery/equilateral-triangle-heights.tex
Normal file
|
@ -0,0 +1,66 @@
|
|||
\documentclass[varwidth=true, border=2pt]{standalone}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{arrows,positioning, calc}
|
||||
\tikzset{
|
||||
%Define standard arrow tip
|
||||
>=stealth',
|
||||
% Define arrow style
|
||||
pil/.style={->,thick}
|
||||
}
|
||||
|
||||
\begin{document}
|
||||
\begin{tikzpicture}
|
||||
% draw the background
|
||||
\draw [line width=1.5pt, fill=gray!2] (0,0) -- (60:4) -- (4,0) -- cycle;
|
||||
|
||||
\coordinate[label=left:$A$] (A) at (0,0);
|
||||
\coordinate[label=right:$B$] (B) at (4,0);
|
||||
\coordinate[label=above:$C$] (C) at (2,3.464);
|
||||
|
||||
\coordinate[label=below:$c$](c) at ($ (A)!.5!(B) $);
|
||||
\coordinate[label=left:$b$](b) at ($ (A)!.5!(C) $);
|
||||
\coordinate[label=right:$a$](a) at ($ (B)!.5!(C) $);
|
||||
|
||||
% angle alpha
|
||||
\draw[fill=green!30] (0,0) -- (0:0.75cm) arc (0:60:.75cm);
|
||||
\draw (0.35cm,0.25cm) node {$\alpha$};
|
||||
|
||||
% angle beta
|
||||
\begin{scope}[shift={(4cm,0cm)}]
|
||||
\draw[fill=green!30] (0,0) -- (-180:0.75cm) arc (180:120:0.75cm);
|
||||
\draw[color=gray, dashed] (0,0) -- node[sloped, above=-0.1cm] {$\scriptstyle h_b$} (150:3.464cm);
|
||||
\draw (150:0.5cm) node {$\beta$};
|
||||
\end{scope}
|
||||
|
||||
% angle gamma
|
||||
\begin{scope}[shift={(60:4)}]
|
||||
\draw[fill=green!30] (0,0) -- (-120:.75cm) arc (-120:-60:.75cm);
|
||||
\draw[color=gray, dashed] (0,0) -- node[right=-0.1cm] {$\scriptstyle h_c$} (-90:3.464cm);
|
||||
\draw (-90:0.5cm) node {$\gamma$};
|
||||
\end{scope}
|
||||
|
||||
% Sign for right angle of h_c
|
||||
\begin{scope}[shift={(2,0)}]
|
||||
\draw[fill=gray!30] (0,0) -- node[above=-0.15cm,near start] {$\cdot$} (0:0.18cm)
|
||||
arc (0:90:.18cm);
|
||||
\end{scope}
|
||||
|
||||
% sign of right angle of h_a
|
||||
\begin{scope}[shift={(30:3.464cm)}]
|
||||
\draw[fill=gray!30] (0,0) -- node[near end,right=-0.28cm] {$\cdot$} (-60:0.18cm)
|
||||
arc (-60:-150:.18cm);
|
||||
\end{scope}
|
||||
|
||||
% sign of right angle of h_b
|
||||
\begin{scope}[shift={(60:2cm)}]
|
||||
\draw[fill=gray!30] (0,0) -- node[right=-0.08cm, near start] {$\cdot$} (60:0.18cm)
|
||||
arc (60:-30:.18cm);
|
||||
\end{scope}
|
||||
|
||||
% Height with label
|
||||
\draw[color=gray, dashed] (0,0) -- node[sloped, above=-0.1cm] {$\scriptstyle h_a$} (30:3.464cm);
|
||||
|
||||
% The triangle
|
||||
\draw [line width=1.5pt] (0,0) -- (60:4) -- (4,0) -- cycle;
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
37
documents/gallery/equilateral-triangle.tex
Normal file
37
documents/gallery/equilateral-triangle.tex
Normal file
|
@ -0,0 +1,37 @@
|
|||
\documentclass[varwidth=true, border=2pt]{standalone}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{positioning, calc}
|
||||
|
||||
\begin{document}
|
||||
\begin{tikzpicture}[scale=0.8]
|
||||
% draw the background
|
||||
\draw [line width=1.5pt, fill=gray!2] (0,0) -- (60:4) -- (4,0) -- cycle;
|
||||
|
||||
\coordinate[label=left:$A$] (A) at (0,0);
|
||||
\coordinate[label=right:$B$] (B) at (4,0);
|
||||
\coordinate[label=above:$C$] (C) at (2,3.464);
|
||||
|
||||
\coordinate[label=below:$c$](c) at ($ (A)!.5!(B) $);
|
||||
\coordinate[label=left:$b$] (b) at ($ (A)!.5!(C) $);
|
||||
\coordinate[label=right:$a$](a) at ($ (B)!.5!(C) $);
|
||||
|
||||
% angle alpha
|
||||
\draw[fill=green!30] (0,0) -- (0:0.75cm) arc (0:60:.75cm);
|
||||
\draw (0.35cm,0.25cm) node {$\alpha$};
|
||||
|
||||
% angle beta
|
||||
\begin{scope}[shift={(4cm,0cm)}]
|
||||
\draw[fill=green!30] (0,0) -- (-180:0.75cm) arc (180:120:0.75cm);
|
||||
\draw (150:0.5cm) node {$\beta$};
|
||||
\end{scope}
|
||||
|
||||
% angle gamma
|
||||
\begin{scope}[shift={(60:4)}]
|
||||
\draw[fill=green!30] (0,0) -- (-120:.75cm) arc (-120:-60:.75cm);
|
||||
\draw (-90:0.5cm) node {$\gamma$};
|
||||
\end{scope}
|
||||
|
||||
% the triangle
|
||||
\draw [line width=1.5pt] (A) -- (B) -- (C) -- cycle;
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
51
documents/gallery/gallery.tex
Normal file
51
documents/gallery/gallery.tex
Normal file
|
@ -0,0 +1,51 @@
|
|||
\documentclass[a4paper,12pt]{article}
|
||||
\usepackage{amssymb,amsmath} % needed for math
|
||||
\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{tikz} % needed for includestandalone
|
||||
\usetikzlibrary{arrows,positioning, calc}
|
||||
|
||||
\tikzset{
|
||||
pil/.style={->,thick}
|
||||
}
|
||||
|
||||
\newenvironment{gallery}{}{}
|
||||
|
||||
\begin{document}
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
|
||||
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
|
||||
erat,
|
||||
sed diam 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. Lorem ipsum dolor sit amet, consetetur
|
||||
sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore
|
||||
et dolore magna aliquyam erat, sed diam 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. Lorem ipsum
|
||||
dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
||||
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
|
||||
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.
|
||||
|
||||
\begin{gallery}
|
||||
\includestandalone{dot-product-1}
|
||||
\includestandalone{dot-product-2}
|
||||
\includestandalone{dot-product-3-1}
|
||||
\includestandalone{dot-product-6}
|
||||
\includestandalone{equilateral-triangle}
|
||||
\includestandalone{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
|
||||
luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
|
||||
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam
|
||||
nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat
|
||||
volutpat.
|
||||
|
||||
\end{document}
|
Loading…
Add table
Add a link
Reference in a new issue