Tikzposter 背景颜色

Tikzposter 背景颜色

我正在尝试修改 tizkposter 中的标准“沙漠”主题,方法是将块的背景颜色更改为白色,将海报背景颜色更改为已设置为块背景的灰色,即切换两种颜色。但是,我可以将第一个设置为白色,但无法将第二个更改为任何颜色。

\usetheme{Desert}

% OTHER COLOUR ADJUSTMENTS:
\colorlet{blockbodybgcolor}{white}
\colorlet{backgroundcolor}{gray}

\begin{document}
some blocks and their text...
\end{document}

你知道该如何实现吗?非常感谢。

答案1

backgroundcolorDefault背景样式:

\documentclass{tikzposter}

\usetheme{Desert}

%% OTHER COLOUR ADJUSTMENTS:
\colorlet{blockbodybgcolor}{white}
\colorlet{backgroundcolor}{gray}


\usebackgroundstyle{Default}

 \begin{document}
     \maketitle  % See Section 4.1
     \block{BlocktitleA}{Blocktext}  % See Section 4.2
     \begin{columns}  % See Section 4.4
         \column{0.3}  % See Section 4.4
         \block{BlocktitleB}{Blocktext}
         \column{0.7}
         \block{BlocktitleC}{Blocktext}
         \note{Notetext}  % See Section 4.3
     \end{columns}
 \end{document}

替代方案:创建新的背景样式

\documentclass{tikzposter}

\usetheme{Desert}

%% OTHER COLOUR ADJUSTMENTS:
\colorlet{blockbodybgcolor}{white}
\colorlet{backgroundcolor}{gray}


\definebackgroundstyle{mystyle}{
    \draw[line width=0pt, bottom color=backgroundcolor, top
     color=backgroundcolor!60!white] (bottomleft) rectangle (topright);
    \draw[draw=none, line width=0pt, bottom color=titlebgcolor, top
     color=framecolor] (bottomleft) rectangle ($(bottomleft)+(\textwidth,3)$);
}

\usebackgroundstyle{mystyle}

 \begin{document}
     \maketitle  % See Section 4.1
     \block{BlocktitleA}{Blocktext}  % See Section 4.2
     \begin{columns}  % See Section 4.4
         \column{0.3}  % See Section 4.4
         \block{BlocktitleB}{Blocktext}
         \column{0.7}
         \block{BlocktitleC}{Blocktext}
         \note{Notetext}  % See Section 4.3
     \end{columns}
 \end{document}

在此处输入图片描述

相关内容