Questions tagged [graphics]

{graphics} is about inclusion of external graphic files in your document. For questions about vector graphics created programmatically inside a (La)TeX document, use {diagrams} instead, or preferably the tag for specific packages like {tikz-pgf}, {pstricks}, or {metapost}.

Filter by
Sorted by
Tagged with
516 votes
8 answers
175k views

Drawing on an image with TikZ

Recently I have learned how to draw simple stuff with TikZ. I really like it. Now I wonder if it is possible to draw with TikZ on a image. Instead of pasting a image in Illustrator and adding some ...
nacho4d's user avatar
  • 11.1k
124 votes
12 answers
81k views

What graphics packages are there for creating graphics in LaTeX documents?

What packages do you use and recommend for creating graphics in your LaTeX documents? As this is a community wiki post, please add your package to the accepted answer (or add a comment, and ...
136 votes
7 answers
88k views

How to include graphics with spaces in their path?

I want to import graphics into my main input file using the macro \includegraphics. It does not work if the filename contains spaces. Include image with spaces in path directory to be processed with ...
Display Name's user avatar
  • 46.9k
710 votes
23 answers
723k views

How to include SVG diagrams in LaTeX?

I'm making all my diagrams in SVG format using Inkscape and then I export them to some other format (e.g. PDF, EPS or PNG). I wrote a short script that does this for me automatically, but I'd like to ...
Martin Tapankov's user avatar
246 votes
15 answers
155k views

Compile a LaTeX document into a PNG image that's as short as possible

I need to convert my LaTeX documents into PNG. The problem is, I also need the resulting image to be as short as possible (height-wise). I've tried latex followed by dvipng, but the result is always ...
Malabarba's user avatar
  • 6,952
107 votes
6 answers
75k views

Which graphics formats can be included in documents processed by LaTeX or PDFLaTeX?

There exist several types of graphics files, such as jpeg eps pdf png tif jif. Some work with LaTeX + Dvips and some work with PDFLaTeX. How to know which type is for which processor? Just to confuse ...
BWW's user avatar
  • 1,213
156 votes
23 answers
81k views

What GUI applications are there to assist in generating graphics for TeX?

I found GeoGebra to be a useful tool to help generate code for graphs. I suppose there must be other tools to help draw diagrams such as Sets/Venn Diagrams or Electrical Circuits (Logic Gates). Which ...
Jiew Meng's user avatar
  • 2,479
129 votes
2 answers
16k views

How to include a picture over two pages, left part on left side, right on right (for books)?

When writing a long book (from 300 to over a 1000 pages), there is often need to include large pictures and one wishes to have them displayed over two pages, left half on the left page, right half on ...
Leo's user avatar
  • 3,499
91 votes
1 answer
156k views

Split subfigures over multiple pages

I have the following code for a Figure with 4 subfigures: \documentclass{article} \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \begin{document} \begin{figure}[b] \...
JNevens's user avatar
  • 1,459
501 votes
4 answers
2.5m views

LaTeX figures side by side [duplicate]

I want to place 2 images side by side in LaTeX. I have 2 .png files and I don't understand how to do it in LaTeX. I have tried many ways but could not get a good result.
user avatar
24 votes
3 answers
7k views

MiKTeX graphics version 1.3b bug on Windows 10 (\set@curr@file undefined)

After updating MiKTeX graphics package on 10/5/19 to version 1.3b (packaged on 10/4/2019 8:11:27 PM), I am unable to compile LaTex files that contain \includegraphics{}. My system: Windows 10 with ...
uRog's user avatar
  • 343
197 votes
6 answers
592k views

Cannot determine size of graphic

I'm trying to include graphics in my Latex-file, which I compiled with latex+dvipdf on OS X. Latex however returns this error: "Cannot determine size of graphic" My graphic is exported from ...
user avatar
35 votes
5 answers
5k views

Shear transform a "box"

Using the graphicx package, I can make any arbitrary box rotated using the \rotatebox{...}{...} command. Is there a comparable command in any package that lets me shear a box, i.e., producing a kind ...
user avatar
326 votes
5 answers
718k views

Crop an inserted image?

I'm inserting an image with a simple: \includegraphics[height=5cm]{filename.png} This results in an image that maintains the aspect ratio, and so gives me something like 6cm width. I only really ...
naught101's user avatar
  • 8,214
56 votes
3 answers
13k views

How to define a figure size so that it consumes the rest of a page?

Sometimes I don't need to have a specific picture size, but for layout reasons I would like to scale the image so that the rest of the page is filled. How can I achieve that?
RoflcoptrException's user avatar
169 votes
11 answers
145k views

How to expand TeX's "main memory size"? (pgfplots memory overload)

I'm compiling one pretty simple LaTeX file with few dozen of pgfplots. Now, I can compile part by part, but am unable to compile it all at once. I really need good precision for all those plots (noise ...
user avatar
145 votes
3 answers
183k views

Getting GIF and/or moving images into a LaTeX presentation

I'm very new to presentations in LaTeX (I've been using PowerPoint for years but have finally converted). I am wondering how to get a GIF into a section. If need be, I can convert a GIF into lots of ...
iluvLatex's user avatar
  • 1,513
68 votes
2 answers
50k views

Example images in LaTeX?

How to make an example image in LaTeX, a dummy image, a spot holder? I have seen it before, but I can't remember how they would made. It would be nice to be able to use example images - if you should ...
Basilius Sapientia's user avatar
203 votes
5 answers
65k views

\includegraphics: Dots in filename

\includegraphics cannot handle filenames that contain more than the one dot, separating the filename from the extension. Apparently it uses everything after the first dot as extension and then, of ...
fuenfundachtzig's user avatar
86 votes
3 answers
61k views

Understanding minipages - aligning at top

I would like to be able to align two minipage at the top, without worrying about what is in the minipage. I am aware of the optional [t] parameter, but still have some confusion as to how this all ...
Peter Grill's user avatar
116 votes
4 answers
30k views

How to create magnified subfigures and corresponding boxes for portions of a large image

Updated Below I hope the title gets at what I'm trying to do. I have a large image for a thesis on an image processing topic, and I want show the large image, with zoomed in boxes (typically with the ...
SSilk's user avatar
  • 3,732
20 votes
2 answers
23k views

Why does the image not appear?

I'm using IEEEtran to format an article, and I wanted to include an image. I included the graphicx and hyperref packages, and used the following code, like normal, to include an image. \begin{figure}[...
user avatar
90 votes
3 answers
72k views

How to superimpose LaTeX on a picture?

I know how to add a picture to my LaTeX file, e.g. \includegraphics[width=7cm]{curve.pdf}. What I'd now like to do is place some latex symbols onto the picture. Like a \gamma to name a curve. I do not ...
peter's user avatar
  • 2,895
33 votes
3 answers
15k views

\includegraphics PDF, color problem

I'm using pdflatex, and use \includegraphics to include content of figures from PDF. PDF are exported from InkScape. \begin{figure} [!h] \centering \includegraphics[height=3cm]{fig/SUSAN.pdf} ...
user avatar
101 votes
5 answers
54k views

Can I use an image located on the web in a LaTeX document?

I have tried \includegraphics{http://www.site.com/path/to/figure.png} But this returns the error ERROR: Package pdftex.def Error: File `http://www.website.com/path/to/figure.png' not found. Are ...
David LeBauer's user avatar
38 votes
7 answers
41k views

Why are some pages in my PDF coming out bold? [duplicate]

When I run my LaTeX document through pdflatex, some of the pages (the ones where figures appear) have all the text bolded. Why, and what can I do to make it stop?
Blake Stacey's user avatar
  • 1,420
222 votes
2 answers
411k views

How to use \graphicspath?

I am using MikTex 2.9 and TeXstudio for my TeX preparation. I would like to set the path to my figures folder, which contains all the figures, plots etc. required for my work. I used \graphicspath ...
Litun's user avatar
  • 3,295
41 votes
4 answers
8k views

Graphics file extensions and their order of inclusion when not specified

When using graphicx's \includegraphics you can specify the file extension or not. For generic use and perhaps portability, extensions are commonly dropped. The types of "approved" inclusions and their ...
Werner's user avatar
  • 602k
78 votes
3 answers
153k views

How to use background image in LaTeX?

I am generating one report where I need to use background image. But I found that image always starts leaving some margin space to left side. \documentclass{article} \usepackage{wallpaper} \...
manish's user avatar
  • 9,101
184 votes
6 answers
120k views

Why should a table caption be placed above the table?

In the papers I read the caption in figure floats is placed below the figure and in table floats the caption is placed above the table. I recognize that this is a common style that a lot of people ...
maxschlepzig's user avatar
  • 12.1k
67 votes
4 answers
82k views

Can \includegraphics be used to change an image color?

I'm including a number of PDF images in my document using \includegraphics. I'm wondering if there's a way for LaTeX to adjust their color profile, hopefully the same way it can flip images upside ...
Mittenchops's user avatar
  • 1,044
90 votes
6 answers
166k views

How to include PDF pages without a newpage before the first page?

I am using pdfpages which works quite well. But this time, I want to include a 5 page pdf and the first page should be scaled down a bit such that above the first page is enough space for a ...
maxschlepzig's user avatar
  • 12.1k
81 votes
7 answers
141k views

Why can't pdflatex print EPS figures?

The images in my paper are in EPS format. If I execute pdflatex to get a PDF version of my paper, the figures won't appear. I have to typeset using the latex command, and then convert the DVI file to ...
Julian Lamas-Rodriguez's user avatar
21 votes
2 answers
6k views

Text wrap with shapepar (insert image between text)

How do insert image between text and text wrap with shapepar or other package?
Regis Santos's user avatar
  • 14.4k
89 votes
4 answers
349k views

include svg images with the svg package

I'm trying to use the svg package for inserting svg images in my latex file, as suggested in other questions. But now I ran into a problem: For example I have a image figure1.svg, if I write \...
LWZ's user avatar
  • 2,972
67 votes
6 answers
21k views

How to preserve hyperlinks in included PDF?

I have generated PDFs with figures that have hyperlinks (hyperref to websites, \href) in them. When I compile these figures standalone the hyperlinks work. But when I try to include these PDFs (as ...
alfC's user avatar
  • 14.3k
62 votes
7 answers
26k views

3-dimensional histogram in pgfplots

I have a simple 3d histogram which I want to import into pgfplots, e.g. using matlab2tikz or by hand. PGFplots does not offer 3d histograms. Is there an easy way to do this?
severin's user avatar
  • 783
28 votes
2 answers
26k views

How do I add an image in the upper, left-hand corner using TikZ and graphicx

This is perhaps a simple question with a simple answer, but I'm stumped as a tikz novice. What would be the best method to add an image (logo) file to the upper left-hand corner of my document? MWE: ...
user2473's user avatar
  • 3,098
25 votes
3 answers
2k views

Aligning a text in 3d diagram

This question led to a new library in TikZ: perspective (PGF manual, chapter 63) I have a 3d object created with inkscape as shown below: Now I am trying to place a text in the same orientation as ...
Raaja_is_at_topanswers.xyz's user avatar
20 votes
2 answers
4k views

create latex symbol from vector graphics

I have a logo in vector format (Adobe Illustrator) that I would like to use in my LaTeX documents. How do I create a latex symbol such that I can include this logo inline with the text, similarly to ...
aaragon's user avatar
  • 3,041
9 votes
1 answer
2k views

Mathematical formulas on a graph (not made by TeX) [duplicate]

Let us assume that we have a graph created by a program different from LaTeX (that is not with PStricks or Tikz). I was wandering if it is possible to incorporate mathematical symbols on that graph ...
Pantelis Kazakis's user avatar
58 votes
6 answers
112k views

Insert a full page image

How can I insert a full page image? No blank space left in the page. Bonus: How can I add some text over the image?
Juanjo Conti's user avatar
46 votes
5 answers
91k views

How to avoid showing the filename when using graphicx?

I am writing a LaTeX document with the apacite and graphicx package. The issue is when I include an image either using figure with an enclosed \includegraphics or \includegraphics by itself it shows ...
ThorDivDev's user avatar
128 votes
3 answers
13k views

Fundamental differences : PSTricks, TikZ/PGF and others

OK, since this is a pretty vague and subjective question. I need to set up some borders around the discussion that I intend to benefit from. But before anything, I certainly do NOT want to excite the ...
percusse's user avatar
  • 158k
57 votes
10 answers
60k views

What is the best way to include Matlab graphics?

Which way of exporting Matlab graphics delivers the best result for inclusion in LaTeX? Is it possible to export scalable vector graphics, or even LaTeX graphics?
Ingo's user avatar
  • 20k
42 votes
5 answers
26k views

Inserting figures using loops

I have a set of pictures in my working directory and I want to make a PDF report using these images. I want to include all of them, but the number of the pictures changes in each case. I would like to ...
JPV's user avatar
  • 767
29 votes
6 answers
50k views

My pixel perfect picture gets blurry when compiled in LaTeX

I have this picture: http://dl.dropbox.com/u/3394117/Temp/fig1.png (I have the original in Pixen and could export it to several different formats. I went with PNG though since it's lossless.) When I ...
Speldosa's user avatar
  • 5,077
20 votes
1 answer
4k views

Ligatures in figures and pdftex

In the following example, the 'ff' ligature in the figure labels (in 'differential') disappears when pdflatex is used, but the fault does not occur if latex-dvips-ps2pdf is used instead. Both lualatex ...
Ian Thompson's user avatar
  • 43.7k
70 votes
4 answers
19k views

Crop jpeg into circular tikz node

\documentclass[demo]{article} \usepackage{graphicx} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[circle,draw,inner sep=2cm]{\includegraphics{myimage.jpg}}; \end{tikzpicture} \end{...
JennyC's user avatar
  • 739
31 votes
1 answer
20k views

Simplest way to overlay a text + rectangle label an image?

For my figures thus far I've been using LaTeX's straightforward figure code, i.e.: \begin{figure} \centering \includegraphics[width=6.5in]{figure.png} \caption[Stuff here]{(A) More stuff ...
Max's user avatar
  • 455

1
2 3 4 5
31