4
votes
2answers
91 views

Rescaling many images which are scaled with \includegraphics

In a LaTeX document I have about 70 images which are scaled using the graphicx-package and \includegraphics[scale=0.8]{foo.pdf} where the scaling factor varies. Now I would like to rescale them all ...
1
vote
1answer
80 views

Why is “width=\textwidth” setting not properly scaling graphic?

I'm including a jpg figure in my LaTeX document like this: \begin{figure}[htbp]\centering % fbox here only for illustrative purposes ...
2
votes
0answers
60 views

Cannot align or resize graphics [closed]

I've search for a solution but cannot determine the problem. I neither resize nor align a graphic. In the preamble I'm including: \documentclass[a4paper,12pt]{scrreprt} ...
0
votes
0answers
32 views

inserted graphics appears out of the page!

This is my code: \begin{figure} \begin{center} \includegraphics[scale=1]{C:/Users/Prathmesh/Desktop/research papers/runoff water harvesting/LaTex/waterpan.png} \caption{SILT TRAP} \end{center} ...
2
votes
1answer
85 views

The scale option of \includegraphics does not work after changing the document class [duplicate]

After .cls file changes, \includegraphics[scale=0.5]{img/GoalHierarchyMetaModel.png} command gives the following error. ! Package keyval Error: scale=0.5 undefined. See the keyval package ...
3
votes
1answer
89 views

Custom Tikz node with background graphics that scale to node size?

I have an SVG shape, which I'd like to use as a sort of a TikZ node border. The shape is basically a path with stroke effects - but the effects have been "baked in", so now I just have a non-stroked ...
2
votes
1answer
64 views

Problem sizing the image with \includegraphics

This question is very similar to Image from \includegraphics showing in wrong image size, but not quite the same. The size of the image that appears in my manuscript depends entirely on the dpi ...
0
votes
0answers
44 views

Scaling of landscape figures (images)

I'm trying to insert a landscape figure, which I want to scale down. I'm currently using: \begin{figure*}[tb] \centering ...
9
votes
1answer
191 views

How to change one thing to change all

I have the following but when I change scale, I have to change all images. Is there a better way so that I can change only one place? I read about command/macro but not sure how to use it in this ...
3
votes
1answer
77 views

How to get the available space for an image

I want to design a figure (in a external graphics editor, e.g, Illustrator) to exactly fit (without scaling!) the whole available space on an empty page of my document minus the caption of the figure. ...
4
votes
1answer
84 views

\includegraphics[scale] makes plot figure (PDF) from smooth to serrated

I plot a function in Scilab and export to pdf image file. The pdf file looks very smooth as following. However, when I tried to include this smooth pdf file in LaTeX. It becomes serrated like. ...
11
votes
2answers
2k views

Scale tikz figure to a percentage of \textwidth

A user asked a question about scaling a figure to a factor of \textwidth and got an answer like this: \documentclass{article} \usepackage{graphicx} \begin{document} ...
2
votes
1answer
150 views

Global scaling of images in html output (only) of htlatex

I have the following MWE with some images: \documentclass{book} \usepackage{graphicx} \begin{document} Lorem ipsum dolor sit amet, consectetur adipisici elit: \begin{centering} ...
3
votes
0answers
317 views

TikZ scaling graphic and adjust node position and keep font size

I have several pictures in my thesis. I want to draw arrows with text over these pictures. After that I want to scale the picture, but the node position should adjust to the scaling and arrows, and ...
1
vote
1answer
119 views

Automatic PDF generation, image scaling

I am currently working with GitHub's wiki and I have markdown pages in the wiki that I would like to convert to PDF files. I have a script that uses Kramdown, bash/sed/grep and custom HTML tags for ...
4
votes
2answers
135 views

Shrinking verbatim text

