Questions tagged [includegraphics]
about adding external images in a document. Use {graphics} tag for a more general audience.
623
questions
2
votes
2
answers
65
views
Changing the Color of an Includegraphics Basic Frame with Adjustbox
MWE:
\documentclass[tikz]{book}
\usepackage{xcolor}
\usepackage[export]{adjustbox}
\begin{document}
\thispagestyle{empty}
\includegraphics[frame=2pt]{example-image-A}
\end{document}
gives
I would ...
2
votes
1
answer
101
views
I cannot seem to understand why my image is not generating when I compile my latex document
I am trying to make a lab report and want a few sections/subsections to be in two columns, but when I try changing it to two columns, it doesn't generate my image when I compile it.
I tried using \...
0
votes
1
answer
28
views
align rotated rectangle figures
I am including two pdf figures, and the second figure is rotated by 90 degrees.
This is my code:
\documentclass[a4paper,11pt]{article}
\usepackage{graphicx}
\begin{document}
\includegraphics[width=0....
0
votes
1
answer
75
views
Generating color-neutral PDF with `xelatex`
(This is based on my workaround related to my answer to using emoticons with pdflatex — this workaround is discussed in another answer). The gist is: it turns out that in the years after I posted the ...
1
vote
3
answers
42
views
Modify subfloat numbering and position
I've made a figure with 15 subfloats. Here below, first, what I get and, second, what I would like.
I would like to remove subfloats (m) and keep at the location the two other subfloats on the line ...
0
votes
1
answer
28
views
mcexam crashes with \includegraphics in \mcanswers
I get a "! Argument of \Gin@ii has an extra }." if I try to use \includegraphics within the \mcanswers environment using \answernum:
\documentclass[a4paper]{article}
\usepackage[output=exam
...
0
votes
0
answers
24
views
Pictures vanishing from pdf files
I have roughly 100 separate pdf files I need to include in a file (supporting info for a thesis). I have copied pictures from Windows' snipping tool onto the .pdf files in adobe acrobat. When I open ...
2
votes
3
answers
42
views
Centering caption in minipage
I have two images in a minipage which are side by side, but their captions get left justified while I would like them to be centred. I've tried various solutions that I've found on here but they don't ...
0
votes
1
answer
30
views
Get top border of image to align with text using only `\includegraphics` from `graphicx`
Bu using the default positioning of an image inserted with \includegraphics, from the graphicx package, an image following some text (not a new line) is aligned in such a way that it sticks out from ...
0
votes
2
answers
54
views
TikZ node "below of" includegraphics
When I try to place a TikZ node below of another node that contains an \includegraphics-picture, it is not placed below the node, just below its center. I have the feeling the actual image dimensions (...
0
votes
1
answer
36
views
How do I access the name of the current chapter for a background image?
I add a background image to every page and want to add a different one based on the name of the current chapter. It would also be good to know how whether the preface and title pages before the ...
1
vote
1
answer
50
views
On Scaling the Contents of a Minipage
Consider the code
\documentclass[12pt]{book}
\usepackage{scalerel,scalefnt}
\usepackage[showframe,paperwidth=5.5in,paperheight=8.25in]{geometry}
\textwidth=4in
\textheight=6.40in
\voffset -7pt
\...
1
vote
1
answer
102
views
How to calculate in Latex?
I have following problem:
\begin{figure}[htbp]
\centerline{\includegraphics[width=\columnwidth]{relations.png}}
\caption{Example of a figure caption.}
\label{fig}
\end{figure}
the image is a little ...
1
vote
0
answers
64
views
Includegraphics is not working [closed]
This is the template I am using to write a report.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{geometry}
\usepackage{marginnote}
\geometry{a4paper,total={...
0
votes
0
answers
18
views
Two Images top and bottom with a common caption and separate representation
I want to align two images top and bottom. The images should have the representation (a) and (b), and there should be a caption on the bottom ex: fig 1.1 (a)figure_caption1 (b) figure_caption2.
I have ...
4
votes
1
answer
225
views
How to Lighten or Shade an Includegraphics Image
Consider the code
\documentclass{article}
\usepackage{graphicx,xcolor}
\usepackage{transparent}
\begin{document}
\begin{figure}[!htb]
\centering
\includegraphics[width=20em,height=30em]{example-image}...
1
vote
0
answers
64
views
Enlarging a Very Small Image Clearly
I would like to (clearly) enlarge a very small image.
However, when I use a typical approach by adjusting the scaling factor, I get a fuzzy image.
For example, consider
\documentclass{book}
\...
6
votes
1
answer
258
views
Changing opacity of included graphics without tikz
I can make a figure translucent using the tikz package
\begin{tikzpicture}
\node[opacity=0.5] at (0,0) {\includegraphics[width=0.4\textwidth]{myfigure.png}};
\end{tikzpicture}
But, I want to ...
1
vote
1
answer
48
views
Centering a rotated cell
I tried quite some things but I am not able to get the rotated cells nicely centered. e.g. Patient is a bit more to the left.
origin=tl to origin=tc did not work
\centering did not work
\begin{center}...
0
votes
1
answer
93
views
How to create a collage with images and labels?
I am trying to create collage. Am able to create the images, but not yet with the text left and above it.
\documentclass{article}
\usepackage{tabularx}
\usepackage{graphicx}
\begin{document}
...
0
votes
0
answers
34
views
\Includegraphics + Undefined control sequence
I've seen this question asked multiple times but I think I have already trouble-shoot all possible problems, when using \Includegraphics I get the error Undefined control sequence.
I am working with ...
0
votes
3
answers
42
views
How to place an image into a tabularx booktabs table without moving the text in the same row, and align it vertically to the center?
I am sorry if this is easy, but I am stuck with this and I was browsing many other answers already which did not help me. I tried using raisebox and it helped me a little bit. But raisebox and valign ...
1
vote
0
answers
60
views
How to add stretch or shrink (plus or minus) to imported graphics?
I am using the packages graphicsx, fontspec, and microtype.
I have imported a scalable vector graphics .svg image into my document via \includegraphics[height=\heightof{0123456789}]{myimage.pdf} where ...
0
votes
0
answers
44
views
I'm adding pictures directly (not as floats) in the tabular environment, I get a very odd space above [duplicate]
I'm working on inserting pictures alongside an enumeration. I add them directly, not as float, I don't need a caption. Now, I get a very odd space before the table/picture.
Now, I worked with \vspace{...
0
votes
1
answer
30
views
How to create side-by-side subfloats with aligned automatic labels and independently alignable graphics?
The following simple but maybe hacky example allows me to
Place two graphics side-by-side in a floating environment.
Assign symbolic labels to the graphics so that I can refer to them in the text.
...
0
votes
1
answer
33
views
Vertical alignment of label of a graphic within an equation
I am inserting an image of an equation within an equation environment. The label of the equation/image is aligned to the bottom of the image (red line). How can I align the label to the vertical ...
4
votes
1
answer
174
views
\includegraphics seems to be case-insensitive under Linux
It seems that \includegraphics isn't paying attention to case in file names. Here's a minimal example:
\documentclass[justified,marginals=raggedright]{tufte-book}
\usepackage{graphics}
\begin{...
0
votes
0
answers
28
views
Automatic pngs for pdflatex of tikz graphs
Some libraries for tikz (e.g. the graph layouts) require the use of lualatex. Is there a package/script that will automatically generate pngs (or whatever) for those images for inclusion when ...
0
votes
1
answer
34
views
How to actually refer to Roman numeral page in code to AddToHook background image to page ii NOT page 2
I need to add a background image to a specific page. Here's the MWE:
% !TEX TS-program = LuaLaTeX
\documentclass[11pt,twoside,openany]{book}
\pagestyle{plain}
\usepackage[english, russian]{babel}
\...
3
votes
1
answer
197
views
An Elliptical Cropping of an Image
Consider the code
\documentclass{book}
\usepackage{graphicx}
\usepackage[abs]{overpic}
\begin{document}%
\thispagestyle{empty}
\begin{center}
\begin{overpic}[scale=0.4,unit=2mm,grid,tics=2]{example-...
0
votes
0
answers
20
views
Split images in a figure into two pages
I have 3 images put in one figure with different subcaptions. To create this figures, I have not used subfigure or minipage. But I would like to split the images in the Figure over two pages. The code ...
0
votes
1
answer
62
views
How to customize the header in TexMaker (Latex)?
I'm trying to make a header in Texmaker, but when I compile the header is on top of the initial part of the rest of the document (article). Also how can I align a logo on the left side as two line ...
-1
votes
1
answer
59
views
Tikz picture code [closed]
How to draw this figure in tikz picture. can anybody give provide me its code.
0
votes
1
answer
21
views
Using pictures in class file
I'm wondering how i can use a logo in a .cls file.
This logo shall be on all pages of the document.
The classfile looks like this:
\ProvidesClass{myclass}[2022/10/27 v1.12 MyClass]
\LoadClass{...
1
vote
1
answer
54
views
Presenting aligned pictures in Elsevier format
I am trying to present two sub-pictures in Latex format in the following manner.
To do so, I am using the following codes:
\documentclass{elsarticle}
\usepackage{graphicx}
\begin{document}
\...
0
votes
2
answers
80
views
Positioning of two images at top ends of a page
I have two images that I would like to place at the top edges of the document.
One image at top left and other image at top right. But I am not able to achieve it
This how it looks whereas I want ...
0
votes
0
answers
27
views
Include the text from a pdf
I want to include the text from another pdf. The first thing that came to my mind is to just use \includegraphics[]{abc.pdf}. However, the problem is that the pdf file consists of only one a4 page and ...
1
vote
1
answer
33
views
Two figures on opposite pages sharing the same caption
I am trying to divide one large figure into two pages and add a shared caption that starts on the left side and continues on the right side. I have attached a figure below that illustrates what I want ...
2
votes
2
answers
68
views
Replacing Title Color with Image Background
This is a follow-up question to An Expedient Method for Perfectly Fitting an Image to a Pspicture
Consider the code
\documentclass[a5paper,12pt,onecolumn,openany,final]{book}
\usepackage[hmargin=0.7in,...
0
votes
0
answers
17
views
Spacing issues in image captioning while using moderncv
I'm using moderncv and I want to add a caption to an inserted graphic. I'm currently using this code
\begin{minipage}{\textwidth}
\centering
\includegraphics[width=0.9\textwidth]{MLPipeRS.png} \\
...
1
vote
2
answers
231
views
Add axes and label to an external picture
I have this image plotted in Mathematica where the frame label looks very bad.
Is there a way to add the log-log axis in tex to overlap with the picture. Say I use this picture without the axes. How ...
1
vote
2
answers
66
views
How can I make sure an image is displayed on the right page?
I'm new using Latex and I'm having an issue trying to display an image on the right page.
Here is the code that I'm running :
\documentclass[a4paper]{article}
\begin{document}
\section{Conclusion}...
2
votes
0
answers
93
views
Different behavior for .mps and .eps
The following example document loads two identical graphics files as .mps and .eps via \includegraphics. Both are valid eps files. I get different results depending on the TeX compiler, but always ...
0
votes
0
answers
95
views
What does “invalid … object at offset …” upon including PDF graphics mean?
Feeding
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics{included_file.pdf}
\end{document}
to xelatex, we get an expected PDF output but
invalid 13 0 R object at offset ...
0
votes
0
answers
61
views
Page splitting into two columns suddenly after \includegraphics
I am using the following wrapfigure
\begin{wrapfigure}{r}{0.59\textwidth}
\vspace*{-25mm}
\centering
\includegraphics[width=10cm, height=10cm]{figures/spatialcoherence.png}
...
1
vote
1
answer
64
views
Prooftree within a table?
1.Question
I am trying to construct a table with two columns and one row such that:
The first column consists of a letter (centered vertically) and on its right hand side there is an image
The second ...
1
vote
1
answer
38
views
Align images to the middle but cannot use valign or packages not accepted by ACM TAPS
I have a table containing images. The valign=m ensures that the images are centered in the middle. However, for the valign to work correctly, I have to use the \usepackage[export]{adjustbox} as ...
2
votes
1
answer
146
views
Problem with \includegraphics and dvisvgm
I'm using XeLatex and dvisvgm to produce a .svg file. I want to include a .png image with \includegraphics but it doesn't work: there is a replacement image instead of the one I want.
Here is what I ...
0
votes
0
answers
24
views
Insert PDF image with wide ratio without inserting empty page
I want to insert a PDF image on a unique page with only a section title and make it a bit bigger than the normal margin is allowing since I have space.
Here is the structure of the chapter (in the ...
0
votes
0
answers
20
views
Overleaf is not compiling when using \begin{figure}
I am unable to include figures into my Overleaf-Document, and I have no idea why this is the case... This is what I am doing:
\documentclass[a4paper]{article}
%% Language and font encodings
\...