我有一个问题,是否可以同时从上方和下方对齐标题框。当我制作海报时,我使用,例如,
\headerbox{Title}{name=resultsFlow,below=UpperHeaderBox,column=3,span=6}{...}
但是如果这个 headerbox(或 2 个 span=3 的 headerbox)位于 UpperHeaderBox 和 LowerHeaderBox 之间,我可以使用类似
\headerbox{Title}{name=resultsFlow,below=UpperHeaderBox,above=LowerHeaderBox,column=3,span=6}{...}
只是为了调整标题框的高度?
现在我正在使用\vspace{}
它,但我不喜欢这种手动调整。提前谢谢!
答案1
简短的回答是“是”,这是可能的。我用 替换了 ,headerbox
因为posterbox
它headerbox
已被弃用。在中间框之间放置框之前,必须声明中间框上方和下方的框。框 1-3 演示了框 3 将拉伸以填充框 1 和框 2 之间的空间的语法。框 2 使用 手动放置在页面底部row=0.85
,其中 0.85 是列高的 85%。框 4-6 仅占用其内容定义的空间,但与第一列中的框对齐(column 0
)。
这是一个 MWE:
\documentclass[landscape,a0paper]{baposter}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage[pangram]{blindtext}
\begin{document}
\background{
\begin{tikzpicture}[remember picture,overlay]%
%the poster background color
\fill[fill=lightgray!25] (current page.north west) rectangle (current page.south east);
%the header
\fill [fill=lightgray!75] (current page.north west) rectangle ([yshift=-\headerheight] current page.north east);
\end{tikzpicture}
}
\begin{poster}{
grid=false,
columns=3, % how many columns 1-6
colspacing=5.0mm, % spacing between the columns
background=user, %user or none or plain
headerheight=0.1\textheight,
eyecatcher=true, %turn left logo on/off
%posterbox environment options
headerborder=closed, % see the baposter manual for the rest
borderColor=green,
headershape=rectangle,
headershade=plain,
headerColorOne=green!40!white,
textborder=rectangle,
boxshade=plain,
boxColorOne=green!10!white,
headerFontColor=black,
textfont=\scriptsize, % font definition for body of posterbox
headerfont=\scshape, % font definition for header of posterbox
linewidth=3pt,
}
{\includegraphics[height=5em]{example-image-a}\hspace{1cm}} % Eyecatcher on the left
{Title}
{Author}
{\includegraphics[height=5em]{example-image-b}} % Logo
\begin{posterbox}[name=box1, column=0,row=0,span=1]{Box 1}
\Blindtext[3][5]
\end{posterbox}
\begin{posterbox}[name=box2, column=0,row=0.85,span=1]{Box 2}
\Blindtext[3][5]
\end{posterbox}
\begin{posterbox}[name=box3, column=0,below=box1,above=box2,span=1]{Box 3}
\Blindtext[3][5]
\end{posterbox}
\begin{posterbox}[name=box4, column=1,row=0,span=1]{Box 4}
\Blindtext[1][1]
\end{posterbox}
\begin{posterbox}[name=box5, column=1,below=box3,span=1]{Box 5}
\Blindtext[2][2]
\end{posterbox}
\begin{posterbox}[name=box6, column=1,aligned=box3,span=1]{Box 6}
\Blindtext[2][5]
\end{posterbox}
\end{poster}
\end{document}
这是输出: