Graphics, Figures & TablesWhat's a good command for PGF figure import

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
rd5955
Posts: 1
Joined: Fri Apr 16, 2010 9:04 pm

What's a good command for PGF figure import

Post by rd5955 »

Hi,

I want to use the pgf package to import a pgf figure. I can't figure it out from the online pgf helps as they tend to focus on actually drawing stuff.

I've used an eps2pgf converter to obtain my pgf image. I now wish to import it into my latex file as for \includegraphics for a .eps figure.

I have usepackage pgf in the preamble.

I've tried using

\pgfimage{pp}
\pgfuseimage{image1}

both with and without
\pgfdeclareimage[interpolate=true,height=1cm]{image1}{pp}

Although the pgf file (pp.pgf) is certainly in the latex file folder, latex can't seem to find it. What is the best figure import command to use?

Thanks in advance - R

e.g.
\pgfdeclareimage[interpolate=true,height=1cm]{image1}{pp}
\begin{figure}
\center
\pgfimage{image1}
\caption{...}
\label{phaseportait}
\end{figure}

or

\begin{figure}
\center
\include{pp}
\caption{...}
\label{phaseportait}
\end{figure}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

T3.
Posts: 208
Joined: Fri Mar 14, 2008 12:58 pm

What's a good command for PGF figure import

Post by T3. »

If you haven't figured it out by now, it's:

Code: Select all

\input
(see documentation of eps2pgf for an example).

Cheers,

Tomek
Post Reply