Seite 2 von 2

Verfasst: Sa 11. Mär 2017, 19:15
von u_fischer
chaoscrack hat geschrieben: Hat nun jemand eine Idee wie ich simple Balken mit absoluten Koordinaten und Abmassen zeichnen kann?
\documentclass[titlepage=true]{scrartcl}
\usepackage{tikz}
\usetikzlibrary{calc,positioning}% [0]
\usepackage{mwe}
\usepackage{graphicx}
\begin{document}
\begin{tikzpicture}[overlay,remember picture]
 \coordinate (left upper corner) at  ([xshift=25mm,yshift=10cm] current page.south west);
 \coordinate (right bottom corner) at  ([xshift=-7mm,yshift=8cm] current page.south east);
 \fill[red] (left upper corner) rectangle (right bottom corner);
 \draw[blue,<->] (left upper corner)--++ (-25mm,0)node[midway,above]{25mm};
 \draw[blue,<->] (right bottom corner)--++ (7mm,0)node[midway,above]{7mm};    
 \draw[blue,<->] (right bottom corner)--++ (0,-8cm)node[midway,above]{8cm}; 
\end{tikzpicture}
blub
\end{document}

Verfasst: Sa 11. Mär 2017, 23:40
von chaoscrack
@u_fischer

Vielen herzlichen Dank. Genau das habe ich gesucht.


Gruss
Patrick