{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
4answers
5k views

Including graphics for both DVI and PNG

I'm asking a question is quite similar to this one (where I don't seem to be able to leave comments): MikTex error for PNG images when trying to produce DVI I'm producing a PDF document, but I'm ...
3
votes
2answers
7k views

eps figure (image) quality loss on including it in latex

I saw Included PNG appears blurry in PDF and How do I insert an image in LaTeX so it looks good on print? also etc. However, I am trying to include .eps images, which are generated using gnuplot. ...
3
votes
1answer
690 views

Includegraphics in a new page after the title page

How to put a picture in a new page after the title page? I write it as follows, but it appears in the top and with a numbered page. \begin{document} \title{ } \author{me \\ \includegraphics[width=0....
4
votes
2answers
2k views

Strange behaviour with figure on chapter first page [duplicate]

Possible Duplicate: How to influence the position of float environments like figure and table in LaTeX? When I compile the following latex snippet: \documentclass[11pt]{report} \usepackage{...
12
votes
3answers
3k views

University's logo

How to put the logo before the date and after my name in the title? I write it as \begin{document} \title{} \author{} \titlepic{ \includegraphics[width=0.5\textwidth]{logo} \date{} but ...
1
vote
1answer
276 views

Extra unwanted text “image.jpg” precedes image when using \includegraphics [duplicate]

Possible Duplicate: Prevent the file path of an image appearing above the image when using \begin{figure} \includegraphics{filepath} I have the unwanted text "image.jpg" preceding image when ...
4
votes
2answers
735 views

subfloat text overflow onto the second line and remove gap between the image identifier and beginning of text

I have three images that i need to show on the same horizontal level. THe problem that iam having is that the image description that i place below is overflowing on to the second line. Moreover there ...
14
votes
2answers
4k views

Image next to Equation

I am trying to make my first LaTeX file and have been reading syntax for a bit and have not been able to figure one thing out yet and don't seem to find anything about it online so I thought I might ...
13
votes
3answers
32k views

How to vertically align 3 images with subfigure?

This code: \begin{figure*}[t] \begin{center} \begin{subfigure}[a]{0.3\textwidth} \label{im:device_front} \includegraphics[width=\textwidth]{images/bsn_side} \...
1
vote
1answer
212 views

Adding condition to \DTLplot (dataplot package)

I'm working with the package datatool for a while now, and I'd like to make graphs of my created databases. But I do not want to plot all rows in my database so I'd like to use the condition. This is ...
19
votes
1answer
8k views

Change color in finished pdf file

Suppose I have a finished PDF file, say a figure generated from some software, where the ink is black. I would include it in a document. Suppose I want to include it in a beamer presentation with ...
8
votes
2answers
4k views

PNG and JPG quality loss inserting webpage screenshot into LaTeX document

I have tried using both a png and jpg file format for my images but I still loose a significant amount of quality when I run pdflatex. Is there some way to work around this? \documentclass[12pt, ...
3
votes
2answers
6k views

Problem inserting picture into latex/pdflatex using figure environment

I am having trouble inserting pictures into my latex document at a specific point. Currently I have the two figure environments in the text but they are printed at the back of the document, after the ...
7
votes
1answer
189 views

Add additional info to a preview

The following example works in so far as it shows the image in the source latex file and disregards everything else. Is there some way of performing the same task but also list information about each ...
3
votes
2answers
2k views

How to trim after an overpic

I was reading this post and its answers regarding the overpic package so I tried this: \documentclass{article} \usepackage[abs]{overpic} \begin{document} \begin{overpic}[grid,tics=10]{elephant} \end{...
2
votes
0answers
75 views

Inserting EMFs to LaTeX using graphicx [duplicate]

Possible Duplicate: Inserting a .EMF file into a LaTeX document. After years of playing around with different figure formats in R I have found the one to hold its quality best is an EMF. I ...
11
votes
1answer
115k views

Change image size [closed]

I'm trying to change the image size (make it look smaller than the original). I tried with the next code but the image still shows at its original size. \begin{figure}[h!] \centering \...
8
votes
5answers
1k views

How to add a picture onto an existing pdf file?

I have a scanned pdf file which is an application form, and a picture which is the scanned version of one's signature (for example, this one) and can be in any image format such as eps or png. I would ...
14
votes
1answer
1k views

Create a “yearbook-style” multi-page layout of photos

I would like to create a "yearbook-style" layout of photos in LaTeX. Each photo would have a caption and the objective would be to automatically layout the differently sized rectangular photos to ...
2
votes
1answer
797 views

Customizing \chapter command

Here is the picture: The code is from this post. \documentclass[a4paper,12pt]{book} \usepackage{graphicx} \usepackage{lipsum} \usepackage{fontspec} \usepackage{titlesec} \setmainfont{EB Garamond ...
15
votes
4answers
3k views

Inserting an image in plain TeX

I used the OzTeX implementation of TeX, also I used to typeset my docs in plain TeX, not LaTeX for me, so I had no problem to insert an image using the OzTeX, now I'm back to TeX docs, am using the ...
7
votes
2answers
11k views

Good quality images in pdflatex

Generally I include images in my latex document by the command \includegraphics[scale=0.5]{image.png} However, after doing pdflatex the image quality is always very poor in the resulting pdf file. ...
1
vote
1answer
4k views

How to include graphics from parent directory using \graphicspath?

To include graphics from parent directory I am using \usepackage{graphicx} \graphicspath{{../pop/}{../graph/}} This works fine for MiKTeX but seems to fail for TeX live installed on the same ...
3
votes
0answers
205 views

some greek letters disappear from PDFs included with includegraphics [duplicate]

Possible Duplicate: Ligatures in figures and pdftex I have created some graphs in PDF format with PyX that include some labels with greek letters. When these graphs are included with \...
9
votes
1answer
652 views

Background images for code listings

I've been searching around but I can't find any info for adding an image background for my code listing using the listings package. Is there a way to do this?
1
vote
0answers
10k views

how to insert images using Texworks? [closed]

I'm using TexWorks to compile a math article and want to add some PNG images in between. As is said on LaTeX/Importing Graphics -- Including graphics I've included the graphicx package and at the ...
2
votes
0answers
285 views

Who should care about lpe? [closed]

Edd Barett, a TeXLive maintainer for OpenBSD has just committed lpe (an extensible drawing editor for LaTeX) to the ports tree. People who are familiar with my posts on this forum knows that when it ...
7
votes
2answers
866 views

3D TikZ lines on the perimeter of a circle

I'm just learning TikZ, I've done a few 2D images and I wanted to make a 3D wire frame of the Hubble telescope. The body of the telescope is basically a pair of tubes, the front one slightly narrower ...
3
votes
1answer
6k 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 ...
1
vote
1answer
977 views

Force newline, but collapse vertical space

I'm trying to create a block of subfigures with no space between them, The above is the desired result, but the way I did it feels hacky. I used a newline forcer followed by negative vertical ...
21
votes
4answers
1k views

Shear transform a “box”

Using the graphicx package, I can make any arbitrary box rotated using the \rotatebox{...}{...} command. Is there a comparable command in any package that lets me shear a box, i.e., producing a kind ...
8
votes
1answer
431 views

“negative” font overlayed with a photo

I would like to write some text in latex, then replace the black of the letters by a transparent layer, and overlay on top of a PDF photo. I could do it by exporting to photoshop, but I would like a ...
7
votes
1answer
4k views

How to prevent a large figure occupying entire page?

I have to embed a huge figure in a page where at the bottom there should be some text. However, the figure simply occupy a new page -- how to prevent this?
2
votes
1answer
380 views

Undefined control sequence when using \setupinteraction and \externalfigure

When I use \externalfigure after \setupinteraction[state=start], I get an error message about an Undefined control sequence. Here is a minimal working example (filename prob.tex): \starttext \...
13
votes
1answer
2k views

How to produce Latex QR-Code (or in general 2d codes) as Vector graphic?

The pst-barcode package is great to produce bar-codes in all flavors. And it does 1d bar-codes like a charm. Also it is capable of generating 2d bar-codes with a command like this for a qrcode: \...
11
votes
2answers
2k views

How to compose figure from text with latex?

I have an ascii image like +--------------- | xxxxxxx +--------------- | xxxxxxx +--------------- I want to show this in figure environment. So currently I try like this: \begin{figure} \...
7
votes
5answers
701 views

How to include online postage in a scrlttr2 letter?

The class scrlttr2 is well suited for using window envelopes by default. That means that it prints the address at the standardized position. In Germany, you can buy online postage which is supposed ...
7
votes
2answers
7k views

How to create a line graph in LaTeX?

I am in need of displaying line graphs in a LaTeX document but I can't figure out how. I searched on Google but did not receive any promising results. Is it really possible to do this within LaTeX or ...
3
votes
1answer
113 views

Flush stacked rotated images

I have a series of images that I would like to line up horizontialy, all scaled to a given height, rotated 90 degrees and exactly flush with respect to each other. For example: \documentclass{article}...
4
votes
2answers
536 views

why doesn't latex start a new page when showing multiple figures

\documentclass{article} \usepackage{graphicx} \begin{document} \begin{figure}[ht] \begin{center}$ \begin{array}{ccc} \includegraphics[width=2in]{stick/Alexis_view1.png}& \includegraphics[width=...
4
votes
1answer
561 views

How to export vector images from TeXworks

I use TeXworks to write pseudo-codes. How can I export the codes into a vector image such as in .emf? The image should have a size fit for the codes. For example, if the codes only takes half page, ...
5
votes
3answers
9k views

Set the default path to images directory

I have a project written in LaTeX, that has many pictures (about 1000) which I have divided into 4 folders: letter, legal, booklt and screen for different purposes. I have a folder called "images" ...
49
votes
4answers
4k views

LaTeX Photo With Rounded Corners

I have a photograph that I'm loading into my LaTeX document. I'd like the photograph to have rounded corners and no visible border. I'd prefer not to edit the original photograph. Any thoughts on ...
4
votes
0answers
341 views

Triangulated Toruses in Sketch [closed]

I want to be able to use sketch to generate an image like this: I am able to get the torus okay using nested sweeps as demonstrated in the tutorial, but my attempts to draw the diagonals using ...
4
votes
1answer
5k views

Problem inserting .pdf_tex file from Inkscape

I am trying to insert an image from Inkscape. I saved it as a pdf, checking the PDF + Latex option. Inside my Latex file, I wrote the following code : \begin{figure} \centering \def\svgwidth{...
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. ...
7
votes
2answers
5k views

image inside columns inside block in beamer

I try to put an image in columns environment inside a block environment in beamer. Somehow my image is shifting outside the block. Here's an example \documentclass{beamer} \usetheme{Darmstadt} \...
2
votes
2answers
2k views

how to set the canvas and font size in TikZ?

I am using TikZ to draw standalone pictures using the PreviewEnvironment (which cuts the PDF size around the picture). I then import the PDF figure inside LaTeX using \includegraphics. Let say my ...
1
vote
0answers
2k views

How can I add a logo to a page header in Lyx? [closed]

I am writing a thesis and want to add the university logo accross the top of my first page. I have a banner.pdf file, which will fit nicely accross the top of the page. But how do I go about placing ...
26
votes
3answers
29k views

Is there any way to type LaTeX code directly into the text boxes Inkscape?

I use Inkscape on Windows 7 platform. The principle to enter integrals and other mathematical symbols in Inkscape seems that the best thing to do and write them in a LaTeX compiler and cut them in ...