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

11
votes
1answer
894 views

Embedding images with an encoding algorithm

Friends, sometimes I had to create a self-contained PHP script. That means the PHP script could have any files within it due to some encoding/decoding algorithm, like Base64. For example, this code is ...
11
votes
1answer
578 views

Resulting document size when Including a graphics file multiple times - pgf vs. graphicx

In his answer to the question Tikz: using external images as building blocks. Stefan Kottwitz says: The pgf way may be preferred if the document size matters and graphics are multiply used or if ...
11
votes
1answer
442 views

Exclude images for printing pdf

I have a document that has images that are very, very dark. As such, they should not be printed when the user goes to print. Somebody I'm working with loves to print, and they use a lot of toner ...
11
votes
2answers
1k views

Ploting a function using mplib in lualatex

This question asked about ways to generate a nice function graph in LaTeX. There are several great answers, however, most of the either rely on an external program to generate the plot, or, if they ...
11
votes
1answer
1k views

Two column layout with text and knitr chunk

When making presentations (with latex beamer class), I often go for a frame layout with text and equations on the left and a corresponding figure on the right. My standard solution has been to wrap ...
10
votes
4answers
939 views

Drawing the mapping of elements for sets in LaTeX

I am looking for a way to do something like
10
votes
4answers
1k views

What is the easiest way to plot a function and its tangent lines at the turning points?

I want to plot graphs like this and embed them as Tikz or Pstricks code in my handouts. I know that there are software such as Ipe, LaTeXDraw etc. But none of them can satisfy me. Because Ipe doesn't ...
10
votes
5answers
4k 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 ...
10
votes
5answers
423 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
3answers
389 views

Drawing a multiscale network in Tikz

I am learning TikZ in this period, but I have some problems drawing some networks for my thesis. I am trying to draw a network in TikZ which should look similar to the one in this picture: I have ...
10
votes
3answers
13k views

How to pause figures in beamer

I would to \pause two different images (as I can to do with text). This is the ideal code: \documentclass{beamer} \usetheme{Copenhagen} \setbeamercovered{dynamic} \begin{document} \begin{frame} ...
10
votes
5answers
4k 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 ...
10
votes
2answers
1k views

How to put round cornered frame around an image

I want a nice colored frame around an image which has rounded corners. Here is my attempt, using mdframed, but, as you can see, the inner edge of the frame is a right-angle, and not rounded. I would ...
10
votes
4answers
389 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 ...
10
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 ...
10
votes
2answers
471 views

Format a tutorial with screenshots in LaTeX

I want to format a step-by-step tutorial in LaTeX in a way that each step shows one screenshot and a small piece of text for that step. I could think of a formatting where in each step the screenshot ...
10
votes
2answers
65k views

Latex error. Unknown graphics extension: eps [duplicate]

Possible Duplicate: I encountered an 'errorUnknown graphics extension: .eps.' I have the error like in the title. I found some pages on the web with a solution to this problem. They ...
10
votes
2answers
815 views

How to include eps files in Plain TeX?

The title stands for itself. If it is not possible, how does LaTeX import an EPS file using \includegraphics?
10
votes
1answer
3k 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 ...
10
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
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?
10
votes
2answers
1k 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
386 views

Draw a spiral on a sphere

My goal is to visualize damped magnetic precession. Wikipedia features an image, but it doesn't quite capture one essential constraint. Namely, that the magnetization M should be normalized. So the ...
10
votes
2answers
682 views

A Tunisian flag on Tikz using a macro “m-grams”

I tried to represent the flag of my country. I typed this code. But I believe that the position of stars, circles, ... is not so respected. In addition I have a left margin "white band" I want to ...
10
votes
2answers
2k views

Set standard default scaling of \includegraphics

I am using Sphinx and the plantuml package to include UML diagrams. The plantuml package for Sphinx generates the following LaTeX code: \includegraphics{%s} Anyways - the diagrams are to big, so ...
10
votes
1answer
459 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} ...
10
votes
1answer
329 views

Can you embed an image so it doesn't need to be stored as a separate file?

I'd like to know whether it is possible to embed an image file into LaTeX code, such that the picture will appear in a resulting PDF file without it having to be stored in a separate .eps file during ...
10
votes
1answer
4k 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. ...
10
votes
2answers
172 views

Insert an image at the beginning of a chapter

I wish insert an image at the beginning of a chapter that, like in the figure attached, is seen in the white space at right of the title. Moreover, it must be different for every chapter of the book. ...
10
votes
2answers
167 views

