Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I really like the floatrow package, but when its code is not required I expect that everything works as normal, however the correct code fails to compile once floatrow is loaded.

What I am talking about are simple parallel figures placed in minipages:

\documentclass[paper=a4, fontsize=11pt]{scrartcl}
\usepackage[demo]{graphicx}
\usepackage{floatrow}

\begin{document}%
\begin{figure}[H]
  \begin{minipage}[b]{.5\linewidth}
    \centering
    \includegraphics[width=0.5\linewidth]{images/TestBild.png}
    \caption{A figure}\label{fig:figures:2}
  \end{minipage}%
  \begin{minipage}[b]{.5\linewidth}
    \centering
    \includegraphics[width=0.5\linewidth]{images/TestBild.png}
    \caption{Another figure}\label{fig:figures:3}
  \end{minipage}
\end{figure}
\end{document}%

Comment out floatrow and it compiles correctly.

Any possible solution to get it working with floatrow loaded but without any floatrow commands?

share|improve this question
    
You could resort to using floatrow for parallel figures. After all consistency is a good practice (if you place figures with floatrow at some place in a document it would be consistent to make any other placement with floatrow). –  N.N. Nov 2 '11 at 10:35

1 Answer 1

up vote 5 down vote accepted

I found out that one needs to restore the normal LaTeX behaviour, which is introduced by adding \RawFloats at the beginning of the figure environment.

share|improve this answer
    
...and if you use it as \csname RawFloats\endcsname the code will even compile without floatrow package. –  Axel Sommerfeldt Nov 2 '11 at 11:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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