Questions tagged [includegraphics]
about adding external images in a document. Use {graphics} tag for a more general audience.
706
questions
0
votes
1
answer
31
views
How to align image size with node size
I want to display a colored box below an image in a tikzpicture within a beamer presentation. But I am failing to align the sizes correctly, possibly due to the node border.
But adjusting the border ...
0
votes
0
answers
15
views
How to make latex subfigures align with my caption?
so I have the following latex code composing of subfigures that are a part of a larger figure. After doing this I unfortunately run into the issue of the figures being shifted to the right compared to ...
1
vote
1
answer
119
views
Why is This White Line Between Two Horizontal PDFs?
The forthcoming question is motivated in part by the question asked here: Why is this white line between the two vertical boxes?
Consider the following code which produces a vertical strip (and call, ...
0
votes
1
answer
51
views
viewpoint option for top left corner
To following up this SO answer.
I would like to use viewport to show top left corner part of pdf image. but by default the viewport origin is from bottom left.
example below wish to view (0,0,100,100) ...
5
votes
5
answers
679
views
How to Vertically Join Images?
I know how to horizontally join images together; for example:
\documentclass[12pt]{book}
\usepackage{graphicx}
\begin{document}
\thispagestyle{empty}
\includegraphics[width=0.25\linewidth]{example-...
2
votes
1
answer
86
views
Inserting a .eps graphic leads to a black square roughly the size of that graphic, how can this be avoided?
I'm currently trying to write my master thesis in chemistry, using chemnum to number my compounds and therefore using .eps files for my structures, schemes and other things.
However, when I try to ...
1
vote
0
answers
81
views
Does This Concatenation of PDFs Really Produce a Seam?
This question is in reference to the post: On Adding a Colorized One-Sided Margin to a Tikzpicture
While out for a walk today, a pedestrian approach (no pun intended) to solving the question posed ...
0
votes
1
answer
35
views
How to arrange 3 pictures in a figure, one picture on the left, and on the right side one picture each at the top and bottom?
I am trying to align 3 pictures like this using minipage:
But my output looks like this:
This is my code which uses \sidesubfloat to generate the labels at the top left:
\documentclass[]{scrreprt}
\...
0
votes
1
answer
44
views
LaTeX : How to conditionnaly include an image in a TeX file?
I'm sure this is not so complicated :
I'm searching to create an images gallery in which unavailable or missing image files are replaced by a default image. Something like :
if <image file> ...
3
votes
1
answer
121
views
Tagging of Included Graphics
Assume we want to automatically tag an included picture, say life-of-brian.eps, with a caption, say A Monty Python movie.. According to https://latex3.github.io/tagging-project/documentation/prototype-...
0
votes
0
answers
46
views
How to invert the color of an image [duplicate]
How can I invert the color of an image included via \includegraphics?
1
vote
0
answers
31
views
How to Apply Blur and Noise to imported Images Using TikZ? [duplicate]
I'm trying to create the figure below using TikZ. That figure consists of a 2x3 grid collage with the following sub-images:
Target - the original image.
Denoising - the image with added noise.
...
0
votes
0
answers
36
views
Latex: Add pdf page without split the text content
I want to add a pdf page to my current latex pdf file, but i got a problem. When i use \includepdf, then the position where i put this command will auto add a pagebreak, like the image below.
This is ...
1
vote
1
answer
57
views
How to adjust the height of an image to the distance between two nodes
I am trying to set the height of a photo to the height of a node. The code is:
\documentclass[border=1mm]{standalone}
\usepackage[dvipsnames]{xcolor}
\usepackage {tikz}
\usetikzlibrary{babel} % ...
0
votes
0
answers
84
views
How to force brutally an image to be put in a specific place, in a specific page
I am currently writing a thesis using a mandatory document class from my university that I obviously do not have access to.
It behaves like a black box that just print the title page using \...
0
votes
1
answer
25
views
includegraphics error reading pdf
error: (file ./Images/0.1.pdf) (pdf inclusion): reading image failed
./Homework.tex:194: ==> Fatal error occurred, no output PDF file produced!Latexmk: Getting log file 'Homework.log'
Latexmk: ...
2
votes
1
answer
73
views
How to Properly Colorize PDF Figures in LaTeX: Fill Color and Transparency Problems
I've been trying to include a monochromatic PDF vector figure in my LaTeX document and change its fill color directly within LaTeX, without using any external tools. I found two main solutions:
Sol1: ...
0
votes
2
answers
75
views
compute a scale factor for use in includegraphics
I want to compute a scale factor for use in includegraphics. I want to do this using the declarations from xparse. What I have so far (based mostly on https://tex.stackexchange.com/a/437494/293199):
...
1
vote
1
answer
70
views
Adding a Glow Effect to the Exterior of an Image
Consider the MWE:
\documentclass{article}
\usepackage{xcolor,graphicx}
\begin{document}
\begin{figure} [!htb]
\centering
\includegraphics[width=10cm,height=13cm]{example-image}
\end{figure}
\end{...
5
votes
2
answers
371
views
Inserting image as character
I have asked before in Using my svg images as blackboard bold characters about how to use an entire alphabet of svg images. I will now simplify my question to only one character (and no phantom ...
0
votes
0
answers
20
views
Included pdf figure is not displayed [duplicate]
I am trying to include a pdf figure into my main.tex but do not see anything. The figure pdf file is generated by me through the command
pdflatex -shell-escape "C:\Users\saro.harutyunyan\...
2
votes
1
answer
95
views
Includegraphics doesn't work
I Had TexWork editor on my previous computer and It worked (I wrote many rapport, thesis, ...).
But now I reinstall it on my new computer and I can't use includegraphics anymore, (codes I did before ...
1
vote
0
answers
43
views
Problem with graphicx in Anki
I am trying to include an image using graphicx in Anki, here's my code:
\documentclass[12pt]{article}
\special{papersize=3in,5in}
\usepackage[utf8]{inputenc}
\usepackage{amssymb,amsmath,tikz-cd,...
1
vote
1
answer
96
views
trim and clip \includegraphics PDF leaves selectable text artefact
I regularly use \includegraphics with trim + clip option to e.g. include a single panel from a larger figure in a .pdf file.
I recently noticed in the Evince PDF editor I can select text objects from ...
2
votes
0
answers
43
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....
1
vote
1
answer
36
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 ...
0
votes
0
answers
29
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:
\...
0
votes
3
answers
63
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?
...
1
vote
1
answer
48
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}
\...
0
votes
0
answers
42
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}
\...
3
votes
1
answer
146
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 ...
2
votes
1
answer
73
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}
\...
1
vote
0
answers
31
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 ...
0
votes
1
answer
48
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 ...
3
votes
1
answer
277
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!]
\...
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
\...
0
votes
0
answers
33
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,
...
0
votes
1
answer
44
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 ...
0
votes
1
answer
62
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 ...
3
votes
3
answers
313
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[...
0
votes
0
answers
44
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.
...
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, ...
1
vote
0
answers
89
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 ...
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 ?
\...
0
votes
0
answers
121
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\...
2
votes
2
answers
254
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 ...
1
vote
2
answers
101
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,...
0
votes
1
answer
53
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 ...
0
votes
0
answers
66
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 ...
0
votes
1
answer
126
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 ...