Skip to main content

Questions tagged [includegraphics]

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

Filter by
Sorted by
Tagged with
2 votes
0 answers
40 views

Strange behavior of the import package when image and tex file names are the same (except extension)

I find a strange issue of the import package when working on a large tex project. A minimum running example I am on Linux Mint 21.3 with texlive 2021.20220204-1. Here is my folder structure. / +- main....
LaoMao's user avatar
  • 65
1 vote
1 answer
31 views

show text link side-by-side with the figure

I want to show the link text (e.g., googlescholar/user.com) as a hyperlink, side-by-side with an icon (figure). I used the below method, but it only show a figure or a text. Can i amend this approach ...
user31690's user avatar
0 votes
0 answers
28 views

\graphicspath but for tables [duplicate]

I want to do something similar to this post Separate directory for tables I want to have a standard directory path for tables like I have it for figures. For figures, I have the following: \...
cascom's user avatar
  • 1
0 votes
3 answers
49 views

Forrest tree with nodes having text and images

Found the answers I needed here....what a prompt, helpful community! Thank you all. I am trying to recreate this plot from MS Word How does one create a node with wrapped text and an image below it? ...
Bhuvan's user avatar
  • 1
1 vote
1 answer
39 views

Image doesn't show in Tikzposter

I'm using Tikzposter and when I've tried to add an image it doesn't show in the pdf, after compilation. I have used this code : \block{A figure} { \begin{tikzfigure} \...
Ourida Chaigne's user avatar
0 votes
0 answers
41 views

If a file named `picture_test.aux` is missing for the graphicx package, then where can I get a copy of the file, and where do I put it?

If a file named picture_test.aux is missing for the graphicx package, then where can I get a copy of the file, and where in the LaTeX installation do I put it? Code \documentclass[]{article} \...
Theodore Shepard's user avatar
3 votes
1 answer
131 views

Fallback image file for includegraphics

My question is something I feel should be relatively easy to resolve, but I cannot find any references online on how to do it. The basic premise of my situation is as follows: I have a number of image ...
Mel's user avatar
  • 97
2 votes
1 answer
59 views

How to center a figure with \centering [duplicate]

There is the same question here for the text, it works fine, but it doesn't work for \includgraphics, how to use the same for the figure? \documentclass{beamer} \usepackage{lipsum} \begin{document} \...
Abdelhak Elfengour's user avatar
1 vote
0 answers
22 views

includesvg only displays graph axes and not data

I have two similar graphs that I'm trying to display using \includesvg on Overleaf. One renders perfectly, the other renders the axes but none of the data. An example project is linked here. The svg ...
Alex Gower's user avatar
0 votes
1 answer
40 views

How to vertically align a \includegraphics figure to a \Worldflag figure?

How to vertically align a \includegraphics figure to a \Worldflag figure? As you can see in the following example, fig1.png is always in a higher position than the \Worldflag figure. My goal would be ...
Ommo's user avatar
  • 835
3 votes
1 answer
207 views

invalid utf-8 sequence when using includegraphics with LuaTeX on MacOS 14.4

When compiling a document using LuaTeX, Version 1.16.0 (TeX Live 2023/Homebrew) dvilualatex --halt-on-error --interaction=nonstopmode --synctex=-1 C3.tex and containing \begin{figure}[h!] \...
David P's user avatar
  • 33
0 votes
1 answer
56 views

why this code produces a blank line between the two colored line?

\documentclass[12pt,portrait]{article} \usepackage{graphicx} %\usepackage{blindtext} \usepackage{hyperref} %--- per i link \usepackage{multicol} %------ per formattare pagine a più colonne \...
RenatoP's user avatar
  • 783
0 votes
0 answers
31 views

Why when exporting from IgorPro All my graphics have the same size, but when exported as pdf in TeX they have different sizes?

Let me express my apologies, I should have figured it myself like great ladies and gentlemen here, We use wavemetrics to graph our data in a 10 in 10 absolute dimensions and then we export it as pdf, ...
sam's user avatar
  • 1
0 votes
1 answer
35 views

Image in footnote too wide, although set width=textwidth

If I put a graphic in a footnote and apply width=\textwidth to it, it will be wider than the actual text width (see MWE below). (The same holds true for \linewidth.) Apparently includegraphics ...
dia's user avatar
  • 143
0 votes
1 answer
57 views

Controlling Coordinates of Rectangle in Image Inclusion

I'm working on a document where I want to include images with the option to draw a rectangle on them. I've created a command \includegraphicsWithOptionalRectangle that takes two arguments: the path to ...
Marco Moldenhauer's user avatar
3 votes
3 answers
293 views

How do I put two huge pictures on the same page?

I am looking to print these pictures on the same page so that I can cut them out. It would be fine if there's no space between them horizontally. Bonus points for trim marks! M(n)WE: \documentclass[...
Kristian Nordestgaard's user avatar
0 votes
0 answers
29 views

epstopdf package fails when graphics to be included is inside output-directory

To reproduce the error: Create b.eps file that contains anything. For example, the following command will create b.eps: asy -noV -o b -c 'draw((0, 0)--(1, 1));' Create folder ./d/, put b.eps to it. ...
user202729's user avatar
  • 7,223
