Tikzposter:右上角可以使用,但左上角不起作用?

Tikzposter:右上角可以使用,但左上角不起作用?

我需要在海报的顶角放置图像。令人惊讶的是,at (topright)是已知的,但却(topleft)是未知的形状。为什么呢?

全线(工作):

\node[inner sep=0pt, below left, outer sep=0cm] (logo) at (topright) {\includegraphics[scale = 0.1]{logo}};

全线(不工作):

\node[inner sep=0pt, below left, outer sep=0cm] (logo) at (topleft) {\includegraphics[scale = 0.1]{logo}};

答案1

原因很简单,因为tikzposter没有定义topleft,只有toprightbottomleft。这就是它不起作用的原因。

您可以自己定义缺失的角坐标,例如

\coordinate (topleft)     at (topright -| bottomleft);
\coordinate (bottomright) at (topright |- bottomleft);

或者(topright -| bottomleft)直接使用。

\documentclass[a2paper]{tikzposter}

\begin{document}    
\coordinate (topleft)     at (topright -| bottomleft);
\coordinate (bottomright) at (topright |- bottomleft);

\node[inner sep=0pt, below left] (logoa) at (topright) {\includegraphics[width=15cm]{example-image-a}};

\node[inner sep=0pt, below right] (logob) at (topleft) {\includegraphics[width=15cm]{example-image-b}};

\node[inner sep=0pt, above right] at (bottomleft) {\includegraphics[width=15cm]{example-image-c}};

\node[inner sep=0pt, above left] at (bottomright) {\includegraphics[width=15cm]{example-image}};

\end{document}

在此处输入图片描述

相关内容