[OS X TeX] Changing size of tikzfigure figures

Nitecki, Zbigniew H. Zbigniew.Nitecki at tufts.edu
Tue Feb 27 02:39:50 CET 2018


Tamer:
Thanks for the suggestion.  I was told by another respondent about resizebox, and I used it successfully by experimenting with sizes, but I didn’t quite know how to do it in terms of the actual page size.  I will try your method as I go along.

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/




On Feb 26, 2018, at 18:31, M. Tamer Özsu <ozsut at mac.com<mailto:ozsut at mac.com>> wrote:

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
+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/




----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
               https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
               https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180227/96c63ca9/attachment-0001.html>
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex


More information about the macostex-archives mailing list