我用 为论文制作了一个图形tikzpicture
,现在我想将同一个图形放入 中tikzposter
。但是,当我将其放入 中时,图形看起来不同tikzposter
。我该如何使行为保持一致?
以下是代码:
\begin{tikzpicture}[scale=0.6, baseline=(current bounding box.center)]
\node (1) at (0,9) {\includegraphics{pics/bin-tree-lattice/01}};
\node (2) at (-2.5,7.75) {\includegraphics{pics/bin-tree-lattice/02}};
\node (3) at (0,7) {\includegraphics{pics/bin-tree-lattice/03}};
\node (4) at (3,6.5) {\includegraphics{pics/bin-tree-lattice/04}};
\node (5) at (-4,6.6) {\includegraphics{pics/bin-tree-lattice/05}};
\node (6) at (0,4.5) {\includegraphics{pics/bin-tree-lattice/06}};
\node (7) at (2,4.5) {\includegraphics{pics/bin-tree-lattice/07}};
\node (8) at (-4,4.5) {\includegraphics{pics/bin-tree-lattice/08}};
\node (9) at (-4,2.5) {\includegraphics{pics/bin-tree-lattice/09}};
\node (10) at (-2,4.5) {\includegraphics{pics/bin-tree-lattice/10}};
\node (11) at (3,2.5) {\includegraphics{pics/bin-tree-lattice/11}};
\node (12) at (-2.5,1) {\includegraphics{pics/bin-tree-lattice/12}};
\node (13) at (0,2.25) {\includegraphics{pics/bin-tree-lattice/13}};
\node (14) at (0,0) {\includegraphics{pics/bin-tree-lattice/14}};
\draw (1) -- (2) -- (5) -- (8) -- (9) -- (12) -- (14);
\draw (1) -- (4) -- (11) -- (14);
\draw (4) -- (7) -- (13) -- (14);
\draw (1) -- (3) -- (6) -- (11);
\draw (5) -- (10) -- (9);
\draw (2) -- (7);
\draw (3) -- (8);
\draw (6) -- (12);
\draw (10) -- (13);
\end{tikzpicture}
以下是普通文档类中的结果article
:
下面是我输入完全相同的代码后的结果tikzposter
:
显然,第二个图看起来不对。有什么建议可以解决这个问题吗?提前感谢帮助!
答案1
节点有一个,inner sep
其大小取决于字体大小. 将其设置为某个绝对值,以避免在更改类时产生副作用。