我正在用 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}
第三種選擇是更改標題。