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

63
votes
2answers
24k views

How to include graphics with spaces in their path?

I want to import graphics into my main input file using the macro \includegraphics. It does not work if the filename contains spaces. Include image with spaces in path directory to be processed with ...
4
votes
1answer
2k views

Transparent shapes in Matlab to TeX when using Matlab Fill

I want to export figures with transparent shapes in Matlab to TeX. For the following code, the triangle will appear transparent in Matlab but will be solid blue when I generate the tex file using ...
12
votes
1answer
388 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?
6
votes
2answers
2k views

Image Cover with LaTeX (on WinEdt)

Any thoughts on how to put a full image (covering whole page) as a cover for a book I am writing on WinEdt (LaTeX)?
8
votes
2answers
4k views

2-dimensional gradient using PGF

I'd like to draw a square with the fill color darkening as one goes up or as one goes to the right. So, the square should be darkest in the upper-right corner and lightest in the lower-left corner. ...
1
vote
2answers
476 views

Including eps files written on Xara

I'm trying to submit a preprint to arXiv, and the compiler there fails to convert it to PDF (although WinEdt at home has no complaints). Moreover, the log file didn't provide me with meaningful ...
3
votes
2answers
157 views

Adding raster images to a document increases the output size unproportionally

I have a document which under normal conditions compiles into a reasonably-sized output - 1 MB PDF and 2 MB PS. I need to add two raster images, also reasonably-sized - About 150 KB JPG each. I ...
74
votes
4answers
32k views

How to expand TeX's “main memory size”? (pgfplots memory overload)

I'm compiling one pretty simple LaTeX file with few dozen of pgfplots. Now, I can compile part by part, but am unable to compile it all at once. I really need good precision for all those plots (noise ...
12
votes
4answers
1k views

What causes latex.exe to be unable to import *.jpg, *.png, *.pdf directly?

Internally, what causes latex.exe to be unable to import *.jpg, *.png, *.pdf directly?
63
votes
1answer
36k views

pdflatex, \includegraphics, and multi-page PDF files

I have a PDF file with multiple figures; each figure is a separate page in the PDF file. I am using pdflatex, and I would like to use \includegraphics or equivalent to include some of the figures. ...
0
votes
2answers
1k views

Why don't my images show up?

I am using LyX to create my documents. I then export them to plain LaTeX and use XeLaTeX to create a PDF output. My images show up in the LyX document but not in the PDF output. LyX generates this ...
0
votes
1answer
539 views

strange includegraphics behaviour Windows

i have problem including graphics in a document...i have the following structure document.tex tex/chap1.tex tex/chap2.tex img/image1.png img/image2.png I have traying almost anything to specify the ...
18
votes
3answers
7k 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?
27
votes
3answers
71k views

How to add a gif file to my LaTeX file?

Related: 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 subsequent pdf ...
0
votes
1answer
148 views

KDE Template Header not displaying

The KDE template won't display the .png image file. I haven't changed anything from the stock settings. I wanted to give the template a whirl, but all I see is a label called oxygen-header for a ...
59
votes
6answers
43k views

How to vertically center two images next to each other?

How can I vertically center two images next to one another? Here is some example code: \begin{minipage}[h]{6in} \centering \vspace*{.3in}~\\ \includegraphics[height=1.25in]{fig1.pdf} ...
3
votes
2answers
712 views

Generate line hash scale

I want to recreate the original NASA TLX Question from here, but how do you generate the hash scale?
11
votes
1answer
846 views

Driver specification for hyperref and graphicx

When using hyperref and compiling via pdflatex or dvips, I do not need to specify the driver with \usepackage{hyperref}. However when compiling via dvipdfm this fails and I have to specify the driver ...
3
votes
3answers
733 views

Astrology Charts in LaTeX

Is anyone here using LaTeX to typeset astrology charts? Would pgf/tikz be an appropriate tool to use for that purpose?
30
votes
1answer
10k views

Insert graphic at precise place on a page

I would like to put a small graphic in the bottom right corner of a the title page of an article. Is there a way to specify a precise location for a graphic on a page (that has text on it)? I've ...
3
votes
1answer
2k views

Latex ignoring vspace. How do I get these two images on the same page?

I have the following to insert two images into a latex document: \begin{center} \hspace*{-1in} \includegraphics[width=8.5in]{rmse.pdf} \vspace*{-2in} \hspace*{-1in} ...
3
votes
2answers
1k views

Supplying string parameters to Sweave document

This must be a simple question but I don't figure out how I can do it. I would like to produce a pdf report using Sweave. And actually, many many reports. I shortened and simplified the sweave code ...
16
votes
1answer
3k 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 ...
3
votes
2answers
2k views

How to print low resolution (96dpi) raster images correctly?

Possible duplicate of this. But this is a detailed and specific sub problem of that topic. I know I should use vector images whenever possible, or 300dpi images. Since I am dealing with computer ...
4
votes
1answer
2k views

Change float background colour

Background Including images within Algorithm floats. The images are trimmed to size automatically by a batch file. Problem In the following portion of the PDF, Listing 1.1 has a lot of space to the ...
3
votes
2answers
677 views

