I am trying to divide a document in three parts by using minipages. First, I created a top strip and after it I want to separate the document in two parts and make it so those parts fill completely the remaining vertical spacing of the page
My problem is that I have to manually calculate the height of the second and third minipages, so they fill the whole page. Is it possible to automatize this, so if I change the height of the top strip they will be automatically modified?
Code:
% Heavily commented to hopefully undestand what I am doing (Help!)
%
% Start a document with the here given default font size and paper size.
\documentclass[10pt,a4paper]{article}
% Call needed packages
\usepackage[a4paper,margin=0pt]{geometry} % Set the page margins.
\usepackage{lipsum} % To create random text
\usepackage{fontspec}
\usepackage{xcolor}
% Setup the language.
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\hyphenation{Some-long-word}
%Colors used
\definecolor{babyblueeyes}{rgb}{0.63, 0.79, 0.95}
\definecolor{blizzardblue}{rgb}{0.67, 0.9, 0.93}
% Command to check margins
\newcommand\redbox[1]{%
\setlength\fboxsep{0pt}\fcolorbox{red}{white}{#1}
}
\begin{document}
%--- TOP STRIP ---%
\noindent % Delete indentation white space
\colorbox{babyblueeyes}{% Background color
\begin{minipage}[c][0.65in]{\textwidth}% Height and width of minipage
\centering
\textcolor{black}{\fontsize{14pt}{0pt}%
\textbf{John Doe Peter}}
\\ \medskip
\textcolor{white}{\fontsize{14pt}{0pt}%
\textbf{Evolving Latex apprentice}}
\end{minipage}
}
%
%--- LEFT STRIP ---%
\noindent
\colorbox{blizzardblue}{% Background color
\begin{minipage}[t][10in]{0.2\textwidth}% Height and width of minipage
\vspace{0pt}
\textcolor{black}{\fontsize{14pt}{0pt}%
\textbf{Title side strip}}
\\ \medskip
\textcolor{white}{\fontsize{14pt}{0pt}%
\textbf{Text side strip}}
\end{minipage}%
}%
%
%--- RIGHT PART ---%
\begin{minipage}[t][8in]{0.75\textwidth}%
\vspace{0pt}
\lipsum[1-5]
\end{minipage}
\end{document}
\LaTeXin your header. – Skillmon Oct 08 '19 at 10:29minipageisn't breakable anymore. – Skillmon Oct 08 '19 at 12:09