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

5
votes
2answers
551 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
480 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
1answer
345 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 ...
5
votes
2answers
342 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
526 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
388 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. ...
5
votes
1answer
1k 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 ...
4
votes
1answer
210 views

print double sided playing cards

My apologies if this is already answered somewhere (typical opening I suppose) but here goes. I've modified code from the thread Creating playing cards using TikZ for the purposes of my needs. Now ...
4
votes
2answers
207 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
78 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
387 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
1answer
724 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
969 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
122 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
562 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
270 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? ...
3
votes
1answer
104 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
148 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
1answer
297 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
873 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
2k 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
20k 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
134 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
90 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
104 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
57 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
330 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
4k 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
333 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 ...
1
vote
1answer
1k views

Adding a figure to a Part Page

I'd like to add a figure below the title of the part on the part page. How does one go about doing so using the amsbook class? \documentclass{amsbook} \usepackage{lipsum} \begin{document} ...
1
vote
2answers
1k views

Change the shape of a vertex using qtree

Using the QTree package, is it possible to add a shape to a node? For example, a square or a circle?
1
vote
1answer
353 views

On-Screen resolution deteriorates in pdflatex if figures are included

When I put a figure into my document (doesn't have to be bitmap, PS does the trick as well, I think the distinction is color vs no color), the on-screen resolution of the text changes at the default ...
0
votes
1answer
111 views

What to do when including graphics path causing error?

I have the following entries before the \begin{document}: \DeclareGraphicsExtensions{.pdf,.png} \graphicspath{ {./images/} } I have verified that the path exists with the requisite files. But I ...
0
votes
2answers
133 views

What is the common approach to include pictures/figures from pdf files or other sources? [closed]

What is the common approach to include pictures/figures from pdf files or other sources? My approach is to save the graphic as a jpg. Afterwards I include it into a Power Point and safe it from PP to ...
0
votes
0answers
102 views

How to include .tif pictures via pdftex? [duplicate]

Possible Duplicate: Which graphics formats can be included in documents processed by latex or pdflatex? I am in the process of writing a paper for submission to PLOS ONE. Under their ...
20
votes
3answers
427 views

Is it ImageMagick's fault or pdflatex's that some JPEGs aren't working?

pdflatex (as well as lualatex and xelatex) cannot process (some) JPEG images which were created by my ImageMagick. I'm on OSX Mavericks, using ImageMagick v6.9.0-0 Q16 x86_64 provided via MacPorts. ...
12
votes
3answers
486 views

Fit text to linewidth, shrinking only

I often have AVMs/tables that are just a bit too large and use \resizebox to fit everything in one line. Now, if the linewidth changes (switch from twocolumn to onecolumn) this results in enlarging ...
12
votes
1answer
707 views

Page Bordering with an image?

I want a custom border for my document. I was thinking of doing something like this, creating a border with a graphics tool(only the outer frame) and then placing it in the beginning of the document, ...
10
votes
1answer
2k 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 ...
10
votes
1answer
811 views

Redefine memoir Part to allow image

I am preparing a book with memoir. The book has three parts. I would like to have the Part title raised and to insert an image directly below the title. I am able to raise the Part title to the upper ...
9
votes
2answers
413 views

Include PDF via \pdfliteral

The pdfinlimg package and perl script allow to include ("binary") images directly into the LaTeX source code via the \pdfliteral command. For example, \documentclass[margin=1cm]{standalone} ...
9
votes
1answer
748 views

What are the default placement options for a floating figure in Latex?

The document Using Imported Graphics in L A TEX and pdfL A TEX talks about the different ways to affect where a floating figure is placed [htbp]. But these arguments are optional ... So how is the ...
9
votes
4answers
27k views

\includegraphics — file not found, even when in same directory

Here's the preamble: \documentclass{report} \usepackage{fullpage} \usepackage{amssymb} \usepackage[fleqn]{amsmath} \usepackage{graphicx} \usepackage{color} ... And here's the call to ...