1

I'm using floatrow and want to change the the font of a single float object. It says here that this should be possible by placing \fleatsetup{} inside the float object. This doesn't work for me.

My setup:

\usepackage{floatrow}
\floatsetup[table]{style=plaintop}
…
\begin{table}
\floatsetup{font=tt}
\caption{A caption}
\label{label1}
\begin{tabular}{l l}
A & B \\
C & D \\
\end{tabular}
\end{table}

I would expect the font to be changed to monospaced, but nothing happens.

  • 1
    it works if you place \floatsetup{font=tt} outside the table environment and enclose everything in a group. – Nico Boni Nov 9 '13 at 18:14
  • thx, that worked – jvf Nov 9 '13 at 18:24
1

As pointed out by dcmst, \floatsetup{font=tt} needs to be placed outside the environment, but inside a group. The above example would have to look like this:

\usepackage{floatrow}
\floatsetup[table]{style=plaintop}
…

{ % or \begingroup
\floatsetup{font=tt}
\begin{table}

\caption{A caption}
\label{label1}
\begin{tabular}{l l}
A & B \\
C & D \\
\end{tabular}
\end{table}
} % or \endgroup

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.