How I could add an image in the bottom of pages of my document

Hello! In the picture you can see the bottom of pages 2-7 of one document that I found. I would like to apply the same format in my document and I would like your help. As you can see the document ...
10
votes
1answer
9k views

Drawing simple graphs on LaTeX

Let me just say I am NOT drawing graphs from Graph Theory. I am just strictly asking about simple graphs we do in algebra. I just started with MiKTeX and I am trying to read and absorb everything in ...
10
votes
2answers
4k views

Two images to fill one beamer frame: most appropriate method?

Suppose I have two images: one a solid blue square and another a yellow. What is the most appropriate way to divide and fill an entire beamer frame with these images? Horizontally (i.e., left half ...
10
votes
3answers
1k views

How do I include a click-to-zoom thumbnail picture in a non-beamer document?

The Beamer class for presentations provides a way (using the \framezoom command) to include a picture in the document on which one can click to zoom in, and then zoom back out with another click. How ...
10
votes
1answer
2k views

Use \setkeys{Gin} to set default scale value doesn’t work

I’d like to make all my graphic a little smaller and tried to set the scale-value of \includegraphics globally with \setkeys{Gin} but while changing width works fine scale has no effect. ...
10
votes
1answer
2k views

Kindly explain use of framezoom in beamer

I want to use framezoom to zoom in on India in this map. How can I do it? Can someone explain in a simple language (non-technical) the use of \framezoom function in beamer?
10
votes
1answer
350 views

Adding dimensions to TikZ pictures

How do you add dimension labels to TikZ pictures? Ideally, it would look something like this: |<----- dimension ----->| I would like to do this to show the measurement of both straight lines ...
10
votes
1answer
110 views

How to include icons in table?

Question I want a table with little icons on the left and corresponding descriptive text on the right. However, LaTeX seems to make this as painful as getting your teeth pulled out, and my current ...
10
votes
1answer
1k 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 ...
10
votes
4answers
373 views

Include multiple pdf pages on single sheet

I would like to include multiple pages from a pdf document on a single page im my document. \includepdf can do that using the 'nup' option. \documentclass{book} \usepackage{fancyhdr} ...
10
votes
1answer
223 views

Table-aligned, randomized, repeatingly smaller icons for eyesight-chart

My daughter needs to train her eyesight in accordance to the LEA eyesight chart tests. I have manually created a new chart for her, but it really takes a long time randomzing the four icons and ...
10
votes
1answer
1k views

How to align picture top left in a table?

is there a way to create a table with 2 columns, in the left column should be some text, in the right column should be a picture. The problem is - to align both to the left, top corner. The image ...
10
votes
1answer
715 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 ...
10
votes
1answer
328 views

Is it possible to frame text using a graphic border

I've got a document where in a few cases I'm using the framed package and a single \begin{framed} <text> \end{framed} to visually separate text that is something akin to commentry on the main ...
10
votes
2answers
1k views

Correct way to distribute/embed an image in a LaTeX package/document?

I am creating a new document class that needs to render an image (e.g., a logo) on the title page. What is the correct way to distribute image with the class? Should the image file be distributed ...
10
votes
1answer
647 views

Redefine memoir Part to allow image

I am preparing a book with memoir. The book has three parts. I would like to have the Part title raised and to insert an image directly below the title. I am able to raise the Part title to the upper ...
10
votes
1answer
502 views

Reusing an image without duplicating it

PGF has a nice feature, declaring an image and re-using it again and again. With a PDF backend, it reduces the size of the output, as the image is embedded in the file only once. However, the PGF ...
10
votes
1answer
193 views

Random number without repetition in an \includegraphics

I have 58 images in PDF format. At the moment, each of them is in a separate PDF, such as 1.pdf, 2.pdf etc. I would like to include those 58 images in a random order without repetition. I found the ...
10
votes
1answer
819 views

Create a “yearbook-style” multi-page layout of photos

I would like to create a "yearbook-style" layout of photos in LaTeX. Each photo would have a caption and the objective would be to automatically layout the differently sized rectangular photos to ...
10
votes
1answer
551 views

graphics - dynamic image placement

This is a follow up to my post here: Graphics - Images off the page in multicolumn environment Using C#, XML, SQL, and LaTeX, I've managed to create a system which retrieves database information and ...
10
votes
1answer
459 views

Change on click in beamer

Is the following possible using the beamer class: You have two images image1.jpg and image2.jpg You define two "clickable" areas (a1 and a2) of your frame which you can overlay by an picture or ...