{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
28k 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 ...
18
votes
5answers
2k views

Looking for an efficient way to create polished scientific graphics

I’m looking for a professional and efficient way to create scientific graphics. There are basically two types of graphics I want to create (and maybe not a joint approach works for both): Plots of ...
15
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
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} ...
5
votes
1answer
11k views

Transparent image background in beamer

I want to add a background image in my beamer presentation. The thing is that when I use \usebackgroundtemplate{ \includegraphics[width=\paperwidth, height=\paperheight]{cern-logo.jpg} } in my ...
21
votes
1answer
1k views

Clipping support in XeTeX

In pdflatex I'm used to clip graphics using something like this: \includegraphics[trim=14mm 0mm 14mm 0mm,clip,width=1.2cm]{image.jpg} When I attempt this in XeLaTeX, no clipping occurs and I get a ...
15
votes
1answer
2k views

Turning off and on images in figures

Is it possible to prevent the contents of a figure from being rendered? I have a large book document, and to speed up compiling while working on a draft, I would like to have some way of ignoring the ...
14
votes
2answers
402 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 ...
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 ...
12
votes
2answers
345 views

Basic geometric shapes, sections, shading

Two questions really ... (fishing for lots of opinions here) Is there a definitive guide that most folks agree is the best place to come up to speed on how to make pictures in the tikz world, and in ...
11
votes
4answers
5k views

LaTeX is putting a border around my figures

I'm trying to embed a few images in a figure, but LaTeX keeps putting a border around three of the sides. Is there any way for me to keep it from adding this border? The code that I used to create ...
9
votes
2answers
985 views

How to add a scalebar to an image [duplicate]

I'm trying to figure out how best to add scale bars to my images, such as in these wondeful snowflake images (the full size image is a bit large, but it's the best example of what I'm trying to do): ...
8
votes
1answer
250 views

How to define a macro that uses image width and height to define a variable for later use

Ok, the title might be a bit cryptic and my question is a bit lengthy, so please bear with me. What I want to do is: I have two images with different aspect ratios that I want to place next to each ...
8
votes
3answers
13k views

How to vertically align 3 images with subfigure?

This code: \begin{figure*}[t] \begin{center} \begin{subfigure}[a]{0.3\textwidth} \label{im:device_front} \includegraphics[width=\textwidth]{images/bsn_side} ...
8
votes
4answers
3k views

Included png appears too big in PDF

I'm a beginner with LaTex and writing an article in it (letter-sized). WinEDT and MikTeX (versions seen in the log). I have a PNG chart (obtained from R/ggplot2) which is 471 x 335 pixels and which ...
7
votes
2answers
1k views

moderncv - filesize of pdf too big

I managed to work out how to create a job application that is entirely written in the moderncv style. I use the moderncv class itself for my CV and the attachments (making each document a section with ...
6
votes
1answer
4k views

3 or 4 tikz figures side-by-side

How could I have a figure with 3 or 4 subfigures side-by-side in the same row? I've tried it once but the best I had was only 2 subfigures side-by-side in the same row. My code so far is: ...
20
votes
3answers
2k views

Changing implementation of 'draft' option

In my lab we frequently make several drafts of documents before a final version. We will pass these draft version around for input from many people. It would be convenient to use the 'draft' option ...
16
votes
3answers
2k 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?
15
votes
1answer
5k 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 ...
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 ...
12
votes
2answers
434 views

How to improve color consistency of bitmap pictures from native format to target pdf file?

For the first time I am concerned about proper rendition of pictures for the draft of a document with artistic content. I use the basic macro below to embed the pictures. The pictures are in .jpg ...
12
votes
2answers
4k views

Changing the working directory when including files in a subdirectory

I'm working on a mathematics magazine that involves multiple articles from different authors. I would like to give each article a sub-directory in which I can store all the relevant files - .tex, ...
12
votes
2answers
10k views

Put an image header in \documentclass{letter}

Is there is any possibility to put an image header in a letter class document? I can put a footer image and an image for my signature, but I want to put an image on the top of the letter.
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 ...
11
votes
3answers
541 views

How to trim / clip / crop graphics without trial and error?

Often I include graphics with the trim option. Everytime I have to start a trial and error search for the right values. Is it possible to do it more straight forward?
11
votes
1answer
6k views

Beamer background image centered

I'm trying to use an image as a background for Beamer presentation according to this post. However, I do not want the image spanning the entire background. Thus, I'm doing something like: ...
10
votes
2answers
2k views

How to add a photo to moderncv style banking

I'm writing this post because I'm trying to let appear the photo on the moderncv using the banking style, but from default isn't possible. So I would to know how to show the photo using the banking ...
10
votes
1answer
1k views

How to Graph Floor/Ceiling Functions in LaTeX (PGFPlots)

I am trying to make a graph of some floor/ceiling functions for examplep the floor of 3x+2 like this: http://www.wolframalpha.com/input/?i=graph+of+floor%283x%2B2%29#=. However, I searched through ...
10
votes
3answers
545 views

Rounded box with image and text

I'm trying to create a rounded box with both text and image. The desired result is as this: Where the image is rounded at the left edges. I have managed everything except the the image part using ...
8
votes
3answers
3k views

Best practice for control flow charts

I wanted to plot a flow chart graph which looks similar to this diagram: that comes from this source. Which package would be best for that? I don't want to use pstricks
5
votes
1answer
2k views

How to place an image over a _full_ (including bleed) page in memoir?

I need to include a jpg into my document created with memoir as a full separate page. The jpg is colored and has 3 mm bleed out into the stock paper. A bit naively I thought I could just use negative ...
12
votes
2answers
2k views

How to insert code and graphic in textbox

I want to put a graphic and a little linux bash code in a textbox, like the picture blow... with the follow in problem: all in a textbox with yellow backgroud left part is a graphic (a finger)... ...
11
votes
3answers
2k views

Print frames rather than boxes with demo/draft version of graphics/graphicx

I recently switched to demo such that I could compile my .tex file without needing the actual image files. Now, instead of the image there is a black box. Is there anyway to get a black border such ...
11
votes
1answer
749 views

Images off the page in multicols environment

Before my question, some background information. I’ve created an algorithm (not latex) which will generate a catalog for a collection of books dynamically. A user supplies information to query an SQL ...
9
votes
1answer
610 views

How to add a gradient fade-out effect to an image?

I am working on a presentation in beamer and would like to put a logo in the background of the title page with a gradient fade-out effect, similar to the image below. The logo is in PDF format and is ...
9
votes
2answers
6k views

Landscape caption for a rotated figure in a portrait page

I've managed to rotate an image 90 degrees to be as if in landscape mode, but I still need to change location and rotation of the caption to match the image's orientation, while keeping the page in ...
9
votes
3answers
308 views

Inserting an image properly in a table

I'd like to insert those lines that from "Foo" point to the four different rows in the table. I've tries inserting an image but it doesn't come out right (please ignore the bad quality of the ...
7
votes
1answer
867 views

Tikz: Avoiding line segments in snake path

I am using tikz to draw Feynman diagrams, and I learned how to draw a curved snake path. The problem is that in general line segments are present (I'd like to avoid them). I found a couple of post ...
7
votes
1answer
3k views

\includegraphics forces new page

When I include a PDF diagram, it forces a new page, so I have one blank page and then this diagram, can somebody help me please? I need to remove that blank page. My document looks like this ...
6
votes
5answers
243 views

How to set actual width for a rounded corners image using TikZ?

This question is closely related to LaTeX Photo With Rounded Corners. Suppose I want to put a rounded corners image in a marginnote, so the image fits the \linewidth of the margin. If I use the ...
5
votes
1answer
258 views

Drawing a grid on each image inside the array of images

Please see what I have written,when I need individual grid on each of picture inside my figure-array. In contrast to previews question Drawing a grid on array of images. Question now is why I can't ...
5
votes
2answers
825 views

4 images on a frame appearing each a a time - fine tuning beamer

I have a figure which consists of 4 plots, Full figure here, and I want to have them appearing one by-one in the presentation (from left to right, top to bottom). I managed to do this by including ...
4
votes
4answers
6k views

can't \includegraphics eps files anymore with xelatex (used to work fine)

I've just noticed that (most likely caused by upgrading to opensuse 11.3 with TexLive 2009) whenever I try to \includegraphics{filename.eps} an eps file, I get the error: Unable to load picture or ...
3
votes
2answers
954 views

Set the size of pgf picture?

I have a pgf picture which I insert with: \input{m1.pgf} But the image is too big. Instead of regenerating a smaller image, I'd rather take advantage of vector graphics, and have XeLaTeX scale it. ...
3
votes
1answer
4k views

Beamer: Transparent AND centered background image on intro slide

I know this is similar to other questions. Other answers address either: Adding a transparent image Centering an image but I cannot find an answer with both. With previous answers I can ...
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 ...
12
votes
4answers
2k views

Include Adobe Illustrator files (ai) with XeTeX

Adobe Illustrator files are PDF compatible. That is a regular PDF reader, ex. Sumatra-pdf, can open and view them. I was hoping it would be possible to have xetex (with xelatex) and graphicx to ...
12
votes
2answers
3k views

Conflict between color, graphicx and libertine

Compiling the following with pdflatex (TeXLive 2009/Debian on Ubuntu 10.04 "Lucid Lynx") \documentclass{article} \usepackage{ifpdf} \ifpdf \usepackage[T1]{fontenc} \usepackage{libertine} % ...
11
votes
3answers
4k views

Using LaTeX to draw time series graphs and histograms

I have some graphs I drew in maple, some simple line plots and histograms. Now I'd like to redraw these graphs in LaTeX, so I can do fancy stuff in beamer like have one histogram appear, and then ...