I'm sure I'm not the first person to be annoyed by this, but after a relatively long search on the web, battling my way through the index of "The LaTeX Companion" and some DIY effort redifining things in the float.sty file, I still don't have an effective solution to my problem:
How can you put a box around a figure that is alligned with the width of the paragraph?
At first I didn't notice this effect, but now it's really annoying me. I'm actually a bit surprised that everybody seems to have accepted this as OK. But if we're all so happy with a misalignment of 3.4pt every time we put in a picture, why aren't we all just using Microsoft Word?
Anyway, my best effort was to use the following code in the preamble, after loading the float package:
Code: Select all
\makeatletter
\renewcommand\fs@boxed{\def\@fs@cfont{\bfseries}\let\@fs@capt\floatc@plain
\def\@fs@pre{\setbox\@currbox\vbox{\hbadness10000
\moveleft0.0pt\vbox{\advance\hsize by0.8pt
\hrule \hbox to\hsize{\vrule\kern0.0pt
\vbox{\kern0.0pt\box\@currbox\kern0.0pt}\kern0.0pt\vrule}\hrule}}}
\def\@fs@mid{\kern2.0pt}
\def\@fs@post{}\let\@fs@iftopcapt\iffalse}
\makeatother
Does anybody know how to do this properly?
Thanks