I have a table with two columns and one row. The first one is long and determines the overall height of the table (if need be it can be fixed to \textheight). In the second column I have two images. I would like one of them to be aligned to the top of the first column and the other to the second - an effect similar to a \vfill on a normal page - see example below.
The \vfill doesn't seem to work, presumably because the table's height is not defined when that column is set?
I have tried:
Calculating the remaining space on the page using the
\measurepagemacro from this question and inserting this using\vspace- unfortunately this seems to produce lengths much greater than the real available spaceputting in a 0 width (invisible) rule of
\textheightto fix the column height and then using\raiseboxto move the column contents back up. (this fails miserably)
Is there another way of
Here is a minimal example
%% LyX 2.0.3 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[10pt,a4paper,oneside,english,oldfontcommands,a4paper]{memoir}
\usepackage{fontspec}
\setcounter{secnumdepth}{2}
\setcounter{tocdepth}{2}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\pdfpageheight\paperheight
\pdfpagewidth\paperwidth
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
%packages
\usepackage{calc}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{colortbl}
\usepackage{multirow}
\usepackage{lipsum}
\newcommand\measurepage{\dimexpr\pagegoal-\pagetotal-\baselineskip\relax}
\makeatother
\usepackage{babel}
\begin{document}
\renewcommand{\tabularxcolumn}[1]{m{#1}}
\noindent\begin{tabularx}{\linewidth}{@{}X|p{0.2\linewidth}@{}}
\rule{\TX@col@width}{\textheight-\baselineskip}
&
\begingroup\rule{\linewidth}{0.15\textheight} \newline Some text \vfill \rule{\linewidth}{0.15\textheight}\endgroup \tabularnewline
\end{tabularx}
\end{document}
Edit:
Here is a picture showing what I am trying to acheive. Two column table, the left one determines the overall height. The two images on the right should be aligned with the top and bottom of the content of the left column. There will be some text between these images in the right column, of variable length.
So far I can get the images either bottom aligned or top aligned, but not one at the top and one at the bottom.


