I am writing a two column paper and I am trying to have a contents table and and some text below it inside a tcolorbox in the right side of my first page. In the left side the documents text should start and continue normally towards the second page after the left column is filled.

I am trying to do this by having a floating tcolorbox in the right column of the first page. it works well, however I want it to fill the entire right side, but when I make the box a bit bigger than a certain "threshold" it goes to the next page. I also tried to pass the "height fill" parameter to the colorbox, but it also made it go to the second page.

Is there a better way to achieve this?

Here is my code:

\documentclass[11pt, twocolumn]{article}
\usepackage[a4paper, margin = 1in, left = 1.5cm, right = 1.5cm]{geometry}

\title{Some title for the document}
\author{author one, author two, and author three}



    \begin{tcolorbox}[float,floatplacement=!t,height=0.751\textheight] %this is the largest I can make it, with "height fill" I does not work either
        %       \setlength{\fboxrule}{0pt}
        %   \fbox{\colorbox{boxcolor!40}{
        %   \begin{minipage}[l]{0.94\linewidth}
        %   \end{minipage}


\section{Section 1}
\subsection{Subsection 1}
\subsection{Subsection 2}
\subsection{Subsection 3}
\section{Section 2}
\subsection{Subsection 1}
\subsection{Subsection 2}
\subsection{Subsection 3}
\section{Section 3}
\subsection{Subsection 1}
\subsection{Subsection 2}
\subsection{Subsection 3}
\section{Section 4}
\subsection{Subsection 1}
\subsection{Subsection 2}
\subsection{Subsection 3}
\section{Section 5}

enter image description here

  • 1
    Just a guess. The float option conflicts with height fill when you want to place it on the first page because part of \textheight is used with \maketitle. – Ignasi Dec 4 '17 at 8:15
  • You could try using TiKz to make the tcolorbox overlay and adjusting the first page right margin to be really big. But that would also break the text flow to the next page. Just to note that I tried \RLmulticolcolumns and does break the flow of the next page inserting a columnbreak . – G. Bay Jan 12 at 21:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.