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

7
votes
1answer
361 views

boxing a matrix column with tikzpicture, how to ensure sides don't bend around contents?

When using tikzpicture to draw a rectangle around subsets of matrix elements, how can I be sure of getting a rectangle, rather than a shape that has wonky sides because it takes account of the varying ...
7
votes
2answers
3k views

Add a figure title and x-axis label to a figure matrix created using pdfpages

Background I previously asked: Can I convert a 16 page pdf into an 8x2 matrix in LaTeX? I ended up creating a 3x5 matrix of images from a 15 page pdf by compiling a document "foo.tex": ...
7
votes
2answers
2k views

multipage pdf as separate image in LaTeX [duplicate]

Possible Duplicate: pdflatex, \includegraphics, and multi-page PDF files Sometimes I create a multi-page pdf as output, e.g. graphs from R. Is there a possibility which allows me to select ...
6
votes
1answer
173 views

How do determine the arrow form in Tikz

I plotted following image: Using this code: \documentclass[10pt,a4paper,twocolumn]{article} \usepackage{bondgraph} %Draw bondgraphs ...
6
votes
1answer
311 views

Magnify part of picture with TikZ spy, expressed in relative scoped coordinates

I want to magnify part of a picture with the TikZ spy library; however, with a scope for using relative coordinates like in #9561 Drawing on an image with TikZ. Provided I'm using the image tux.png - ...
6
votes
1answer
391 views

Best practice regarding graphics size

Whenever I make graphs from R to be included in Latex, I find myself scuttling back and forth between R to specify the size of the output and Latex to play with the \includegraphics[scale=??]. It ...
6
votes
1answer
157 views

Selecting specific nodes and changing style (for those nodes)

Is it possible to select specific nodes and color them green? I was thinking of using another for loop, but it doesn't seem like I can define more than 1 style. \documentclass{article} ...
6
votes
1answer
1k views

Loop for includegraphics

I try to make multiple slides in beamer with 3 figures on each slide and the title. I would like to loop through the list/array of figures and set the frame title. The name of the figure files and the ...
6
votes
4answers
1k views

Alternative for drawing graphs?

I've been trying to draw a graph with a series of X,Y points in TikZ, but it won't accept my points so I'm seeking an alternative package that might handle scaling a bit better. The kind of points ...
6
votes
1answer
21k views

PNG: importing it with latex | pdflatex | xelatex

I never understood how (pdf)latex determines the size of imported bitmaps, but many years ago I experimentally elaborated simple rule that allowed me to get same output by running either latex or ...
6
votes
3answers
3k views

MetaPost pictures in PDFLaTeX

To include MetaPost pictures in a latex file compiled by pdflatex I usually do something like \usepackage[pdftex]{graphicx} ... \includegraphics{filename-without-mps} but this requires all metapost ...
5
votes
0answers
148 views

how does \includegraphics from the graphicx get the size of a .jpg image

Is there someplace where I can read about how \includegrapics uses the metadata that is stored with a JPG image? I have carefully sized 80 images with Photoshop such that the Photoshop's ImageSize ...
5
votes
1answer
269 views

\includegraphics{\input{|shell command}}

I want define a command "\foo" which outputs the result of a shell command, such as: \newcommand{\foo}[1]{\input{|"#1"}} This works, except if I'm trying to use this command in the context of ...
5
votes
1answer
359 views

Surfaces rendered using Asymptote won't layer correctly

Question I recently asked a question here: How to plot a lattice of points on the surface of a torus? Where I have two answers, but both render incorrectly on my machine. They are supposed to look ...
5
votes
2answers
569 views

ConTeXt: Figure scaling to width and text wrapping for Pandoc-generated documents

