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

10
votes
6answers
835 views

Compiling a document to input more than 100 image files

What I want to achieve is to compile a document of pictures in .jpg format into a pdf file. The problem is that I would not want to input all the files one by one. The files follow a pattern in there ...
9
votes
1answer
366 views

Correct pronunciation of graphicx?

I know that this question may be not in the main stream, but it is the matter of communication. We have LaTeX graphic packages graphics (s as standard) and graphicx (x as extended). I am thinking ...
9
votes
2answers
4k views

Placing a figure inside a multirow table cell

Is it possible to place a figure within a multirow cell? The vertical alignment is ruined. Does it have to do anything with tikz's bounding boxes? The following mwe produces the following result ...
8
votes
2answers
861 views

Setting the unit vector ratio gives a '! Dimension too large' error

I have a Delaunay-triangulated surface generated in MATLAB, which I would prefer to render in tikz. I use Nico Schlömer's matlab2tikz script to generate the standalone tex file. The MATLAB result ...
8
votes
1answer
513 views

Using a picture as the page border for an entire document

I've got a LaTeX document, and I've been given a PNG file consisting of a page border with a big transparent section in the middle. Is it possible to use LaTeX to add that image to every page, with ...
8
votes
1answer
339 views

Setting a global limit for image dimensions

I have a collection of images of different sizes. I would like to set a limit on their width, such that if the image is wider than this limit it will be scaled down, but if it is smaller then the ...
7
votes
3answers
700 views

Vertical alignment of graphic and tabular

There are a bunch of related questions here. But I was not yet able to pull this off yet. I have the following code: (where hist.tex is a plot drawing) \fbox{\scalebox{0.40} {\input{hist.tex}}} \...
7
votes
3answers
1k views

How can I put a picture alongside the chapter title?

I'm trying to insert a picture besides the chapter title using this code ‎\begin{document}‎ \chapter{for example} \begin{figure}[h] \includegraphics[width=20mm]{turing.png} \end{figure}‎ but the ...
7
votes
1answer
448 views

Crop off-page vertices in vector graphic PDF

I have a PDF that contains one page, with a vector image on it. I want to use the left half of the image on the backside of the front cover-page of my work, and the right half on the front of the ...
7
votes
2answers
233 views

Create a PDF with lots (over a hundred) images

I have lots of images I need to display in a PDF (no text). I was hoping to make something like a contact sheet used for photos. Is there an easy way of doing this without having to do it all manually,...
7
votes
5answers
3k views

On Ubuntu 10.10 with texlive-full installed, xelatex is rotating my figures 90 degrees counterclockwise

I am using the latest ubuntu with the texlive-full package. When I do a simple \includegraphics like this: \begin{figure}[h] \centering \rotatebox{-90}{\includegraphics[width=8cm]{problem1}} \...
7
votes
2answers
738 views

Automatically include a sequence of images

I want to include a sequence of images in Beamer (although it can be in another type of document). Something similar to the option Photo Album in LibreOffice and MS PowerPoint. What I did is to make ...
7
votes
3answers
6k views

Resize all images in Latex to a percentage width

