我想在 tikzposter 的左侧添加一段文字,该文字覆盖海报的整个高度(旋转 90 度)。我设法做到了这一点
\node [font=\Huge, rotate=90] at ([xshift=3cm,yshift=0.5\textheight]bottomleft) {A lot of text};
不幸的是,这意味着文本要么位于海报中创建的框的上方,要么位于下方。我想将所有框移到右侧,这样它们就不会与文本重叠,同时保持框的总比例相同。
我必须如何定义我的节点才能实现这一点?
答案1
titleoffsetx
您可以使用和水平移动块bodyoffsetx
,但需要补丁才能修复https://bitbucket.org/surmann/tikzposter/issues/38/
\documentclass[a2paper]{tikzposter}
\author{Zum Dood}
\title{Line it up}
\usepackage{xpatch}
\makeatletter
% patch to fix
% https://bitbucket.org/surmann/tikzposter/issues/38/
\xpatchcmd{\block}%
{\TP@blockbodywidth-2\TP@blockbodyinnersep-\TP@blockbodyoffsetx}
{\TP@blockbodywidth-2\TP@blockbodyinnersep}
{}{}
\makeatother
% define length for shifting of blocks
\newlength\MyBlockShift
\setlength\MyBlockShift{2cm}
% dummy text for example
\newcommand\lorem{Lorem ipsum dolor sit amet consectetur etc. etc. uzw. ad infinitum until the text is sufficiently long enough.}
\begin{document}
\maketitle
\begin{columns}
\column{0.33}
\block[bodyoffsetx=\MyBlockShift,titleoffsetx=\MyBlockShift]{A}{\lorem\lorem\lorem}
\column{0.33}
\block[bodyoffsetx=0.75\MyBlockShift,titleoffsetx=0.75\MyBlockShift]{A}{\lorem\lorem\lorem}
\column{0.33}
\block[bodyoffsetx=0.5\MyBlockShift,titleoffsetx=0.5\MyBlockShift]{A}{\lorem\lorem\lorem}
\end{columns}
\node [font=\Huge, rotate=90] at ([xshift=2cm,yshift=0.5\textheight]bottomleft) {A lot of text};
\end{document}