如何去除 baposter 盒子的背景阴影

如何去除 baposter 盒子的背景阴影

下面是我正在使用的海报模板的一个小例子

\documentclass[a0paper,landscape,final]{baposter}

\usepackage{times}
\usepackage{calc}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{relsize}
\usepackage{multirow}
\usepackage{bm}

\usepackage{graphicx}
\usepackage{multicol}

\usepackage{pgfbaselayers}
\pgfdeclarelayer{background}
\pgfdeclarelayer{foreground}
\pgfsetlayers{background,main,foreground}

\usepackage{helvet}
%\usepackage{bookman}
\usepackage{palatino}

\newcommand{\captionfont}{\footnotesize}

\selectcolormodel{cmyk}

\graphicspath{{images/}}


\newcommand{\Matrix}[1]{\begin{bmatrix} #1 \end{bmatrix}}
\newcommand{\Vector}[1]{\Matrix{#1}}
\newcommand*{\SET}[1]  {\ensuremath{\mathcal{#1}}}
\newcommand*{\MAT}[1]  {\ensuremath{\mathbf{#1}}}
\newcommand*{\VEC}[1]  {\ensuremath{\bm{#1}}}
\newcommand*{\CONST}[1]{\ensuremath{\mathit{#1}}}
\newcommand*{\norm}[1]{\mathopen\| #1 \mathclose\|}% use instead of $\|x\|$
\newcommand*{\abs}[1]{\mathopen| #1 \mathclose|}% use instead of $\|x\|$
\newcommand*{\absLR}[1]{\left| #1 \right|}% use instead of $\|x\|$

\def\norm#1{\mathopen\| #1 \mathclose\|}% use instead of $\|x\|$
\newcommand{\normLR}[1]{\left\| #1 \right\|}% use instead of $\|x\|$


\setlength{\columnsep}{0.7em}
\setlength{\columnseprule}{0mm}



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




\begin{document}


\typeout{Poster Starts}
\background{
  \begin{tikzpicture}[remember picture,overlay]%
    \draw (current page.north west)+(-2em,-0em) node[anchor=north west] {\hspace{-2em}\includegraphics[height=1.1\textheight]{silhouettes_background}};
  \end{tikzpicture}%
}
\definecolor{silver}{cmyk}{0,0,0,0.3}
\definecolor{yellow}{cmyk}{0,0,0.9,0.0}
\definecolor{reddishyellow}{cmyk}{0,0.22,1.0,0.0}
\definecolor{black}{cmyk}{0,0,0.0,1.0}
\definecolor{darkYellow}{cmyk}{0,0,1.0,0.5}
\definecolor{darkSilver}{cmyk}{0,0,0,0.1}

\definecolor{lightyellow}{cmyk}{0,0,0.3,0.0}
\definecolor{lighteryellow}{cmyk}{0,0,0.1,0.0}
\definecolor{lighteryellow}{cmyk}{0,0,0.1,0.0}
\definecolor{lightestyellow}{cmyk}{0,0,0.05,0.0}
\begin{poster}{
  % Show grid to help with alignment
  grid=false,
  % Column spacing
  colspacing=1em,
  % Color style
  bgColorOne=lighteryellow,
  bgColorTwo=lightestyellow,
  borderColor=reddishyellow,
  headerColorOne=yellow,
  headerColorTwo=reddishyellow,
  headerFontColor=black,
  boxColorOne=lightyellow,
  boxColorTwo=lighteryellow,
  % Format of textbox
  textborder=roundedleft,
  % Format of text header
  eyecatcher=false,
  headerborder=open,
  headerheight=0.08\textheight,
  headershape=roundedright,
  headershade=plain,
  headerfont=\Large\textsf, %Sans Serif
  boxshade=plain,
%  background=shade-tb,
  background=plain,
  linewidth=2pt
  }
  % Eye Catcher
  {} % No eye catcher for this poster. If an eye catcher is present, the title is centered between eye-catcher and logo.
  % Title
  {\sf %Sans Serif
  %\bf% Serif
  Expression Invariant Face Recognition using a 3D Morphable Model}
  % Authors
  {\sf %Sans Serif
  % Serif
  Brian Amberg\hspace{3em}
  [email protected]\hspace{3em}
  University of Basel, Switzerland
  }
  % University logo
  {{\begin{minipage}{16em}
    \hfill
    \includegraphics[height=2em]{msrlogo}
    \includegraphics[height=5.5em]{logo}
  \end{minipage}}
  }

  \tikzstyle{light shaded}=[top color=baposterBGtwo!30!white,bottom color=baposterBGone!30!white,shading=axis,shading angle=30]

  % Width of left inset image
     \newlength{\leftimgwidth}
     \setlength{\leftimgwidth}{0.78em+8.0em}


    \newcommand{\colouredcircle}[1]{%
      \tikz{\useasboundingbox (-0.2em,-0.32em) rectangle(0.2em,0.32em); \draw[draw=black,fill=baposterBGone!80!black!#1!white,line width=0.03em] (0,0) circle(0.18em);}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \headerbox{Contribution}{name=contribution,column=0,row=0,span=4}{
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   {}We introduce a method for expression invariant face recognition. A
   generative 3D Morphable Model (3DMM) is used to separate identity and
   expression components. The expression removal results in greatly increased
   recognition performance, even on difficult datasets, without a decrease in
   performance on expression-less datasets.

   It is applicable to any kind of input data, and was evaluated here on
   textureless range scans.
 }


\end{poster}%
%
\end{document}

我想删除标题为“贡献”的框的背景颜色(淡黄色)。

我已阅读此帖子更改 baposter 中框的背景但我不认为它适用于我,因为我看不到任何称为“textborder”的东西

抱歉,这个问题太蠢了。谢谢

答案1

baposter文档:

在此处输入图片描述

如您所见,plain模式使用bgColorOne您定义为bgColorOne=lighteryellow。将其更改为white,阴影将消失。或者将背景样式从 更改plainnone

在此处输入图片描述

更新:更改文本背景

我在文档中找不到,但从中可以看出baposter.cls,框中文本的背景是用和baposter定义的。因此,在标题中或第二个参数中更改这些参数(见下文)以获得所需的结果:boxColorOneboxColorTwoposterheaderbox

\headerbox{Contribution}{name=contribution2, 
         column=0, row=0, span=4, 
         boxColorOne=green!30 %<--------------
  }{

在此处输入图片描述

边注:

如果你刚开始baposter,也许你想尝试一下poster图书馆(来自tcolorbox) 使用与 类似的定位系统baposter,但文档更完善,并且提供一些其他选项,例如将文本从一个框移动到另一个框。这是一个很好的教程和这里一个例子

相关内容