Debian Codegraph @

texmf-dist/doc/latex/tikzscale/README

raw
1 ----------------------------------------------------------------
2 tikzscale --- Absolute resizing of TikZ pictures and PGF plots without
3 scaling text
4 E-mail: [email protected] Released under the LaTeX Project
5 Public License v1.3c or later See http://www.latex-project.org/lppl.txt
6 ----------------------------------------------------------------
7
8 The tikzscale package extends the includegraphics command to support
9 tikzpictures. It allows scaling of TikZ images and PGFPlots to a provided
10 width or height without changing the text size.
11
12 Usage: \usepackage{tikzscale}
13
14 As an example write
15 \includegraphics{myTikZFile.tikz}
16 instead of
17 \includegraphics{myJPEGFile.jpeg},
18 with myTikZFile.tikz being the file name of a text file containing
19 everything from \begin{tikzpicture} to \end{tikzpicture}. To actually
20 do some scaling of the included TikZ file, give either an absolute width
21 or an absolute height in the optional argument, e.g.
22 \tikzscale@includetikz[width=0.5\linewidth]{myTikZFile.tikz}.
23 If the file contains a plot created with the PGFPlots package, set both
24 width and height via the optional argument, e.g.
25 \tikzscale@includetikz[width=\linewidth,height=0.4\linewidth]{myPGFPlot.tikz}.
26