"LM" == Lawrence Mitchell wence@gmx.li writes:
LM> rpgoldman@sift.info wrote: LM> [...]
>> ! \includegraphics{ex2.pdf}
LM> If you leave off the extension, \includegraphics will LM> (generally) automatically pick the correct file format (.eps or LM> .pdf) depending on whether latex or pdflatex is being run.
LM> [...]
Thanks! I note also that I had to mess with native.pstex_t to make this work, which feels a little unfortunate to me. This is a little tex file that mostly includes an image and decorates it with some picture commands. I'm inclined to suggest that it simply be folded into the overall tex source, although it's integrated into the Makefile...
Here's a new patch file that takes Lawrence's suggestions into account, and a modified version of native.pstex_t. Not mimulated.
---------------------------------------------------------------------- Index: manual.tex =================================================================== RCS file: /project/mcclim/cvsroot/mcclim/Doc/manual.tex,v retrieving revision 1.26 diff -c -r1.26 manual.tex *** manual.tex 11 Mar 2005 22:34:59 -0000 1.26 --- manual.tex 6 Apr 2005 19:56:40 -0000 *************** *** 7,12 **** --- 7,17 ---- \usepackage{alltt} \usepackage{moreverb}
+ \ifx\pdfoutput\undefined \csname newcount\endcsname\pdfoutput \fi + \ifcase\pdfoutput \else + \usepackage[pdftex]{hyperref} + \fi + \setlength{\parskip}{0.3cm} \setlength{\parindent}{0cm}
*************** *** 372,378 ****
\begin{figure} \begin{center} ! \inputfig{ex2.pstex_t} \end{center} \caption{\label{figex2} View of the improved example} \end{figure} --- 377,383 ----
\begin{figure} \begin{center} ! \includegraphics{ex2} \end{center} \caption{\label{figex2} View of the improved example} \end{figure} *************** *** 643,650 **** c. Mirrors are outlined with dotted rectangles.
\begin{figure} ! \begin{center} ! \inputfig{native.pstex_t} \end{center} \caption{\label{fignative} A sheet with a nontrivial transformation} \end{figure} --- 648,656 ---- c. Mirrors are outlined with dotted rectangles.
\begin{figure} ! \begin{center} ! \input native.pstex_t ! %\inputfig{native.pstex_t} \end{center} \caption{\label{fignative} A sheet with a nontrivial transformation} \end{figure} *************** *** 1576,1582 **** The new cons cell diagram format looks like this:
\begin{center} ! \includegraphics{inspect-as-cells.eps} \end{center}
\section{Extending Clouseau} --- 1582,1588 ---- The new cons cell diagram format looks like this:
\begin{center} ! \includegraphics{inspect-as-cells} \end{center}
\section{Extending Clouseau} *************** *** 1718,1724 **** the right. This gives us some reasonably nice-looking output:
\begin{center} ! \includegraphics{inspect-object-1.eps} \end{center}
But what we really want is something more closely adapted to our --- 1724,1730 ---- the right. This gives us some reasonably nice-looking output:
\begin{center} ! \includegraphics{inspect-object-1} \end{center}
But what we really want is something more closely adapted to our *************** *** 1754,1760 **** to \cl{x=y} and we're done. It looks like this:
\begin{center} ! \includegraphics{inspect-object-2.eps} \end{center}
Finally, for our amusement and further practice, we'll try to get some --- 1760,1766 ---- to \cl{x=y} and we're done. It looks like this:
\begin{center} ! \includegraphics{inspect-object-2} \end{center}
Finally, for our amusement and further practice, we'll try to get some *************** *** 1816,1822 **** Our final version looks like this:
\begin{center} ! \includegraphics{inspect-object-3.eps} \end{center}
For more examples of how to extend the inspector, you can look at --- 1822,1828 ---- Our final version looks like this:
\begin{center} ! \includegraphics{inspect-object-3} \end{center}
For more examples of how to extend the inspector, you can look at
----------------------------------------------------------------------
native.pstex_t
\begin{picture}(0,0)% \includegraphics{native}% \end{picture}% \setlength{\unitlength}{3108sp}% % \begingroup\makeatletter\ifx\SetFigFont\undefined% \gdef\SetFigFont#1#2#3#4#5{% \reset@font\fontsize{#1}{#2pt}% \fontfamily{#3}\fontseries{#4}\fontshape{#5}% \selectfont}% \fi\endgroup% \begin{picture}(4983,4407)(1,-3673) \end{picture}%
----------------------------------------------------------------------
Cheers, R