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

58
votes
3answers
18k views

How to include graphics with spaces in their path?

I want to import graphics into my main input file using the macro \includegraphics. It does not work if the filename contains spaces. Include image with spaces in path directory to be processed with ...
2
votes
1answer
47 views

How to show a full page width image above chapter title, and different image for each chapter?

I'm trying to make the chapter header follow the style: - Chapter tittle is on its own page. - There is an image with full page width above the title, and different image for each chapter. - ...
0
votes
2answers
21 views

align image to left and text along the center of image

I have a logo/image which I want to the left of the page, and word CERTIFICATE written along the horizontal line crossing the center of the image. I have been using following but it writes the text ...
0
votes
1answer
46 views

Entire PDF document as appendix

I'm writing a report, where I need to include some large PDF files as the appendix. I tried using this command: \includepdf[pages={1-},scale=0.75]{myfile.pdf}[H] In the pdfpages package, but it ...
2
votes
2answers
57 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 ...
0
votes
0answers
44 views

Is there anything wrong including this png?

I'm writing a document (article class), and I'm including some png graphics, this is the code that includes them (it's a subimage environment): \begin{center} \begin{figure} \centering ...
1
vote
0answers
14 views

adding natwidth and natheight to \photo in moderncv

I am using winEdt 6 with MikTex 2.9 and writing a resume with moderncv package. The problem is I can't make the cv title because it cannot determine the size of the photo. I want a way to put the size ...
1
vote
1answer
22 views

File ended while scanning use of \beamer@collect@@body and more

It's my first time in Beamer, and i want to make a titlepage as well as those seen on the net (and those done by my university teachers XD) First of all: \documentclass[trans,9pt]{beamer} ...
3
votes
1answer
34 views

Look for file in different directory

I'm using gnuplot to graph some things and I have to embed the graphics in latex. The document class I'm using is article. I'm using an epslatex terminal in gnuplot so I get two files, a .tex and a ...
2
votes
1answer
22 views

Figure spacing carrying over to next page

I'm trying to make an image align with the text it's positioned next to. I've managed to make the top align fine by using \setlength{\intextsep}{0em}%, but for some reason the bottom vertical spacing ...
2
votes
2answers
31 views

Multi-line alignment : two pictures on the first line, third picture on the second line in a square fashion

I have three picture to show, in three different aspect ratios, and I'd like to align them so that the two first have the same height on the first line and the third has the width of the two first, so ...
87
votes
3answers
6k views

Fundamental differences : PSTricks, TikZ/PGF and others

OK, since this is a pretty vague and subjective question. I need to set up some borders around the discussion that I intend to benefit from. But before anything, I certainly do NOT want to excite the ...
2
votes
2answers
41 views

I am trying to break this standalone image into two rows

I have used standalone to generate this picture: I would like to put C and D below A and B and aligned them. Is there a simple command line? Thank you very much for your time! Here is my code: ...
1
vote
0answers
25 views

I am trouble syncing page/figure numbers with images

I am writing my M.Sc. thesis and have made graphs with captions. It's the first time that I am using latex and really love it. I still have a learning curve. I have made my graphs with standalone. ...
0
votes
0answers
33 views

Picture under text

I ran into a problem while adding pictures to my pdf. I do it with this: \begin{figure}[h] \vspace{-5mm} \centering \includegraphics{2} \vspace{-5mm} \end{figure} vspace is there ...
4
votes
2answers
98 views

Getting Gif and/or moving images into a Latex presentation

Im very new to presentations in Latex (ive been using powerpoint for years but have finally converted) and am wondering how to get a gif into a section. If needs be, can one not convert a gif into ...
0
votes
1answer
83 views

How can we draw these graphs like in this book?

Can you show me which tools we can use to draw the graphs look like in this book? (see below figure). Sorry, I don't know exactly where I can post this question.
1
vote
0answers
63 views

I am trying to draw a DNA sequence with a point mutaion

I am trying to draw the following: met thr glu tyr lys leu val val val gly ala gly gly ORF ATG ACG GAA TAT AAG CTG GTG GTG GTG GGC GCC GGC GGT TAC TGC CTT ATA TTC GAC CAC CAC CAC CCG CGG CCG ...
0
votes
1answer
19 views

Images not showing up [duplicate]

I have a problem with images not showing up. The latex recognises them (see screenshot) but doesn't generate them to pdf document. They are in the same folder. I tried including image extensions and ...
4
votes
1answer
42 views

How to use a command as path in 'includegraphics'?

I want to include a graphic by using \includegraphics{\mycommand} but it doesn't work. The path to the picture will be a combination of text written in .txt files. This is my code: ...
0
votes
0answers
30 views

TikZ and other figures in documents meant for multiple paper sizes

Sometimes scientific papers are sent to multiple journals with very varying paper sizes. Usually, changing from one to another, I simply cross my fingers that TikZ figures still fit, and rescale PDF ...
3
votes
1answer
63 views

Drawing Sinusoids with Phase difference

My first goal was to draw sinusoid plots similar whit these images: This is what I've done (similar to one code in this forum): What I'd like to know is (if possible) how to change integral ...
6
votes
3answers
2k 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 ...
3
votes
1answer
1k views

Using Sweave, how can I reliably get .PNG figures instead of .EPS or .PDF figures?

I have tried to set the options in the preamble: \SweaveOpts{keep.source=TRUE, eps=FALSE, pdf=FALSE, png=TRUE} but this does not reliably produce only .png (or indeed any!) figures. I say 'reliably' ...
1
vote
1answer
38 views

how do I create a border, non-rectangular, surrounding a nodes in tikz?

I have the following MWE. I would like to draw a border without including the $y_3$ (or s3 in the .tex file) -- so it would be a rectangle with its left upper corner changed so that it bypasses s3. ...
0
votes
1answer
30 views

Make rotated picture with caption fill page width and available height

I have a PDF image that I want to rotate (keeping the caption unrotated). The page where the PDF is included has a title/heading. Usually I'm using width=0.9\textwidth, but that doesn't work with the ...
0
votes
2answers
121 views

Rotating images changes their position on the page

I want to rotate images in latex but when I put "angle=270" it changes the position of the image so that is almost off the page. The image also overlaps the text of the caption. If I put angle before ...
1
vote
0answers
40 views

LaTeX, Image placed below ToC

I am trying to insert a picture (pdf) below a ToC, but when I do it through \includepdf it just appears on the next page. I have tried some absolute positioning, but haven't gotten any of them to ...
3
votes
0answers
46 views

Export PDF for two printer - one pdf with just the pictures, the other one with the text

Do you know a possibility how to export a pdf, that has just blank space where the grahpics should be? (And the other way round) Why do I need this? I have a black and white laser printer and an ...
1
vote
1answer
39 views

Including certain graphics turns pages grey

When I include certain graphics in my LaTeX book, compile the tex file with pdflatex and then flatten the PDF, all the text on pages with either png or pdf graphics ends up grey instead of black. ...
2
votes
1answer
24 views

Subcaption: Adjust vertical position of three images inside multirow

I want to put three images in a figure. Two shall be above each other on the right. The third one shall be on the left. The left picture shall be vertically centered. I tried several approaches using ...
0
votes
0answers
20 views

Floating figure with transparent pixels

I need to include a floating picture in my document. The included picture represents a circular logo, where pixels outside of the circle are transparent. I'm currently using the following code: ...
230
votes
5answers
42k views

Drawing on an image with TikZ

Recently I have learned how to draw simple stuff with TikZ. I really like it. Now I wonder if it is possible to draw with TikZ on a image. Instead of pasting a image in Illustrator and adding some ...
1
vote
1answer
37 views

Random dots with noise component

I wonder how to fill specified area by dotted points.I want to fill the green area with green random dots, and instead of the red area i want to fill it with red random dot, and the white area with ...
2
votes
1answer
40 views

Relative positioning: how to avoid the discentering of external images?

Stuck with the following problem while making "Who we are" section for a business plan. The code \documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} ...
4
votes
1answer
103 views

