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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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