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

15
votes
2answers
809 views

Attach displayed image to the PDF without storing it twice

If one and the same image is included in a PDF multiple times it is only stored only once as an PDF object. Now I like to also attach an image which is shown in the document to the PDF to allow users ...
14
votes
3answers
4k views

Unknown graphics extension: .1.png

I have a file called xxxx_0.1.png, and want to import it as an image in my document. I am using graphicx with the following command: \includegraphics[width=0.5\textwidth]{images/xxxx_0.1.png} and ...
14
votes
3answers
9k views

Make two figures aligned at top

I am inserting two graphs (of different size) in the following way: \begin{figure}[H] \begin{center} \includegraphics[scale=0.5]{graph1.eps} \includegraphics[scale=0.3]{graph2.eps} ...
14
votes
5answers
5k views

How would you do Karnaugh's maps in LaTeX or ConTeXt?

In a document, I have to include those simple diagrams to show the procedure of reducing logical circuits. What do you think is the best way to do them?
14
votes
6answers
5k views

Can pdflatex (or any tex package) automatically rescale included images which have been reduced in size?

I'm writing my thesis in LaTeX, generating it with pdflatex. I have a large number of figures, many of which are bitmaps (as opposed to SVG) in PNG/JPEG format. I've generally created them to be ...
14
votes
4answers
3k views

How to automatically draw a graph in LaTeX

clarification: when I say "graph", I mean the computer science term. I want to draw a full binary tree of h height. It means that there's one root with two sons, each son has two sons and so forth. ...
14
votes
3answers
26k views

How to order 3 images horizontally?

I use the following code to include three images: \begin{figure}[h] \includegraphics{delete_gesture.png} \caption{Awesome Image} \label{fig:awesome_image} \end{figure} \begin{figure}[h] ...
14
votes
6answers
9k views

How to export matlab figures to (pdf) LaTeX?

I am writing a student thesis in LaTeX and need to import several figures created in Matlab. I found some programs to do this task: matfig2pgf matlab2tikz fig2texPS The problem is that using one ...
14
votes
3answers
7k views

Includepdf as a figure

I want to include some pages of a pdf file into my document and wrap them into a figure with a caption for example (with pdfpages) \begin{figure}[h] \centering ...
14
votes
2answers
403 views

Is it possible to make an image gallery with tikz images?

I create many images with TikZ and I would like to make an image gallery. It should look like this: The gallery should put the image in front of a (gray) background resize the image to a maximum ...
14
votes
2answers
2k views

Zooming on a data set in a picture (magnifying glass)

In my TeX document I would like to add a picture and in addition, zooming on a small part of the picture (e.g. inset in TeX or spy in TikZ). My question, I have a histogram 2D (f(x,y) = z) date which ...
14
votes
1answer
405 views

Is there any package to create bullet gauge graphs?

I am looking for a package to create bullet gauge graphs, but I couldn't find any. A bullet graph looks like this: and an ample description/specification can be found here It is available in ...
14
votes
2answers
4k views

Scale tikz figure to a percentage of \textwidth

A user asked a question about scaling a figure to a factor of \textwidth and got an answer like this: \documentclass{article} \usepackage{graphicx} \begin{document} ...
14
votes
1answer
3k views

Kindly explain use of framezoom in beamer

I want to use framezoom to zoom in on India in this map. How can I do it? Can someone explain in a simple language (non-technical) the use of \framezoom function in beamer?
14
votes
1answer
1k views

Creating a drop shadow with guassian blur

How can I add a drop shadow to a \includegraphics picture? The effect should be very minute just to be a little bit eye pleasing. I know you can use \shadowbox in fancybox package but the output would ...
14
votes
3answers
2k views

Plotting an implicit function using TikZ

How could one plot an implicit function, like (x^2+y^2)^3-4x^2y^2 using TikZ? I know gnuplot supports them, but they are drawn using a surface built from the function and intersecting the result with ...
14
votes
1answer
372 views

How you can put an image in a footnote on page?

How you can put an image in a footnote on page? try this, but does not work \footnote {bla bla \begin {figure} .... \end{figure} }
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 ...
14
votes
1answer
218 views

Are there external graphics files with natural depth?

The \includegraphics command from the graphicx package provides options height and totalheight for resizing embedded graphics. As long as the graphics file doesn't possess a natural depth, it doesn't ...
14
votes
3answers
9k views

Full page image as title page

