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

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
308 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
899 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
228 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
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 ...
7
votes
3answers
12k 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} ...
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 ...
19
votes
4answers
612 views

Shear transform a “box”

Using the graphicx package, I can make any arbitrary box rotated using the \rotatebox{...}{...} command. Is there a comparable command in any package that lets me shear a box, i.e., producing a kind ...
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
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
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 ...
12
votes
2answers
385 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
9k 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.
11
votes
3answers
517 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?
10
votes
3answers
511 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 ...
9
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 ...
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
1k 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
731 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 ...
11
votes
3answers
814 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 ...
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 ...
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
305 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 ...
9
votes
4answers
3k views

Micro-graphics inline in text

Can I insert a graphic in-line in a sentence? Use case: I'm writing a manual that involves navigating the Windows Start Menu. I would like to insert a little graphic of the start menu in-line in ...
7
votes
1answer
816 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 ...
5
votes
1answer
249 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
671 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
788 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
3k 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
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 ...
10
votes
5answers
440 views

How to fill the limits of the two curves?

I want to fill the limits of the two curves (as shown). This is my code \documentclass[10pt]{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \pagestyle{empty} \begin{document} ...
10
votes
1answer
319 views

How to know the number of pages in a PDF file?

I use graphicx to include pages of a PDF file. I want to know in LaTeX how many pages are in the file. How to do this?
9
votes
1answer
128 views

Create a document looping through images

I have about a hundred images named 001.png to 123.png. I want to create a document which includes each image in center of a page. i.e. a 123 page document with each image on a single page. I know ...
9
votes
1answer
229 views

How can I create a chapter with graphics only divided into different sections?

I'm trying to create a chapter with pictures only, but keep running into troubles. The chapter is an appendix, where only some graphics should be displayed, placed in different sections. I don't need ...
8
votes
3answers
974 views

Vector graphics in LaTeX

I need to add some vector graphics to my LaTeX files. I would like to end up with good looking wireframes, such as in Hatcher's book "Algebraic Topology" (for an example take a look here). Which tools ...
8
votes
2answers
2k views

Equivalent of CSS “float:left;” for images

What I am try here is have the image on the left side and it should be surrounded by text on the right and bottom side. For example how can below image_3.png float to left? \usepackage{lipsum} ...
7
votes
2answers
3k views

How to include picture in original size into document page on center?

I have a picture that I'd like to include in the center of the page. I don't want the picture to scale. So I tried this (among a lot of other variations): \begin{figure}[htb] \centering ...
5
votes
1answer
636 views

TikZ Region bounded by points

I have a set of points. I would like to "enclose" the points by a region. Since a picture is worth a thousand words: The dots are the points I want to enclose. I want the ability to control the ...
5
votes
1answer
2k views

Externalising TikZ pictures using XeTeX

I'm trying to use TikZ's external library with XeTeX, for example, and I'm running into some issues. Having set external/system call={xelatex \tikzexternalcheckshellescape -halt-on-error ...
4
votes
3answers
1k views

Resize images to half of text width only if too big for page margin

I want the images I'm using that exceed the page's text width to be scaled down to half the text width. Images that aren't wider than the text width don't need to be scaled. I have one markdown ...
4
votes
1answer
1k views

Draft mode after include statements

Normally when I have a document with graphicx that I'd like to see rendered in draft mode I use: \usepackage[draft]{graphicx} However, assuming I've already called the line: \usepackage{graphicx} ...