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.

0
votes
0answers
27 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
18 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
16 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
21 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
15 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
24 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
80 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
78 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
64 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
37 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
22 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
44 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
33 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
155 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
42 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
90 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
125 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
25 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
58 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
57 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
46 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
28 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
79 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
55 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 \...
2
votes
0answers
61 views

Extract all graphs from a presentation to external file

I often use the extract package to automatically generate an external file with all the url of a Beamer presentation using \begin{extract}...\end{extract} outside frames and it works well. However my ...
0
votes
0answers
34 views

Cropped image is visible when selected with mouse

I have an image with some text. I want to attach this image in the main document while hiding the text on the image. Below is the screenshot of the image- I am using trim and clip options provided by ...
1
vote
1answer
34 views

xr-hyper package and \includegraphics

With the two following documents, I get a correct result: in the second document, the first chapter page from first document is included and the external link opens the correct page in the first ...
1
vote
1answer
18 views

Convert two separate side by side figures into two subfigures

I have two figures that are side by side but I want to convert them into subfigures so that they come out as Figure 1a and Figure 1b instead of Figure 1 and Figure 2. \begin{figure} \centering ...
1
vote
1answer
36 views

Wrapfigure displayed at wrong place after some page breaks

I have troubles with displaying right-aligned portraits wrapped by text. These images shall be displayed at the begin of (some) subsections. Displaying itself was also full of bugs, but in older ...
2
votes
1answer
127 views

Includegraphics doesn't show the figure. Overleaf v2

I'm working on overleaf v2. I wrote : \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc} % Accents codés dans la fonte \usepackage[frenchb]{babel} % Les traductions ...
2
votes
2answers
108 views

Wrapfigure on top right corner

Hello I am using MikTex in TexStudios. I have this document: \documentclass[paper=letter,fontsize=11pt]{scrartcl} % KOMA-article class \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \...
1
vote
0answers
28 views

Use multi-page PDF as multiple graphics in LyX with correct preview?

In LyX, the "Insert > Graphics" dialog is the standard way for including graphics and, usefully, provides an inline-preview of the graphic in question. LaTeX's \includegraphics command allows to ...
0
votes
0answers
20 views

How to remove/ hide the name of the image in the LaTeX file? [duplicate]

In my LaTeX file, the name of the image appeared. May I know how can I remove it? Thank you very much. My code is as follows: \documentclass[12pt,a4paper]{report} %%%%%%%% \usepackage{geometry} \...
1
vote
1answer
70 views

Broken build if a too big picture is included in a framed environment, how to insert “horizontal slices” rather?

This produces about 5000 pages before crashing: \documentclass{article} \usepackage{framed} \usepackage{graphicx} \begin{document} \begin{framed} \noindent\includegraphics[height=35cm]{example-...
5
votes
2answers
128 views

Which file does includegraphics select if there are multiple files with different extensions? [duplicate]

We usually write something like \includegraphics{image} instead of: \includegraphics{image.png} That is, \includegraphics does not usually require a file extension such as .png .pdf ....
1
vote
0answers
81 views

Which leads to fewer headaches, embedded PNGs or embedding PDFs?

I noticed that \includegraphics can be used to embed either a PDF or a PNG (and possibly other things as well). Although both are allowed, is there one which is less finicky / less prone to cause ...
0
votes
1answer
39 views

How to display horizontally aligned images with caption?

I'm looking for an advice how to display high amount of images horizontally aligned with caption: there are hundreds or even thousands images in the gallery dimensions of images are unknown, their ...
1
vote
1answer
52 views

LaTeX: \figure + \includegraphics unwanted page breaks and wrong spacing between caption

I'm implementing gallery of scanned documents and I have issues with using \figure + \includegraphics, see the screenshot below: 1) [violet comment] caption of current image and following image are (...
1
vote
0answers
43 views

How can I make LaTeX find a graphics file [duplicate]

For any business correspondence, I use a graphic, aglogo.jpg. As long as I'm in the directory where it resides, of course latex always finds it. But, if I'm working in a different directory it's not ...
4
votes
1answer
178 views

LaTeX - how to detect scale of \includegraphics

I have a general question, so without any example code. I'm implementing part of document containing gallery of images. Generally, I have two types of images: 1) document, typically scanned A4, ...
1
vote
0answers
32 views

LaTeX - invalid page break for first \includegraphics in chapter

I've created chapter containing only images with caption. All images shall have fixed width (\textwidth), height is always unknown (image shall be correctly scaled). From second image everything ...
2
votes
1answer
80 views

How to log scaling applied by \includegraphics?

I'm currently working on a large-ish document that contains a lot of screenshots. These range from relatively small dialog boxes or details of the screen to some very large overview pictures. I ...
0
votes
0answers
18 views

Make 2 images appear next to each other without space in between them

The current solution I found with minipages displays the two figures next to each other however it also adds a lot of space inbetween them. I'd like to have the two images be right next to each other ...
0
votes
0answers
27 views

Force includegraphics to obey bounding box of eps

I have an test.eps that consists of %%BoundingBox: 0 0 343 491 %%EOF and a tex document \documentclass{minimal} \usepackage{graphicx} \newbox\figbox \begin{document} \setbox\figbox\hbox{\...
2
votes
1answer
35 views

Figure won't compile

I am trying to add a picture in the same folder, subfolder pictures, named iphone.png, but it will terminate with an error. \documentclass[journal]{IEEEtran} \usepackage{graphicx} \usepackage{...
4
votes
1answer
183 views

Error “Missing \endcsname inserted” when including PDF using \includegraphics

\documentclass[12pt,a4paper]{article} \usepackage{color} \usepackage[turkish]{babel} \usepackage{graphicx} \usepackage{tabularx} \usepackage{multirow} \usepackage{graphicx} %%%%%%%%%%%%%%%%%%%%%%%%% \...
0
votes
1answer
244 views

! LaTeX Error: Cannot determine size of graphic in…pdf or png (no BoundingBox)

I am using Windows x64 bit , Texmaker 5.0.3 , basic miktex 2.9.6850 and when I compile this code, I mean when I run 'LaTeX': \documentclass[twocolumn,prl,nobalancelastpage,aps,10pt]{revtex4-1} %\...
1
vote
1answer
66 views

name.bb appears above picture when using includegraphics

I've tried adding a picture using: \begin{figure}[htb] \centering \textbf{bbb}\par\medskip \includegraphics[width=\textwidth]{schematOgolny.png} \captionof{figure}{sth} \label{aaa}...
2
votes
1answer
153 views

Included PDF image has invisible, but selectable text

I am currently facing some problem when I tried to import a PDF as a graphic. The PDF with some original text beside was first cropped to remove the text and then imported using \includegraphics. ...
2
votes
1answer
61 views

Include graphics under enumeration, align top with number? [duplicate]

Currently the bottom of the image is aligned with the enumeration number, how can I align the top of the image instead? \documentclass[12pt]{article} \usepackage{graphicx} \begin{document} \begin{...