包 pgfkeys 錯誤:我不知道金鑰 /tcb/posterloc/ 右下方

包 pgfkeys 錯誤:我不知道金鑰 /tcb/posterloc/ 右下方

盒子B位於BOXA右下方=1cm和2cm。

但是:包 pgfkeys 錯誤:我不知道金鑰 /tcb/posterloc/ 右下方

我該如何修復它?

謝謝

我的最小程式碼:

\documentclass{article}
\usepackage{tcolorbox}
\tcbuselibrary{poster}
\usepackage{tikz}
\usepackage{lipsum}

\begin{document}
%%%A
\begin{tcbposter}[
poster = {
columns=1,
rows=2,
spacing=3mm,
height=14cm,
width=6cm,
},
]
\posterbox[
colframe = red,
width=5cm, height= 4cm
]{name=BOXA,column=1}{\includegraphics[width=3cm]{example-image-a}}
\vspace{2cm}
\posterbox[
colframe = blue,
width=5cm, height= 5cm
]{below right=1cm and 2cm of TCBPOSTER@BOXA}{\includegraphics[width=3cm]{example-image-b}}
\end{tcbposter}
\end{document}

答案1

below right=1cm and 2cm of ...是 Ti 的節點放置規範kZpositioning庫,但未在有效清單中列出放置的選項\posterbox。我想您想要實現的目標是使用xshift=1cmyshift=-2cm。看圖書館海報盒子放置在裡面tcolorbox 手冊所有有效的清單和描述放置的選項\posterbox

\documentclass{article}
\usepackage{tcolorbox}
\tcbuselibrary{poster}

\begin{document}

\begin{tcbposter}[poster = {columns=1, rows=2, spacing=3mm, height=14cm,
                            width=6cm}]
\posterbox[colframe = red, width=5cm, height= 4cm]
  {name=BOXA,column=1}
  {\includegraphics[width=3cm]{example-image-a}}

\posterbox[colframe = blue, width=5cm, height= 5cm]
  {column=1, row=1, xshift=1cm, yshift=-2cm}
  {\includegraphics[width=3cm]{example-image-b}}
\end{tcbposter}

\end{document}

螢幕截圖

相關內容