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

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

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

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.