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

14
votes
3answers
835 views

What's the best way to draw a square or rectangle with specified dimensions?

How might one define a command \rectangle, invoked via e.g. \rectangle{70cm}{70cm} that produces a black-outline rectangle of the specified dimensions?
3
votes
1answer
654 views

Creating a circular shade with an intermediate color

I need to draw a circle that represents a density that's constant up to a certain value of radius, then begins to descend. What I mean, is something like this: \documentclass[12pt]{article} ...
4
votes
1answer
621 views

Package conflict between eso-pic and wallpaper

The following code gives me a conflicting options message. Does anyone know if there is a way to fix it? \documentclass[10pt,landscape]{article} %\input{this-preamble} \usepackage{wallpaper} ...
10
votes
2answers
2k views

How to include eps files in Plain TeX? [duplicate]

The title stands for itself. If it is not possible, how does LaTeX import an EPS file using \includegraphics?
7
votes
1answer
1k views

LaTeX producing black background with transparent png

I am trying to use png images that are transparent. This is an example of my LaTeX file (I am intentionally putting the images on top of themselves): \documentclass[10pt,letterpaper]{article} ...
10
votes
1answer
509 views

href not working with image (but OK with text)

When I use a text in \href fine, but if I use an image it does not generate a link at all. \documentclass{article} \usepackage{hyperref} \usepackage{graphicx} \begin{document} ...
1
vote
0answers
741 views

remove blank space before image [closed]

When I insert a figure, there is some blank space before it that Latex adds it. How do I remove it? \headerbox{Poster Box 1}{name=box1,column=1, below=box2}{ \begin{minipage}{20em} ...
5
votes
1answer
399 views

Adjustbox ate my newlines

Apologies for the long MWE. Wanted to understand what I was doing wrong here. Trying to shrink this as part of a longer exercise in producing some slides. (This is the legend for a graphic referenced ...
1
vote
2answers
1k views

add blank space before image

I'm drawing two images, one on top and one in the bottom, and I want them to be aligned. One of them has some extra blank space one its left side, so I need to realign it manually: ...
2
votes
1answer
153 views

Can I use webp images in Latex?

I have an .webp image that I want to use in my Latex document. However, I can't really find how to use it or is it simply not possible with Latex?
2
votes
2answers
6k views

remove box borders

I have the following code, in which I fit three logos into a box: \setlength\fboxsep{0pt} \setlength\fboxrule{0.5pt} \fbox{ \begin{minipage}{14em} ...
2
votes
3answers
464 views

programs for creating diagrams

Does anybody know of some programs I can use to make diagrams that look like the following I would use the above diagram directly, however due to copyright issues, this is not an option for me. ...
3
votes
1answer
129 views

Tikz multiple graphics in one environment

I try to place multiple graphics in my Document. I tried to create a scope and shift the graphics, is there a better way? \documentclass{article} \usepackage{scrtime, dsfont} \usepackage{listings} ...
107
votes
3answers
13k views

Choosing whether to include PDF or PNG in PDFLaTeX

Can I tell graphicx somehow which graphic format to choose when I omit the file extension in includegraphics and both a PDF and a PNG version of the same image exist? The reason is that I have some ...
2
votes
1answer
191 views

Using Word table as a LaTeX table [duplicate]

Possible Duplicate: Using an image as a table Assume that I created a table in Microsoft Word. I can save it as eps, pdf, etc. and use it in LaTeX. However, the caption is "Figure X". Is ...
0
votes
0answers
44 views

XeLaTeX: \includegraphics with a .png file shows filename in output. How do I hide this? [duplicate]

Possible Duplicate: How to include graphics with spaces in their path? Ok, I was creating graphs in GNUPlot and inputing them in my XeLaTeX file as I usually do, and then I realized that ...
7
votes
1answer
4k views

Center image in landscape mode

I've used the \usepackage{pdflscape} instruction and the following code for inserting an image in a landscape oriented page. \begin{landscape} \begin{figure}[p!] \centering ...
4
votes
1answer
819 views

Move legend closer

I wish to move the legend for the left chart closer to the graph, and for the right graph, I wish to let the x-axis and y-axis appeared just like the left graph (so that there is some extra spaces to ...
5
votes
1answer
505 views

How to configure latexmk to work recursively? (PDF Thumbnails)

I'm writing a book which will include and explain a handful of different memoir page layouts. Setting the scene In the book, I want to imbed thumbnails of pages from PDFs generated with the page ...
2
votes
1answer
167 views

How do I put the top of an image at the top of a page

So I just have one line for the image: \includegraphics[width=10mm]{C:/Users/PhizKid/Desktop/image1.png}\\ And then some text to explain the image below it. But when I try to print it out, ...
0
votes
1answer
155 views

How do you center graphics? [duplicate]

Possible Duplicate: Should I use center or centering for figures and tables? I am doing an assessment and as part of it have linked some graphics into my Latex report, however they are not ...
4
votes
2answers
741 views

How to put text at an arbitrary position around an image?

I want to get sth like: I have produced the vector images in Adobe Illustrator. I could do the labels (X_3, X_2,..) in there too, but after importing them in latex they wouldn't be consistent with ...
13
votes
1answer
5k views

Two column layout with text and knitr chunk

When making presentations (with latex beamer class), I often go for a frame layout with text and equations on the left and a corresponding figure on the right. My standard solution has been to wrap ...
9
votes
2answers
274 views

Set variable with mathematical expression

I need to do something like the following, \includegraphics[width=(\textwidth - 50mm)/2]{myfig.eps} What keywords can I use to search for doing this operation? Everything I've searched for was ...
3
votes
1answer
4k views

Move everything a little bit left in beamer

I am putting an image in each column on a slide, everything is perfect except that because the first image starts too far right and it pushes a small part of the second image off the slide. How can I ...
12
votes
2answers
3k views

Set standard default scaling of \includegraphics

I am using Sphinx and the plantuml package to include UML diagrams. The plantuml package for Sphinx generates the following LaTeX code: \includegraphics{%s} Anyways - the diagrams are to big, so ...
2
votes
0answers
6k views

How to insert pdf (as a graphic file) in LaTeX [closed]

I am trying to insert some ready image-pdf files to my LaTeX code. (I use pdfLaTeX and my distributor is TeXnicCenter.) But I will get this error: Package pdftex.def Error: File 'fig1.pdf' not ...
0
votes
0answers
114 views

Background image [duplicate]

Possible Duplicate: How to create a background image on title page with LaTeX? I am using LaTeX to create a report and I was wondering if there is any way of changing the background from ...
3
votes
0answers
92 views

Graphic in header bloats PDF file size [duplicate]

Possible Duplicate: Multiple inclusion of the same image gives huge PS file I recently started to include a graphic in the header of a long PDF document and the file size has grown ...
2
votes
2answers
2k views

texmaker automatically sets scale=1 in the includegraphics tool. Can this be customised?

I got this set up in Kile, but can't figure it out in texmaker. I want almost all my figures to be as wide as the text, at the moment I have to type this in manually each time. There is already a ...
6
votes
2answers
1k views

compare two diagrams side by side

I'm trying to compare two diagrams in pdf format side by side. I have this post - Two figures side by side to get some hint. This is the code that I'm coming up with. \begin{figure} ...
0
votes
2answers
257 views

How to print part of .tex code to pdf

My friends send me this .tex code, but it is only part of the code. I need your help to edit this code into a full document, because when I insert this code to TeXworks it does not compile into a pdf ...
4
votes
2answers
1k views

Get a includegraphic to stick in the same place for several beamer slides

I am working with a presentation where I want a sequence of slides with a figure that changes slightly for each slide. I want the figure to to stay in the same place for many slides and I want to ...
0
votes
1answer
213 views

Covering map picture [closed]

I wish to draw a crazy covering map showing charts any help?
2
votes
1answer
687 views

Insert other shape with shapepar and cutout

How to fix this code so that the text clipping the picture? I'm not able to edit the initial commands. \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{shapepar} ...
8
votes
2answers
828 views

Watermark on pictures only

I know how to use a watermark on a full page in LaTeX reports, using for instance this code: \usepackage{draftwatermark} \SetWatermarkText{Confidential} \SetWatermarkScale{5} However, on my report, ...
0
votes
0answers
38 views

Image is not in the right position [duplicate]

Possible Duplicate: Keeping tables/figures close to where they are mentioned Why does the image is not at the point where I included it in the code, but at the end of the part? ...
21
votes
3answers
59k views

How to order 3 images horizontally?

I use the following code to include three images: \begin{figure}[h] \includegraphics{delete_gesture.png} \caption{Awesome Image} \label{fig:awesome_image} \end{figure} \begin{figure}[h] ...
8
votes
1answer
7k views

Option clash when using graphicx and tikz packages

The following code fails Option clash for package graphicx, it seems to be an incompatibility between the package graphicx (when the option pdftex is used) and the package tikz. ...
2
votes
0answers
99 views

Showing an image with the topic in table of contents in beamer [closed]

In beamer, there is a facility to show the table of contents slide each time I switch to a new section, where the new section will be lighted and others dimmed. Can I find a way of showing an image ...
4
votes
1answer
2k views

Problem using matlab2tikz

I'm trying to get matlab2tikz to work. I want to use it for prettyfying output of Matlab's image() command. In Matlab I tried imagesc(rand(100)); xlabel('X'); ylabel('Y'); title('Random Colors'); ...
5
votes
2answers
312 views

How to write some texts in this picture?

I have a file \documentclass[10pt]{article} \usepackage{pstricks-add} \usepackage{esvect} \pagestyle{empty} \begin{document} \psset{xunit=1.0cm,yunit=1.0cm,algebraic=true,dotstyle=o,dotsize=3pt ...
3
votes
3answers
4k views

Problem with AUCTeX, graphicx, pdfTeX and \pdfoutput not equaling 1

I've been using Emacs + AUCTeX for several years now, and all of a sudden I started getting the follow error on all documents that have compiled fine before: ERROR: Package pdftex.def Error: PDF mode ...
1
vote
2answers
3k views

XeTeX and GraphicX

When processing with XeLaTeX, some .pdf (I really don't know the difference between them) files give the following error: ! LaTeX Error: Cannot determine size of graphic in xxxx.pdf (no BoundingBox). ...
27
votes
3answers
35k views

tabular vertical alignment to top?

I'm trying to create a simple tabular with two cells of text and two images below them like so: \begin{tabular}[h]{ c | c} \emph{Normal} & \emph{Cone} \\ ...
1
vote
1answer
2k views

How to make graph originally generated by stata look good? [closed]

I use stata to get an eps graph, then use pdfLaTeX to get a pdf file. \documentclass{article} \usepackage{graphics} \begin{document} \centering \includegraphics{test} \end{document} When I ...
1
vote
1answer
1k views

how to handle corrupted graphics file

I am generating a latex file with many \includegraphics commands from a program. The image files change from run to run. The latex file might, for example, look like the one in this question. ...
2
votes
1answer
361 views

hbox out of margin, beamer

I wanna put a round image in a presentation il LaTeX out from the margin. I would like to show it just as a 1/4 of the image in the left bottom corner. I tried: \begin{frame} \tableofcontents ...
7
votes
2answers
2k views

beamer: How to align images in separate columns?

Here is a snippet of a beamer frame which is divided in three top-aligned columns. Each column contains: some top text an image some bottom text The problem is: because "some top text" in ...
7
votes
1answer
233 views

Overlaying tables

I have two tables as follows: Table 1: Row/Column | C1 | C2 | C3 ROW 1 | v | v | v ROW 2 | v | v | v ROW 3 | v | v | v ROW 4 | v | v | v ROW 5 | v | v | v ... ROW ...