LaTeX forum ⇒ Graphics, Figures & TablesToo large Dimension in Picture Topic is solved

Information and discussion about graphics, figures & tables in LaTeX documents.
Thomas_l
Posts: 6
Joined: Fri Apr 19, 2013 3:13 pm

Too large Dimension in Picture

Postby Thomas_l » Wed Sep 04, 2013 10:16 am

Hi all,

I am working on a presentation where I want to show the duct layout of a ventilation system. The plan was to draw the ventilation system with a TikZ picture. For easier drawing I wanted to give the coordinates in mm and then scale the tikzpicture itself.
  1. \documentclass{beamer}
  2. \usepackage{tikz}
  3.  
  4. \begin{document}
  5.  
  6. \begin{frame}
  7. \begin{minipage}{\textwidth}
  8. \centering
  9. \begin{tikzpicture}[scale=0.002]
  10. \draw (-500,350) rectangle (500,-350);
  11. \draw (500,250) rectangle (600,50);
  12. \end{tikzpicture}
  13. \end{minipage}
  14. \end{frame}
  15.  
  16. \end{document}

The picture is drawn correct but I keep getting the dimension to large error.

Regards
Thomas

Tags:

alainremillard
Posts: 45
Joined: Fri Mar 16, 2012 8:22 pm

Postby alainremillard » Wed Sep 04, 2013 5:31 pm

tikz allows to specify the basic length for x and y units. It is 1 cm by default. An x value of 600 means a line close over 19 feet long. By changing the basic units to 1mm, see below, it solve your problem. (Scale value was ajusted)

  1. \documentclass{beamer}
  2. \usepackage{tikz}
  3.  
  4. \begin{document}
  5.  
  6. \begin{frame}
  7. \begin{minipage}{\textwidth}
  8. \centering
  9. \begin{tikzpicture}[x=1mm,y=1mm,scale=0.02]
  10. \draw (-500,350) rectangle (500,-350);
  11. \draw (500,250) rectangle (600,50);
  12. \end{tikzpicture}
  13. \end{minipage}
  14. \end{frame}
  15.  
  16. \end{document}


Have a nice day

Alain Rémillard


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 3 guests