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

11
votes
1answer
178 views

Union of Paths in MetaPost

I'd like to compute the union of a collection of outlines in MetaPost. I'm aware of the buildcycle macro (in combination with cutbefore and cutafter). However, that macro is not very useful because I ...
11
votes
1answer
398 views

Drawing primitive shapes with TikZ

I want to draw this picture as a noob, the way I usually do (for all other images) is to painstakingly draw line by line and manually adjusting their coordinates to get the shapes I want. I have ...
11
votes
1answer
3k views

Trim image by number of pixels

Is it possible to trim an image by a certain number of pixels rather than a length? I have a set of images that I'm including, and in one figure, a trim of 135 on the bottom works nicely, but a ...
11
votes
1answer
618 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
277 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 ...
11
votes
1answer
161 views

How to get information about remaining free space?

following scenario: I want to automatically generate a newsletter with some small articles, which is working fine. (I am generating LaTeX-code with data from a small database). But now I want to ...
11
votes
1answer
555 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
0answers
374 views

Changing colors of included cmyk jpg

I am trying to convert a pdf containing grayscale pictures and black text into shades of a single color in cmyk color space (for printing). I was thus very happy to learn, from a side remark in one ...
10
votes
4answers
1k views

Drawing the mapping of elements for sets in LaTeX

I am looking for a way to do something like
10
votes
5answers
950 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 ...
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
3answers
2k views

University's logo

How to put the logo before the date and after my name in the title? I write it as \begin{document} \title{} \author{} \titlepic{ \includegraphics[width=0.5\textwidth]{logo} \date{} but ...
10
votes
5answers
5k 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
543 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
6answers
4k views

Extracting image from PDF to use in LaTeX document?

I need to include some graphs from a datasheet in my document, but of course I don't have the source files. What would be the best course of action? It's mostly logarithmic scale graphs.
10
votes
2answers
686 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 ...
10
votes
3answers
2k views

Nature style files and figures

I downloaded a Nature style file from here but I don't see any images when I build my figures. Do you know if this is intentional or if I've done something wrong? If you've drafted a LaTeX paper for ...
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
611 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
2answers
505 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
1k views

How to include eps files in Plain TeX? [duplicate]

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
4answers
4k 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 ...
10
votes
1answer
367 views

create latex symbol from vector graphics

I have a logo in vector format (Adobe Illustrator) that I would like to use in my LaTeX documents. How do I create a latex symbol such that I can include this logo inline with the text, similarly to ...
10
votes
2answers
557 views

Textures or pictures as background for a table.

I wonder how I can set a texture or a picture in the background of a table. I have tried to google it but I haven't found any satisfactory answer :-( I try to explain better: I know that it is ...
10
votes
3answers
654 views

Rounded box with image and text

I'm trying to create a rounded box with both text and image. The desired result is as this: Where the image is rounded at the left edges. I have managed everything except the the image part using ...
10
votes
2answers
602 views

How can I insert a paragraph or image into the same spot on every page of a memoir doc?

How can I duplicate one feature of this layout from 'House of Leaves' in a 100ish-page book using LaTeX? (I'm presently using memoir for document formatting/structure.) The specific feature I want ...
10
votes
3answers
8k views

How to make images appear at their actual size?

Whenever I insert an image into my PDFTex document (using the code below) it seems to be resized to fit the width of the page. I know I can change this using the scale parameter, but that means I have ...
10
votes
2answers
3k 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
1k views

How to Graph Floor/Ceiling Functions in LaTeX (PGFPlots)

I am trying to make a graph of some floor/ceiling functions for examplep the floor of 3x+2 like this: http://www.wolframalpha.com/input/?i=graph+of+floor%283x%2B2%29#=. However, I searched through ...
10
votes
1answer
582 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
1answer
970 views

Ligatures in figures and pdftex

In the following example, the 'ff' ligature in the figure labels (in 'differential') disappears when pdflatex is used, but the fault does not occur if latex-dvips-ps2pdf is used instead. Both lualatex ...
10
votes
2answers
5k 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
2answers
975 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
11k 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
1answer
703 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
2answers
9k views

How to align image

If i have in my beamer presentation some list of items and on that slide i wanna add a picture, which i want to be aligned e.g. to right top corner. \begin{frame}[fragile]{III. Override pages} ...
10
votes
2answers
274 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
215 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
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
18k views

Putting Figures Side-By-Side Using Minipage

I am trying to put two figures next to each other. However, it is not working. Here is my code: \begin{figure}[h] \centering \begin{minipage}{1.0\textwidth} \centering ...
10
votes
1answer
968 views

How to add a gradient fade-out effect to an image?

I am working on a presentation in beamer and would like to put a logo in the background of the title page with a gradient fade-out effect, similar to the image below. The logo is in PDF format and is ...
10
votes
1answer
298 views

What programmable drawing tool(s) can solve how to fill a region with a path

I've recently become interested in computer numerical control (CNC), and have been considering using METAPOST in a CNC work-flow (using pstoedit to convert .pdf (or .mp) files to G-Code). The extant ...
10
votes
2answers
7k views

Landscape caption for a rotated figure in a portrait page

I've managed to rotate an image 90 degrees to be as if in landscape mode, but I still need to change location and rotation of the caption to match the image's orientation, while keeping the page in ...
10
votes
2answers
157 views

Including an image with a faded border

I want to include an image. However, to make it blend in a little better, I'd like to add (overlay) a faded border that doesn't exist in the figure at the moment. My attempt is to use transparent and ...
10
votes
1answer
117 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
1k 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} ...