7 votes
2 answers
1k views

How to Sharpen a PDF Drawing

The following Wikipedia image is in the public domain: Using \includegraphics, I incorporated the image into some LaTeX code, edited out the border, and saved the remaining portion as a PDF. Now, ...
DDS's user avatar
  • 8,826
1 vote
0 answers
84 views

How to Arch an Image to Fit a Tikz Decorations Page

Consider: \documentclass{tufte-book} \usepackage{xcolor} \definecolor{PrussianBlue}{cmyk}{1,.41,0,.67} \usepackage{geometry} \usepackage{tikz} \usetikzlibrary{decorations.text} \tikzset{mydecor/.style ...
DDS's user avatar
  • 8,826
0 votes
0 answers
28 views

Inserting figure inside table cell align issue

I would like to insert a small figure inside a column cell but it misaligns with the rest of the text and creates an empty extra space per each row. Is it possible to avoid this behaviour ? \...
solarlate's user avatar
0 votes
0 answers
79 views

ps2pdf produces MiKTeX GPL Ghostscript 9.25: Unrecoverable error, exit code 1 \includegraphics

Cannot include any image in my LaTeX document. My code: \documentclass{article} \usepackage{graphicx} \usepackage[utf8]{inputenc} \begin{document} \begin{figure} \includegraphics[width=0.5\...
Finn's user avatar
  • 21
2 votes
2 answers
228 views

Put a picture on a full page

I want to include a picture, so that it covers 100% of the page. From edge to edge, no white spaces, just the picture. I use A4 paper (European style) and the picture has also A4 format, so that ...
montarenbici's user avatar
1 vote
2 answers
96 views

Why there's a gap between the right of the picture and the page's right edge when I used "scope fading=south"? How can I remove it?

The MWE is \documentclass{book} \usepackage{xcolor} \pagecolor{red} \usepackage{tikz} \usetikzlibrary{fadings} \begin{document} \begin{tikzpicture}[remember picture,overlay] \node [anchor=north,...
Axia's user avatar
  • 514
0 votes
1 answer
43 views

Insert image in table

in my CV i have different sections with tables. I tried to insert the picture under Personal section, but I didn't get any further with the other forum posts and solutions. Maybe because I don't quite ...
luks's user avatar
  • 1
0 votes
0 answers
52 views

How to make \includegraphics to print image path to the image?

I have written large (large, by my understanding, 40 pages) document with a lot of images. I need to make a beamer presentation, and I need to use photos from this document. So I want to open this ...
Vladyslav Rehan's user avatar
0 votes
1 answer
117 views

How to compare aspect ratios?

I have a box whose side lengths are recorded as lengths as in \newlength{\imageWidth} \setlength{\imageWidth}{300mm} \newlength{\imageHeight} \setlength{\imageHeight}{200mm} I am trying to create a ...
Julian's user avatar
  • 751
1 vote
0 answers
44 views

Alert to identify the hidden text overlap inside and the hidden text goes outside textarea [closed]

Is there an option in PDFLaTeX to throw error/warning if any hidden text found in the output PDF that goes outside text area or clashes with the text inside the textarea as shown in the picture with ...
RampSmart's user avatar
  • 125
0 votes
0 answers
57 views

\includegraphics Dimension Too Large

I was trying to insert a .pdf image in my Latex Document and I was getting the dimension too large error. But I found out that Latex automatically resizes the image to the max it can support. After ...
Rishi Suman's user avatar
0 votes
0 answers
52 views

Alignment of numbers in exercise environment

I'm trying to adjust the margins for an exercise environment. Neither I nor ChatGPT could figure this one out. I'd like the following: The exercise numbers should be left-aligned with the non-...
Steven Hearnt's user avatar
0 votes
0 answers
29 views

How to add a citation with hyperlink inside a pdf figure (cross referencing from figure to bibliography)?

I want to add a citation inside a pdf figure, and would like the citation to be a link to the bibliography. I know embedding a pdf with includegraphics normally mangles the link, but I have found a ...
astabada's user avatar
  • 206
0 votes
1 answer
190 views

Problem with LaTeX (TeXstudio, MikTeX): Missing endcsname inserted. \includegraphics[scale=0.45]{Figure1} Use of ??? doesn't match its definition

I have a problem with LaTeX. I am using TeXstudio, MikTeX and the article class, but suddenly my figures have started raising errors. It happened a day after MiKTeX updates. My code for figures is ...
Lchwpl's user avatar
  • 3
0 votes
0 answers
50 views

PSfrag does not replace tags but inserts the replacement text

I want to replace a tag in a eps figure using the \psfrag command. Here is the code of the figure: \begin{figure}[H] \centering \psfrag{r}[cB][cB]{Radius} \includegraphics{02_Grundlagen/...
maurten's user avatar
3 votes
2 answers
304 views

How to scale \includegraphics to exact width and height?

I have an image foo.jpg. I would like to scale it into a box of an exact size, say 100pt wide by 200pt high. I may want to scale the axes independently, or I may want to preserve the aspect ratio and ...
Taylor R Campbell's user avatar
0 votes
1 answer
90 views

How to remove the margin of the command `\includegraphics[options]{name}`?

Just like the picture below, I have a pdf page that its width is 6.32 inch and its height is 8.18 inch, and I used tikz making a rectangle which has the same width and height as the pdf page in ...
Axia's user avatar
  • 514
0 votes
0 answers
15 views

I am getting an Error " cannot determine size of graphic ( no boundingBox) Overleaf [duplicate]

I am getting an Error " cannot determine size of graphic ( no boundingBox) \documentclass{proposalnsf} \usepackage{enumitem} \usepackage{graphicx} %\usepackage[dvipdfmx]{graphicx} %\usepackage[...
soooleh's user avatar
  • 115
1 vote
1 answer
35 views

Including graphics without bounding box (similar to pstricks' \rput command)

I have a very specific table that just needs to be this way (even though one might argue that it is not a very TeX kind of way). The cell in the upper left is supposed to contain a logo and it fits ...
fborchers's user avatar
  • 465
2 votes
2 answers
203 views

How to place a picture and occupy the whole space of the left half page of beamer

I tried following code to place a picture on the left side of a beamer slide. \documentclass{beamer} \usetheme[numbering=none]{metropolis} \begin{document} \begin{frame}[plain] \begin{columns} ...
fad99daf's user avatar
2 votes
3 answers
39 views

How to position an image on the title page?

I'm trying to make a template for my university course which involves putting the logo of my course of study on the title page. I figured out how to include the picture on the title page, but I need ...
troutlachs's user avatar
1 vote
1 answer
84 views

One figure can't be insseted by "xelatex" but can be by "lualatex" or "pdflatex"

I have a pdf file which contains a figure in it. I can insert it by LuaLaTeX or pdfLaTeX, but can't be inserted by XeLaTeX. What is the reason? \documentclass{article} \usepackage{graphicx} \begin{...
Y. zeng's user avatar
  • 1,883
2 votes
1 answer
124 views

\Include working on mac, but not on windows

I am working on a big LaTeX document (thesis), that's broken down into multiple .tex files, and I thus have only a thesismain.tex file to compile that uses \include. On a MacBook, compilation goes ...
Kal8578's user avatar
  • 175
0 votes
1 answer
36 views

image does not respect lower page margin in twocolumn document

From time to time, I run into the problem, that my text margins seem not to be respected. See an example here: The image (shaded green) does not respect my lower text margin. Part of the footer line ...
Pascal H.'s user avatar
1 vote
0 answers
69 views

includegraphics keeps invisible part of image [duplicate]

When using includepdf and includegraphics to include a pdf or an image, the trimmed part is only hidden but not removed. \documentclass{article} \usepackage{pdfpages} \begin{document} \includepdf[...
user1's user avatar
  • 2,196
2 votes
2 answers
69 views

Align last subfigure on the left side

I have 5 pictures and want to align them that three pictures are on the left side above each other and two on the right side. I have tried it like this \begin{figure} \centering \begin{subfigure}[h]{....
jane's user avatar
  • 23
0 votes
1 answer
37 views

figure could not be the expected height

I am using latex to write a document, and I need to insert a figure in a whole single page, the code is as follows. \documentclass[10pt]{book} \usepackage{pgfplotstable} \begin{document} \par text 1 \...
wxwuse's user avatar
  • 149
1 vote
1 answer
30 views

How to have both centered heading text and rightflushed image in the same line IN LATEX

I am having this :- What I want:- My code so far \begin{document} \begin{figure}[htp] \begin{flushright} \includegraphics[width=2cm]{passport_photo.jpeg} \end{flushright} \end{figure} \...
Khoka420's user avatar
1 vote
0 answers
82 views

clickable includegraphics for cross reference data

I’d like to make references work in my robust-externalize library. I wanted to parse the aux file, extract the lines related to a label like: \newlabel{sec:dependencies}{{3.4}{7}{Dependencies}{...
tobiasBora's user avatar
  • 8,714
0 votes
0 answers
66 views

Journal won't compile figures

I have a paper that compiles well on my PC and on Overleaf, however I need to submit it in .tex format for a journal and upload the figures separately in .eps format. So I upload all the files (the ...
karlabos's user avatar
  • 143
1 vote
1 answer
329 views

Invert image colors in latex [duplicate]

I have figures which I use in several places, some of them in dark context and some of them light (for example, a my obsidian vault is dark but a PDF of my thesis is light). As such, some of the ...
Yoav Zack's user avatar
  • 111
0 votes
0 answers
27 views

Moving text from left to middle and putting logo on the left to align with text in CV header

In the below code, I want to move the text from the left to the middle and put a logo on the left. The logo should align properly with the text. \documentclass[a4paper,20pt]{article} \usepackage{...
Priyam's user avatar
  • 49
0 votes
1 answer
58 views

PNG background color inadvertantly changes in XeLaTeX [duplicate]

below screenshot of the same image showing (left) the image as desired in a generic image viewer and (right) after inclusion with XeLaTex and includegraphics. i remember having to deal with something ...
regnirpsj's user avatar
  • 195

1
2 3 4 5
14