Graphics, Figures & TablesDraw a picture

Information and discussion about graphics, figures & tables in LaTeX documents.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10317
Joined: Mon Mar 10, 2008 9:44 pm

Draw a picture

Post by Stefan Kottwitz »

Quick shot, as I'm a bit busy now:

Code: Select all

\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
  %\draw [help lines, dotted,step=0.25] (0,0) grid(8,3);% help line grid
  %\node [anchor=south west] at (-0.15,-0.2)%as template
    %{\includegraphics[width=8cm]{space.jpg}};
  \draw (0,0) -- (5.9,0) -- (7.9,2.5) -- (1.95,2.5) -- cycle;
  \foreach \shift/\style in {
            (0,0)/dashed,
       (-0.1,0.4)/dashed,
       (-0.2,0.8)/dashed,
      (-0.05,0.2)/dotted,
      (-0.15,0.6)/dotted} {
    \draw [\style,shift={\shift}] (1.2,0) -- (6.5,1.68);}
\end{tikzpicture}
\end{document}
Stefan
LaTeX.org admin

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
TikZ book
Post Reply