2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-18 19:18:21 +02:00
LaTeX-examples/documents/GeoTopo/figures/coordinate-system-2.tex
Martin Thoma 7740f0147f Remove trailing spaces
The commands

find . -type f -name '*.md' -exec sed --in-place 's/[[:space:]]\+$//' {} \+

and

find . -type f -name '*.tex' -exec sed --in-place 's/[[:space:]]\+$//' {} \+

were used to do so.
2015-10-14 14:25:34 +02:00

34 lines
No EOL
1.2 KiB
TeX

\begin{tikzpicture}
\tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
\tkzSetUpLine[line width=1]
\tkzDefPoints{0/0/O, 1/0/X, 0/1/Y, 2/1/P}
\tkzMarkAngle[fill=green!20,size=0.3cm,opacity=.5](X,O,Y)
\tkzLabelAngle[pos=0.15](X,O,Y){$\cdot$}
\tkzDrawLine[add=3 and 2](O,X)
\tkzLabelLine[below,pos=3](O,X){$g_1$}
\tkzLabelLine[right,pos=3](O,Y){$g_2$}
\tkzDrawLine[add=3 and 2](O,Y)
\tkzDefLine[orthogonal=through P,/tikz/overlay](O,X) \tkzGetPoint{helper}
\tkzInterLL(O,X)(P,helper) \tkzGetPoint{xp}
\draw [decorate,decoration={brace,amplitude=4pt,mirror}]
(O) -- (xp) node [black,midway,xshift=0cm, yshift=-0.3cm]
{\footnotesize $x_P$};
\tkzDefLine[orthogonal=through P,/tikz/overlay](O,Y) \tkzGetPoint{helper}
\tkzInterLL(O,Y)(P,helper) \tkzGetPoint{yp}
\draw [decorate,decoration={brace,amplitude=4pt}]
(O) -- (yp) node [black,midway,xshift=-0.4cm]
{\footnotesize $y_P$};
\tkzDrawPolygon(O,xp,P,yp)
\tkzLabelPoint[above right](P){$P$}
\tkzLabelPoint[below left](O){$0$}
\tkzLabelPoint[below](xp){$P_X$}
\tkzLabelPoint[left](Y){$P_Y$}
\node at ($(-2,2)$){$X$};
\tkzDrawPoints(P,Y,xp)
\end{tikzpicture}