Re: PDFLatex with included graphics
On Tue, Aug 13, 2002 at 04:28:41PM +0200, Neilen wrote:
> Hi.
>
> I am trying to use pdflatex to create a PDF file of a report, with some
> included graphics. I found a site which said that to make this work,
> one needs mereley to use the graphicx package(which I was), specify the
> filename without extension(which I did), and then convert the eps file
> to pdf.
>
> The image conversion worked, and I have the original uvtriangle.eps
> file, and uvtriangle.pdf, which I can view in acroread. The PDF file
> that pdflatex generates is still missing the figure.
>
> I include the figure like this:
>
> \begin{figure}[htbp]
> \centering
> \includegraphics[width=\textwidth]{uvtriangle}
> \caption{Mapping Performed}
> \label{fig:uvxymap}
> \end{figure}
>
> My preamble is:
>
> \documentclass[a4paper,12pt]{report}
> \usepackage[dvips]{graphicx}
> \usepackage{verbatim}
> \usepackage[intlimits]{amsmath}
> \renewcommand{\arraystretch}{1.4}
> \renewcommand{\matrix}[1]{\mathbf{#1}}
>
>
> Any idea whats going on? I'm running woody.
I do it thusly:
CUT HERE ----------------------------------------------------------------
\documentclass{article}
\title{Object Oriented Programming}
\author{John W. M. Stevens}
\usepackage{graphicx}
\usepackage{makeidx}
\usepackage{hyperref}
\makeindex
\parindent 0pt
\parskip 6pt
\begin{document}
\maketitle
\begin{abstract}
This library implements generic container classes.
\end{abstract}
\tableofcontents
\pagebreak
Stuff and more stuff.
\graphicspath{{./}{Containers/}}
\begin{figure}[ht]
\begin{center}
\resizebox{\columnwidth}{!}{\includegraphics{BodyPage}}
\end{center}
\end{figure}
\end{document}
CUT HERE ----------------------------------------------------------------
Where BodyPage.pdf is in either the same directory, or in
Containers.
John S.
Reply to: