Need help with a cls class file. I need a table to stretch from its natural starting position (in this case after an image) to the bottom of the page.
All rows apart from the "Abstract" row should act normally (expand with their contents). The "Abstract" row should vertically expand so that the "Keywords" row is at the very bottom of the page (additionally I'd like some kind of error/warning if the abstract contents are too large for the table to fit into one page).
I would prefer a solution where the other rows don't have to be fixed in height.
Below is the page of the docx template that I'm attempting to convert to LaTeX.
Edit: My solution:
And its code:
% Using parksip and tcolorbox together is a PITA
\newenvironment{tcbrow}{\setlength{\parskip}{0.5\baselineskip}}{\setlength{\parskip}{0pc}}
% Render the thesis abstract
\newcommand*\makethesisabstract{
\thesisabstractgeometry % Set page geometry
\begin{singlespace}
\thispagestyle{empty}
\begin{tikzpicture}[remember picture,overlay,x=0.33pt,y=0.33pt]
\xamkdrawlogo % TikZ code for the XAMK logo
\end{tikzpicture}
\begin{tcolorbox}[
enhanced, space to upper,
height fill, sharp corners,
segmentation style=solid,
colback=white,
middle=0.5pc, boxsep=0.1pc]
\noindent\begin{tabularx}{\textwidth}
{@{} >{\hsize=1.15\hsize}X >{\hsize=1.15\hsize}X >{\hsize=.7\hsize}X @{}}
\textbf{Author}
\vspace*{0.5pc}
\@xamkstudentname
&
\textbf{Degree}
\vspace*{0.5pc}
\@xamkdegreeprogramme
&
\textbf{Time}
\vspace*{0.5pc}
\@xamkpaperdate
\end{tabularx}
\tcbline
\noindent\begin{tabularx}{\textwidth}
{@{} >{\hsize=1.45\hsize}X >{\hsize=0.55\hsize}X @{}}
\textbf{Thesis title}
\vspace*{0.5pc}
\@xamkpapertitle
\ifdef{\@xamkpapersubtitle}{\par\@xamkpapersubtitle}{}
&
\@xamkpagecount\ pages
\@xamkappendixpagecount\ pages of appendices
\end{tabularx}
\tcbline
\textbf{Commissioned by}
\vspace*{0.5pc}
\@xamkthesiscommissioner
\tcbline
\textbf{Supervisor}
\vspace*{0.5pc}
\@xamkthesissupervisor
\tcbline
\textbf{Abstract}
\begin{tcbrow}
\ifdef{\@xamkcustomabstract}{\@xamkcustomabstract}{\input{thesis-abstract.tex}}
\end{tcbrow}
\tcblower
\textbf{Keywords}
\vspace*{0.5pc}
\@xamkthesiskeywords
\end{tcolorbox}
\end{singlespace}
\restoregeometry
}



environpackage). Then we can call, say,\makeformwhat generates this image, generate error if the abstract is too large etc. I would simply add this data to the page as a page filling tikz image with a lot of good placed minipages that just houses the gathered up data from ealier. – daleif Mar 12 '18 at 14:08