30 views

### Scale figure if width < textwidth [duplicate]

Problem I would like to automatically switch between width=\textwidth and scale=1 arguments depending on the actual width of the image I am trying to insert in order to prevent it from being ...
24 views

### Automatically scale image based on its native/actual size [duplicate]

I want Latex to detect images that are larger than the page width and automatically scale them down to fit, similar to what this does: \includegraphics[width=\textwidth]{path/to/image} However, I ...
11k views

### Includegraphics maximum width

With \includegraphics I can give the width of the resulting image (which would be scaled). How can I give a maximum width of the image? That is, if the original is smaller than X, I'd like to keep ...
16k views

### Can pdflatex (or any tex package) automatically rescale included images which have been reduced in size?

I'm writing my thesis in LaTeX, generating it with pdflatex. I have a large number of figures, many of which are bitmaps (as opposed to SVG) in PNG/JPEG format. I've generally created them to be ...
64k views

### Shrink table to fit on a page, or keep it as it is

I am using \resizebox{\columnwidth}{!}{% ... %} to fit a table which might be too wide onto a page by scaling it down. However, my problem is that if the table is smaller than the column width, it ...
14k views

### How do I control the exact dimension of a picture in LaTeX?

This question is pretty simple: I'd like to have the possibility to get the exact size of a picture in LaTeX with, for example, the macro \the. In fact, I've founded the way \settoheight{} and so on, ...
35k views

### How to make images appear at their actual size?

Whenever I insert an image into my PDFTex document (using the code below) it seems to be resized to fit the width of the page. I know I can change this using the scale parameter, but that means I have ...
22k views

### Overfull hbox warning when including graphics

I'm getting the error: Overfull \hbox (14.34999pt too wide) in paragraph at lines 374--375 [][] | when including graphics files. The files are in EPS format. Below is an example: \begin{figure} \...
8k views

### Resize large images that exceed page margin whilst respecting existing scale

The solution posted here Scale (resize) large images (graphics) that exceed page margins works great. Just to summarise, Dave Jarvis suggested \usepackage{graphicx} % Determine if the image is too ...
5k views

### Resize images to half of text width only if too big for page margin

I want the images I'm using that exceed the page's text width to be scaled down to half the text width. Images that aren't wider than the text width don't need to be scaled. I have one markdown ...