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

37
votes
5answers
9k views

LaTeX Package to generate QR codes?

I would like to be able to generate QR barcodes in my LaTeX documents, and I'm having a hard time finding a solution. The use would be a command such as \qr[1in]{Your text to be QR encoded here} ...
46
votes
6answers
25k views

Image on full slide in beamer package

I would like to make a slide of only one image without any borders or any other beamer specific element. I tried : \begin{frame}[plain] ...
23
votes
3answers
6k views

How can/should I include annotated images?

It's often the case that I'd like to include some graphic in a LaTeX document and overlay it with some text or other annotation, maybe including arrows or other simple graphics. The annotations can be ...
13
votes
4answers
3k views

High level macros and environments based on Tikz

I was browsing the tikz examples that I found this wonderful example. The example uses tikz to create a tex environment to produce a framed text. The result looks like this: The underlying process ...
27
votes
3answers
2k views

Arrow with two colors with TikZ

I want to create with TikZ a yellow arrow with black margin (border, edge). I thought I could do this by using two arrows which lie on the top of each other, e.g. with: \documentclass[12pt,twoside, ...
20
votes
4answers
8k views

How to typeset flowcharts in LaTeX?

I know that it can be done with graphics packages like TikZ, but it seems to be a bit of an overkill. And for those not already familiar with the TikZ system, learning it can be a bit of a barrier. So ...
24
votes
2answers
33k views

How to fit a large figure to page [duplicate]

Possible Duplicate: Best figure size adjustment when dealing with different image sizes Given: a large figure, whose height:width ratio is unknown. Todo: Include this fig in LaTeX, such ...
25
votes
4answers
884 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 ...
16
votes
2answers
1k views

Coloring a black and white PDF graphic

I have a graphic in PDF format (originally converted from an SVG) that is monochromatic (black on white). Is it possible using TikZ or PSTricks but not (Illustrator or Inkscape) to include this image ...
17
votes
5answers
1k views

TikZ: Drawing regular hexagons with pictures inside

I need to create some images like these for a board game: In TikZ, can I draw a hexagon and fill it with a hexagonal area cut out of a bitmap? [In case anyone asks why TeX: Each actual hex will ...
17
votes
3answers
9k views

Can \includegraphics be used to change an image color?

I'm including a number of PDF images in my document using \includegraphics. I'm wondering if there's a way for LaTeX to adjust their color profile, hopefully the same way it can flip images upside ...
16
votes
2answers
820 views

Attach displayed image to the PDF without storing it twice

If one and the same image is included in a PDF multiple times it is only stored only once as an PDF object. Now I like to also attach an image which is shown in the document to the PDF to allow users ...
14
votes
6answers
10k views

How to export matlab figures to (pdf) LaTeX?

I am writing a student thesis in LaTeX and need to import several figures created in Matlab. I found some programs to do this task: matfig2pgf matlab2tikz fig2texPS The problem is that using one ...
10
votes
1answer
919 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 ...
22
votes
2answers
568 views

How to clip an external image inside an ellipse

I am trying to create a fancy image by clipping an external image by an ellipse- the area inside the ellipse will be shown only. I have seen this, but I still need help. Can anybody help? Here's an ...
20
votes
4answers
703 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 ...
18
votes
1answer
9k views

How do I embed an external image within tikzpicture?

I tried the following: \begin{tikzpicture}[] \pgftext{\includegraphics[width=150pt]{pic1.png}} at (0pt,0pt); \pgftext{\includegraphics[width=150pt]{pic2.png}} at (100pt,0); \end{tikzpicture} ...
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 ...
14
votes
2answers
2k views

Suppress the processing of all images

I am trying to make a draft by forcing LaTeX to ignore all images. How do I tell LaTeX to suppress all the image filenames (in the \includegraphics command) and just insert an empty box? The problem ...
14
votes
4answers
3k 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. ...
9
votes
5answers
873 views

How can I clip an image via a bezier-path?

I have a rectangular image that I can not change. I'd like to clip the image with a bezier path so I get one that is rectangular at the top and the sides but has a curve at the bottom, preferable ...
18
votes
3answers
2k views

Get the size that a figure is being rendered

Suppose I have a figure in my LaTeX document: \begin{figure} \includegraphics[scale=0.5]{some_graphic} \end{figure} My question is pretty simple: Is there a way to get the size that some_graphic ...
14
votes
1answer
410 views

Is there any package to create bullet gauge graphs?

I am looking for a package to create bullet gauge graphs, but I couldn't find any. A bullet graph looks like this: and an ample description/specification can be found here It is available in ...
14
votes
1answer
2k 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 ...
11
votes
1answer
353 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 ...
6
votes
3answers
14k 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 ...
10
votes
3answers
8k views

How to avoid showing the filename when using graphicx?

I am writing a LaTeX document with the apacite and graphicx package. The issue is when I include an image either using figure with an enclosed \includegraphics or \includegraphics by itself it shows ...
10
votes
2answers
19k views

LaTeX Error: Unknown graphics extension: .ps

When I try to compile this file http://danjer.doudouke.org/_media/tech/dokutexit/playground.zip this error occurs: ! LaTeX Error: Unknown graphics extension: .ps. I'm using TeXworks Version 0.4.3 ...
4
votes
2answers
670 views

What is the best way of arranging multiple minipages on a page?

I have been trying to use mini-pages to produce the equivalent of Office text-boxes. The idea is to have panels of different sizes on a page such as 4 equal sized or one wide followed by two long ...
2
votes
1answer
2k views

insert MAPLE algorithm to LaTeX

I am writing my dissertation through LaTeX, and I want to insert the code from MAPLE, it is about 2 pages and I am not sure how to include the algorithm, do you have any idea how am I going to do it?
20
votes
3answers
14k views

Techniques for embedding images with transparent backgrounds in LaTeX

I am trying to embed an image with a transparent background in my LaTeX poster. However a quick google search has taught me that it is not possible to do so. However I intend to know any clever ...
39
votes
8answers
6k views

Is anybody using TeX for business reporting?

Would TeX (LaTeX, ConTeXt, etc) be a good solution for PDF business reports that require dynamically generated graphs and tables? I need to create financial reports that must look top-notch in their ...
24
votes
4answers
996 views

Crop jpeg into circular tikz node

\documentclass[demo]{article} \usepackage{graphicx} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[circle,draw,inner sep=2cm]{\includegraphics{myimage.jpg}}; \end{tikzpicture} ...
16
votes
2answers
2k views

Generating dozens of graphs

I am revising old lecture notes on microeconomics and they contain a lot of graphs. As I am rewriting it in LaTeX, I would like to recreate the old graphs, but I need to select the right tool for the ...
18
votes
3answers
12k views

Is there any way to type LaTeX code directly into the text boxes Inkscape?

I use Inkscape on Windows 7 platform. The principle to enter integrals and other mathematical symbols in Inkscape seems that the best thing to do and write them in a LaTeX compiler and cut them in ...
21
votes
3answers
3k views

How do I get the exact dimension of a picture in LaTeX?

This question is pretty simple: I'd like to have the possibility to get the exact size of a picture in LaTeX with, for example, the macro \the. In fact, I've founded the way \settoheight{} and so on, ...
18
votes
2answers
3k views

Animated plotting with LaTex?

I am not a LaTeX pro, that's why I don't know if the following is possible and how I could do it. I have a graphic (a plot, jpg) and it shows a time series. I know in PowerPoint it is possible that ...
17
votes
3answers
18k views

How can I add more than one logo to my beamer presentation?

My institute requires to put three logos to all presentations. How can I add more than one logo to my beamer presentation?
16
votes
2answers
3k views

Transparent foreground watermark

As a follow-up to Add watermark that overlays the images, I'd like to have a transparent foreground watermark that doesn't render the underlying content, i.e. text and images, illegible. Is that ...
15
votes
4answers
7k views

How to make a grid of images?

Is it possible to place 4 images in an 2x2 grid? I don't want to float them, I don't want any captions. Each image should have the same width. Edit: Thanks for all the answers. After trying it out, ...
13
votes
3answers
860 views

Drawing a 3D cone

I want to create some thing like this , but instead of a box, I use another object (a dog silhouette). Here is what I have so far \begin{tikzpicture} \begin{scope}[scale=0.25, xshift=70, ...
16
votes
3answers
5k 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?
14
votes
3answers
9k views

Full page image as title page

Background Wrote a technical manual in LyX. The technical manual currently has two parts: Cover image (PDF) Manual text (PDF) Problem When merging the two PDF files (with GhostScript or other ...
13
votes
4answers
377 views

Graphics equations: put text on equations

I have a big question that I cannot solve by myself. I would like to add text on my equations, but I like to have some graphics on those. For instance, I would like to explain why I am doing ...
9
votes
1answer
1k views

Zooming images out to specific locations in beamer

I want to: Show an image full width On click, make a small sized image placed at a particular location starting from top left and show another image full width Repeat the process till all four ...
20
votes
1answer
933 views

How to automatically arrange an unknown number of images?

I have several compilable LaTeX input files and their corresponding PDF files. Each PDF file contains any number of pages. I want to import each LaTeX input file with \lstinputlisting followed by its ...
17
votes
1answer
5k views

Vertical alignment of inline images

Images appearing inline aren't always ideally placed relative to the baseline and risers of the text itself, so I frequently find myself doing manual adjustment, by eye, using \raisebox{}{} with a ...
14
votes
5answers
5k 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?
12
votes
3answers
4k views

Creating a titlepage

I want to create a titlepage as the one shown here. But I don't know how to put a line under the logo and get the text and all the stuff in the right position. I've tried some things with: ...
8
votes
1answer
6k views

Figure with caption within an itemize list not indenting correctly

I'm trying to put an image with a caption on it within an itemize environment (within another itemize environment). When I had the image with no caption, simply using \includegraphics, it indented to ...