Add pre-commit config for automatic indentation fixes

This commit is contained in:
Anton Mosich 2022-04-28 23:58:50 +02:00
parent 5331b14cce
commit e6a85f17ba
Signed by: Flugschwein
GPG Key ID: 9303E1C32E3A14A0
2 changed files with 34 additions and 20 deletions

14
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,14 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/cmhughes/latexindent.pl
rev: V3.17.2
hooks:
- id: latexindent

View File

@ -1731,14 +1731,14 @@ Angenommen \(\alpha - \lambda \id: V \to V\) nilpotent. Dann besitzt \(\alpha\)
Wir wollen Eigenschaften eines Vektors im $\R^2$ finden.
\subsubsection{Länge}
\begin{tikzpicture}[scale=4]
\draw [-latex, very thick] (0, 0) -- (1.3, 1);
\draw [dashed] (0, 0) -- (1.3, 0) -- (1.3, 1);
\node [below] at (0.65, 0) {$x_2 - x_1$};
\node [right] at (1.3, 0.5) {$y_2 - y_1$};
\node [below left] at (0, 0) {$(x_1, y_1)$};
\node [above right] at (1.3, 1) {$(x_2, y_2)$};
\draw (1.1, 0) -- (1.1, 0.2) -- (1.3, 0.2);
\draw [fill] (0, 0) circle [radius=0.02];
\draw [-latex, very thick] (0, 0) -- (1.3, 1);
\draw [dashed] (0, 0) -- (1.3, 0) -- (1.3, 1);
\node [below] at (0.65, 0) {$x_2 - x_1$};
\node [right] at (1.3, 0.5) {$y_2 - y_1$};
\node [below left] at (0, 0) {$(x_1, y_1)$};
\node [above right] at (1.3, 1) {$(x_2, y_2)$};
\draw (1.1, 0) -- (1.1, 0.2) -- (1.3, 0.2);
\draw [fill] (0, 0) circle [radius=0.02];
\end{tikzpicture}
\( \R^2: P_1 = (x_1, y_1), P_2 = (x_2, y_2) \) \\
@ -1746,23 +1746,23 @@ Wir wollen Eigenschaften eines Vektors im $\R^2$ finden.
\subsubsection{Winkel}
\begin{tikzpicture}[scale=0.7]
\coordinate (a) at (0, 0);
\coordinate (b) at (5, 6);
\coordinate (c) at (8, 4);
\draw [fill] (a) circle [radius=0.07];
\draw [very thick, ->] (a) -- (b);
\draw [very thick, ->] (a) -- (c);
\node [below left] at (a) {$p$};
\node [right] at (b) {$v_2$};
\node [right] at (c) {$v_2$};
\draw pic [draw, thick, angle radius=3cm, pic text=$\alpha$] {angle=c--a--b};
\coordinate (a) at (0, 0);
\coordinate (b) at (5, 6);
\coordinate (c) at (8, 4);
\draw [fill] (a) circle [radius=0.07];
\draw [very thick, ->] (a) -- (b);
\draw [very thick, ->] (a) -- (c);
\node [below left] at (a) {$p$};
\node [right] at (b) {$v_2$};
\node [right] at (c) {$v_2$};
\draw pic [draw, thick, angle radius=3cm, pic text=$\alpha$] {angle=c--a--b};
\end{tikzpicture} \\
$v_1 = (u_1, w_1), v_2 = (u_2, w_2), v= (u, w)$ \\
$\cos(\alpha) = \dfrac{u_1 u_2 + w_1 w_2}{\lvert w_1 \rvert \lvert w_2 \rvert}$
$\lvert v \rvert = \sqrt{u^2 + w^2}$ \\
$v_1 \cdot v_2 = u_1 u_2 + w_1 w_2$ skalares Produkt \\
$\implies d(P_1, P_2) = \sqrt{\vect{P_1 P_2} \cdot \vect{P_1 P_2}}, \cos(\sphericalangle{v_1 v_2}) =
\dfrac{v_1 v_2}{\lvert v_1 \rvert \lvert v_2 \rvert}$
$\implies d(P_1, P_2) = \sqrt{\vect{P_1 P_2} \cdot \vect{P_1 P_2}}, \cos(\sphericalangle{v_1 v_2}) =
\dfrac{v_1 v_2}{\lvert v_1 \rvert \lvert v_2 \rvert}$
\section[Skalarprodukte und Hermitesche Formen]{Skalarprodukte und Hermitesche \\ Formen}
Zunächst sei \( \K = \R \)