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

18
votes
2answers
2k views

Use “default” figure if file is missing?

I was recently in charge of organizing all of the references and labels in a very large scientific proposal document. My workflow typically involved compiling the document, seeing a "There were ...
18
votes
3answers
2k views

Get the size that a figure is being rendered

Suppose I have a figure in my LaTeX document: \begin{figure} \includegraphics[scale=0.5]{some_graphic} \end{figure} My question is pretty simple: Is there a way to get the size that some_graphic ...
18
votes
2answers
606 views

Can I place a caption inside of an image?

I've recently seen this the following image in this question: As I was looking for a way to create nice captions (without the "Figure:") for a beamer presentation, I wondered if it was possible to ...
18
votes
3answers
874 views

Typesetting a dictionary containing pictures

I am seeking advice (any ideas) how to typeset a bilingual dictionary that will contain many pictures. The picture below shows the dictionary. Problems: The lines in columns differ. The spaces ...
18
votes
1answer
2k views

What is the advantage of using \includegraphics instead of \pgfimage for ordinary image inclusion?

The TikZ & PGF manual says that ‘LaTeX’s \includegraphics is designed better than pgf’s image mechanism’ and that ‘LaTeX users are encouraged to use \includegraphics to include images.’ But is ...
18
votes
2answers
2k views

Find optimal figure size to fit two images on one page

I often encounter a situation where I would like to fit two or three figures on one page. I define my figures as follows: \begin{figure}[htpb] \centering ...
17
votes
2answers
2k views

Animated plotting with LaTex?

I am not a LaTeX pro, that's why I don't know if the following is possible and how I could do it. I have a graphic (a plot, jpg) and it shows a time series. I know in PowerPoint it is possible that ...
17
votes
1answer
30k 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 ?
17
votes
2answers
213 views

What causes the following gaps?

I have tried to remove any possible white spaces by appending % but the gaps still exist. What causes these gaps? \documentclass[pstricks,border=12pt,12pt]{standalone} \usepackage{graphicx} ...
17
votes
3answers
578 views

How to replace all pictures by white rectangles?

I have a long document (800 pages) with lots of pictures (300 pictures). I have to produce a version of this document without the pictures (for copyright reasons). The solution I have found so far is ...
17
votes
1answer
4k views

Vertical alignment of inline images

Images appearing inline aren't always ideally placed relative to the baseline and risers of the text itself, so I frequently find myself doing manual adjustment, by eye, using \raisebox{}{} with a ...
17
votes
1answer
2k views

Set image to full all available space in Beamer (without overlapping other elements)

I want to have an image take up as much as possible of the content area in a beamer presentation, without overlapping the title, the sidebars, or the footers. How can I achieve this? The code below ...
16
votes
4answers
744 views

The package to visualize graphs

What could be the packages to use for visualization of graphs? I tried Graphviz, but it's very hard to direct how the graphs should be shown. How can I make the graphs represented as is shown in the ...
16
votes
3answers
1k views

How to insert an image that also acts as a link

Can an image be included in TeX so that the resulting PDF is clickable leading to a reference?
16
votes
5answers
1k views

TikZ: Drawing regular hexagons with pictures inside

I need to create some images like these for a board game: In TikZ, can I draw a hexagon and fill it with a hexagonal area cut out of a bitmap? [In case anyone asks why TeX: Each actual hex will ...
16
votes
3answers
5k views

Add logo on each page.

I need to insert a logo on pdflatex supported format on the bottom right of each page. Do you think it's possible?
16
votes
2answers
23k 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 ...
16
votes
3answers
2k views

Includegraphics maximum width

With \includegraphics I can give the width of the resulting image (which would be scaled). How can I give a maximum width of the image? That is, if the original is smaller than X, I'd like to keep ...
16
votes
3answers
6k views

Calligraphy question

Could anyone let me know if this could be done using LaTeX? And if so, how do we do that?
16
votes
3answers
7k views

Can \includegraphics be used to change an image color?

I'm including a number of PDF images in my document using \includegraphics. I'm wondering if there's a way for LaTeX to adjust their color profile, hopefully the same way it can flip images upside ...
16
votes
3answers
9k views

Is there any way to type LaTeX code directly into the text boxes Inkscape?

I use Inkscape on Windows 7 platform. The principle to enter integrals and other mathematical symbols in Inkscape seems that the best thing to do and write them in a LaTeX compiler and cut them in ...
16
votes
1answer
2k views

PGFplot Axis Labels Detaching From Graph

Update: Aug 04, 2013 With the current version of TeXLive 2013, the second MWE below still exhibits the same behavior if the \todo[inline] is commented out after the first run. Furthermore, the ...
15
votes
4answers
6k views

How to make a grid of images?

Is it possible to place 4 images in an 2x2 grid? I don't want to float them, I don't want any captions. Each image should have the same width. Edit: Thanks for all the answers. After trying it out, ...
15
votes
4answers
7k 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 ...
15
votes
3answers
7k views

In a beamer slide highlight a region of an image with a rectangle overlay

I have a slide with a figure in it. I want to draw a rounded corner rectangle overtop part of a figure to highlight that section. Bonus points if you can draw two rounded rectangles as overlays ...
15
votes
2answers
21k views

Insert image and list inside a table

I am trying to add both an image and list inside a table but I face various problems. As shown in the picture, the image is above the first horizontal line and also the lists are not properly ...
15
votes
3answers
16k views

How can I add more than one logo to my beamer presentation?

My institute requires to put three logos to all presentations. How can I add more than one logo to my beamer presentation?
15
votes
2answers
2k views

Generating dozens of graphs

I am revising old lecture notes on microeconomics and they contain a lot of graphs. As I am rewriting it in LaTeX, I would like to recreate the old graphs, but I need to select the right tool for the ...
15
votes
1answer
4k views

Change color in finished pdf file

Suppose I have a finished PDF file, say a figure generated from some software, where the ink is black. I would include it in a document. Suppose I want to include it in a beamer presentation with ...
15
votes
3answers
3k views

Image with axis

I need to plot some data in a file (10000 records of 2 points each one) but PGFPlots is very very slow rendering it. So I'm trying to use MatLab to plot the data, capture the image without axis and in ...
15
votes
1answer
1k views

Surface of Revolution

how to draw using surface of revolution tikz or pgfplots? \documentclass{article} \usepackage{tikz,pgfplots} \begin{document} \begin{tikzpicture} \end{tikzpicture} \end{document} I am not able to ...
15
votes
2answers
1k views

High precision \includegraphics for LaTeX

\includegraphics produces boxes whose witdth and height are about 0.5pt off: \usepackage{graphicx} ... \setbox0\hbox{\includegraphics[width=\textwidth,height=\textheight]{mypic}} \showthe\textheight ...
15
votes
2answers
745 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 ...
15
votes
3answers
29k views

Syntax similar to \centering for right and left?

For images we can use \centering is there anything to position the image to right side or left side of the page.
14
votes
6answers
3k views

Insert a full page image

How can I insert a full page image? No blanck space left in the page. Extra bonus: how to add some text over the image.
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
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
2answers
11k views

How to use \graphicspath?

I am using MikTex 2.9 and TeXstudio for my TeX preparation. I want to give a path to my figures folder containing all the figures, plots etc. required for my work. I used \graphicspath to give the ...
14
votes
3answers
2k views

Create list of all external files used by master LaTeX document?

Is there an easy way to create a list of all external files (complete path) which are used by a LaTeX document (and its "sub-documents") by \input \include \includegraphics ? (may I have forgotten ...
14
votes
6answers
8k 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
4answers
267 views

Crop jpeg into circular tikz node

\documentclass[demo]{article} \usepackage{graphicx} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[circle,draw,inner sep=2cm]{\includegraphics{myimage.jpg}}; \end{tikzpicture} ...
14
votes
3answers
11k 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 ...
14
votes
3answers
37k views

How to add a gif file to my LaTeX file? [duplicate]

Possible Duplicate: 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 ...
14
votes
2answers
1k 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
361 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
380 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

Transparent foreground watermark

As a follow-up to Add watermark that overlays the images, I'd like to have a transparent foreground watermark that doesn't render the underlying content, i.e. text and images, illegible. Is that ...
14
votes
3answers
3k views

Can I insert an image into an equation?

I would like to use a small image in an equation, where a symbol like \alpha might otherwise be. Is there a nice way to do this?
14
votes
2answers
5k views

Vertically center text and image in one line

I need to place an icon and text behind each other on one line. The icon is higher than a single text line, and would like to have the icon and text center aligned. How do I do that?
14
votes
1answer
275 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} }