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

4
votes
2answers
414 views

drawing two curves in the same figure

Please i need someone who can help me to draw two curves into one figure. I need to draw the two curves Y1 and Y2 in the same figure. By the way, i tried to write the code below: ...
3
votes
2answers
792 views

How can I force an image and its caption to be on the same page?

I am using the caption package, now I have one problem: In one case an image is placed at the bottom of one page, while its caption is placed on the top of the following page. In this case I would ...
2
votes
3answers
122 views

figure is in subsection but it goes to subsection

I need your help in solving the followings: \documentclass[a4paper, 10pt, conference]{ieeeconf} ... \subsubsection{C} \begin{figure}[h] \begin{minipage}[t]{0.3\linewidth} \centering ...
20
votes
4answers
2k views

How to render Terminal Output in LaTeX

Is there a package which allows me to render (n)curses based output (VT100, ANSI ...) directly in LaTeX (including colors if possible)? I'm currently making screenshots and include the PNGs via ...
13
votes
1answer
780 views

Should two pictures side by side have 0.5 or 0.49999 textwidth?

Two pictures should be next to each other. What is their perfect width? Is 0.5 + 0.5 = 1 for TeX, or does the compiler need a tiny space between the objects? Should ...
11
votes
1answer
318 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
229 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 ...
10
votes
6answers
826 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 ...
10
votes
1answer
3k views

Parameter Stack Size Error with graphicx

I'm trying to include a graphic in a document, and no matter how I try to manipulate the graphicx package, I have never been able to make an image appear. I have tried making the image PNG, PDF, and ...
9
votes
1answer
365 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 ...
9
votes
4answers
2k views

Creative Commons logo

I have found the ccicons package to typeset Creative Commons logos, but I'm wondering if there is a package that typesets logos like this one: If not, how would you do that in TiKz or graphicx? ...
8
votes
1answer
332 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 ...
8
votes
2answers
848 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
505 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 ...
7
votes
2answers
691 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
1answer
435 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
3answers
676 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
977 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
3answers
5k 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 ...
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}} ...
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
305 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 ...
6
votes
2answers
181 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
1k 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 ...
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. ...
5
votes
2answers
23k 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
960 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
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
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
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
883 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} ...
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} ...
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
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: ...
4
votes
1answer
320 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} ...
4
votes
1answer
196 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
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
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
1answer
3k views

Background image from tikzpicture does not fit the whole page

For a poster, I would like to have an image fill the whole page. This image is supposed to be drawn within a tikz environment as my other content. However, graphicx seems to fail at rescaling when the ...
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
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?
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
1answer
717 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) ...
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
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
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

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 ...
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] ...
16
votes
3answers
885 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 ...