Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [includegraphics]

about adding external images in a document. Use {graphics} tag for a more general audience.

2
votes
2answers
40 views

Print the “scale factor” on each figure as a watermark

From a previous question (\includegraphics: get the "scale" value of a figure whose size is expressed by "width") I learned how to get the scale factor of a figure inserted by the \...
1
vote
2answers
33 views

Inserting a transparent background image

I am wanting to include a signature on a document using Signed:\\ \includegraphics[scale=0.5]{Signature} \rule[1em]{25em}{0.5pt} The image is .png with a transparent background. However,...
4
votes
4answers
204 views

\includegraphics: get the “scale” value of a figure whose size is expressed by “width”

Lets take this string: \boxed{\includegraphics[width=0.4\textwidth]{FIGURE.pdf}} that generates this figure: Now lets say that I need to crop the blank margins of the figure keeping the figure's ...
0
votes
1answer
17 views

Inclusion of separate files in a main file show error for graphics

When I call two separate files(chapters) from a main file, it shows error for graphiscx. Details are bellows: (i) The main file main.tex contains following contents: \documentclass[a4paper,...
0
votes
2answers
70 views

Improve quality of Windows illustration \includegraphics especially Powerpoint

I have been doing a powerpoint illustration and saved it as a png image type. I then included the graphics, by using the following code: \begin{figure} {\includegraphics[scale=0.6] {Logo/...
0
votes
2answers
19 views

caption images in beamer inside column env

How do i caption these images? \begin{frame}{Einführung 2} \begin{columns} \column{0.5\textwidth} \centering \includegraphics[height=2.5cm]{FiguresAndPictures/AlleAktien-...
2
votes
1answer
42 views

Includegraphics without stretching

I am trying to use \columns in conjunction with \includegraphics to show a "list" of pictures. Sadly this code: \begin{frame} \frametitle{Einführung} \begin{columns} \column{0.5\textwidth} ...
0
votes
1answer
31 views

Generate DVI file from valid TEX with pdflatex returns error for images

I can render PDF using pdflatex normally, I used Makefile like this: all: pdflatex $(PAPER).tex bibtex $(PAPER) pdflatex $(PAPER).tex pdflatex $(PAPER).tex This renders PDF with no ...
1
vote
1answer
26 views

Plot figures on the y axis with pgfplots

I have a graph and I want to plot on the Y axis figures instead of numbers or text. My code is the following: \begin{tikzpicture} \begin{axis} [ xbar, xmin=0, xmax=10, width=7cm, height=8cm, ...
5
votes
2answers
86 views

Find the width of a figure in latex, to properbly align multiple minipages within a figure

I want something like this: made with this MWE: \documentclass{memoir} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{duckuments} \newsubfloat{figure} \begin{...
3
votes
2answers
68 views

Yet another images in tables question alignment. Want text to start at top of cell. Not cetered

I want to have a table with image in one cell and text in other cells. I know about the issue of alignment at center of cells. So I use the trick of \raisebox{-.5\height}{\includegraphics[...]`...
1
vote
0answers
16 views

Grid alignment of 4 images [duplicate]

I wanted to align the four images in a grid of 2x2, but the images are getting arranged vertically. I'm working on a template of IEEE format. This is the code that I'm working on: \begin{figure}[!tbp]...
1
vote
2answers
27 views

Expand graph over twocolumns on titlepage

I am using the (very outdated) documentclass asme2ej, which produces two-column academic journal documents. My problem is as follows: I want to print my title, switch to onecolumn style and add an ...
0
votes
1answer
52 views

Problem with \includegraphics and long relative path and parent folder

after a long search without results I hope you can help me. Here is my problem: I can't load .pdf files with \includegraphics. The background is that I have one repository to create my frequent used ...
1
vote
1answer
37 views

How to reduce white space around floats to prevent them from taking an entire column

I have a two column document that features a couple of high aspect ratio (tall) floats which, including the caption, take up more than half, but not a full column. When I compile Latex always seems ...
0
votes
0answers
26 views

Beamer background does not match pdf background when including pdf as image

I want to include some pdfs in my Latex beamer presentation like so: \begin{figure} \includegraphics[]{./path/to/image.pdf} \end{figure} Unfortunetaly there is a clear change in color between ...
1
vote
1answer
74 views

Populating a tikz matrix with complex content

I am trying to populate a tikz matrix dynamically using foreach to loop over a list-argument and breaking it further apart using xstring operations. I am hitting an issue where, as far as I can tell, ...
1
vote
1answer
33 views

Creating a titlepage: two figures in one line (left and right)

In order to create a title page I would like to include two logos in one line where one of the figures is left and the other is one the right side. My first minimalistic examples using the following ...
0
votes
1answer
32 views

How to fix clash between pdfpages/graphicx and invoice package on overleaf

How to reproduce clash? Use this template: https://nl.overleaf.com/latex/templates/invoice-template/rpdlzpjmkfmj Add \usepackage{graphicx} or \usepackage{pdfpages} Actually now that I test it, ...
1
vote
1answer
28 views

Figure with uneven size images

I would like to create a figure with five images as shown in the attached file (2 images on the left, and 3 on the right side) and put a thin black border around all five images. I only know how to ...
0
votes
1answer
35 views

Wait until a page is full, then add an image on the next page

I have some documents (book, memoir, and article classes) with full-page graphics on their own pages. When putting in \includegraphics{foobar.png}, the graphic will always appear in that position in ...
3
votes
2answers
32 views

Using \vspace togehter with \hspace to place a citation over an image

I have an image I would like to don with a citation. However, placing the citation on top of the image has proven to be a bit of a challenge. Simply placing the citation after the image with \...
0
votes
0answers
21 views

Getting an object to span multiple [jou]{apa6} columns without colliding

I like to use \documentclass[apacite,jou,a4paper]{apa6}. It wastes too much negative space, but it invokes a consistent two column layout, and helps with the APA journal style, referencing, etc. which ...
0
votes
0answers
16 views

how to put this box and zooming on images in latex? [duplicate]

IEEE TRANSACTIONS ON IMAGE PROCESSING, VOL. 22, NO. 7, JULY 2013 Image Fusion with Guided Filtering Shutao Li, Member, IEEE, Xudong Kang, Student Member, IEEE, and Jianwen Hu
0
votes
0answers
18 views

Measure the remainder of a page if it has a title and inserting that into a dynamic command

Okay, so I'm currently writing a report (in the article class) which has a section full of chemical spectra. I figured that two spectra per page is a good number, so I write \RequirePackage{calc} \...
1
vote
1answer
23 views

Spacing between images in a figure environment

Example : \begin{figure} \centering \includegraphics[width=0.23\textwidth, trim={0 0 0 0}, clip]{example-image-c} \includegraphics[width=0.23\textwidth, trim={0 0 0 0}, clip]{example-image-c} \...
0
votes
0answers
33 views

Force two big images to fit a page

I have two big figures which I'd like to fit on a page, above each other and including their captions. Unfortunately the caption of the bottom figure sticks out. I have tried using the subfigure ...
0
votes
0answers
20 views

Picture doesn't show when compiling [duplicate]

I have problem, I use this code: \pagestyle{empty} \begin{center} \includegraphics[scale=0.8]{hahaha.png}\\ \vspace{1cm} \end{center} But when I compile, the picture doesn't show. What is the ...
1
vote
1answer
42 views

How to import figure from subfolder to tex file in another sub folder

I would need to know how to import figure from Figures subfolder to tex file in Chapters subfolder. Project tree is following: /Project/main.tex /Project/Figures/picture.pdf /Project/Chapters/...
0
votes
1answer
33 views

How to label a figure and call it using the command \vcenter{\hbox{\includegraphics[height=…em]{C:/Users/abc/Documents/…}}}?

I am unable to give the figure a name or figure number using the following latex command for, instance: $\vcenter{\hbox{\includegraphics[height=6.6em]{C:/Users/abc/Documents/g2}}}$. Thanks
0
votes
0answers
16 views

Include images with lower resolution [duplicate]

I need to include many JPG images in a LaTeX document. They are quite "heavy" (many MBs each), but in my document they will be printed in a very small size (~2x2 cm). Obviously \includegraphics[width=...
0
votes
0answers
27 views

How to pass argument for `\includegraphics[width=..]..` without causing “Runaway argument?”? [duplicate]

I'm going to despair: It seems nobody has a problem when passing an argument for the width of \includegraphics, but I always get Runaway argument?. Whenever I remove the [#2\textwidth] from my command ...
2
votes
2answers
91 views

figures in a grid with multiple line of texts

How can I put insert figures in a grid? Each figures will have 4 captions. I tried using subfloat but it doesn't seem to work. \documentclass{article} \usepackage{graphicx} \usepackage{subfig} \...
0
votes
2answers
111 views

How to /includegraphics from sub directory of main image folder, using subfiles

As i cant comment on posts yet, i will have to ask this question. Here is the link with the example: (The last answer by markellos is what im using and reffering to) path of figures in different ...
2
votes
2answers
76 views

Icon at Subject-line scrlttr2

I want to add a small icon right left of the Subject line in a scrlttr2 file. I already managed this for a scrartcl file, but don't now how to do this in a letter. Can you help me? The code from the ...
1
vote
1answer
43 views

Split 2-up with pdfpages or graphicx

A couple of years ago, someone posted (https://tex.stackexchange.com/a/53366/2966) claiming After scanning a book 2-up, you can use pdfpages and ifthen to split the pages in two and reassemble 1-up....
1
vote
1answer
31 views

Minipage text running into margin

I'm trying to split an image and its caption across two minipages, but the caption is running into the right margin of the page: \documentclass[a4paper, 12pt]{article} \usepackage{ifpdf} \usepackage[...
1
vote
1answer
45 views

Tikz - highlighting part of image in non-minipage environment

With regards to this two questions Tikz - three pictures in two pages in landscape mode and Tikz - highlight text in an image, I struggle to put the given solutions together (which work otherwise fine ...
1
vote
1answer
37 views

Tikz - three pictures in two pages in landscape mode

I would like to have three pictures on two pages (A4 in landscape mode) with tikz in the following manner: Middle picture: The picture in the middle is halved (at 50 %) into two parts, one part ...
6
votes
2answers
174 views

Tikz - highlight text in an image

How can I highlight text in an image with tikz by using a rectangle and have the rest of the page filled with a grey (or opaque black) tone, see example below (taken from here)? You can see a ...
1
vote
1answer
60 views

Properly placing an institution logo without messing the layout

I am writing my lab report in LaTeX with class article and I don't know how to properly put the university logo in the right side of the paper. As you see on the screenshot below, the logo creates ...
1
vote
1answer
103 views

How can I remove irrelevant strings shown when \includegraphics command is used with grffile package?

I have read the following posts on this site: How to avoid showing the filename when using graphicx? and Include figure from PDF file, but havent had any luck following the answers posted in the ...
5
votes
2answers
151 views

How to replace photo in moderncv classic with a QR code?

I am making my resume using the moderncv package with the classic style. I wish to replace the photo with a QR-code to my personal website, using the qrcode package. I tried replacing the argument ...
1
vote
0answers
37 views

replace includeGraphics with inline-image [closed]

In my tex-file there are included images: \includegraphics[width=\someVar]{filename} I want to create a self-containing file, using this \inlineimg{whateverfilename}{base64encodedImage} How can I ...
0
votes
1answer
77 views

Me too: \includepdf only shows first page [closed]

I have the same problem as described by adam.baker in this post: \includepdf only shows first page, despite having multiple pages. (This seems to be not limited to pdfpages, because graphicx with ...
1
vote
1answer
79 views

\includegraphics within braces with metropolis beamer theme: image doesn't appear

I am using the Metropolis theme in beamer, and wondering why having \includegraphics within braces {...} doesn't work (image doesn't get added in). I get a blank slide (with title) with the code below:...
1
vote
2answers
67 views

Use of graphicspath in class

I am using my own class MyReportClass to write a report. I have taken inspiration from this answer to redefine the \includegraphics command inside the class in order to use the example-image-a in case ...
0
votes
0answers
36 views

Remove Watermark from pdf using \includegraphics

I am importing a pdf specific page as a figure via "\includegraphics". The problem is this pdf file may be encrypted and a watermark shows everytime I print it, either into the latex document or to ...
0
votes
1answer
85 views

Green border around PDF figure?

I'm doing a LaTeX beamer and am having a problem with \includegraphics. Around the image, a thin, green border is shown, which won't disappear in the presentation. This problem (or feature?) only ...
2
votes
2answers
72 views

What is the minipage equivalent of `width=\linewidth` for \includegraphics

width=\linewidth is acceptable input option to \includegraphics, but is not acceptable as input to minipage. What can we replace X with so that \begin{minipage}{X} has a similair width setting to \...