Copying figures into LaTeX

I want to copy some figures from previous studies and use them in the introduction of my thesis. My current procedure to do this is: print screen the necessary page from the pdf file I am interested ...
4
votes
1answer
80 views

How to include graphics inside the section name

I am trying to insert an icon (a pdf file) literally next to the section name. I want the little shield icon to be where the <Icon> is. The code to generate this image is: ...
2
votes
1answer
53 views

Graphics file not found [duplicate]

I'm attempting to include image files in my LaTeX document whose code is: \documentclass[a4paper, 11pt]{article} \usepackage{amsmath} \usepackage{graphicx} \usepackage{microtype} \usepackage{siunitx} ...
6
votes
1answer
107 views

How can I draw this graph

I am trying to draw the following picture but I have some difficulties. I just started learning LaTeX a few weeks ago. I code the following: \documentclass{article} \usepackage{tikz} ...
1
vote
1answer
185 views

How to prevent a pdf-figure to overlay text?

I have a pdf-figure which I want to include in my tex-file. I wrote the following line of code to insert the figure in my file: \includegraphics[width=.8\textwidth, bb=0cm 12.5cm 26cm ...
3
votes
1answer
24 views

Subcaption: Vertical alignment of two images of different vertical size

I want to place two images of different size next to each other. Both shall have individual subcaptions. Everything works fine. My only question is: how can I center the smaller image vertically with ...
0
votes
0answers
31 views

Don't break sections in product catalog with images

I'm trying to use LaTeX to automaticaly typeset a huge product catalog of 2000+ products. Every page should be divided in 2 colums filled with the products. (excluding category headings) The problem ...
3
votes
1answer
50 views

How to use thumbnails with tabu environment in latex

I have been trying to add thumbnails as a column entry in {longtabu}. LaTeX - Insert thumbnail with link to fullsize image contained in appendix came to the rescue. Now, the thumbnails inserted as ...
2
votes
2answers
40 views

Align text and image in table

My table looks like this: The left column will contain words, like it is now, and in the right column I want to add these small pictures (some are a bit bigger than this one) in every row. I have ...
8
votes
1answer
405 views

includegraphics: How to check if PDF/PNG are transparent?

I am trying to generate PDF/A-1 compliant documents, in which transparency is not allowed. I would like to check, if included PDF and PNG images have transparency. Is there a TeX way to check this? ...
2
votes
0answers
36 views

How to align figure with subsection?

I have placed numerous figures beneath subsections, but there is a one page gap between the subsection title and the actual figure. Does anyone know how to resolve this placement issue? An MWE of ...
6
votes
2answers
111 views

Vertically align text to graphic

At first this might look like a duplicate, but I couldn't find any solution, although I tried various (combinations of) vspace, minipage and box-commands. Situation: I have some pictures (all have ...
1
vote
1answer
64 views

File `graficx.sty' not found

I'm using LaTeX for a week now and I couldn't figure the problem is this error out, I have copied a CV template from internet and I made some changes, for sudden every time I make quick build in ...
1
vote
1answer
37 views

Refer to a table as figure

I have a table where I have put pictures (plots) in each cell. The whole point of making this table is for comparison of the plots. However it does not look good to refer to this set as a table, ...
1
vote
1answer
27 views

In-line graphics in text to represent a loading bar for language skills in a CV

I would like to add my language skills to my CV in the following manner: I could of course create an image in Inkscape for every language, and put it in in a most straightforward way, maybe as ...