Consider the following Pandoc-generated ConTeXt document: \setuppapersize [A4][A4] \setuplayout [width=middle, backspace=1.5in, cutspace=1.5in, height=middle, topspace=0.75in, ...
5
votes
2answers
535 views

More than two figures on one page with text in between (problem with float)

I need to put more than two pictures/figures with text in between on one page. Now I'm having the problem, that more or less always one picture is floating on the next page, even though there would be ...
5
votes
2answers
351 views

Creating a mask for printing glossy varnish over images

I'm interested in finding a better method for the following: creating a black mask over the images on all pages while removing (or covering with white) all the text and other elements but still ...
5
votes
1answer
543 views

How to draw a graph along with probabilty tables using TikZ package

I need help to draw a Directed Acyclic Graph of Bayesian Network along with probability of each node using TikZ package. Here is an example: Table grid can be a full or partial as in above example. ...
5
votes
2answers
396 views

How to plot the graph below?

May I know how to draw the graph as shown below? below is a code I have try but with look and feel that is quite far away from the example: \begin{tikzpicture} \begin{axis}[ legend pos=north ...
5
votes
2answers
2k views

how to draw a hexagonal grid with numbers in the cells

The problem of drawing hexagonal grids has been discussed here: Drawing Hexagons I want the shape of the grid to be hexagonal and furthermore, I want to be able to add numbers in the hexagonal cells. ...
4
votes
2answers
214 views

Creating diagram using tikz

I am trying to create following diagram in latex- Below is my latex code- \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{shapes.geometric, arrows} ...
4
votes
1answer
283 views

Pullquotes not working

I am want to wrap text around image using pull quote from Two-column text with circular insert, but I wasn't able even to compile example file correctly. Is there anybody that has pull quotes working? ...
4
votes
1answer
82 views

To label different parts of pdf page

Assume you have a PDF file with 3x4 pictures. You want to label each picture. How can you label such pictures without cutting manually each picture out separately? Next problem is how you can show ...
4
votes
3answers
4k views

Drawing and inserting mathematical symbols on a Dia generated graph

I use graph via Dia to draw graphs. But I want to insert an equation or symbol on the graph. Is there any way to put an equation symbol such as $\alpha$ or $\beta$ on the graph? I have inserted ...
4
votes
3answers
396 views

Drawing a grid on array of images

I have nice story to tell with pictures. There Maltese type cross which is processing and twisting at the same time. So to make it more visual in paper i need grid something like this Drawing on an ...
4
votes
4answers
920 views

Spider Graph Legend and Caption

I would like to add: legend (Red, blue and Green) and figure caption (with legend) for my Keviat plot. The code of my keviat is listed below. Thank you \documentclass[]{scrartcl} ...
4
votes
3answers
2k views

Could not insert pdf graphics

Using \includegraphics[width=\linewidth]{mypdf} I tried to insert a PDF image to my XeLaTeX document. But instead of the images empty area places in its place. \documentclass{article} ...
4
votes
1answer
730 views

\twopagepicture package refining with long caption spanning across the two pages

The \twopagepicture package is definitely worth it when you have many large pictures. But perhaps I'm not getting the required results because I'm not following the advice correctly. Here are some ...
4
votes
1answer
5k views

Block Diagrams in TikZ

for my thesis i need to put some block diagrams in my LaTeX document. I was recommended to use TikZ for that. This is the only sample code i could find. Do you guys maybe have some tutorials / doc ...
4
votes
2answers
2k views

Tagging for PSFrag

What programs do people use to put their tags on ready to be replaced by psfrag? I've tried inkscape but if I write in the text "hello" say with inkscape then export as eps PSfrag doesn't seem to ...
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
2answers
4k views

LyX: set width of image to 100% of page width

When I insert an image into LyX and set it to 100% page width, its left side is not at the farthest most edge of the left page. Instead it starts where the text margin is, and since it's too large to ...
4
votes
1answer
3k views

Override \centering to left justify an image

Background Dozens of source code snippets inserted into a document as images inside of Algorithm floats. Other images are screen captures, inserted as Graphics floats, to make a distinction. All ...
3
votes
2answers
174 views

add vertical line of equation x=2 and shade a region in graph by pgfplots

I would like to plot these four equations : $$y=\dfrac{3}{2x+1}, y=3x-2, x=2 y=0$$ and i don't know how to draw vertical line of equation x=2 and shade a region like the picture below ...
3
votes
1answer
725 views

How to correctly clip with viewports with includegraphics and beamer columns?

I will happily accept any alternative to beamer's columns and \includegraphics that produces the intended result in a beamer slide. I'm trying to take the attached eps file and reorganize it so that ...
3
votes
1answer
116 views

How to set border for figures

When I insert figures into my tex,sometimes it goes out of the page. Can you please suggest a method to avoid this.
3
votes
1answer
153 views

Using Metapost inline in LaTeX (no ConTeXt)

When I was more active in LaTeX and Metapost (~10 years ago) I could not find a way to directly use Metapost in LaTeX. There were few tutorials on how to use it within ConTeXt, but for using it with ...
3
votes
2answers
565 views

converting tikz to pdf

I would like to create a graphic with gnuplot for example and import it to latex to implement it in a text. The problem is that its caption, which I created with latex, has a different font, size etc. ...
3
votes
1answer
312 views

Aligning 3 images square in a box

I am trying to create a figure with 3 images: two on the left half which are on top of each other, and one on the right that spans the height of the left images. Here is what I have: ...
3
votes
1answer
954 views

package wallpaper for landscape, latex

I'm using wallpaper package to put background image on each page. I'm facing problem to put image on landscape on right position. I need to put it upper left corner of the page. I It seems that it is ...
3
votes
1answer
3k views

How to deal with PDF figures

I can insert JPEG figures in publications, but when it comes the time to include PDF figures (I prefer them for graphics because of its vectorial nature) I cannot scale them properly. I am using ...
3
votes
1answer
21k views

Package pdftex.def error PDF mode expected

Took me 6 hours today and still doesn't work, the error is : Package pdftex.def error PDF mode expected mf-texlive/tex/latex/pdftex-def/pdftex.def Example document: \documentclass{article} ...
2
votes
2answers
159 views

Insert a picture of my signature right under my name to the right

I have the following document as follows. I need two adjustments. I need signature in print and signature as a picture on the right hand side of the page (which is on the left as it stands now). ...
2
votes
1answer
92 views

How to put figures at the end of pdf file

I'm preparing an article for submission in a journal and it requires that all figures must be coded at the end of the TeX file and not inline. I've tried to use : ...
2
votes
4answers
111 views

Centering an image vertically

I'm currently having a few problems with centering an image on a page (both vertically and horizontally) while enlarging the image so that it is taking the whole width of the page. I'm managing to ...
2
votes
1answer
59 views

Add part numbers and descriptions to figure?

I'd like to add part numbers and descriptions to a figure containing an object consisting of several parts. A circle with a number in it, a line and a dot or arrow that points to the relating part ...
2
votes
2answers
339 views

How to include a pdf image

All I am trying to include a pdf image in my tex file, but when I compiled the tex file, the console pop up the following error msg: ! LaTeX Error: Cannot determine size of graphic in ...
2
votes
1answer
5k 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] ...
2
votes
2answers
5k views

Align an image at the right of a text in LyX

I am LyX user and I would like to align an image at the right side of my title but I don't know how..:/ I am using as module "report". I've attached a screenshot in order to illustrate where I want ...
1
vote
2answers
344 views

Need to left align referenced image in mdframed Info box

I have been successful at creating a set of Warning, Note, and Info boxes using mdframed package, and they look very good. However, I need to left align an inserted image rather than have it on its ...