2

I have used the following to force captions above (tables) and below (figures) as per the answer to this question.

\documentclass{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[danish]{babel}
\usepackage{biblatex}
\let\newfloat\relax
\usepackage{floatrow}
\floatsetup[table]{capposition=top}
\floatsetup[figure]{capposition=bottom}

\begin{document}

\begin{figure}[h]
\rule{1cm}{1cm}
\caption{A figure}
\end{figure}

\begin{table}[h]
(tabular material)
\caption{A table}
\end{table}

\end{document}

Unfortunately this doesn't work with the biblatex.

Is it possible to force all captions to be above/below with biblatex?

1 Answer 1

4

\let\newfloat\relax before loading floatrow seems to do the trick.

EDIT: The "No room for a new \count" error that seems to be caused by the combination biblatex/floatrow can be resolved by adding

\usepackage{etex}
\reserveinserts{20}

at the start of the preamble.

\documentclass{memoir}
\usepackage{etex}
\reserveinserts{20}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[danish]{babel}
\usepackage{biblatex}
\addbibresource{biblatex-examples.bib}
\let\newfloat\relax
\usepackage{floatrow}
\floatsetup[table]{capposition=top}
\floatsetup[figure]{capposition=bottom}

\begin{document}

\begin{figure}[h]
\rule{1cm}{1cm}
\caption{A figure}
\end{figure}

\begin{table}[h]
(tabular material)
\caption{A table}
\end{table}

\end{document}
6
  • It sure does. I guess my MWE wasn't good enough. The problem arises when using biblatex and floatrow.
    – johankj
    Commented Dec 12, 2012 at 15:07
  • 1
    @Josso Then you have to provide a real (short, compilable, shows the problem) MWE.
    – lockstep
    Commented Dec 12, 2012 at 15:09
  • I've updated with a MWE. I get two different errors based on whether or not I include your redefinition of newfloat.
    – johankj
    Commented Dec 12, 2012 at 19:43
  • how old is your memoir? Current memoir autoload the etex package if found
    – daleif
    Commented Dec 13, 2012 at 11:53
  • 1
    @daleif Maybe loading the etex package is superfluous -- using \reserveinserts{20} seems to make a difference, though.
    – lockstep
    Commented Dec 13, 2012 at 11:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .