Questions tagged [graphics]

{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}.

385 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
10
votes
0answers
1k views

Obtain an animated PDF from an animated SVG

I have read Animations in LaTeX, but my question (I think) is different. I have an SVG animated file and I want to create the same animation in LaTeX, without rewriting the code. An example is this ...
9
votes
0answers
696 views

Creating a PDF form that accepts uploaded images

I am creating some forms that require users to stick photos in boxes. I was wondering if one could, with some PDF magic, create forms that could accept user supplied (via an upload button on the form) ...
8
votes
0answers
456 views

Asymptote 3D graphics: Convert prc-file to 2D file format

I have a question regarding Asymptote, which I recently started to use to make some simple drawings. I am facing some problems when I try to create 2D output files. I am working in a software company,...
6
votes
1answer
147 views

Use alternate scaling of the image if there is empty space available

I write a book with several chapters. Every chapter contains several (floating) images, usually photos in standard landscape-style, therefore they are scaled to the size of 0.4\textheight so that at ...
6
votes
0answers
132 views

Drawing three surfaces and a bunch of points which need to be places between the surfaces

I want a draw that consists of three surfaces, which are kind of parallel with each other, and a bunch of points. Some os these points will be placed in the region between the most external surfaces ...
6
votes
0answers
426 views

how does \includegraphics from the graphicx get the size of a .jpg image

Is there someplace where I can read about how \includegrapics uses the metadata that is stored with a JPG image? I have carefully sized 80 images with Photoshop such that the Photoshop's ImageSize ...
6
votes
0answers
2k views

Characters missing when embedding PDF with pdftex

I have the feeling this must have been asked before, but I couldn't find it with search... When I run the following test file \documentclass{article} \usepackage[T1]{fontenc} % \pdfmapfile{+rotis....
5
votes
0answers
187 views

Issues with grffile passing options to graphicx (draft/final)

I’ve been trying to set draft mode globally on my document, but I still want \includegraphics to work normally, so the graphicx package should receive the final option. I’m also using the grffile ...
5
votes
0answers
554 views

File names with spaces stopped working in \includepdf and \includegraphics in TeX Live 2016 if compiled with LuaLaTeX

The following used to work in TeX Live 2015 compiled with LuaLaTeX, but does not work in TeX Live 2016: \documentclass{minimal} \usepackage{grffile} % Extended file name support for graphics \...
5
votes
0answers
1k views

Interactive graphs in PDF file with Latex?

There are several questions which are asking similar question, but not exactly. I'm looking for a tool/method in Latex to generate really interactive graphs, when by dragging something on the graph ...
5
votes
0answers
635 views

Damaged file in acroread when include .pdf graphic with other graphics that are clipped

I came across a weird issue when you include multiple graphics files when one is a non-clipped .pdf and the others are clipped non-pdf. I'm running pdflatex and the resulting pdf is created and can be ...
4
votes
0answers
110 views

Why am I getting empty Asymptote output and empty error files?

I am trying to reproduce this picture shown in this answer to this question. The code provided in the answer is: % impsurfsmooth.tex : % \documentclass[10pt,a4paper]{article} \usepackage{lmodern} \...
4
votes
0answers
87 views

Make portions of document images so that text within is not-searchable

I would like to create a macro that converts its paramater into an image with the goal that the text within this macro is not found using the search feature built into standard PDF viewers. Thus, ...
4
votes
0answers
328 views

Fast PNG embedding using xetex

