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

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 ...
8
votes
1answer
9k views

Putting two images next to each other that are 0.5\textwidth wide

I need to put 4 images in one group and put it on the page. All images have the same length and width, however I have problem with placing them by two in a row. I used this code \begin{figure}[h] ...
7
votes
3answers
7k views

I encountered an 'errorUnknown graphics extension: .eps.'

I tried to load an .eps picture, but an error occured, 'errorUnknown graphics extension: .eps.'. Please help me!
2
votes
1answer
4k views

Alignment and scaling of nested subfigures

Update: Read this first I originally asked this question to find out how I would show a large image with magnified portions of the same image next to it. I was doing this by manually cropping copies ...
25
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, ...
24
votes
3answers
28k views

tabular vertical alignment to top?

I'm trying to create a simple tabular with two cells of text and two images below them like so: \begin{tabular}[h]{ c | c} \emph{Normal} & \emph{Cone} \\ ...
15
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?
10
votes
1answer
542 views

Placing graphics inside figure captions

Similar to putting a tikzpicture inside a \caption{}, I would like to insert an external icon inside figure captions, something like: \begin{figure} \caption{text with \includegraphics{icon} ...
6
votes
3answers
13k views

How to insert an image in the front cover of a report?

I'm pretty new in LaTeX and I'm currently writing my BSc Report. Does anyone happen to know how I can insert my uni logo on the front cover of my report? I'm using ...
3
votes
2answers
782 views

Creating cobweb diagrams of some functions with tikz/pstrick etc

I want to create cobweb diagrams with tikz (if that is possible - but reading in the internet about all the things tikz can do, I would believe it is) - or pstricks or some other graphing program - of ...
3
votes
2answers
534 views

includegraphics[page=\pageref… possible? how to set [page=] to a variable?

I'm currently writing a quite complex document with a lot of graphics created using TikZ. Hence I decided to put all graphics into one big file called tikz.tex creating a multiple page PDF with one ...
12
votes
4answers
964 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?
10
votes
4answers
475 views

Check for a valid file before using \includegraphics

I know how to check if a given argument represents an existing file (see this question). But is there also a possibility to check if this file can be included by \includegraphics? What I want to ...
9
votes
1answer
397 views

Background images for code listings

I've been searching around but I can't find any info for adding an image background for my code listing using the listings package. Is there a way to do this?
9
votes
2answers
949 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. ...
8
votes
4answers
13k views

Inserting a .EMF file into a LaTeX document.

I had a question about a file extension I was dealing with after creating a graphics file using the computing software Maxima. When I created the plot I wanted, I saved the file and it saved as a .EMF ...
4
votes
1answer
580 views

Add Table in Header with image

I'm trying to create question paper using Latex. Sample copy of expected header for first page is mentioned below. Note: Image above "First Page Header". Can you please suggest, how can I add table in ...
4
votes
1answer
255 views

Dedicated pages for figures featuring automatic fit-to-page scaling and automatic portrait/landscape selection

There are some books where you have a couple of pages that contain only a picture with no footer, header or anything like that. I wanted to have something similar although I'd like to keep a uniform ...
3
votes
0answers
500 views

Want to add more column on the left side? [closed]

Want to add more column on the left side? \documentclass{article} \usepackage{pgfgantt} \usepackage{rotating} \usepackage[graphicx]{realboxes} \newganttchartelement*{mymilestone}{ ...
13
votes
1answer
132 views

Which arguments of `\includegraphics` cannot be set beforehand?

From the documentation of the graphicx package: Most of the keyval keys used in the graphicx package may also be set using the command \setkeys provided by the keyval package. For instance, ...
8
votes
2answers
284 views

Selecting best file extension for graphics figures pictures

So, lets say I have the chance to choose which file extension I want for my figure/graphic/picture that I want to include in my work. I went over How do I insert an image in LaTeX so it looks good on ...
7
votes
2answers
464 views

Wrap around a logo at bottom right of page

I have a square logo placed on the bottom right of every page (placed using absolute positioning and tikz) and it's fairly big. I want it so that text flows / wraps around the logo - is it possible to ...
6
votes
1answer
2k views

PNG DPI and image size

I created a PNG file (763px by 600px at 72DPI) from a free image. I opened the image in GIMP and changed the DPI to 300 and saved it. After including it in a LaTeX file with ...
6
votes
1answer
432 views

Problem with external graphics and 3D pgfplots

I want to include an external graphics with pgfplots. I tried to follow the instructions of the manual (p45 et seq.) as carefully as possible. But the result is hoorible as hell. Here is the code I ...
6
votes
2answers
576 views

using PDF bookmarks to refer to pages in \includegraphics

If I have a multi-page PDF file with one figure on each page, I can use the \includegraphics[page=123]{foo} command to refer to individual figures (see this question). However, if I have lots of ...
5
votes
1answer
2k views

How to vertically and horizontally centre text and images in (different) table cells?

I have a table which contains images in one column. I would like the first column to have text centred vertically and horizontally. I would like the second column to have text left justified and ...
4
votes
1answer
481 views

How to put image in table of contents?

My Question is similar to question which has not been answered. How can i put image in index page to improve look and feel. How to generate index page for report?
4
votes
1answer
1k views

PDF file containing 3D object is not included correctly with \includegraphics

I have a PDF file, containing a 3D object in PRC format. I try to include this into a LaTeX document to be compiled with pdflatex, with the simple source below: \documentclass{minimal} ...
3
votes
2answers
361 views

LaTeX - place more than one small pictures on top of a big one

I've been trying to put several small images on top of a large one. One way I found to place one picture on top of another one was to use the stackengine package. I couldn't figure how to place ...
3
votes
1answer
3k views

Centre an image, ignoring margins

I have a document with .5cm margins; I want to include a long image which will span the width of the page, ignoring margins. I don't care about the whole image being visible (or which part of the ...
2
votes
4answers
7k views

How to compile a document with EPS images using TeXnicCenter?

I have all my input images in EPS format. I am using TeXnicCenter. When I use latex->dvi output profile, all of the EPS images show up fine. However when I want to take the final output by using ...
49
votes
9answers
5k views

LaTeX/Math jokes [closed]

Lighten up a bit guys. How about the following \documentclass{article} \usepackage{graphicx} \begin{document} If~~$\displaystyle\lim_{x\rightarrow8}\frac{1}{x{-}8}=\infty$ ...
27
votes
2answers
633 views

How to get thumbnails in a list of figures?

To be honest, I'm not sure if I really want this because I can't imagine how exactly it would look. But maybe someone is interested in this, too, or even has already written code to achieve this: it ...
25
votes
2answers
979 views

MATLAB like command box

hello i am trying to set up style for script box. so far i got \begin{script*} >> help \end{script*} working and displaying i want final version to look some what similar to this picture ...
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 ...
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 ...
24
votes
5answers
2k views

Custom “human” shape for tikz

A question with a large mea culpa. I've tried thinking about how I would add this shape and I've come up completely empty. Not strong enough with Tex to even give it a shot. I'm trying to put ...
21
votes
5answers
5k 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. ...
35
votes
1answer
2k views

How to draw spherical geometries with TeX?

I am working in the field of Astrodynamics and have to do many computations using spherical geometry. To visualize some of the concepts I would like to prepare drawings of things like spherical ...
29
votes
2answers
1k views

How to plot a lattice of points on the surface of a torus?

I am doing a report on the Ising model, without going into the complex details of the model, in its two-dimensional form it involves a lattice of points. Which, when periodic boundary conditions ...
21
votes
3answers
4k 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 ...
12
votes
4answers
882 views

Thumbnails of other frames in beamer

I would like to make a presentation with beamer, and have a few frames (at the start or the end) containing thumbnails of the other frames, hyperlinked to them, with something like 4x3 or 5x4 ...
25
votes
1answer
12k 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 ...
24
votes
4answers
851 views

Can fuzzy borders be added to external pictures programmatically?

In my opinion, external pictures are often more pleasing to the eye on a white background when they have fuzzy rather than "sharp" borders. For instance, compare this to that Adding fuzzy ...
21
votes
1answer
36k 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 ?
19
votes
10answers
2k views

What useful web services are out there?

Looking at this question, I wonder what good and useful web services are out there. For example the LaTeX symbol classifier looks interesting. You can draw a symbol with your mouse and get back the ...
14
votes
6answers
5k views

Can pdflatex (or any tex package) automatically rescale included images which have been reduced in size?

I'm writing my thesis in LaTeX, generating it with pdflatex. I have a large number of figures, many of which are bitmaps (as opposed to SVG) in PNG/JPEG format. I've generally created them to be ...
12
votes
2answers
28k views

Move a figure a bit right

I'm trying to place include a pdf figure in a beamer presentation. I'm using \begin{frame}{foo} \includegraphics[scale=0.6]{bar} \end{frame} the figure is always placed a bit too much to the ...
11
votes
3answers
6k views

Problem with a very heavy EPS image - scatter plot too heavy as EPS

Using Stata, I produced a scatter plot of some variables. I saved the image as an EPS file. There are around a 1000 dots in the scatter plot - and this makes the EPS file to be 26MB. I need to use ...
11
votes
8answers
2k views

What do people use for modifying figures?

I usually create figures for my articles in Matlab: various plots of numerical and analytical solutions. One thing that I don't like about it is that the font is different in the figure and in the ...