0

I was wondering why predefined patterns like dashed, dotted, thick, etc., do not scaled when scaling the complete tikzpicture environment.

Minimal Example:

\documentclass{beamer} \usepackage{tikz} \begin{document} \begin{figure} \begin{tikzpicture}[transform shape, scale=.3] \draw[very thick, dashed] (0,0) -- (10, 0); \end{tikzpicture} \end{figure} \begin{figure} \begin{tikzpicture} \draw[very thick, dashed] (0,0) -- (10, 0); \end{tikzpicture} \end{figure} \end{document} 
2
  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. Commented May 29, 2015 at 7:37
  • Also related. tex.stackexchange.com/q/155314 Commented May 29, 2015 at 7:43

1 Answer 1

1

The scale parameter only scales the coordinates. In order to scale the whole environment you have to use scalebox or resizeobox

\documentclass{beamer} \usepackage{tikz} \begin{document} \begin{figure} \scalebox{0.3}{% \begin{tikzpicture}[transform shape] \draw[very thick, dashed] (0,0) -- (10, 0); \end{tikzpicture} } \end{figure} \begin{figure} \begin{tikzpicture} \draw[very thick, dashed] (0,0) -- (10, 0); \end{tikzpicture} \end{figure} \end{document} 

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.