As discussed in this post and also this post, pdftex has the ability of copying PNG files as-is if they are in the right format. This is very useful for me (I’m experimenting with 1024×786px ...
4
votes
0answers
358 views

Subfigures in a0poster

I am working on a poster for a scientific conference using the a0poster document type (with 3 equally spaced columns), but it seems that images/figures are not easy to work with. When I include the ...
4
votes
0answers
473 views

Automatically externalizing content of a PGFplot as a PNG

I've got basically the same issue as in this question: I have a rather complicated plot made with PGFplots and I can get a very significant file size reduction by using a rasterized image (PNG) ...
4
votes
0answers
339 views

Image appears half Latex EPS Photoshop/Gimp

This is the first time this is happening in years of latex usage. I recently started using photoshop, and having exported the image in a variety of formats in photoshop (pdf/jpeg/png) and ...
4
votes
0answers
267 views

Generate QR Code with image inside

How can I generate in xelatex a QR code with any given image inside, like so or better like this, using either pstricks or the new qrcode package? Note that the QR-code must still work after including ...
4
votes
0answers
258 views

Chess figurines for kindle, both eink and kindle fire

I wrote 13 chess books, using images, well seen on every kind of kindle, old and new. However, they mantain the same size when you change the size of the text. I just saw an old post by Asim, who ...
4
votes
0answers
654 views

How to get and process bitmap graphics at a pixel level on-the-fly?

We are trying to solve How to get intersection point(s) of two glyphs? and there are some interesting subtasks. In word cloud algorithms they are converting glyphs (a vector form) to a raster form and ...
3
votes
0answers
54 views

What messes up the space between the second itemlabel and text in this example?

I am trying to wrap pictures around list environments. I've found this question: Wrapping itemize around figure using floatflt in multicol environment - figure doesn't show And the answer of this ...
3
votes
0answers
68 views

Including a greyscale PNG image gives wrong colorspace in resulting pdf file

I am preparing a large document that will be printed in one colour, and I tried including a few images in png-format that have been converted to a greyscale colorspace (DeviceGray). In the resulting ...
3
votes
1answer
678 views

Copy of overleaf project no longer compiles (EPS file error?)

I have an overleaf project with a number of EPS files. I use the graphicx package to include them in the final PDF. It compiles properly, and the figures look fine. I copied the whole project, and ...
3
votes
0answers
223 views

Alternative to psfrag that works with matplotlib / Python?

Is there an alternative to the psfrag library that works with plots made outside of the MATLAB program? For example, in Python, even if you save a figure with the .eps extension, it is not compatible ...
3
votes
0answers
436 views

Can't compile .tex file after MacTeX 2017 last packages update

Till last update of MacTeX my files were compiled nice. After update I can't compile them. Example code: \documentclass[a4paper,12pt]{article} \usepackage[T1,T2A]{fontenc} \usepackage[utf8]{inputenc} ...
3
votes
0answers
82 views

jpeg gets inserted in different size after saving, fbox still uses old size

I have a jpeg image which was created on OS X by scanning it using my HP Office Jet 8600. The original itself is not very large, and when I insert it using \includegraphics it shows up in a size which ...
3
votes
0answers
553 views

How can I prepare a PDF file for a colour overlay with `\color`?

I want to include colorised icons in a mdframed environment. Since I think that in the near future I will probably need the icons to have varying colours, I'd like to use the \color{...}{\...
3
votes
0answers
89 views

go to .tex file when clicking on a .pdf in includegraphics

I am trying to figure out a convenient way to do the following: I do my presentations in LaTeX and for the sake of compilation time I usually have my graphics in an extra subfolder. While editing the ...
3
votes
0answers
50 views

Auto images height to get specified number of pages. Is it possible with LaTeX?

I am a very beginner in LaTeX, and need to know if it is possible to do next. There is a book, consisting of text and photos, going one by one. Questions: Is it possible in LaTeX to make images ...
3
votes
0answers
134 views

Wrap figure challenge: is it possible in LaTeX?

I am struggling with a problem: I need to have a lot of wrapfig positioned in the top right corner of the page. I don't want to do a manual tweaking, but a solution similar to \begin{figure}[t], that ...
3
votes
1answer
1k views

Fit bounding box to gnuplot legend

Summary: Is there a way to automatically reduce the bounding box of an eps file to only fit displayed text? Details: A while ago I asked a question about combining multiple gnuplot graphs into a ...
3
votes
0answers
422 views

Transparent png prints incorrectly from Reader

I have a transparent PNG over a tikzpicture. This prints fine from TeXworks (left image), but from Adobe Reader the transparent area is noticeable (right image). Since most people use Reader, this is ...
3
votes
0answers
930 views

How to convert the latex file into postscript file

I have faced one problem. Actually, I'm working on IEEE paper, and they said that I have to convert my .tex files into postscript file How can I get postscript file? I'm working with WinEdt 8.0 ...
3
votes
0answers
355 views

eps import wrong title in graphic \pi looks like \neq

I need to import a figure from Matlab. I export it as an .eps. I use epstopdf to import it in LaTeX and for some unknown reasons the greek letter pi in the title of the plot that looks ok in the .eps ...
3
votes
0answers
3k views

PDF images not showing up with lualatex/pdflatex

I am trying to include an image in PDF format into my document as a figure. When compiling with lualatex or pdflatex, the image does not appear. If I take that very PDF image and convert it to PNG and ...
3
votes
0answers
1k views

htlatex options

I'm using htlatex (Miktek 2.9, on windows command prompt) with the command: htlatex source.tex "3" "" "" "--interaction==nonstopmode" to generate HTML from existing documents written in LaTeX. I've ...
2
votes
0answers
19 views

Select other image if file image not found

I want to edit my code with rule: If image A.png not found, display backup.png My minimal code: \documentclass{article} \usepackage[pdftex]{graphicx} \begin{document} Select backup.png image if ...
2
votes
1answer
89 views

Using Inkscape-generated figures in LaTeX document: How to make process more efficient?

I use LaTeX to type up lecture notes for math and physics, and I use Inkscape whenever I need to generate graphics for them. I want to find a faster method for doing this. Currently, I do the ...
2
votes
0answers
50 views

Drawing a node in tikz

I want to draw a nodal curve with tikz, that is the curve parametrized by x(t) = t^2 - 1 and y(t) = t^3 - t. To do this, I tried the code \begin{tikzpicture} \draw [style = help lines, step = 0.5]...
2
votes
0answers
53 views

Why do symbols disappear from an Inkscape-generated PDF?

I have created this graph in Inkscape I save it as pdf_tex but in my research PDF it looks like this !!! Why I dont get the right font, font size, and symbols in my PDF
2
votes
1answer
70 views

Blank Boxes with mfpic in exam class

I'm working on a document that uses mfpicand would like to compile without having to do mpost every time. I tried to use the code given in this post, but have been unsuccessful. MWE: \...
2
votes
0answers
397 views

Unwanted rotation of images

I have three images included with \subcaptionbox in a figure, but the problem is that I get one of the images, which is vertical, rotated 90° automatically and I don't want it. Is there any way I ...
2
votes
0answers
103 views

Use multi-page PDF as multiple graphics in LyX with correct preview?

In LyX, the "Insert > Graphics" dialog is the standard way for including graphics and, usefully, provides an inline-preview of the graphic in question. LaTeX's \includegraphics command allows to ...
2
votes
0answers
115 views

LaTeX Flow Text Around Background Image

I would like to have text flow around the positive space of the background image in my PDF, kind of like the image on the left (from the DnD 5e player's handbook): I'm not really tied to a particular ...
2
votes
0answers
320 views

All pdf images are rotated. png images are the correct orientation

I am working on a large collaborative document on overleaf, where all images look fine. When I clone a local copy to work on, all the pdf plots are rotated 90°, while all the .png plots are the ...
2
votes
0answers
598 views

Why TexStudio can not show eps-figure?

I am using xelatex to plot eps-image in pdf-file. But the eps-image is not showing and I want to know why Something I have found: Case 1: xelatex + TexStudio -> eps-image can not show, pdf-image ...
2
votes
0answers
104 views

Asymptote and ePiX: What is the advantage of one over the other?

Links: Asymptote, popular vector graphics language. ePiX, is also similar software created by one of the top Stack Exchange members. Both are based on C, which is nice for me because I hate the TikZ ...
2
votes
0answers
81 views

Equation collage

Is it possible to make an equation collage using all the equations within a document? So far I have exported all the equations with \documentclass{article} \usepackage{amsmath} \usepackage[active,...
2
votes
0answers
61 views

Header image with automatically adjusted margin

I am producing a two-column document that will have full page-width header images on various pages. \documentclass[12pt,a4paper,twocolumn]{article} \usepackage{graphicx,tikz,lipsum,fancyhdr} \...
2
votes
0answers
489 views

Matplotlib PDF figures blurry when printed

I'm creating my figures with Matplotlib. They are in the standard pdf output format of Matplotlib and I include them with \includegraphics{figure.pdf}. In my python scripts I activated the usetex flag ...