{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)

203
votes
4answers
36k 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 ...
30
votes
7answers
16k 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?
55
votes
6answers
6k 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 ...
32
votes
2answers
4k 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?
51
votes
2answers
15k 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 ...
96
votes
8answers
18k 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 ...
201
votes
16answers
81k 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 ...
74
votes
1answer
5k 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 ...
20
votes
3answers
6k 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} ...
55
votes
6answers
44k 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 ...
53
votes
14answers
9k 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 ...
54
votes
8answers
20k 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 ...
19
votes
2answers
5k 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? ...
27
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 ...
10
votes
1answer
4k 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. ...
27
votes
2answers
7k 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 ...
78
votes
5answers
12k 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 ...
74
votes
4answers
6k 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 ...
41
votes
1answer
99k 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 ...
28
votes
1answer
7k 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 ...
42
votes
4answers
204k views

LaTeX figures side by side [duplicate]

Possible Duplicate: Caption issue when placing figure 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 ...
53
votes
5answers
20k 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 ...
35
votes
7answers
12k 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 ...
35
votes
3answers
3k 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 ...
77
votes
3answers
4k 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 ...
55
votes
4answers
21k 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 ...
20
votes
4answers
7k 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 ...
16
votes
4answers
12k 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 ...
44
votes
2answers
5k 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. ...
40
votes
4answers
5k 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 ...
37
votes
10answers
23k 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?
32
votes
1answer
17k 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 ...
45
votes
4answers
6k 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?
14
votes
2answers
2k 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 ...
51
votes
4answers
10k 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 ...
31
votes
3answers
10k 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 ...
25
votes
1answer
7k 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 ...
19
votes
2answers
15k 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} ...
8
votes
1answer
737 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 ...
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?
6
votes
1answer
617 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. ...
51
votes
4answers
73k 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.
39
votes
6answers
6k 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? ...
11
votes
1answer
1k views

Creating Bezier surfaces using procedural graphics

Are there any package for LaTeX that can create Bezier surfaces? I mean a actual existing function that takes matrices as arguments and generates the surface, not a function written by myself.
11
votes
1answer
10k views

Image from \includegraphics showing in wrong image size

When I use the following to embed an image: \begin{figure}[htb] \centering \includegraphics{my_image} \caption{blaaa} \label{fig:blaaa} \end{figure} whereas my_image is a JPG file, the ...
19
votes
4answers
10k 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 ...
12
votes
4answers
4k 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 ...
5
votes
1answer
203 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 ...
11
votes
2answers
2k views

How to align picture top left in a table?

is there a way to create a table with 2 columns, in the left column should be some text, in the right column should be a picture. The problem is - to align both to the left, top corner. The image ...
6
votes
1answer
418 views

Why do I get a black rectangle instead of my external picture?

I write some of my network notes in TeX. I wanted to make a table, and inside it insert an image: . I wrote a document: \documentclass{article} \usepackage[demo]{graphicx} \usepackage{booktabs} ...