{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} or {pstricks}.
130
votes
3answers
16k 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 ...
118
votes
12answers
30k 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 ...
80
votes
9answers
4k 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 ...
69
votes
3answers
3k 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 ...
63
votes
2answers
1k 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 ...
61
votes
6answers
7k 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 ...
60
votes
3answers
2k 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 ...
57
votes
4answers
3k 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 ...
57
votes
1answer
3k 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 ...
46
votes
9answers
3k views
LaTeX/Math jokes [closed]
Lighten up a bit guys. How about the following
\documentclass{article}
\usepackage{graphicx}
\begin{document}
If~~$\displaystyle\lim_{x\rightarrow8}\frac{1}{x{-}8}=\infty$
...
45
votes
4answers
4k 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 ...
43
votes
4answers
5k 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 ...
41
votes
1answer
1k views
A way to draw a lab apparatus
Are there any packages that would make a simple lab apparatus easy to draw?
e.g. a spectrometer connected to a computer and has a wire before a light emitting tube, the wire also being connected to ...
38
votes
6answers
2k 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 ...
37
votes
3answers
7k 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 ...
36
votes
5answers
16k 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 ...
35
votes
4answers
2k 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 ...
34
votes
3answers
2k 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?
34
votes
6answers
3k 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? ...
33
votes
2answers
2k 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.
...
33
votes
3answers
1k views
LaTeX Photo With Rounded Corners
I have a photograph that I'm loading into my LaTeX document.
I'd like the photograph to have rounded corners and no visible border.
I'd prefer not to edit the original photograph.
Any thoughts on ...
33
votes
8answers
4k views
Is anybody using TeX for business reporting?
Would TeX (LaTeX, ConTeXt, etc) be a good solution for PDF business reports that require dynamically generated graphs and tables?
I need to create financial reports that must look top-notch in their ...
32
votes
4answers
23k 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 ...
31
votes
5answers
14k 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}
...
31
votes
3answers
8k 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 ...
31
votes
2answers
7k 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 ...
29
votes
7answers
5k 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.
29
votes
9answers
10k 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?
27
votes
7answers
7k 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 ...
26
votes
7answers
6k 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 ...
26
votes
4answers
11k 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]
...
26
votes
5answers
1k views
LaTeX accessibility
Does anyone know of any LaTeX modules that makes the pdf output generated by pdflatex Americans with Disabilities Act of 1990 (ADA)/Seciton 508 compliant?
Specifics:
With regard to math. One simple ...
26
votes
2answers
2k views
Submitting a journal article as a single tex file
Although many academic journals readily accept submissions in some format of TeX, indeed some enlightened ones insist on it, it is rare that one can simply send exactly the same document that one has ...
25
votes
1answer
8k views
Tikz: using external images as building blocks.
I would like to create a custom vector drawing in Inkscape and then use it many times in many tikz pictures.
Is it possible?
Should I use PDF or SVG or other output from Inkscape?
How to use external ...
25
votes
6answers
7k views
Why are some pages in my PDF coming out bold?
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?
25
votes
5answers
6k 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}
...
25
votes
3answers
1k 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 ...
25
votes
1answer
3k 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 ...
24
votes
2answers
457 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
1answer
8k 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.
...
24
votes
1answer
10k 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 ...
24
votes
1answer
824 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 ...
24
votes
1answer
1k views
How to draw spherical geometries with TeX?
I am working in the field of Astrodynamics and have to do many computations using spherical geometry. To visualize some of the concepts I would like to prepare drawings of things like spherical ...
23
votes
3answers
880 views
Arrow with two colors with TikZ
I want to create with TikZ a yellow arrow with black margin (border, edge).
I thought I could do this by using two arrows which lie on the top of each other, e.g. with:
\documentclass[12pt,twoside, ...
23
votes
10answers
12k views
How to avoid large margins around Matlab plot in PDF
I am preparing image files to be included in a latex document. The image file is generated by printing a Matlab plot.
If I print the plot in eps format, the content of the eps file is fully occupied ...
22
votes
12answers
1k views
Competition time: Design an error page!
Or a 404 or the "captcha" image.
To go with our amazing new design, we need some amazing pictures to go on the error page, the 404 page, and the captcha page. They should have a lighthearted theme, ...
22
votes
2answers
19k 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.
22
votes
4answers
4k 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 ...
21
votes
7answers
2k 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 ...
21
votes
1answer
299 views
How to get thumbnails in a list of figures?
To be honest, I'm not sure if I really want this because I can't imagine how exactly it would look. But maybe someone is interested in this, too, or even has already written code to achieve this: it ...

