I'm looking to set up a latex document with a custom made header and encountered some issues doing that. I iterated through many code setup variants, but was not able to produce the result I wanted.
I'm hoping to find someone who maybe had the same problems and solved them or has more understanding of what goes on underneath to help me with my issue.
Current state
In the following I depict and describe the current state of my document, starting with the optical outcome:
First page
Second page
The above images are the outcome of the following minumum code example:
Minimal example:
\documentclass[a4paper,fontsize=8pt,pdftex,landscape]{scrbook}
\usepackage[inner=1cm,outer=1cm,top=1cm,bottom=1cm,showframe]{geometry}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\renewcommand*\oldstylenums[1]{\carlitoOsF #1}
\usepackage[sfdefault,lf]{carlito}
\usepackage{multicol}
\usepackage[most]{tcolorbox}
\usepackage{MnSymbol}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{} % clear all fields
\renewcommand{\headrulewidth}{0pt}
\fancyhead[CO,CE]{\begin{tcbraster}[raster columns=1]
\end{tcbraster}
\begin{tcbraster}[raster columns=3]
\begin{tcolorbox}[halign=center, center title, valign=center, equal height group=A, , adjusted title=Placeholder]
Placeholder box
\end{tcolorbox}
\begin{tcolorbox}[halign=center, center title, valign=center, equal height group=A, , adjusted title=Placeholder]
Placeholder box
\end{tcolorbox}
\begin{tcolorbox}[halign=center, center title, valign=center, equal height group=A, , adjusted title=Placeholder]
Placeholder box
\end{tcolorbox}
\end{tcbraster}
}
\begin{document}
\Large
\begin{multicols*}{5}
\begin{tcolorbox}[halign=center, center title, valign=center, equal height group=A, , adjusted title=Placeholder]
Placeholder box
\end{tcolorbox}
\begin{tcolorbox}[halign=center, center title, valign=center, equal height group=A, , adjusted title=Placeholder]
Placeholder box
\end{tcolorbox}
\begin{tcolorbox}[halign=center, center title, valign=center, equal height group=A, , adjusted title=Placeholder]
Placeholder box
\end{tcolorbox}
\begin{tcolorbox}[halign=center, center title, valign=center, equal height group=A, , adjusted title=Placeholder]
Placeholder box
\end{tcolorbox}
\columnbreak
\begin{tcolorbox}[halign=center, center title, valign=center, equal height group=A, , adjusted title=Placeholder, height=9.2cm]
Placeholder box
\end{tcolorbox}
\begin{tcolorbox}[halign=center, center title, valign=center, equal height group=A, , adjusted title=Placeholder, height=9.2cm]
Placeholder box
\end{tcolorbox}
\newpage
\begin{tcolorbox}[halign=center, center title, valign=center, equal height group=A, , adjusted title=Placeholder, height=9.2cm]
Placeholder box
\end{tcolorbox}
\begin{tcolorbox}[halign=center, center title, valign=center, equal height group=A, , adjusted title=Placeholder, height=9.2cm]
Placeholder box
\end{tcolorbox}
\begin{tcolorbox}[halign=center, center title, valign=center, equal height group=A, , adjusted title=Placeholder, height=9.2cm]
Placeholder box
\end{tcolorbox}
\end{multicols*}
\end{document}
Issues
The encountered issues within the shown document / minimum example are the following:
- The content of the first page does not begin within the defined text border (but on the second page it magically does), how can I fix this?
- Despite the fact that I am using the "do not balance the columns"-version of multicol - namely
begin{multicols*} [...] \end{multicols*}
- it balances the content of the (first) coloumn out to its height, how can I make it not do that?
Sidenote: it does only do this when using the\columnbreak
command which I DO want to use due to the content of my document. - The page content bottom border gets pushed off the actual page size, A4 (probably because the header is bigger than "expected"), how can I make it be the way I declared it in the "geometry"-package include?