[OS X TeX] Extraneous text with \includegraphics

Luis Vitorio Cargnini lvcargnini at gmail.com
Mon Feb 16 17:13:12 EST 2009


Le 09-02-16 à 16:27, Rob Preuss a écrit :

> Gary,
>
> I found the problem. My header contained the line:
>
> \setkeys{Gin}{width=\columnwidth-80pt,keepaspectratio}   % global  
> settings
>
> Changing this to:
>
> \setkeys{Gin}{width=\columnwidth,keepaspectratio}   % global settings
>
> eliminated the extraneous text.
>
> Thanks for the other tips as well.
>
> Rob
>
>> On Feb 15, 2009, at 2:38 PM, Rob Preuss wrote:
>>
>>> Sorry if this is a dumb question, but I'm baffled.
>>>
>>> Whenever I include a PDF figure with code such as
>>>
>>> \begin{figure}[t]
>>> \begin{center}
>>> \includegraphics{Fig1}
>>> \caption{My Figure}\label{fig:one}
>>> \end{center}
>>> \end{figure}
>>
>> You should be using the following structure to avoid the insertion  
>> of extra vertical space:
>>
>> \begin{figure}[t]
>> \centering
>> \includegraphics{Fig1}
>> \caption{My Figure}\label{fig:one}
>> \end{figure}
>>
>>> Latex prints the text "-80pt-" above the figure
>>> and the text "80pt" to the left of the figure.
>>>
>>> The figure was created using Preview to convert
>>> and then crop a postscript file. If I omit the
>>> line "\includegraphics{Fig1}" I do not get this
>>> extra text, but I also don't get the figure.
>>
>> Can you post the original Postscript file as well as the offending  
>> PDF?
>>
>> -- Gary
>>
>>
Try this is what I always use inside the figure environment:

\includegraphics[width=0.8\columnwidth]{estimation_oldfaithful}

This command will include your graphic file making the graphic always  
using maximum of 80% of the column width, o course I alwyas keep my  
figures centered with \centering, this way works for papers and common  
text that use full page.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2320 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20090216/4deb62bf/attachment.p7s>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 198 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20090216/4deb62bf/attachment.sig>


More information about the MacOSX-TeX mailing list