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

6
votes
1answer
369 views

How to draw visual representation of relations with TikZ

My included graphics are too blurry so I decided to find out, how to draw the following four graphics in TikZ. I never really worked with TikZ, so can someone explain how to draw such graphics?
7
votes
1answer
5k views

PNG DPI and image size

I created a PNG file (763px by 600px at 72DPI) from a free image. I opened the image in GIMP and changed the DPI to 300 and saved it. After including it in a LaTeX file with \includegraphics[scale=1....
6
votes
2answers
1k views

How can I add side-icons in a LaTeX book?

Most of the technical books I've read use what I call "side icons" to mark out certain types of content. Stuff like "watch out for this" and "helpful tip", with corresponding icons. Here's an example ...
0
votes
0answers
82 views

Is there any good XY plot tools using latex [duplicate]

Possible Duplicate: Comparison of plotting packages? Let us say I have x-axis data and the corresponding y-axis data. I was wondering if latex had any graphing abilities. I might want to put ...
3
votes
1answer
2k views

Subfloating images with same margins left/middle/right

Currently I have the following code: \begin{figure}[htb] \centering \subfloat[htb][left]{\fcolorbox{plotBord}{plotPadd}{\includegraphics[scale=0.3]{figs/bla1.png}}} \hfill \subfloat[htb][right]{\...
11
votes
2answers
7k views

Two images to fill one beamer frame: most appropriate method?

Suppose I have two images: one a solid blue square and another a yellow. What is the most appropriate way to divide and fill an entire beamer frame with these images? Horizontally (i.e., left half ...
5
votes
1answer
749 views

Document class article, maketitle with logo

I want to modify the title section of the article class to look like something in the attached figure. Basically what I want is a kind of logo with flushed text (title, author, affiliation). I tried ...
0
votes
0answers
56 views

Array of linked list [duplicate]

Possible Duplicate: array of linked lists I want to implement an array of linked lists in latex: the array elements are the numbers{1,2,3} and every number in the array is ahead of linked ...
36
votes
4answers
15k views

Packages: graphics vs graphicx

Different websites suggest using one of those two packages. \usepackage{graphicx} \usepackage{graphics} What are differences between them? Which is better?
3
votes
1answer
735 views

set domain in pgfplots

I created this graph. The graph is shown correctly but I need the range on the y-axis to be from 10e-8 to 1. I would also like a grid. I'm a newbie with the pgfplots package. \begin{figure}[htp] \...
1
vote
1answer
8k views

What package do I need in order to use \psfig{…}?

I'm using \documentclass[final]{siamltex} to write a paper. Within the document I'm trying to use a function \psfig. I have used the following syntax successfully in other papers that I have ...
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] \begin{minipage}...
4
votes
4answers
4k views

Create slide with graph in beamer

I am using beamer to create talks. I need to create a slide with a graph. Are there ways to create graphs in LaTeX or should create a picture somewhere and add a picture to a slide? Edit: Oh, sorry ...
4
votes
1answer
308 views

Why is my PDF file so much different than my preview version?

I am using TeXShell and MiKTeX to compile with. Once I have written my code, I compile and preview and at first there was some problems with floats and stuff, but now, everything is perfect and ...
13
votes
1answer
795 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 \includegraphics[width=0.5\...
1
vote
1answer
831 views

Inserting a figure in a SIAM template

I looked at a SIAM template example to understand how to insert a figure. In this template, it codes: \begin{figure}[ht] \vspace{2.5in} \caption{{\rm Log}$_{10}$ of the residual norm versus the ...
3
votes
1answer
409 views

Path to image located in the cloud for different users or computers

I'm trying to point the location of an image in the cloud (Dropbox) using TeX on Mac OS. The problem is that I require full path name which contains the username (different for both machines). For ...
4
votes
1answer
1k views

Including graphic outside bounding box using graphicx and pdflatex

I am including graphics from .pdf files into my latex document using the graphicx package. Some objects in the graphics files extend beyond the pdf page area, which is used as the bounding box for \...
3
votes
1answer
137 views

Part of the file name of my image is printed in the document, twice [duplicate]

Possible Duplicate: How to include graphics with spaces in their path? When I add a piece of code of figure insertion to the context I'm faced with a problem: a number of irrelevant words ...
1
vote
0answers
2k views

Generated PDF is blank when using epstopdf [closed]

I'm writing a TeX document in which graphics are converted from .eps to .pdf using epstopdf. For the most part, everything works fine, but for two of the figures, the pdf that is generated from the ...
5
votes
1answer
5k views

Images on same page as text (paragraph)

I have 3 paragraphs with text (but without use \paragaph, just ext) and I have 3 images to these paragraphs. When I create pdf I have these paragraphs on one page (with text before) then on next page ...
14
votes
3answers
846 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
663 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
638 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
540 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} \href{http://www.yahoo....
1
vote
0answers
751 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
410 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: \begin{minipage}{...
2
votes
1answer
158 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} \includegraphics[height=...
2
votes
3answers
466 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
131 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} \...
108
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 there ...
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 one ...
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 \includegraphics[scale=0....
4
votes
1answer
823 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
516 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
169 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
158 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
766 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
281 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
5k 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
4k 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
116 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 plain ...
3
votes
0answers
93 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 ...