{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].

learn more… | top users | synonyms (3)

175
votes
4answers
27k 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 ...
27
votes
7answers
12k 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?
28
votes
2answers
3k 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?
50
votes
6answers
4k views

Which graphics formats can be included in documents processed by latex or pdflatex?

There several types of graphics files. In no particular order .jpeg .eps .pdf .png .tif .jif (and no doubt others). Some work with latex, dvips and some work with pdflatex. How am I supposed to know ...
175
votes
16answers
58k 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 ...
65
votes
1answer
4k 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 ...
84
votes
8answers
12k 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 ...
43
votes
2answers
11k 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 ...
45
votes
11answers
5k 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 ...
26
votes
2answers
1k 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 ...
24
votes
2answers
4k 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 ...
52
votes
6answers
33k 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 ...
8
votes
1answer
3k 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. ...
69
votes
4answers
5k 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 ...
50
votes
4answers
14k 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 ...
33
votes
7answers
10k views

Included PNG appears blurry in PDF

This is a follow-up to Included png appears too big in PDF, but it's a separate issue so I'll put it in its own question instead of burying it in comments. The problem: an included PNG, included ...
18
votes
4answers
6k views

Quickest way to include graphics

Whenever I make a presentation with LaTeX, it takes me a long time to include the graphics in the way I want them to look. I start with \includegraphics{foo.jpg}, run pdflatex to see what it looks ...
27
votes
1answer
6k views

Insert graphic at precise place on a page

I would like to put a small graphic in the bottom right corner of a the title page of an article. Is there a way to specify a precise location for a graphic on a page (that has text on it)? I've ...
38
votes
4answers
4k views

Does anybody know a good source of (free) ornaments, decorations, frames, backgrounds etc.?

I'd like to prepare a "fancy" typographical project, more interesting visually than a "boring" black-on-white text. I'm not very talented at drawing, though, so I'd like to ask about a place to find ...
69
votes
3answers
3k 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 ...
47
votes
5answers
14k 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 ...
38
votes
2answers
4k 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. ...
17
votes
2answers
4k 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? ...
36
votes
10answers
17k 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?
33
votes
3answers
2k 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 ...
13
votes
2answers
1k views

Aligning enumerate labels to top of image?

I asked a question a while ago about vertically aligning enumerate labels to the top of table. Now I am having the same problem, but with images. Since my problem was solved in my previous thread, I ...
13
votes
3answers
10k views

My pixel perfect picture gets blurry when compiled in LaTex

Here's my problem. 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 ...
49
votes
4answers
8k views

How do I insert an image in LaTeX so it looks good on print?

LaTeX documents print beautifully, but images often looks "ugly", "pixelated" or "low-res" compared to the text. By images I don't mean photos, which I rarely use, but rather diagrams, charts and ...
30
votes
1answer
14k 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 ...
8
votes
1answer
530 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 ...
6
votes
1answer
546 views

TikZ borders showing through when they shouldn't (overlapping circles)

If you draw two circles that are exactly the same in all aspects (location, size, etc...) except they have different colors, then the "border" of the underlying circle is showing through. ...
44
votes
4answers
4k 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?
37
votes
6answers
4k views

Which figure type to use: pdf or eps?

Both are vector graphics (typically) and both can be imported painlessly into a pdflatex document (so let's say we ignore dvi for this question). What are the advantages and disadvantages of each? ...
18
votes
2answers
11k views

Aligning image and text on top, with minipages

I have an image (on the left) and a block of text (on the right), and I would like both to be aligned on their top. I am trying to use minipages for that: \documentclass{article} \begin{document} ...
30
votes
1answer
68k 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 ...
11
votes
4answers
3k views

Inkscape → PDF → includegraphics → XeLaTeX → changed colors

I have an SVG file, which I have made/edited with Inkscape. I want to include this image in my thesis. The svg file is here: http://brussense.be/temp/theSVG.svg (because Inkscape uses a non-standard ...
41
votes
7answers
15k 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 ...
22
votes
4answers
129k views

LaTeX figures side by side [duplicate]

Possible Duplicate: Two figures side by side 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 ...
60
votes
5answers
8k 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 ...
22
votes
1answer
5k 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 ...
25
votes
4answers
6k views

How to wrap text around a figure?

How to wrap text around a figure in LaTeX like this? Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean quis mi ut elit interdum imperdiet quis non ante. Sed imperdiet, sapien quis ...
24
votes
3answers
8k 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 ...
11
votes
4answers
7k views

Scale (resize) large images (graphics) that exceed page margins

Background A large number of screen captures have been scaled 300% at 288dpi. They appear correctly when embedded in OpenOffice, but not LyX. Problem Images that do not extend beyond the margins ...
12
votes
2answers
1k views

Text wrap with shapepar (insert image between text)

How do insert image between text and text wrap with shapepar or other package?
10
votes
5answers
3k views

Convert gif image to png on the fly

I am using pdflatex on linux and attempting to convert gif to png. I can run scripts to find out the image attributes and even and convert the files supplied from a folder but I can not write back to ...
5
votes
2answers
2k views

How to export a equation as a image without background?

For example, if we have a equation on a file like: \documentclass[12pt]{standalone} \usepackage{varwidth} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath, amssymb, ...
14
votes
4answers
5k 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 ...
84
votes
3answers
6k 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 ...
28
votes
1answer
1k views

Adding a per-chapter image along with group of entries in ToC

Friends, I have an old analytic geometry book with an unusual table of contents: for every group of entries based on the current chapter, there is an image along with it. Well, let me show some actual ...
36
votes
6answers
22k 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} ...