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

15
votes
4answers
7k views

Crop an inserted image?

I'm inserting an image with a simple: \includegraphics[height=5cm]{filename.png} This results in an image that maintains the aspect ratio, and so gives me something like 6cm width. I only really ...
6
votes
2answers
2k views

\usepackage[turkish]{babel} and \includegraphics inconcistency

Here is my document : \documentclass[12pt]{book} % must-have packages \usepackage[turkish]{babel} \usepackage[utf8]{inputenc} % This package will support Turkish chars % must-have packages ...
86
votes
3answers
6k views

Choosing whether to include PDF or PNG in PDFLaTeX

Can I tell graphicx somehow which graphic format to choose when I omit the file extension in includegraphics and both a PDF and a PNG version of the same image exist? The reason is that I have some ...
30
votes
1answer
1k views

Adding a per-chapter image along with group of entries in ToC

Friends, I have an old analytic geometry book with an unusual table of contents: for every group of entries based on the current chapter, there is an image along with it. Well, let me show some actual ...
38
votes
6answers
25k 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} ...
41
votes
1answer
18k 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. ...
13
votes
2answers
3k views

Clipping a figure to content

Is it possible to clip a figure inserted with \includegraphics to contents? That is, remove all surrounding whitespace.
15
votes
3answers
3k views

Image with axis

I need to plot some data in a file (10000 records of 2 points each one) but PGFPlots is very very slow rendering it. So I'm trying to use MatLab to plot the data, capture the image without axis and in ...
8
votes
5answers
3k views

Inserting figures using loops

I have a set of pictures in my working directory and I want to make a PDF report using these images. I want to include all of them, but the number of the pictures changes in each case. I would like to ...
30
votes
5answers
2k views

LaTeX accessibility

Does anyone know of any LaTeX modules that makes the pdf output generated by pdflatex Americans with Disabilities Act of 1990 (ADA)/Section 508 compliant? Specifics: With regard to math. One simple ...
18
votes
2answers
2k views

Use “default” figure if file is missing?

I was recently in charge of organizing all of the references and labels in a very large scientific proposal document. My workflow typically involved compiling the document, seeing a "There were ...
17
votes
1answer
2k views

Set image to full all available space in Beamer (without overlapping other elements)

I want to have an image take up as much as possible of the content area in a beamer presentation, without overlapping the title, the sidebars, or the footers. How can I achieve this? The code below ...
11
votes
2answers
5k views

A3 pages within A4 doc

I'm writing my thesis and I'd like to insert A3 pages within my A4 document. Is it possible to place figures with captions (as normal) on those A3? I'm able to include full PDF pages which are A3 by ...
11
votes
1answer
891 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 ...
9
votes
2answers
747 views

Image on top specified page

How can i place an image on the top of the specified page. For example odd pages will be filled by image, even with text. Or, i just want to make sure that (lua)latex will place images on page 2,3,6? ...
9
votes
3answers
3k views

How to put algorithm and figure(s) side by side?

How can I put an algorithm and figure(s) side by side? Say, XXXXXXXXXXX FIG ONE XXXXXXXXXXX FIG ONE XXXXXXXXXXX FIG ONE XALGORITHMX FIG TWO XXXXXXXXXXX FIG TWO Please, only post working solution ...
5
votes
1answer
8k views

How to reduce space between image and its caption?

I m importing one image in latex document. But caption has bigger font than my normal text on page. \documentclass{article} \usepackage{graphicx} \begin{document} Some text... ...
9
votes
2answers
1k views

Set fonts in matplotlib graphs equal to tex document

I am writing my PhD in LaTeX and I am generating all my graphical content in Python with the matplotlib package. For my TeX document, I am using a math-supported font -- e.g. Kurier Light Condensed -- ...
4
votes
2answers
538 views

Putting two images beside each other

If I want to put two images beside each other, what should I do? I have inserted a figure. But, rather than having the next figure on a new line, I want it to be beside the already inserted figure. ...
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 ...
6
votes
4answers
17k views

Insert eps graphics with graphicx (file not found)

When I run Andrew Robert's import.tex in MikTeX I get an error message saying that the image file is not found: ! LaTeX Error: File `chick' not found. See the LaTeX manual or LaTeX Companion for ...
6
votes
1answer
269 views

Why do I get a black rectangle instead of my external picture?

I write some of my network notes in TeX. I wanted to make a table, and inside it insert an image: . I wrote a document: \documentclass{article} \usepackage[demo]{graphicx} \usepackage{booktabs} ...
4
votes
2answers
524 views

Get a includegraphic to stick in the same place for several beamer slides

I am working with a presentation where I want a sequence of slides with a figure that changes slightly for each slide. I want the figure to to stay in the same place for many slides and I want to ...
34
votes
1answer
13k views

Tikz: using external images as building blocks.

I would like to create a custom vector drawing in Inkscape and then use it many times in many tikz pictures. Is it possible? Should I use PDF or SVG or other output from Inkscape? How to use external ...
37
votes
7answers
12k views

Placeholder for figure/includegraphics

Is there a command that I can use as a placeholder for \includegraphics? I want to use such a placeholder to add the original graphics later.
23
votes
1answer
39k views

Beamer text and image on the same slide

I am new to beamer and LaTex itself. Right now I want to make a simple slide with image on the right and text and sidebar (of Hannover theme) on the left. I cannot figure out how to do that. Any ...
12
votes
3answers
7k views

Using fancyhdr to create an image based header and footer

I'm trying to generate a latex report (via Sweave and R) where the header of the document is an image that covers everything (including the top/left/right page margin) and the footer covers everything ...
19
votes
5answers
3k views

How to embed screenshots properly?

I have a .png screenshot and I want to insert it in a LyX document. However, the screenshot needs scaling to fit in my column width. Downscaling (or upscaling) the image, if done wrong, gives all ...
11
votes
1answer
807 views

Creating Bezier surfaces using procedural graphics

Are there any package for LaTeX that can create Bezier surfaces? I mean a actual existing function that takes matrices as arguments and generates the surface, not a function written by myself.
18
votes
1answer
2k views

What is the advantage of using \includegraphics instead of \pgfimage for ordinary image inclusion?

The TikZ & PGF manual says that ‘LaTeX’s \includegraphics is designed better than pgf’s image mechanism’ and that ‘LaTeX users are encouraged to use \includegraphics to include images.’ But is ...
17
votes
3answers
578 views

How to replace all pictures by white rectangles?

I have a long document (800 pages) with lots of pictures (300 pictures). I have to produce a version of this document without the pictures (for copyright reasons). The solution I have found so far is ...
14
votes
3answers
37k views

How to add a gif file to my LaTeX file? [duplicate]

Possible Duplicate: 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 ...
12
votes
4answers
15k views

Specifying an absolute Windows path for \includegraphics

I know that includegraphics can be used in Latex to include images into the document, but how can I specify a path for that file? \includegraphics[]{picture-name} Instead of asdd.jpg I want to ...
6
votes
3answers
554 views

Creating Logo with Fancy Font

I am trying to creating a logo that resembles this one shown below, but I do not know the best way of going about it. I know of a fonts package that may be useful, but not sure how to overlay the ...
13
votes
2answers
781 views

Automatically Locate Included Images

Do you think it's possible to include images into LaTeX without specifying the exact path to them. So instead of: \includegraphics{path/to/image/myfig.pdf} It would be: \includegraphics{myfig.pdf} ...
9
votes
2answers
651 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 ...
5
votes
1answer
166 views

Mathematical formulas on a graph (not made by TeX) [duplicate]

Let us assume that we have a graph created by a program different from LaTeX (that is not with PStricks or Tikz). I was wandering if it is possible to incorporate mathematical symbols on that graph ...
93
votes
9answers
5k views

Starting a PhD; Any guides to setting up a 'system'?

I'm starting a PhD and am being overwhelmed with the different possible ways people do things, and how they very rarely mix. I'm (obviously) sold on TeXing it, and have a ViM background I intend on ...
34
votes
5answers
8k 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} ...
44
votes
6answers
21k 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] ...
22
votes
3answers
5k 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 ...
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 ...
23
votes
2answers
51k views

How to use figure inside a minipage?

I'm trying to include an image, and keep it centered, and prevent from wrapping from the next page. The following code works for that: \begin{minipage}{\textwidth} \begin{center} Caption ...
19
votes
2answers
27k 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 ...
19
votes
1answer
8k views

Includegraphics: set image opacity

I'd like to insert a PDF, but make it "lighter" by setting the opacity to 10% ("background watermark"). How to do that? A solution that works with texlive 2011 would be great. I use pdflatex and ...
15
votes
2answers
745 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 ...
21
votes
2answers
521 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 ...
14
votes
6answers
8k 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 ...
9
votes
5answers
805 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 ...