How can I force an image and its caption to be on the same page?

I am using the caption package, now I have one problem: In one case an image is placed at the bottom of one page, while its caption is placed on the top of the following page. In this case I would ...
1
vote
1answer
561 views

Apply a vertical rule beside graphics within Algorithm floats

Background Using LyX to write a book. The source code listings shown in the book are graphics. The graphics should have a vertical rule beside them. But only graphics that are embedded within an ...
4
votes
1answer
3k views

Override \centering to left justify an image

Background Dozens of source code snippets inserted into a document as images inside of Algorithm floats. Other images are screen captures, inserted as Graphics floats, to make a distinction. All ...
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 ...
8
votes
2answers
4k views

TikZ: Cropping the Bounding Box

A graphing program I use has support for TikZ output. It generates a \begin{tikzpicture} ... \end{tikzpicture} which I can include in my document. The problem, however, is that it appears to insert a ...
9
votes
2answers
861 views

How can I layout images side by side to allow comparison?

I am very very new to TeX/LaTeX, I am writing my first document. So far, I love the way it shows everything. The learning curve is steep though. I have images that needs to be compared, so they must ...
16
votes
4answers
4k 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. ...
13
votes
4answers
11k views

Scale (resize) large images (graphics) that exceed page margins

Background A large number of screen captures have been scaled 300% at 288dpi. They appear correctly when embedded in OpenOffice, but not LyX. Problem Images that do not extend beyond the margins ...
3
votes
3answers
1k views

Vertical alignment in the tables with pictures (epsfig)

I have a table with two columns. The column on the left contains a picture (\epsfig) the column on the right contains the description. The description starts on the same height as the lower end of ...
6
votes
1answer
949 views

Is there any cryptographic-related graphics drawing package?

For example, fig 4.7, 4.8 shows in http://williamstallings.com/Extras/Security-Notes/lectures/blockA.html
35
votes
2answers
32k views

How to include PDF pages without a newpage before the first page?

I am using pdfpages which works quite well. But this time, I want to include a 5 page pdf and the first page should be scaled down a bit such that above the first page is enough space for a ...
3
votes
1answer
2k views

XeLaTeX portrait jpg photo insertion

I'm using XeLaTeX to produce photobooks. Searching for info on placing portrait jpg's on a page with adjacent column text similar to published photo books. Have no Problem with landscape mode with ...
5
votes
4answers
3k views

\includegraphics and \includepdf both remove all copy (text) from my (R outputted) pdf graphs, using pdfTeX

I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) (format=pdflatex 2010.8.30) in TexMaker 2.1 on Mac OSX. I installed the whatever latex packages using the "easier" method at ...
37
votes
12answers
38k views

How to avoid large margins around Matlab plot in PDF

I am preparing image files to be included in a latex document. The image file is generated by printing a Matlab plot. If I print the plot in eps format, the content of the eps file is fully occupied ...
19
votes
3answers
1k views

Producing quality figure and graphics - which Edward Tufte book is the most influential/interesting for TeX users?

I know this might be far fetched as a topic on this site, but I don't see where else it would belong (statistics SE? meh, I think we are more oriented toward producing clean and readable stuff than ...
55
votes
3answers
9k views

Can I use an image located on the web in a LaTeX document?

I have tried \includegraphics{http://www.site.com/path/to/figure.png} But this returns the error ERROR: Package pdftex.def Error: File `http://www.website.com/path/to/figure.png' not found. ...
12
votes
3answers
1k 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 ...
16
votes
5answers
7k 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?
10
votes
1answer
2k views

Embedding MetaPost in LaTeX document

I have problem using the emp package in TeXlive 2010. When I try to use it with empcmds it prints contents to output. If I use emp it parser fails after first character. Also - how should I import ...
20
votes
4answers
2k views

How to render Terminal Output in LaTeX

Is there a package which allows me to render (n)curses based output (VT100, ANSI ...) directly in LaTeX (including colors if possible)? I'm currently making screenshots and include the PNGs via ...
27
votes
12answers
2k views

Competition time: Design an error page!

Or a 404 or the "captcha" image. To go with our amazing new design, we need some amazing pictures to go on the error page, the 404 page, and the captcha page. They should have a lighthearted theme, ...
12
votes
2answers
6k views

Path From and To Same Node in tikz Flowchart

I'm working on creating flowcharts directly inside LaTeX documents using tikz. I am admittedly an extreme novice with tikz, although I have quite a bit of experience using LaTeX. My problem is when ...
14
votes
5answers
8k views

Convert gif image to png on the fly

I am using pdflatex on linux and attempting to convert gif to png. I can run scripts to find out the image attributes and even and convert the files supplied from a folder but I can not write back to ...
13
votes
6answers
7k views

A good tool to make electronic schematics and export them vectorially?

I have to make a relative simple diagram and import it to latex vectorially. What would you recommend me to do this? This question might not be best asked here, but I suspect a lot of you have ...
9
votes
2answers
1k views

How to use the results of `raw output` to create a smooth plot

As by my previous question on plotting an implicit curve I've got some output. But as you can see it is not quite what it should be (apart from your browser's downscaling by a factor 2 of course. ...