![BAposter 标题框无标题](https://linux22.com/image/379189/BAposter%20%E6%A0%87%E9%A2%98%E6%A1%86%E6%97%A0%E6%A0%87%E9%A2%98.png)
我正在使用 BAposter 类准备海报,并且我想要一个没有标题的盒子。
如果我将标题参数留空:
\headerbox{}{name=myBox,...}{myText}
然后它仍然显示框的标题。
关于如何隐藏框标题,您有什么想法吗?谢谢
答案1
标题的高度posterbox
由键指定boxheaderheight
。如果不需要posterbox
标题,请将设置boxheaderheight
为0em
传递给环境的键之一posterbox
。
更一般地,环境中可用的所有键poster
都可用于posterbox
环境。这允许对单个posterbox
es 进行广泛的自定义。这可以通过将posterbox
标题颜色 ( headerColorOne
) 从更改blue
为green
以及将标题的字体颜色从更改white
为 来说明。black
posterbox
妇女权利委员会:
\documentclass[landscape,a0paper]{baposter}
\begin{document}
\begin{poster}{
grid=false,
columns=2,
colspacing=4.2mm,
headerheight=0.10\textheight,
background=none,
eyecatcher=false,
%posterbox options
headerborder=closed,
borderColor=red,
headershape=rectangle,
headershade=plain,
headerColorOne=blue,
textborder=rectangle,
boxshade=plain,
boxColorOne=white,
headerFontColor=white,
headerfont=\color{white}\large\bfseries\sffamily,
textfont=\normalsize\sffamily,
linewidth=1pt
}
{}
{Title}
{\textsc{Author}}
{}
\begin{posterbox}[name=box1,column=0,column=0,row=0,span=1]{Title}
This box has a header. The height of the box header is given by the key \texttt{boxheaderheight}.
The default \texttt{boxheaderheight} is 2em.
\end{posterbox}
\begin{posterbox}[name=box2,column=0,below=box1,span=1,boxheaderheight=0em]{}
This box has no header. Set the height of the box header with the key \texttt{boxheaderheight=height},
where \texttt{height} is some height measure like 4em. Add the key to the options passed
to the \texttt{posterbox} environment.
\end{posterbox}
\begin{posterbox}[name=box3,column=1,row=0,span=1,boxheaderheight=0em]{}
Another box with no header.
\end{posterbox}
\begin{posterbox}[name=box4,column=1,below=box3,span=1,headerColorOne=green,
headerfont=\color{black}\large\bfseries\sffamily,bottomaligned=box2]{Title}
This box has a header. The default \texttt{headerColor1}, given in the keys to the \texttt{poster}
environment is changed from \texttt{blue} to \texttt{green}. The bottom of the box is aligned
with the bottom of \texttt{box2}.
\end{posterbox}
\end{poster}
\end{document}
结果: