长标题需要额外空间

长标题需要额外空间

我正在用 LaTeX 制作我的第一张海报,我有一个相对较长的标题(3 行),我试图将其放入为标题指定的小空间中。我想知道是否有任何方法可以稍微降低标题(也许通过向下推所有框)以便为标题腾出一些额外的空间。请查看我的 MWE 和图片。非常感谢!

\documentclass[a0paper,portrait]{baposter}
\usepackage{relsize}        % For \smaller
\usepackage{lipsum}

\definecolor{bordercol}{RGB}{40,40,40}
\definecolor{headercol1}{RGB}{186,215,230}
\definecolor{headercol2}{RGB}{80,80,80}
\definecolor{headerfontcol}{RGB}{0,0,0}
\definecolor{boxcolor}{RGB}{186,215,230}

\begin{document}

\background{}

\begin{poster}{
    grid=false,
    borderColor=bordercol,
    headerColorOne=headercol1,
    headerColorTwo=headercol2,
    headerFontColor=headerfontcol,
    boxColorOne=boxcolor,
    headershape=roundedright,
    headerfont=\Large\sf\bf,
    textborder=rectangle,
    background=user,
    headerborder=open,
  boxshade=plain
}
{Eye Catcher, empty if option eyecatcher=false - unused}
% Title 
{\sf\bf
A Relatively Long Title I am Trying to Fit in This Surprisingly Little Space Despite the Fact that the A0 Paper is Supposed to be Large}
% Authors 
{\vspace{1em} Author 1, Author 2, Author 3\\
    {\smaller [email protected], [email protected], [email protected]}
}
% Logo 
{}

\headerbox{Header 1}{name=problem,column=0,row=0}{
\lipsum[1-1]}

\headerbox{Header 2}{name=definitions,column=0,below=problem}{
\lipsum[1-1]}

\headerbox{Header 3}{name=acknowledgements,column=0,below=definitions, above=bottom}{
\lipsum[1-1]} 

\headerbox{Header 4}{name=density,span=2,column=1,row=0}{
\lipsum[1-1]}

\headerbox{Header 5}
{name=degreeDistribution,span=2,column=1,below=density,above=bottom}{
\lipsum[1-1]}

\end{poster}
\end{document}

在此处输入图片描述

答案1

有几种可能的解决方案。首先,(如baposter 文档)有一个名为的选项headerheight用于设置页眉高度,默认值为0.1\textheight。可以将其设置为更大的值:

\documentclass[a0paper,portrait]{baposter}
\usepackage{relsize}        % For \smaller
\usepackage{lipsum}

\definecolor{bordercol}{RGB}{40,40,40}
\definecolor{headercol1}{RGB}{186,215,230}
\definecolor{headercol2}{RGB}{80,80,80}
\definecolor{headerfontcol}{RGB}{0,0,0}
\definecolor{boxcolor}{RGB}{186,215,230}

\begin{document}

\background{}

\begin{poster}{
    grid=false,
    borderColor=bordercol,
    headerColorOne=headercol1,
    headerColorTwo=headercol2,
    headerFontColor=headerfontcol,
    boxColorOne=boxcolor,
    headershape=roundedright,
    headerfont=\Large\sf\bf,
    textborder=rectangle,
    background=user,
    headerborder=open,
    boxshade=plain,
    headerheight=0.15\textheight,
}
{Eye Catcher, empty if option eyecatcher=false - unused}
% Title 
{A Relatively Long Title I am Trying to Fit in This Surprisingly Little Space Despite the Fact that the A0 Paper is Supposed to be Large}
% Authors 
{\vspace{1em} Author 1, Author 2, Author 3\\
    {\smaller [email protected], [email protected], [email protected]}
}
% Logo 
{}

\headerbox{Header 1}{name=problem,column=0,row=0}{
\lipsum[1-1]}

\headerbox{Header 2}{name=definitions,column=0,below=problem}{
\lipsum[1-1]}

\headerbox{Header 3}{name=acknowledgements,column=0,below=definitions, above=bottom}{
\lipsum[1-1]} 

\headerbox{Header 4}{name=density,span=2,column=1,row=0}{
\lipsum[1-1]}

\headerbox{Header 5}
{name=degreeDistribution,span=2,column=1,below=density,above=bottom}{
\lipsum[1-1]}

\end{poster}
\end{document}

在此处输入图片描述

该类确保内容区域填充剩余空间,因此 A0 纸张格式将得以保留。

另一个选择是使标题变小:

% Title 
{\smaller A Relatively Long Title I am Trying to Fit in This Surprisingly Little Space Despite the Fact that the A0 Paper is Supposed to be Large}

在此处输入图片描述

第三个选择是更改标题。

在此处输入图片描述

相关内容