{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} or {pstricks}.
9
votes
2answers
1k views
High level macros and environments based on Tikz
I was browsing the tikz examples that I found this wonderful example. The example uses tikz to create a tex environment to produce a framed text. The result looks like this:
The underlying process ...
9
votes
3answers
2k views
Using fancyhdr to create an image based header and footer
I'm trying to generate a latex report (via Sweave and R) where the header of the document is an image that covers everything (including the top/left/right page margin) and the footer covers everything ...
9
votes
3answers
385 views
how to make a cog/gear in LaTeX?
I was wondering what would be a good way to make this in LaTeX. Basically, what I want to do with this is use it as a chapter heading. So basically it will be something like this:
cog chapter # ...
9
votes
2answers
764 views
Create list of all external files used by master LaTeX document?
Is there an easy way to create a list of all external files (complete path) which are used by a LaTeX document (and its "sub-documents") by
\input
\include
\includegraphics ?
(may I have forgotten ...
9
votes
2answers
3k views
Path From and To Same Node in tikz Flowchart
I'm working on creating flowcharts directly inside LaTeX documents using tikz. I am admittedly an extreme novice with tikz, although I have quite a bit of experience using LaTeX.
My problem is when ...
9
votes
3answers
193 views
Rounded box with image and text
I'm trying to create a rounded box with both text and image. The desired result is as this:
Where the image is rounded at the left edges.
I have managed everything except the the image part using ...
9
votes
3answers
259 views
Output TeX into a PDF template
I'm writing a cover letter that I want to have on university letterhead, which I have a full-sized electronic copy of (in PDF as well as JPG). Is there an easy way to make TeX do this?
9
votes
2answers
472 views
Image on top specified page
How can i place an image on the top of the specified page. For example odd pages will be filled by image, even with text. Or, i just want to make sure that (lua)latex will place images on page 2,3,6?
...
9
votes
2answers
2k views
Image with axis
I need to plot some data in a file (10000 records of 2 points each one) but PGFPlot is very very slow rendering it. So I'm trying to use MatLab to plot the data, capture the image WITHOUT axis and in ...
9
votes
2answers
119 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 ...
9
votes
3answers
2k 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 ...
9
votes
1answer
2k views
Insert a TikZ picture from an external file
I tried to search a bit, but i guess my poor English prevented me from finding the answer.
I made a few tikz pictures that i want to use in my report. I made the tikz pictures in separate tex files ...
9
votes
1answer
292 views
How to know the number of pages in a PDF file?
I use graphicx to include pages of a PDF file. I want to know in LaTeX how many pages are in the file. How to do this?
9
votes
2answers
344 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 ...
9
votes
1answer
244 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?
9
votes
3answers
574 views
Print frames rather than boxes with demo/draft version of graphics/graphicx
I recently switched to demo such that I could compile my .tex file without needing the actual image files. Now, instead of the image there is a black box. Is there anyway to get a black border such ...
9
votes
2answers
343 views
Why are my Images not correctly centered?
First of all this is my first posting here on tex.stackexchange.com. I'm new to the tex world and I need a little bit of your help.
I am trying to align text relative to a figure. How it should look ...
9
votes
1answer
202 views
A Tunisian flag on Tikz using a macro “m-grams”
I tried to represent the flag of my country.
I typed this code. But I believe that the position of stars, circles, ... is not so respected. In addition I have a left margin "white band" I want to ...
9
votes
1answer
832 views
Use \setkeys{Gin} to set default scale value doesn’t work
I’d like to make all my graphic a little smaller and tried to set the scale-value of \includegraphics globally with \setkeys{Gin} but while changing width works fine scale has no effect.
...
9
votes
2answers
2k views
Background image for frame title
Using beamer, how can I insert a background image under the title of each frame?
I could insert an image but the result was that the title disappeared because the image is over it.
Any ideas?
9
votes
2answers
653 views
How can I layout images side by side to allow comparison?
I am very very new to TeX/LaTeX, I am writing my first document. So far, I love the way it shows everything. The learning curve is steep though.
I have images that needs to be compared, so they must ...
9
votes
3answers
838 views
How do I include a click-to-zoom thumbnail picture in a non-beamer document?
The Beamer class for presentations provides a way (using the \framezoom command) to include a picture in the document on which one can click to zoom in, and then zoom back out with another click. How ...
9
votes
1answer
175 views
How can I create a chapter with graphics only divided into different sections?
I'm trying to create a chapter with pictures only, but keep running into troubles. The chapter is an appendix, where only some graphics should be displayed, placed in different sections. I don't need ...
9
votes
1answer
1k views
Trim image by number of pixels
Is it possible to trim an image by a certain number of pixels rather than a length?
I have a set of images that I'm including, and in one figure, a trim of 135 on the bottom works nicely, but a ...
9
votes
1answer
447 views
Resulting document size when Including a graphics file multiple times - pgf vs. graphicx
In his answer to the question Tikz: using external images as building blocks. Stefan Kottwitz says:
The pgf way may be preferred if the document size matters and graphics are multiply used or if ...
9
votes
1answer
689 views
How to have a figure touch the edge of the page?
How can I position a figure (picture) so that it:
is aligned on the left-hand side with the text (this is in two column page)
touches (or exceeds) the right-hand side of the page?
An example can ...
8
votes
5answers
583 views
How can I clip an image via a bezier-path?
I have a rectangular image that I can not change.
I'd like to clip the image with a bezier path so I get one that is rectangular at the top and the sides but has a curve at the bottom, preferable ...
8
votes
3answers
589 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 ...
8
votes
5answers
1k views
Inserting figures using loops
I have a set of pictures in my working directory and I want to make a PDF report using these images. I want to include all of them, but the number of the pictures changes in each case. I would like to ...
8
votes
4answers
37k views
LaTeX figures side by side [duplicate]
Possible Duplicate:
Two figures side by side
I want to place 2 images side by side in LaTeX. I have 2 .png files and I don't understand how to do it in LaTeX. I have tried many ways but ...
8
votes
3answers
2k views
Best practice for control flow charts
I wanted to plot a flow chart graph which looks similar to this diagram:
that comes from this source.
Which package would be best for that?
I don't want to use pstricks
8
votes
4answers
1k views
Included png appears too big in PDF
I'm a beginner with LaTex and writing an article in it (letter-sized). WinEDT and MikTeX (versions seen in the log).
I have a PNG chart (obtained from R/ggplot2) which is 471 x 335 pixels and which ...
8
votes
2answers
290 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}
...
8
votes
4answers
238 views
Document layout, combining text and figure panels
This is a question so general, I couldn't easily find an archived post which directly addressed it.
I am interested in using LaTeX to design a one sided sheet containing figures and small amounts of ...
8
votes
5answers
393 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 ...
8
votes
3answers
235 views
Inserting an image properly in a table
I'd like to insert those lines that from "Foo" point to the four different rows in the table.
I've tries inserting an image but it doesn't come out right (please ignore the bad quality of the ...
8
votes
2answers
549 views
Using an image as a table
I have an image containing tabular data and would not like to convert this to a real table. What I do want is for this image to have a proper caption and be included in the listoftables.
Is it ...
8
votes
6answers
2k views
Can pdflatex (or any tex package) automatically rescale included images which have been reduced in size?
I'm writing my thesis in LaTeX, generating it with pdflatex. I have a large number of figures, many of which are bitmaps (as opposed to SVG) in PNG/JPEG format. I've generally created them to be ...
8
votes
4answers
2k views
Background image for minipage
I'd like to put a background image into a minipage, stretching exactly to the surrounding fbox. What's the best option to do that? (Searching the web, I only found solutions for backgrounding the ...
8
votes
2answers
235 views
TeX4ht: \includegraphics[page=10]{foo.pdf}
I have a long LaTeX document with lots of figures that were included using commands of the form
\includegraphics[page=10]{foo.pdf}
Everything compiles fine with pdfLaTeX. I planned to convert the ...
8
votes
2answers
589 views
How to plot planar source-sink network
I was wondering in LaTex, how to plot planar sourc-sink network, such as the following ones I am trying to reproduce:
Thanks and regards!
8
votes
2answers
390 views
How can I insert a paragraph or image into the same spot on every page of a memoir doc?
How can I duplicate one feature of this layout from 'House of Leaves' in a 100ish-page book using LaTeX?
(I'm presently using memoir for document formatting/structure.)
The specific feature I want ...
8
votes
2answers
937 views
Drawing Lattice/Trellis Graphs using PGF/TikZ
I am trying to draw a graph containing lattice points and vectors. I wish it to look something like this:
I am not sure how to go about it, however, I would ideally like to be able to use ...
8
votes
1answer
146 views
Creating Bezier surfaces using procedural graphics
Are there any package for LaTeX that can create Bezier surfaces? I mean a actual existing function that takes matrices as arguments and generates the surface, not a function written by myself.
8
votes
1answer
3k views
Add tif image to LaTeX
I have to add .tif graphic in my LaTeX file, but it is not working.
\usepackage{graphicx}
\begin{figure}[h]
\begin{center}
\includegraphics[width=15mm]{myGraphic.tif}
\end{center}
...
8
votes
3answers
625 views
Vector graphics in LaTeX
I need to add some vector graphics to my LaTeX files. I would like to end up with good looking wireframes, such as in Hatcher's book "Algebraic Topology" (for an example take a look here). Which tools ...
8
votes
5answers
985 views
Seamless background of subfigure bodies, but not captions
I have 3 sub-figures:
\begin{figure}
\subfloat[Apple]{
\includegraphics{apple}
}
\subfloat[Orange]{
\includegraphics{orange}
}
\subfloat[Cherry]{
...
8
votes
4answers
1k views
Micro-graphics inline in text
Can I insert a graphic in-line in a sentence?
Use case: I'm writing a manual that involves navigating the Windows Start Menu. I would like to insert a little graphic of the start menu in-line in ...
8
votes
2answers
3k views
A3 pages within A4 doc
I'm writing my thesis and I'd like to insert A3 pages within my A4 document.
Is it possible to place figures with captions (as normal) on those A3?
I'm able to include full PDF pages which are A3 by ...
8
votes
1answer
8k views
Scale figure to a percentage of \textwidth
I would like to change my figure's width to a precentage of my \textwidth:
\textwidth /2 would scale to 50% of the \textwidth.
What is the proper syntax (if any) to do this ?