将图像作为 Fancytikzposter 中的背景

将图像作为 Fancytikzposter 中的背景

我想使用 Fancytikzposter 将图像作为背景。我使用了背景包,但正如预期的那样,fancytikzposter 中预定义的背景与我放置的新背景不兼容。我该如何解决这个问题?我需要修改 fancytikzposter.sty,还是真的没有必要?这是我所拥有的。

\documentclass{a0poster}
\usepackage{natbib}
\usepackage[utf8]{inputenc}
\usepackage{fancytikzposter} % here most of the things are defined
\usepackage[contents=Douhh,color=red]{background}


\usetemplate{3}


\setmargin{2} %margin width in cm
\usepackage[margin=\margin cm, paperwidth=84.1cm, paperheight=118.9cm]{geometry}
\setblockspacing{1.5} %distances between blocks in cm
\setheaddrawingheight{12} %height of header in cm
\setcolumnnumber{3}
\setblocktitleheight{4}


 \title{The Title}

 \author{Homer Simpson \\
 Institute for Nuclear Physics\\ 
 University of Springfield }



 \begin{document}

 \AddToShipoutPicture{\BackgroundPicture}
 \noindent
 \begin{tikzpicture}
 \initializesizeandshifts
 \setyshift{10} % this makes space for the abstract box
 \titleblock{70}{1}

\blocknode{Block 1}{

  Some text here!

 }

 \startsecondcolumn

 \blocknode{Block 2}{
 Fill here
 }


 \startthirdcolumn

 \blocknode{Next block}{

  Fill here\dots

  }


 \end{tikzpicture}

  \end{document}

我得到的结果在此处输入图片描述

我想用一个外部图像来代替文本,该图像会填充整个白色背景。谢谢您的帮助。

答案1

只需添加

\tikz[remember picture,overlay]{\node at(current page.center){\includegraphics{image}};}

在最后。

完整代码

\documentclass{a0poster}
\usepackage{natbib}
\usepackage[utf8]{inputenc}
\usepackage{fancytikzposter} % here most of the things are defined
% \usepackage[contents=Douhh,color=red]{background}

\usepackage{mwe} % provides the background image used in the example

\usetemplate{3}

\setmargin{2} %margin width in cm
\usepackage[margin=\margin cm, paperwidth=84.1cm, paperheight=118.9cm]{geometry}
\setblockspacing{1.5} %distances between blocks in cm
\setheaddrawingheight{12} %height of header in cm
\setcolumnnumber{3}
\setblocktitleheight{4}

\title{The Title}
\author{Homer Simpson \\
  Institute for Nuclear Physics\\ 
University of Springfield }

\begin{document}

% <other document contents>

\tikz[remember picture,overlay,opacity=.3]{
  \node at(current page.center){\includegraphics[width=\textwidth]{image}};
}

\end{document}

输出

在此处输入图片描述

相关内容