I want to write a latex document that consists of only 1 A4 page, which is based on the article document class, and has the following layout:
Inside each "box", I need to be able to insert almost anything. Not just text, but also graphics, tikzpicture, list environment and also footnotes (there will be no floats).
How can I do that?
My approach is to create 3 minipages, as in the MWE below, and to type the content inside them.
Is this approach good? Is there a better way to achieve this page layout?
If yes, then I would like to know why I still get an Overfull \hbox warning in my code.
\documentclass[a4]{article}
\thispagestyle{empty}
\setlength\voffset{0pt} \setlength\headsep{0pt}
\setlength\headheight{0pt} \setlength\topmargin{0pt}
\setlength\parindent{0pt} \setlength\marginparsep{0pt}
\setlength\marginparwidth{0pt}
\usepackage[textheight=0.9\paperheight,showframe]{geometry}
\begin{document}
\fbox{\begin{minipage}[b][2in][c]{\dimexpr\textwidth-2\fboxsep}
\center {\Huge Content that extends 100% of the {\ttfamily textwidth}}
\end{minipage}
}%
\fbox{\begin{minipage}[t][][c]{\dimexpr 0.65\textwidth-2\fboxsep}
\center {\Huge Content that extends 65% of the {\ttfamily textwidth}}
\end{minipage}
}%
\fbox{\begin{minipage}[t][][c]{\dimexpr 0.35\textwidth-2\fboxsep}
\center {\Huge Content that extends 35% of the {\ttfamily textwidth}}
\end{minipage}
}
\end{document}




\centeris not a command (it is part of\begin{center}and does not take an argument.\center {foo}applies to the rest of the document, notfoo– David Carlisle Dec 19 '22 at 19:38\end{minipage}add%– David Carlisle Dec 19 '22 at 19:39minipages to achieve this apperance of the document considered as a good approach? – tush Dec 19 '22 at 20:22\begin{minipage}[t][][c]should be\begin{minipage}[t]though. – David Carlisle Dec 19 '22 at 20:24