# Distance of boxes in baposter?

I am making a poster using baposter. I couldn't figure out how to reduce the vertical distance of the boxes (and maybe allow them to have some vertical overlap). Any advice?

A sample code:

\documentclass[landscape,paperwidth=22in,paperheight=28in, fontscale=.5]{baposter}
\usepackage{times}
\usepackage{calc}
\usepackage{url}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{relsize}
\usepackage{multirow}
\usepackage{booktabs}
\usepackage{setspace}
\usepackage{multicol}
\usepackage[T1]{fontenc}
\usepackage{ae}
\usepackage{lipsum}
\usepackage{tcolorbox}

\graphicspath{{images/}}
\renewcommand\refname{}

\newcommand{\RotUP}[1]{\begin{sideways}#1\end{sideways}}

\setlength{\columnsep}{5pt}
\setlength{\columnseprule}{0mm}

\newcommand{\compresslist}{%
\setlength{\itemsep}{0pt}%
\setlength{\parskip}{0pt}%
\setlength{\parsep}{0pt}%
}

\begin{document}

\begin{poster}{
grid=false,
colspacing=0.5em,
borderColor=cyan!30!white!90!black,
background=none,
bgColorOne=cyan!10!white,

First box}

Second box}

\end{poster}

\end{document}

• Can you add a small, complete code example? (Just so that everyone who would like to look at this doesn't have to make up their own.) – Torbjørn T. Sep 9 '17 at 19:03
• @TorbjørnT. \setlength{\columnsep}{5pt} determines the horizontal distance of columns in the poster (therefore, the horizontal distance of boxes as well). I have no idea how the code for vertical distance of boxes should look like. By boxes I mean page 2 of brian-amberg.de/uni/poster/baposter/baposter_guide.pdf – D_B Sep 9 '17 at 19:16
• OK, but that was not what I asked for. I asked for example code from \documentclass to \end{document}. Just make the simplest poster possible with two boxes, and add that code to your question. – Torbjørn T. Sep 9 '17 at 19:24
• @TorbjørnT. Sorry. Code dded. – D_B Sep 9 '17 at 21:53

The row placement is defined by the row= key. row takes a real number corresponding to the proportion of the \textheight (here your paper height minus the margins minus the poster header).

So row=0.1 places the box at a distance 0.1\textheight from the top of the poster area. If you use the relative placement keys like below= or align=, this will override the row= definition

In essence, you can place a box anywhere in the column, including overlapping another box (see the example where Box 4 overlaps Box3).

I added the headerfont key to the MWE. It isn't necessary to use formatting macros in the headerbox to set their format. It can be done globally, as indicated.

This is the result:

This is the MWE:

\documentclass[landscape,paperwidth=22in,paperheight=28in, fontscale=.5]{baposter}
\usepackage{times}
\usepackage{calc}
\usepackage{url}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{relsize}
\usepackage{multirow}
\usepackage{booktabs}
\usepackage{setspace}
\usepackage{multicol}
\usepackage[T1]{fontenc}
\usepackage{ae}
\usepackage{lipsum}
\usepackage{tcolorbox}

\graphicspath{{images/}}
\renewcommand\refname{}

\newcommand{\RotUP}[1]{\begin{sideways}#1\end{sideways}}

\setlength{\columnsep}{5pt}
\setlength{\columnseprule}{0mm}

\newcommand{\compresslist}{%
\setlength{\itemsep}{0pt}%
\setlength{\parskip}{0pt}%
\setlength{\parsep}{0pt}%
}

\begin{document}

\begin{poster}{
grid=false,
colspacing=0.5em,
borderColor=cyan!30!white!90!black,
background=none,
bgColorOne=cyan!10!white,

{First box}