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

4
votes
2answers
271 views

Automate width determination for included graphics

For including graphics such as Matlab plots, I use \includegraphics from the graphicx package. Every time, I have to decide on some width and pass e.g. [width=180mm] to the inclusion command. This ...
24
votes
3answers
5k views

Can one replace bullet points with graphics?

Is it possible to replace bullet points in an itemize environment with graphics? I can find answers about replacing bullet points with other symbols, but in all the examples I can find, these symbols ...
3
votes
1answer
3k views

Grid to facilitate positioning of objects with \put in beamer

In presentations with the beamerpackage I use \put a lot to place graphic objects like this: \newcommand{\putat}[3]{\begin{picture}(0,0)(0,0)\put(#1,#2){#3}\end{picture}} % just a shorthand ...
35
votes
3answers
3k 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 ...
3
votes
1answer
309 views

How can I pass a shortcut to a `.pdf` to `\includegraphics{}`?

I'd like to pass shortcuts to \includegraphics. I have the following project structure /project/report/main.tex /project/report/myplotshortcut /project/code/r/output/myplot.pdf And file: % ...
4
votes
2answers
4k views

Resize large images that exceed page margin whilst respecting existing scale

The solution posted here Scale (resize) large images (graphics) that exceed page margins works great. Just to summarise, Dave Jarvis suggested \usepackage{graphicx} % Determine if the image is too ...
6
votes
1answer
2k views

Can I insert a vertically centered image in math mode?

In Mikael Öhman's answer to this question, he provides some code for placing an image in math mode as a symbol using the \mathord declaration. I can define a new command in the preamble using this, ...
7
votes
3answers
4k views

How do I include eps files using XeLaTeX?

According to everything I can find on Google, eps files in xelatex should work out-of-the-box. But that's not what I'm seeing (using TeX Live 2010 on Arch Linux). Consider the following simple input: ...
3
votes
1answer
215 views

Driver-dependent invocations of the graphix package?

The LaTeX General Guidelines show a conditional invocation of the graphicx package. I wanted to test this out. I did the following: Created a main.tex in which I LEFT OUT the big, complicated, ...
8
votes
1answer
2k views

How to switch from using color graphics to grayscale graphics?

What is the easiest way to switch from a document with color graphics to one with grayscale graphics? I have various fig/ directories that contain my color graphics, and I already have corresponding ...
1
vote
3answers
505 views

Position and scaling with graphicx package

In the good ol' days I drew figures with xfig and generated LaTeX source to directly include in my papers. But I now find powerpoint to be a faster drawing tool and sufficient for most of my needs. ...
31
votes
2answers
17k views

Automatically scale big and small graphics for beamer presentations

For the next few semesters I'll be making a lot of beamer presentations with a lot slides that are just a frame title and a figure. I am trying to make a command to make a lot faster to code and ...
115
votes
10answers
26k 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 ...
4
votes
1answer
601 views

Are there any Windows-based Graphical editors for \pgfdeclareshape

On TeXample, Martin Scharrer contributed an excellent d-flipflop example that simplifies circuit drawing to a two step-process of Place the part: % Place FFs \foreach \m in {0,...,\N} ...
4
votes
1answer
224 views

Problem with layout after including pictures

I can't resolve the problem with including pictures. When I add a picture by using \includegraphics my text doesn't flush to the bottom (as it should) but it move up. It happens especially when I add ...
5
votes
1answer
2k views

PDF inclusion: found PDF version <1.5>, but at most version <1. 4> allowed

How do I get rid of this error: PDF inclusion: found PDF version <1.5>, but at most version <1. 4> allowed I tried putting \pdfoptionpdfminorversion=5 after my preamble, but nothing ...
20
votes
2answers
21k views

Aligning image and text on top, with minipages

I have an image (on the left) and a block of text (on the right), and I would like both to be aligned on their top. I am trying to use minipages for that: \documentclass{article} \begin{document} ...
10
votes
1answer
4k views

Insert a TikZ picture from an external file

I tried to search a bit, but i guess my poor English prevented me from finding the answer. I made a few tikz pictures that i want to use in my report. I made the tikz pictures in separate tex files ...
12
votes
2answers
4k 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} % ...
0
votes
0answers
428 views

includegraphics - inserting png image leads to blank picture [duplicate]

Possible Duplicate: Why does the image not appear? I am in a bit of a predicament as I try to include two PNG formatted pictures in one of my homework exercises. The following code has ...
3
votes
2answers
3k views

Desired resolution of images for a Beamer presentation

I am working on a Beamer presentation for less-technically-inclined audience, so I want to use many visual aids, pictures, stock photos, etc. Unfortunately, these are mostly raster images, not vector ...
5
votes
3answers
9k views

MikTex error for PNG images when trying to produce DVI

I have a tex file with \includegraphic elements for some PNG images. I use MikTeX on Windows and the PDF is fine. Now, I need a DVI so I tried using: \pdfoutput=0 This creates a DVI, but only after I ...
15
votes
3answers
4k 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?
22
votes
5answers
6k views

LaTeX for Graph Theory?

What should I use to make Graphs for Graph Theory in LaTeX? I have seen a lot of stuff about tkz (specifically tkz-berge), but I'm running Ubuntu and there is no package for it, that I can tell. ...
5
votes
2answers
1k views

Problems with pictures in multicol

I am writing a short article for a magazin and want to have a two-column text. Since the header is supposed to be centered, I decided to use the multicol-package. This is my header: ...
11
votes
1answer
6k views

Why does the image not appear?

I'm using IEEEtran to format an article, and I wanted to include an image. I included the graphicx and hyperref packages, and used the following code, like normal, to include an image. ...
17
votes
4answers
15k 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 ...
20
votes
4answers
7k views

Quickest way to include graphics

Whenever I make a presentation with LaTeX, it takes me a long time to include the graphics in the way I want them to look. I start with \includegraphics{foo.jpg}, run pdflatex to see what it looks ...
6
votes
1answer
2k views

Apply gradient (shading) background to algorithm listing

Background A number of source files are included within floating algorithm boxes. The source files are PNG images with a transparent background. The document is edited using LyX. Problem The source ...
96
votes
5answers
18k 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 ...
7
votes
2answers
4k 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 ...
10
votes
2answers
701 views

Using an image as a table

I have an image containing tabular data and would not like to convert this to a real table. What I do want is for this image to have a proper caption and be included in the listoftables. Is it ...
17
votes
3answers
40k 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] ...
7
votes
5answers
2k views

