I am using the tikzposter class to create a poster and have three columns extending almost to the bottom of the page. I would like to stretch the space in between blocks so that the bottoms of the final block in each column line up. A solution which could be modified pad the contents of the block to achieve the same thing would be ideal for if I ever make another poster where the columns are not as similarly sized. I know this is possible in the beamerposter class, but I have no desire to switch poster classes at this late stage (and tikzposter has very nice default themes).

Since tikzposter positions the blocks using tikz, and not the normal LaTeX positioning, it seems like using rubber lengths or \vfill directly is out. So, is there a reasonable way of doing this? I don't mind a solution that hacks around with the tikzposter class itself, or has to write things to the aux file.

  • Welcome to TeX.SX. Please look a our TeX.SX starter guide and help us to help you with a minimal working example (MWE) to work with.
    – Ignasi
    May 7, 2014 at 6:57
  • You could try putting the block into a \savebox{name}{\begin{minipage}{\linewidth}etc.}, use \settoheight{\length}{\usebox{name}} to determine the size of the block, then compute how much \vspace to add before the \usebox{name} to make it flush to the bottom. (Or use \raisebox.) May 7, 2014 at 14:19

1 Answer 1


I ended up solving it myself. Below is the code I used; if you put it in myposter.sty then use \usepackage[colalign]{myposter} to enable the alignment.

It works by saving the natural heights of all columns into the aux file, along with how many blocks there are. Then next compilation, for each column, it looks at the difference between the stored height and the maximum stored height, divides that by the number of blocks, and adds that much padding inside each block (at the top and bottom.)





    % Align the bottoms of columns

    % Declarations

    % Store the natural height and number of blocks of the current column in the aux file
        \ifnum\value{my@column} > 0 %
            \expandafter\newdimen\csname my@colheight\alph{my@column}\endcsname
            \expandafter\setlength\csname my@colheight\alph{my@column}\endcsname{\my@colheight}


    % Replace the \block command with a version that pads each block by \my@columnextraspace
            % count number of blocks
            % keep track of the height of the current column
            % don't add the padding to the height

    % Store the maximum natural height of any column in the aux file
        \ifnum\value{my@column} > 0 %
                \my@colheight@loop\csname my@colheight\alph{my@column@loop}\endcsname

    % Read the column height information and calculate how much extra space the current column needs per block
            \divide\my@columnextraspace by \value{my@block}

    % Replace \column command by a version which stores the height (of the previous column) and calls \my@calcextraspace
    \gdef\column#1{  % #1: relative width
            % Now the normal \column command

    % Replace the columns environment with a version which stores the height of the final column and the max column
        \setlength{\TP@colcenter}{-0.5\TP@visibletextwidth-\[email protected]\blocklinewidth}
  • This is awesome! Except for two bugs: 1) doesn't seem to work correctly when there are subcolumns 2) doesn't seem to respect margins: the blocks are stretched all the way to the bottom of the poster.
    – 12.yakir
    Jun 26, 2014 at 6:34
  • 1
    This is the best. Have you considered releasing it on CTAN? Dec 3, 2015 at 3:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .