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
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
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
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
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
306 votes
7 answers
485k views

How to add border for an image?

I use \includegraphics command to insert image to the document. But how can I add a border around this image w/o any margin between border lines and image? It seems to be very easy, but I can't find ...
TheBug's user avatar
  • 5,639
297 votes
7 answers
685k views

Scale image to page width?

I use \inclugraphics[scale=TRYING TO GUESS THE NUMBER FOR PAGE WIDTH]{...} but I find this errorsome, is there some ready flag to set the image to page width? I usually use PNG and JPG photos.
hhh's user avatar
  • 8,733
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
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
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
199 votes
12 answers
161k views

Placeholder for figure/includegraphics

Is there a command that I can use as a placeholder for \includegraphics? I want to use such a placeholder to add the original graphics later.
nimcap's user avatar
  • 5,115
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
185 votes
4 answers
650k views

Syntax similar to \centering for right and left?

For images, we can use \centering. Is there anything available to align the image to the right side or the left side of the page.
sachin irukula's user avatar
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
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
168 votes
1 answer
474k views

Scale figure to a percentage of \textwidth

I would like to change my figure's width to a precentage of my \textwidth: \textwidth /2 would scale to 50% of the \textwidth. What is the proper syntax (if any) to do this ?
Lucas Kauffman's user avatar
164 votes
13 answers
17k views

I need a TeX-donkey

In my town there will be next weekend an exhibition with 7000 donkey images. It is related to a sculpture group with 7 donkeys called "donkey's way" which will be installed in the summer. I would ...
Ulrike Fischer's user avatar
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
156 votes
13 answers
58k views

Multiple PDFs with page group included in a single page warning

I updated TeX Live to the Ubuntu Quantal version (2012.20120611-4) and I suddenly got this warning: PDF inclusion: multiple pdfs with page group included in a single page This is a minimal example ...
Veger's user avatar
  • 2,037
154 votes
1 answer
172k views

How can I embed an external image within a tikzpicture environment?

I want to embed an image within a tikzpicture environment. I tried the following, \begin{tikzpicture}[] \pgftext{\includegraphics[width=150pt]{pic1.png}} at (0pt,0pt); \pgftext{\includegraphics[...
Rogach's user avatar
  • 3,058
149 votes
8 answers
157k views

How to vertically center two images next to each other?

How can I vertically center two images next to one another? Here is some example code: \begin{minipage}[h]{6in} \centering \vspace*{.3in}~\\ \includegraphics[height=1.25in]{fig1.pdf} \...
Chris Cannon's user avatar
  • 1,745
149 votes
2 answers
130k views

pdflatex, \includegraphics, and multi-page PDF files

I have a PDF file with multiple figures; each figure is a separate page in the PDF file. I am using pdflatex, and I would like to use \includegraphics or equivalent to include some of the figures. ...
Jukka Suomela's 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
137 votes
4 answers
61k views

Simulate a scanned paper

I'm try to move my current paperwork routine towards a paperless workflow (for the “administrative” type of papers, of course… not for serious reading tasks). There is one major annoyance thwarting me:...
F'x's user avatar
  • 3,011
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
136 votes
9 answers
109k views

Image on full slide in beamer package

I would like to make a slide of only one image without any borders or any other beamer specific element. I tried : \begin{frame}[plain] \includegraphics[keepaspectratio=true,width=1\paperwidth]{...
Alexandru's user avatar
  • 2,455
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
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
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 ...
122 votes
4 answers
1.2m views

Change image size

I'm trying to change the image size (make it look smaller than the original). I tried with the next code but the image still shows at its original size. \begin{figure}[h!] \centering \...
Enrique's user avatar
  • 1,425
116 votes
9 answers
11k views

Starting a PhD; Any guides to setting up a 'system'?

I'm starting a PhD and am being overwhelmed with the different possible ways people do things, and how they very rarely mix. I'm (obviously) sold on TeXing it, and have a ViM background I intend on ...
Andrew Bolster's user avatar
116 votes
3 answers
28k views

Choosing whether to include PDF or PNG in PDFLaTeX

Can I tell graphicx somehow which graphic format to choose when I omit the file extension in includegraphics and both a PDF and a PNG version of the same image exist? The reason is that I have some ...
Jan Pöschko's user avatar
  • 1,417
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
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
105 votes
3 answers
403k views

How to use figure inside a minipage?

I'm trying to include an image, and keep it centered, and prevent from wrapping from the next page. The following code works for that: \begin{minipage}{\textwidth} \begin{center} Caption ...
Jay Sullivan's user avatar
  • 2,468
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
99 votes
4 answers
247k views

! LaTeX Error: Not in outer par mode

I am using an image within minipage and getting error message. ! LaTeX Error: Not in outer par mode. Below is minimal working example. \documentclass[11pt,table,a4paper]{article} \usepackage{...
manish's user avatar
  • 9,101
95 votes
3 answers
369k views

How to include a PDF image into a PDFLaTeX document

I am generating a PDF file using pdflatex and need to include another PDF file. The reason is that I have a graphMl file which I exported from yEd graph editor to a PDF file, named sample.pdf. The TeX ...
pavani's user avatar
  • 2,953
95 votes
4 answers
496k views

set a maximum width and height for an image

I would like to define a maximum height and a maximum width for an image at same time. I suppose there must be a package to do this, but actually I'm unable to find it...
xarmengol's user avatar
  • 1,147
94 votes
2 answers
312k views

How to fit a large figure to page [duplicate]

Possible Duplicate: Best figure size adjustment when dealing with different image sizes Given: a large figure, whose height:width ratio is unknown. Todo: Include this fig in LaTeX, such that: ...
lukmac's user avatar
  • 1,073
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
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
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
89 votes
3 answers
61k views

How can I position an image in an arbitrary position in beamer?

I am making a presentation using beamer, and I want to be able to position a certain image the way I want in a frame. I am not sure how to do that. Is there some way you can specify coordinates in the ...
user avatar
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
88 votes
5 answers
148k views

How to reduce space between image and its caption?

I m importing one image in latex document. But caption has bigger font than my normal text on page. \documentclass{article} \usepackage{graphicx} \begin{document} Some text... \begin{figure}[...
manish's user avatar
  • 9,101
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
84 votes
3 answers
246k views

Centering with \includegraphics not with \begin{figure}?

I mess up with things when I try to use the figure-thing: the picture is not appearing with the correct alignment (apparently because I forget the float package). Now I want to use only the graphicx ...
hhh's user avatar
  • 8,733
84 votes
4 answers
313k views

How to add a gif file to my LaTeX file?

Related: Convert gif image to png on the fly I have an image file -- a gif file, which is the graph of a function. How do I add it to a LaTeX file? Will it come out OK in the subsequent pdf file?
TCL's user avatar
  • 1,140
83 votes
6 answers
579k views

Putting two images beside each other

If I want to put two images beside each other, what should I do? I have inserted a figure. But, rather than having the next figure on a new line, I want it to be beside the already inserted figure. ...
Simplicity's user avatar
  • 1,305
83 votes
6 answers
39k views

LaTeX Package to generate QR codes?

I would like to be able to generate QR barcodes in my LaTeX documents, and I'm having a hard time finding a solution. The use would be a command such as \qr[1in]{Your text to be QR encoded here} ...
MattoxBeckman's user avatar

1
2 3 4 5
142