Heiko Oberdiek helped me a lot by finding a solution for shrinking text when needed. I want to apply this method to verbatim text as in the example below, but this is somehow forbidden (Something's ...
4
votes
1answer
75 views

Scaling text in pictures

I create pictures with pstricks, that contain rectangles and text within the rectangles. When I need to scale the picture, I use "psset unit=...", and all rectangles in my picture are scaled ...
11
votes
3answers
274 views

Fit text to linewidth, shrinking only

I often have AVMs/tables that are just a bit too large and use \resizebox to fit everything in one line. Now, if the linewidth changes (switch from twocolumn to onecolumn) this results in enlarging ...
7
votes
1answer
104 views

What does scale in the graphicx package actually do?

I ran into the following curiosity while using the graphicx package. When including two images of the same size, I scaled them using the same ratio (see example below). However the images didn't come ...
2
votes
1answer
314 views

Always scale and clip background image so it fills the page

I have learned from other answers how to use an image file as background and make it transparent. Since my background files do not necessarily have the exact page dimensions (they are provided by ...
2
votes
1answer
166 views

Stretch image width within a two-column layout in ConTeXt

Background Trying to place an image within two-column text. Problem The image renders as follows, where the vertical bar is the column separator: Code The following code produces the problem ...
4
votes
1answer
757 views

Problem with scaling used in \includegraphics

I have a question on scaling a graph when the graph is included using \includegraphics. A code snippet is below. \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} ...
4
votes
1answer
299 views

Montage multiple PDF images, scaled to each other's dimensions, on a single PDF page?

I though "montage" would be the most appropriate term here, since in Latex we mostly deal with multi-page documents (and I was afraid that terms like "concatenate", "append", "collect" etc. could be ...
6
votes
1answer
992 views

How do I include and scale on-image-TikZ-drawings made by the standalone class?

I am building several on image TikZ drawings. In detail: I am having PDFs of technical drawings, I crop the white margins, overlay nodes and some arrows and compile them. The result should give me a ...
1
vote
1answer
129 views

Scale only dataset read from file without scaling whole graphics

I have datasets which vary strong in range. So i want to scale my dataset to adjust it to my template, so that the grids, axes and so on are identical with the neighbour-subfigures. What is the ...
3
votes
1answer
137 views

Why could \usepackage{Sweave} be affecting my graphics scaling?

I'm using Sweave to produce a large, multi part academic thesis. I had neglected to specify \usepackage{Sweave} in my preamble, but everything was working fine until I added some verbatim output from ...
4
votes
2answers
578 views

Center wide figure w.r.t. page instead of margins

I've seen similar threads with centering problems, but could not find the right solution to mine. I'm using the report class (onesided). I have a float figure (object width=1.3\textwidth here, may ...
1
vote
0answers
141 views

Commands from graphics have no effect [duplicate]

I am learning LaTeX from a book, and I am using TeXnicCenter. The book has a chapter about the graphics package, so I download it and try the commands. But I find that when I use commands like ...
13
votes
3answers
7k views

Make two figures aligned at top

I am inserting two graphs (of different size) in the following way: \begin{figure}[H] \begin{center} \includegraphics[scale=0.5]{graph1.eps} \includegraphics[scale=0.3]{graph2.eps} ...
3
votes
2answers
168 views

Resizing image and losing quality

I want to create a pdf document from images of different size and I fit each image to the text dimensions to include them in the document, with \includegraphics[width=\textwidth, height=\textheight, ...
4
votes
3answers
1k 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 ...
11
votes
2answers
3k views

Macro for \textwidth, \textheight and keepaspectratio

I'm using many pictures within my beamer presentation. Somehow I'm tired of writing: \begin{figure} \includegraphics[width=0.8\textwidth,height=0.8\textheight,keepaspectratio]{source} ...
1
vote
1answer
1k views

Why can't I scale my image?

I'm using the graphics package and I can insert my graphic into the document without any difficulty, apart from the fact that it's huge! I am using the following command: \documentclass{article} ...
16
votes
3answers
2k 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 ...
9
votes
2answers
190 views

Set variable with mathematical expression

I need to do something like the following, \includegraphics[width=(\textwidth - 50mm)/2]{myfig.eps} What keywords can I use to search for doing this operation? Everything I've searched for was ...
10
votes
2answers
2k views

Set standard default scaling of \includegraphics

I am using Sphinx and the plantuml package to include UML diagrams. The plantuml package for Sphinx generates the following LaTeX code: \includegraphics{%s} Anyways - the diagrams are to big, so ...
4
votes
2answers
351 views

Change default width of images in graphicx package

Is it possible to change the default width of an image included via \includegraphics (from the graphicx package) to a custom value, for example \linewidth. So I want something like this: ...
18
votes
2answers
2k views

Find optimal figure size to fit two images on one page

I often encounter a situation where I would like to fit two or three figures on one page. I define my figures as follows: \begin{figure}[htpb] \centering ...
3
votes
0answers
215 views

Scaling figures / graphics inside table [closed]

I have the following code: \begin{table}[ht] \begin{tabular}{c c c} Name & Number of crossings & Arf invariant \\ \includegraphics[scale=0.5]{../images/unknot.jpg} & 0 & 0 \\ ...
4
votes
1answer
234 views

Figures not obeying margins

I have a few figures in my document not obeying the margin constraints: \usepackage[left=2.5cm,right=2cm,top=2cm,bottom=2cm]{geometry} Most do. But these one's don't... they are defined as the ...
3
votes
1answer
1k views

How to deal with PDF figures

I can insert JPEG figures in publications, but when it comes the time to include PDF figures (I prefer them for graphics because of its vectorial nature) I cannot scale them properly. I am using ...
2
votes
2answers
2k views

how to set the canvas and font size in TikZ?

I am using TikZ to draw standalone pictures using the PreviewEnvironment (which cuts the PDF size around the picture). I then import the PDF figure inside LaTeX using \includegraphics. Let say my ...
7
votes
2answers
2k views

Fit large image on one page with section title

I have a large image that needs to be scaled and put onto one page, which has a section title as well. The image should fill the maximum space avaiable. I tried passing different arguments to the ...
2
votes
2answers
791 views

Perfectly scale line, paragraph, image, anything up to textwidth

I want to scale a multi line text up to the available textwidth. I found something here: pgfplots: how can I scale to text width? and here: ...
5
votes
2answers
5k views

Inkscape PDF resizing

I'm trying to include some PDF I saved in Inkscape and change the width and the height at the same time. Is this possible? I tried \svgheight and it did not take both values at the same time. This is ...
10
votes
1answer
226 views

Table-aligned, randomized, repeatingly smaller icons for eyesight-chart

My daughter needs to train her eyesight in accordance to the LEA eyesight chart tests. I have manually created a new chart for her, but it really takes a long time randomzing the four icons and ...
0
votes
1answer
682 views

Figure positions and sizing

I have the following figure code : \begin{figure}[h] \centering \includegraphics[scale=.7,bb=0 0 804 401]{f5.png} \caption{Case Adaptation \cite{16} } \label{fig:f5} \end{figure} Even ...
4
votes
4answers
929 views

Matlab to pdflatex with text properties

I know that this might be more a detail rather than a serious problem but I've already Googled it like crazy and I can't find the solution. Is it possible to achieve a MATLAB plot in pdflatex with ...
6
votes
1answer
315 views

Define the size of an imported picture

Is it possible to use the width of the paper as a variable in order to set the width of an imported graphics? For instance when I want the picture size to be the width of the paper, minus 3 ...
5
votes
2answers
6k views

Use \textwidth for Image width Only when it outgrows the page [duplicate]

Possible Duplicate: Shrink figure only when necessary? Consider that you have this: \includegraphics{some_image_in_pdf.pdf} This will now take its original width, but if you want it to ...