# Fix overfull hbox floatrow

When using the floatrow package to layout figures with the caption to the side, I get a overfull \hbox errors.

Overfull \hbox (3.33331pt too wide) in paragraph at lines 23--23


If I set \FBwidth-1 on each \ffigbox the error goes away. Hackish?

I have many figures that will be done this way, what is the proper way to do the \subfloatrow so this doesn't happen?

\documentclass[draft]{article}
\usepackage{graphicx}
\usepackage{floatrow}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{lipsum}
\usepackage{calc}
\begin{document}

\lipsum[1]

\begin{figure}
\fcapside[0.7\textwidth]{\fboxsep-1pt%
\begin{subfloatrow}[3]
\ffigbox[\FBwidth]{\caption[]{}\label{fig:test15a}}{\includegraphics[width=\hsize]{sample1}}%
\ffigbox[\FBwidth]{\caption[]{}\label{fig:test15b}}{\includegraphics[width=\hsize]{sample2}}%
\ffigbox[\FBwidth]{\caption[]{}\label{fig:test15b}}{\includegraphics[width=\hsize]{sample3}}%
\end{subfloatrow}
}{
\caption{Horizontal sub-figures, top aligned}%
\label{fig:test15}%
}
\end{figure}

\end{document}


You missed one %
   \begin{subfloatrow}[3]%<<<<<<<<<<<<<<<<<

• @cjorssen 3.33331pt too wide is just TeX way of saying missing % at end of line So I could have answered without looking at the code:-). TeX is designed to typeset text and space between words is significant. There isn't really (despite for example latex3 conventions) a separate programming layer in TeX, It's always trying to typeset something and spaces are significant unless the macros arrange to ignore them. – David Carlisle Apr 10 '13 at 19:31
• Good to know. I'm going to inspect every occurrences of \begin{subfloatrow} in files. Thanks for pointing this. – cjorssen Apr 10 '13 at 19:34
• @cjorssen might be simpler to suggest to the package maintainer he adds \ignorespaces – David Carlisle Apr 10 '13 at 19:36