[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Scaling TeX output



Justin Gombos <mindfuq@zianet.com> writes:

> I generated a TeX diagram, and when latex compiled the thing, it ran
> off the page.  There doesn't seem to be a scaling mechanism in LaTeX.

Oh, but there is. Load the graphicx package (or graphics if you prefer,
they should work the same in this regard). That is, put

\usepackage{graphicx}

in the preamble of your document.
Then you can use the commands

\scalebox{factor}{object}
\resizebox{width}{height}{object}

In your case this should work fine (in case the diagram currently is
to wide):

\resizebox{\textwidth}{!}{ \input{file.tex}}

This means that the diagram in file.tex will be typeset to the
currently defined textwidth width preserved proportions.

Xdvi will probably not show the result correctly, but a resulting
PS- or PDF-file should be fine.

-- 
                - Mårten
 
mail: msv@kth.se *** ICQ: 4356928 *** mobile: +46 (0)707390385



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] Mail converted by Mofo Magic and the Flying D

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

GuideSMACK