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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply