Graphics, Figures & Tablesslight bug with fbox around figure

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Faust
Posts: 55
Joined: Thu Oct 29, 2009 12:45 pm

slight bug with fbox around figure

Post by Faust »

When I use the following code:

\begin{figure}[H]
\centering
\setlength\fboxsep{0pt}
\setlength\fboxrule{0.5pt}
\fbox{\includegraphics{article}}
\caption{Een actuele nota van een grote partij water (600l).}
\label{receipt}
\end{figure}
I get a nice tight frame around my figure

HOWEVER when I rescale the figure using:

\begin{figure}[H]
\centering
\setlength\fboxsep{0pt}
\setlength\fboxrule{0.5pt}
\fbox{\includegraphics[scale=0.5]{article}}
\caption{Een actuele nota van een grote partij water (600l).}
\label{receipt}
\end{figure}

the box is slightly moved to the left leaving a small white space between the frame and the picture. How should I deal with this?

Is there an option to rescale the complete float?

Recommended reading 2024:

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

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

Post Reply