On Ubuntu 10.10 with texlive-full installed, xelatex is rotating my figures 90 degrees counterclockwise

I am using the latest ubuntu with the texlive-full package. When I do a simple \includegraphics like this: \begin{figure}[h] \centering \rotatebox{-90}{\includegraphics[width=8cm]{problem1}} ...
12
votes
2answers
965 views

(How) Can I create picture effects with TeX and Friends?

I'm looking for a way to create subtle picture effects in beamer. I've got a few illustrations with a background that contrast offensively against a white background, and look completely out-of-place ...
5
votes
1answer
2k 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} ...
249
votes
5answers
48k 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 ...
5
votes
1answer
633 views

Figure in the Chapter

How can I put an image together with the chapter style in scrbook class (chaptername, chapternumber capitalized - left aligned -, and a figure above them, centered, like the scheme below)? ...
3
votes
1answer
510 views

Why does my graphics flows out of the box?

I'm new to LaTeX, and have been struggling with what I think should be simple. I want to create a box with a blue border and yellow interior. Inside of the box should be a graphic on the left, and ...
30
votes
1answer
55k views

Beamer text and image on the same slide

I am new to beamer and LaTex itself. Right now I want to make a simple slide with image on the right and text and sidebar (of Hannover theme) on the left. I cannot figure out how to do that. Any ...
11
votes
5answers
6k views

Are there any packages for creating charts?

I'm looking for a package in which you can create nice bar and/or line charts in LaTeX. Currently I'm plotting the charts in Calc (OpenOffice), export it to a PDF document, crop it and then including ...
2
votes
1answer
492 views

MetaUML — generate image as output

I'm planning to use MetaUML to automatically generate UML diagrams (as images) and display them. I found that there is an utility, mptopdf, that helps generating the output as a PDF file: mptopdf ...
9
votes
3answers
4k 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
1
vote
1answer
356 views

On-Screen resolution deteriorates in pdflatex if figures are included

When I put a figure into my document (doesn't have to be bitmap, PS does the trick as well, I think the distinction is color vs no color), the on-screen resolution of the text changes at the default ...
4
votes
2answers
10k views

Add a textbox overtop an image in a beamer slide

I have a slide with a figure in it. I want show a vertically and horizontally centered (relative to the image if possible) text box overtop of it as an overlay which will contain a few lines of text. ...
20
votes
3answers
10k 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 ...
1
vote
2answers
171 views

How to create minimum capacity .ps file

I have some images in my tex file. I had those images in .ps extension. When I create .ps file its capacity is more that 5mb. But I had to upload less that 1mb .ps file. So how can I do that ?
14
votes
2answers
5k views

Clipping a figure to content

Is it possible to clip a figure inserted with \includegraphics to contents? That is, remove all surrounding whitespace.
1
vote
1answer
1k views

How to make a PS file form a TeX document with graphics ?

Could someone explain me how to generate a PS file from a TeX file. I have included some graphics in my TeX file. I used graphicx package. I am using TeXLive Thank you.
26
votes
3answers
58k views

How to center large figures in LaTeX and how to fix short justified lines?

I have 2 questions: I am trying to center a figure in LaTeX, but above a certain size it just starts at the left margin and goes beyond the right. How can I make it actually center, so the amount it ...