Background Wrote a technical manual in LyX. The technical manual currently has two parts: Cover image (PDF) Manual text (PDF) Problem When merging the two PDF files (with GhostScript or other ...
14
votes
1answer
2k views

Is it possible to create overlays in beamer inside pgfplots graphics?

When working with pgf-tikz, I can create overlays in beamer presentations with \path<overlay specification> ... However, I could not get this to work in pgfplots graphics. It would be nice ...
14
votes
2answers
276 views

Transparency vs image compression dilemma

I have a bunch of raster images that I want to include in a poster. For aesthetic reasons I want to replace the image background by a transparent one. So far, I have been grabbing the images I had ...
14
votes
2answers
425 views

How do you deal with fixed resolution screenshots? (e.g. GUI screenshots)

In my LaTeX document I need to show some screenshots of a GUI, which has a fixed resolution (for example, 1200x600) and I cannot change it (not without much hassle). The text in such figures always ...
13
votes
3answers
854 views

Drawing a 3D cone

I want to create some thing like this , but instead of a box, I use another object (a dog silhouette). Here is what I have so far \begin{tikzpicture} \begin{scope}[scale=0.25, xshift=70, ...
13
votes
3answers
32k 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...
13
votes
4answers
369 views

Graphics equations: put text on equations

I have a big question that I cannot solve by myself. I would like to add text on my equations, but I like to have some graphics on those. For instance, I would like to explain why I am doing ...
13
votes
1answer
22k views

Multiple columns with images and wrapped text in Beamer

I need a frame looking like the image below in beamer. The 3rd column will have multirow text with an equation. There are no horizontal lines, neither do I need the boxes around each of the columns. ...
13
votes
2answers
2k views

Suppress the processing of all images

I am trying to make a draft by forcing LaTeX to ignore all images. How do I tell LaTeX to suppress all the image filenames (in the \includegraphics command) and just insert an empty box? The problem ...
13
votes
3answers
449 views

What's the best way to draw a square or rectangle with specified dimensions?

How might one define a command \rectangle, invoked via e.g. \rectangle{70cm}{70cm} that produces a black-outline rectangle of the specified dimensions?
13
votes
4answers
3k views

High level macros and environments based on Tikz

I was browsing the tikz examples that I found this wonderful example. The example uses tikz to create a tex environment to produce a framed text. The result looks like this: The underlying process ...
13
votes
3answers
8k views

Using fancyhdr to create an image based header and footer

I'm trying to generate a latex report (via Sweave and R) where the header of the document is an image that covers everything (including the top/left/right page margin) and the footer covers everything ...
13
votes
4answers
18k views

Specifying an absolute Windows path for \includegraphics

I know that includegraphics can be used in Latex to include images into the document, but how can I specify a path for that file? \includegraphics[]{picture-name} Instead of asdd.jpg I want to ...
13
votes
2answers
2k views

Image next to Equation

I am trying to make my first LaTeX file and have been reading syntax for a bit and have not been able to figure one thing out yet and don't seem to find anything about it online so I thought I might ...
13
votes
2answers
24k views

\graphicspath and \include

I am trying to define a central graphics path for my thesis, however, the chapters are included with the \include command and by using \include with \graphicspath, pdflatex complains about it can not ...
13
votes
2answers
10k views

How to make a block transparent for a background image

I use the code \usebackgroundtemplate{ \centering \includegraphics[width=0.5\paperwidth,height=0.5\paperheight]{image.png} } to get a background image in a Beamer/Latex presentation. ...
13
votes
1answer
4k views

TikZ to non-PDF

How do I tell TikZ to output to a standalone image file? Like JPG, PNG, etc? Yes, there is a way to output it to PDF, then do a snapshot. But this is for mathematical-visual comparisons, and I need ...
13
votes
1answer
424 views

Reducing the REAL size of an image (compressing) when using \includegraphics

I know when downscaling images we can just use the scale option. But as far as I know, this doesn't change the size of the overall output (let's say the PDF file). \begin{figure} \centering ...
13
votes
2answers
1k views

Two-Headed Arrow Over Formula

I have a quantified formula. I want to show what happens when the order of quantifiers is reversed. To do this, I like to use a two-headed arrow over the formula, like this: Is it possible? I don't ...
13
votes
2answers
4k views

Clipping a figure to content

Is it possible to clip a figure inserted with \includegraphics to contents? That is, remove all surrounding whitespace.
13
votes
2answers
2k views

Disabling included pictures in Beamer

I am preparing a huge document with tons of pictures and Tikz drawings (based on Beamer package). Is there a command for NOT including all the pictures inserted by \includegraphics? This might speed ...
13
votes
3answers
973 views

Compiling LaTeX straight to an image

This is probably going to sound like a strange request (trust me that there's a good reason for it), but is it possible to have LaTeX compile straight to an image file instead of to something like ...
13
votes
2answers
2k views

Placing picture above \chapter?

Can anyone recommend/provide an example as to include pictures in the chapter headers? Any packages known for this? I have read about fncychap which looks great, but would still require add'l ...
13
votes
1answer
132 views

Which arguments of `\includegraphics` cannot be set beforehand?

From the documentation of the graphicx package: Most of the keyval keys used in the graphicx package may also be set using the command \setkeys provided by the keyval package. For instance, ...
13
votes
3answers
491 views

Need alt text for images in pdf for screen readers

I need the generated PDF to have "alt" text associated with each image so that a screen reader can read the alt text to the visually impaired user. I understand that essentially just including the ...
13
votes
1answer
8k views

How to change white background of an included PDF to transparent

I have an external 100 pages PDF document (not created by pdflatex) that I \includegraphics page-wise into a beamer presentation. The external PDF document employs white as page color, but I need the ...
13
votes
1answer
1k views

Embedding images with an encoding algorithm

Friends, sometimes I had to create a self-contained PHP script. That means the PHP script could have any files within it due to some encoding/decoding algorithm, like Base64. For example, this code is ...
12
votes
5answers
853 views

A grid of images to fill A4 -paper for economic printing with some space for scissors

I want to print a A4 paper full of the same QR image. I want more elegant way to this answer here, yes I can get it working like that but I want to leave just enough space for scissors and no space ...
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?
12
votes
3answers
298 views

\includegraphics: number sign # in filename

I have hundreds of figures with filenames containing "#" to include using \includegraphics, I've tried packages like grffile or currfile, but none of them work. Can anyone suggest a real solution so ...
12
votes
3answers
840 views

Typographic conventions for width of figures in LaTeX data analysis reports

I posted this question on stats.SE, but the consensus was that it was better suited to tex.SE. Context: I've been thinking recently about conventions for figure width in data analysis reports that ...