2

Why doesn't tcolorbox put the text just below the figure?

\documentclass[11pt,a4paper]{report}
\usepackage[]{graphicx}
\usepackage{multicol}
\usepackage{lipsum}
\usepackage[most]{tcolorbox}

\newenvironment{Figure}
  {\par\medskip\noindent\minipage{\linewidth}}
  {\endminipage\par\medskip}

\begin{document}
\begin{multicols}{2}
\begin{Figure}
 \includegraphics[width=9.014cm]{explicit.png}
\end{Figure}
\begin{tcolorbox}[breakable]
\lipsum
\end{tcolorbox}
\end{multicols}
\end{document}

enter image description here

1

1 Answer 1

4

It does it if you uses report class twocolumn option instead of multicol environment.

\documentclass[11pt,a4paper,twocolumn]{report}
\usepackage[]{graphicx}
\usepackage{multicol}
\usepackage{lipsum}
\usepackage[most]{tcolorbox}

\newenvironment{Figure}
  {\par\medskip\noindent\minipage{\linewidth}}
  {\endminipage\par\medskip}

\begin{document}
\begin{Figure}
 \includegraphics[width=\linewidth]{example-image}
\end{Figure}
\begin{tcolorbox}[breakable]
\lipsum
\end{tcolorbox}
\end{document}

enter image description here

2
  • Sometimes I work with large equations and big pictures, can I break 'twocolumns' eventually? Jul 1, 2016 at 7:39
  • 1
    Yes. You can use figure*. Now I don't remember the equivalent for equations.
    – Ignasi
    Jul 1, 2016 at 7:48

You must log in to answer this question.

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