Heute erstellen wir ein simples Viereck, nach dem hier ein Nutzer fragte.
Dabei wollen wir die (rechten) Winkel eingezeichnet haben. Dazu wird die relativ neue Bibliothek angles verwendet.
Der \path-Befehl sorgt dabei dafür, daß es keine Überzeichnungen gibt.
\documentclass[margin=5mm]{standalone}
%\documentclass[a5paper, landscape]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage{selinput}
\SelectInputMappings{adieresis={ä}, germandbls={ß}}
\usepackage{tikz}
\usetikzlibrary{angles,quotes,babel, plotmarks}
\pagecolor{lightgray!50!yellow!70!white}
%===========
\begin{document}
%===========
\begin{tikzpicture}[font=\footnotesize, scale=0.25]
%Koordinaten
\coordinate (A) at (0,0);
\coordinate (B) at (7,0);
\coordinate (C) at (7,24);
\coordinate (D) at (-7.04,18.72);
%Viereck – Füllung
\fill[fill=yellow!50] (A) — (B) — (C) — (D) — cycle;
%Winkel
\path[] (A) — (B) — (C) pic [fill opacity=1.0, "\Huge $\cdot$", draw, -, fill=yellow] {angle=C–B–A};
\path (C) — (D) — (A) pic ["\Huge $\cdot$", draw, -, fill=yellow] {angle=A–D–C};
%Viereck – Seiten
\draw[thick] (A) — (B) node[midway, below] {a = 7cm};
\draw[thick] (B) — (C) node[midway, right] {b = 24cm};
\draw[thick] (C) — (D) node[midway, sloped, above] {c = 15cm};
\draw[thick] (D) — (A) node[midway, left] {d = 20cm};
%Diagonale
\draw[densely dashed, thick] (A) — (C) node[midway, above, sloped]{e = 25cm};
%Optional:
%Viereck – Ecken
%\draw[] plot[mark=*, only marks, mark size = 5pt, mark options={fill=white}] coordinates{(A) (B) (C) (D)};
\end{tikzpicture}
%===========
\end{document}
%===========
%\documentclass[a5paper, landscape]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage{selinput}
\SelectInputMappings{adieresis={ä}, germandbls={ß}}
\usepackage{tikz}
\usetikzlibrary{angles,quotes,babel, plotmarks}
\pagecolor{lightgray!50!yellow!70!white}
%===========
\begin{document}
%===========
\begin{tikzpicture}[font=\footnotesize, scale=0.25]
%Koordinaten
\coordinate (A) at (0,0);
\coordinate (B) at (7,0);
\coordinate (C) at (7,24);
\coordinate (D) at (-7.04,18.72);
%Viereck – Füllung
\fill[fill=yellow!50] (A) — (B) — (C) — (D) — cycle;
%Winkel
\path[] (A) — (B) — (C) pic [fill opacity=1.0, "\Huge $\cdot$", draw, -, fill=yellow] {angle=C–B–A};
\path (C) — (D) — (A) pic ["\Huge $\cdot$", draw, -, fill=yellow] {angle=A–D–C};
%Viereck – Seiten
\draw[thick] (A) — (B) node[midway, below] {a = 7cm};
\draw[thick] (B) — (C) node[midway, right] {b = 24cm};
\draw[thick] (C) — (D) node[midway, sloped, above] {c = 15cm};
\draw[thick] (D) — (A) node[midway, left] {d = 20cm};
%Diagonale
\draw[densely dashed, thick] (A) — (C) node[midway, above, sloped]{e = 25cm};
%Optional:
%Viereck – Ecken
%\draw[] plot[mark=*, only marks, mark size = 5pt, mark options={fill=white}] coordinates{(A) (B) (C) (D)};
\end{tikzpicture}
%===========
\end{document}
%===========