Multi-column subfloats with subfig

I have to use subfig instead of subcaption because the style I have to use redefines the look of captions and I can't change that. Given this constraint, how do I use multicol to make multiple-columns subfloats?

The problem is that this doesn't work:

\documentclass{article}  \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[caption=false]{subfig} \usepackage{multicol}  \begin{document}  \begin{figure} \subfloat[inner caption]{   \begin{multicols}{2}   \end{multicols} } \caption{outer caption} \end{figure} \end{document} 

since it results in

 ! LaTeX Error: Something's wrong--perhaps a missing \item. 

(BTW, "something's wrong" is the stupidest error message I've ever seen...)

My ultimate goal is to put two bussproof proof trees side-by-side, and then more, wider proof trees in single column below it; all in the same single subfloat.

Replay

What about using minipage inside the subfigure?

\documentclass{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[caption=false]{subfig}
\usepackage{multicol}
\usepackage{lipsum}

\begin{document}

\begin{figure}
\subfloat[inner caption]{
\begin{minipage}{\textwidth}
  \begin{multicols}{2}
  \lipsum[1]
  \end{multicols}
\end{minipage}
}

\subfloat[inner caption2]{
\begin{minipage}{\textwidth}
  \begin{multicols}{2}
  \lipsum[2]
  \end{multicols}
\end{minipage}
}
\caption{outer caption}
\end{figure}
\end{document}

Multi-column subfloats with subfig

Category: subfloats Time: 2016-07-30 Views: 1

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.163 (s). 12 q(s)