I am auto-generating multiple tex files using pandoc (one tex file for each of my chapters). Pandoc generates this tex code for each image. \begin{figure}[htbp] \centering \includegraphics{images/...
7
votes
1answer
488 views

Image behind and beyond crop marks?

This is what I'm trying to do... Please note that the images that will be used in the final version are of slightly uneven size, so that should ideally be taken into account. I've been through the ...
6
votes
1answer
1k views

How to automatically draw a graph?

Is there a simple package for which I can input an abstract graph and it returns a drawing? A similar question was asked in 2010, it did not receive any answers relevant to my question. I want no ...
6
votes
2answers
185 views

Change the color model of an included pdf

Say I have a pdf file foo.pdf that I want to include in my bla.tex document via \includegraphics{foo.pdf}. Say that foo.pdf is a colored document and that I need bla.pdf to be in gray levels. How can ...
6
votes
1answer
2k views

Paper size with geometry in memoir: LaTeX vs PDFLaTeX

I have been searching for an answer to my problem, but my search did not yield any topics with the same problem, so hereby my question: I have created a document with the memoir package. The stocksize ...
6
votes
2answers
310 views

Black vertical rectangle on left margin

I print my document on A5 paper. I have a template with header and footer. Now, my laserjet printer is spoiling the page by leaving black marks on left margin. How can I draw a black vertical strip of ...
5
votes
1answer
3k views

Align 16 small images in a 4 x 4 grid [duplicate]

Does anybody know, how I can allign 16 images like a grid with 4 columns and 4 rows? \begin{figure} \begin{tabular}{cccc} \subfloat[0,1 s]{\includegraphics[width = 1.5in]{25.gif}}& \subfloat[25 ...
5
votes
1answer
927 views

Inserting an image on the right

I got a problem in my LaTeX document. I used the codes below: \begin{flushleft} \begin{figure}[tp] \centering \includegraphics{C:/Users/churva/Desktop/wla.jpg} \end{...
5
votes
1answer
2k views

LaTeX Cartooning

Are there any Latex packages (or any other text based methods) to assist in cartooning i.e. creation of simple images representing real-life objects. Something as simple as the images on xkcd is good ...
5
votes
1answer
1k views

Figure reference management

I'm writing an academic report and it is required that I include my figure/picture references (almost exclusively URLs). Already tried to use BibLatex to make sub-bibliographies but that proved to be ...
5
votes
3answers
9k views

Set the default path to images directory

I have a project written in LaTeX, that has many pictures (about 1000) which I have divided into 4 folders: letter, legal, booklt and screen for different purposes. I have a folder called "images" ...
5
votes
2answers
24k views

LaTeX - Image not showing up

I am writing up some coursework using LaTeX, and I wanted to import a diagram, however when I did the image did not appear in the compiled pdf. The image has been exported as a eps file, and also as a ...
5
votes
1answer
2k views

Inserting an Image in cventry in moderncv

I am using moderncv to create my CV. In the Experience section, I enter each element by \cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description} I would like to insert a small ...
5
votes
2answers
2k views

Problems with pictures in multicol

I am writing a short article for a magazin and want to have a two-column text. Since the header is supposed to be centered, I decided to use the multicol-package. This is my header: \documentclass[...
5
votes
3answers
2k views

Crop equations with preview package

Is it possible to avoid left space from equations previewed with preview package? \documentclass{minimal} \usepackage{amsmath} \usepackage[active,tightpage,displaymath]{preview} \setlength\...
5
votes
1answer
989 views

Montage multiple PDF images, scaled to each other's dimensions, on a single PDF page?

I though "montage" would be the most appropriate term here, since in Latex we mostly deal with multi-page documents (and I was afraid that terms like "concatenate", "append", "collect" etc. could be ...
5
votes
4answers
2k views

How to create a “Bitcoin accepted here” button?

\bitcoinacceptedhere Is there something like what appears above that causes a logo like this to appear in a document? Postscript: I've tried some of the things suggested in the several answers. ...
4
votes
2answers
1k views

How to rotate a picture in 3 dimensions?

I have a picture like this: I want to use this picture rotated like this (inline with the text as well as separately): Is there a way to achieve this?
4
votes
1answer
198 views

Checklist with float images in the left side of the page

I want to create a document which is mainly a check list, but what I want is to show an image on the left side of the page, and the check list was shown in the right side of the page. Like the image ...
4
votes
0answers
288 views

Making a family of graphs in TikZ by a few definitions [closed]

I am trying to make in TikZ a family of graphs, as in included pictures. I can make them one by one, using nodes (circle/square/triangle, black/white) and joining them. However it seems to me, that ...
4
votes
3answers
2k views

Beamer - Put a picture right of the table of contents

I have problems to put a picture right to the table of contents. This is how it should look like: I have two MWE's, becuase I already tried two different approaches. (All the empty frames are needed ...
4
votes
1answer
347 views

Fancy header and footer including images with tikz

Consider the following code: % DOCUMENT TYPE \documentclass[12pt,a4paper]{article} % PACKAGES \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage[margin=10pt,...
4
votes
2answers
1k views

Draw a grid for obtaining coordinates to pass to includegraphics' viewport option

I want to include only parts of an image. For this, I use the viewport option of graphicx's includegraphics. To find the coordinates, I go by trial and error, adapting the viewport argument until I ...
4
votes
1answer
4k views

Per section figure numbering - reset counter each section

I would like to achieve book like figure numbering for my article class document. MWE: \documentclass[11pt,a4paper]{article} \usepackage{graphicx} % optionally - this creates: Figure 1.1 ... Figure ...
3
votes
1answer
4k views

Grid to facilitate positioning of objects with \put in beamer

In presentations with the beamerpackage I use \put a lot to place graphic objects like this: \newcommand{\putat}[3]{\begin{picture}(0,0)(0,0)\put(#1,#2){#3}\end{picture}} % just a shorthand \putat{...
3
votes
2answers
251 views

Aligning images in the marginal notes based on a specific paragraph height rule

Friends, I have to put some images in the marginal notes of a text. Unfortunately, I have some issues with the image alignment. Consider this minimum example: \documentclass[oneside]{book} \...
3
votes
1answer
1k views

Animate multiple sequences of images side by side

Say I have 2 sequences of images imA-1.png,imA-2.png,...,imA-n.png and imB-1.png,...imB-n.png . I would like to use something like xmpmulti's \multiinclude, but the following prints the imA sequence ...
3
votes
3answers
28k views

latex two column layout set figure to load on single column

this is the double column code \begin{multicols}{2} \begin{figure*}[!ht] \centering \includegraphics[height=60mm]{CC.jpg} \caption{AA \cite{BB}} \end{figure*} \end{multicols} But the ...
3
votes
1answer
4k views

XeLaTeX, \includegraphics and \hyperlink

I have question regarding XeLaTeX. I have switched from LaTeX to XeLaTeX because I wanted to use ttf fonts and now I have a problem with \hyperlink. It works with text, but it doesn't with images. So ...
3
votes
1answer
733 views

Adding PDF pages with \includegraphics using a loop

I need to include PDF pages with \includegraphics. I know there is the package \usepackage{pdfpages}. So this is what I have: \begin{picture}(0,0)(75,272.5) \put(0,0){\frame{\includegraphics[page=i]{...
2
votes
1answer
7k views

Four Arranged Figures are offset

How can I ensure that the four plots (which are all the same size pdfs) appear with the same spacing: see they are offset here: % Actual versus predicted plots \begin{figure}[H] \begin{minipage}...
16
votes
3answers
907 views

Need alt text for images in pdf for screen readers

I need the generated PDF to have "alt" text associated with each image so that a screen reader can read the alt text to the visually impaired user. I understand that essentially just including the "...
15
votes
4answers
4k 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 ...
14
votes
2answers
2k views

Placing picture above \chapter?

Can anyone recommend/provide an example as to include pictures in the chapter headers? Any packages known for this? I have read about fncychap which looks great, but would still require add'l ...
12
votes
3answers
14k 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 ...
12
votes
2answers
378 views

How to emulate some options of \node from TikZ

Code \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \foreach \a in {0,45,...,315}% {\node[line width = 0pt, rotate = \a, anchor = ...
12
votes
2answers
790 views

How to include random images?

I'd like to make LaTeX pick one image file randomly from a series of eight images, and include it. I found that ''lcg'' package can generate random numbers: \usepackage{lcg} \reinitrand[counter=sec,...
12
votes
1answer
660 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 ...