I have a multicolumn text. And I want to print something on page two inside two fittable boxes spanning the whole width of the page exclusively.
So I thougth to use \begin{multicols}{2} for the two columns and \AtBeginShipout{\ifnum\value{page}=1 \tcboxfit{}}
Working example, with wrong output.
\documentclass[12pt]{article}
\usepackage[breakable,fitting,raster]{tcolorbox}
\usepackage{lipsum}
\usepackage{multicol}
\usepackage{atbegshi}
\AtBeginShipout{
\ifnum\value{page}=1
\tcbset{colframe=black,colback=white,
sharp corners,
boxsep=5mm,top=1mm,bottom=1mm,left=1mm,right=1mm,
fit algorithm=hybrid*,raster equal skip=-0.5mm}
\tcboxfit{
Information
}
\tcboxfit{
more Infomation
}
\newpage
\fi
}
\begin{document}
\begin{multicols*}{2}
\subsection{-1-}
\lipsum[1]
\subsection{-2-}
\lipsum[2]
\subsection{-3-}
\lipsum[3]
\subsection{-4-}
\lipsum[4-5]
\subsection{-5-}
\lipsum[5]
\end{multicols*}
\end{document}
There are two things wrong with this:
- Part of the paragraph will be output to page two
- The tcboxfit only spans the column.
Any Ideas?
EDITH: twocolumn option is not so helpful, because it starts a new page, and I want to begin twocolumn right after a longtable (which itself may span over to the next page depending on the generated data).
So my real question ist: Why is part of the paragraph put on page two. I adjusted the example. As you can see, "sit amet, consecuteur..." is on the wrong page, namely the page two



\tcboxfitor another kind oftcolorboxis good? – Phelype Oleinik Jul 13 '18 at 13:27