Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LaTeX - Automatically scale down an area so that it will be inside a page if it's too big?

I'm making a document in LaTeX. It includes a set of images in a row. A small percentage are quite wide and will stretch and push off the page. If I shrink all the image sequences then most of them will look too small. However it's not easy to figure out what sets are going to be too large. I'd like some automatic way to resize these sets.

Is there anyway to surround something with a command which will shrink it enough so that it fits within the width of the page? If it's already narrower than the page, then no shrinking is necessary?

like image 918
Amandasaurus Avatar asked Jul 28 '10 10:07

Amandasaurus


People also ask

How do I scale down a figure in LaTeX?

Use the scale=1.5 option in the \includegraphics command to resize the image to 150% of its original size. That is, \includegraphics[width=50mm,scale=1.5]{method. eps}. You can use a different percentage if needed.

How do I fit to page in LaTeX?

How do you fit text to a page in LaTeX? The paper size can be set to any size you need by means of the command papersize={⟨width⟩,⟨height⟩} . Here the text area, the left margin and the top margin are set. The right and bottom margins are automatically computed to fit the page.

What is Textwidth LaTeX?

\textwidth is the normal width of the text on a page. It should generally be changed only in the preamble. \linewidth is the width of lines in the current environment. Normally equal to \textwidth, it may be different within an environment such as list or quote environments.

How do you put a figure in the middle of a page in LaTeX?

Centering. We center text or images using \begin{center} and \end{center}. Just put \begin{center} when you want to start centering, and \end{center} when you want to stop centering.


1 Answers

you can do something like

\includegraphics[width=\textwidth]{figure}

or

\includegraphics[width=0.33\textwidth]{figure}
\includegraphics[width=0.33\textwidth]{figure}
\includegraphics[width=0.33\textwidth]{figure}
like image 111
second Avatar answered Oct 17 '22 05:10

second