GeneralAutomatic scaling of images

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Guy007
Posts: 2
Joined: Mon Mar 24, 2008 1:12 pm

Automatic scaling of images

Post by Guy007 »

I am using MikTex, and I am inserting images as follows:

Code: Select all

\begin{figure}[htp]
\centering
\includegraphics{fig.jpg}
\caption{my caption}
\label{F_fig}
\end{figure}
Then i convert directly to PDF

Problem is that if the jpg is wider than the "printable" area of the page (i.e. A4 sheet less the left and right margins), the image continues in the page margin, which is obviously not good for me...

i know you can manually scale the images using [scale=0.5], but is there some automated way to have images scaled to the correct size, if they are too wide?

thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Automatic scaling of images

Post by localghost »

I already gave you responses to your request in another forum [1]. As a matter of fairness, I would appreciate if you would have mentioned that.

[1] CQF.info ::: View topic - Automatic scaling of images


Best regards
Thorsten¹
Guy007
Posts: 2
Joined: Mon Mar 24, 2008 1:12 pm

Automatic scaling of images

Post by Guy007 »

localghost wrote:I already gave you responses to your request in another forum [1]. As a matter of fairness, I would appreciate if you would have mentioned that.
yes, thanks for your replies! i posted the same question on 2 different forums simultaneously, to get a quick reply... your help was definitely greatly appreciated!
Post Reply