[OS X TeX] Changing size of tikzfigure figures
"M. Tamer Özsu"
ozsut at mac.com
Mon Feb 26 19:31:37 EST 2018
I normally use \resizebox for this to make sure that the text as well as the figure is scaled:
\resizebox{<horizontal size>}{<vertical size>}{
\begin{tikzpicture}
…
\end{tikzpicture}
}
If you want to resize proportionately, you set either the vertical or horizontal and then use {!} for the other. E.g.:
\resizebox{!}{0.8\textheight}{
\begin{tikzpicture}
…
\end{tikzpicture}
}
I usually keep each tikzpicture in a separate file to include in various documents and beamer presentations. Then I do the following:
\resizebox{!}{0.8\textheight}{<filename>}
==Tamer
--
M. Tamer Özsu
Professor, Cheriton School of Computer Science
University of Waterloo
https://cs.uwaterloo.ca/~tozsu <https://cs.uwaterloo.ca/~tozsu>
+1-519-888-4043
> On Feb 26, 2018, at 3:18 PM, Nitecki, Zbigniew H. <Zbigniew.Nitecki at tufts.edu <mailto:Zbigniew.Nitecki at tufts.edu>> wrote:
>
> I am putting together a beamer presentation which incorporates pictures of braids using the braid package. In this package, the figures are created using the tikzpicture environment. These can quickly get too tall for beamer; when I am simply generating them in a paper, latex seems to take care of the size, but beamer does not—it simply falls off the bottom of the slide. Is there a way (similar to for example setting units in pstricks) that I can control the height of a tikzpicture so that it fits inside a single beamer slide?
>
> Zbigniew Nitecki
> Department of Mathematics
> Tufts University
> Medford, MA 02155
>
> telephones:
> Office (617)627-3843
> Dept. (617)627-3234
> Dept. fax (617)627-3966
> http://www.tufts.edu/~znitecki/ <http://www.tufts.edu/~znitecki/>
>
>
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq <http://www.tex.ac.uk/faq>
> List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/ <https://sites.esm.psu.edu/~gray/tex/>
> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx <http://dir.gmane.org/gmane.comp.tex.macosx>
> https://email.esm.psu.edu/pipermail/macosx-tex/ <https://email.esm.psu.edu/pipermail/macosx-tex/>
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/ <http://mactex-wiki.tug.org/>
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex <https://email.esm.psu.edu/mailman/listinfo/macosx-tex>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20180226/4861203e/attachment.html>
More information about the MacOSX-TeX
mailing list