tcolorbox 옵션의 값을 얻습니다.

tcolorbox 옵션의 값을 얻습니다.

tcolorbox다음 예제와 같이 님의 옵션 에서 값을 가져오려고 했지만 실패했습니다. 뭔가 빠졌나요?

\documentclass{article}
\usepackage[most]{tcolorbox}
\begin{document}
\begin{tcolorbox}[width=0.5\textwidth]
  \pgfkeysvalueof{/tcb/width}%This typeset nothing.
  \rule{0.5*\pgfkeysvalueof{/tcb/width}}{5pt} %This causes error.
\end{tcolorbox}
\end{document}

관련 정보