345페이지의 tcolorbox 예제가 작동하지 않는 이유

345페이지의 tcolorbox 예제가 작동하지 않는 이유

나는 ..에 대한 (아주 기본적인) 지식을 향상시키고 싶어서 tcolorbox345페이지(18장: 라이브러리 "후크")에서 예제를 컴파일하려고 합니다. 컴파일하면 다음과 같은 경고가 표시됩니다.

\RequiredPackage{minted}{2011/09/17]

MikTeX 패키지 관리자가 설치한 다음 강제로 컴파일한 후

\minted@appathifexist=

저는 최신 64비트 MikTeX를 관리자 권한으로 사용하고 WinEdt를 편집기로 사용합니다. 예제 코드는 다음과 같습니다:

\documentclass{article}
\usepackage[all]{tcolorbox}
    \usepackage{array,tabularx}%,longtable,tabu

    \begin{document}
    \newcolumntype{Y}{>{\raggedleft\arraybackslash}X}% see tabularx
\tcbset{enhanced,fonttitle=\bfseries\large,
        fontupper=\normalsize\sffamily,
        colback=yellow!10!white,colframe=red!50!black,
        colbacktitle=orange!30!white,%=Salmon!30!white
        coltitle=black,center title,
    tabularx={X||Y|Y|Y|Y||Y},% this sets ’before upper’ and ’after upper’
        before upper app={Group & One & Two & Three & Four & Sum\\
                          \hline\hline} }
\begin{tcolorbox}[title=My table]
Red & 1000.00 & 2000.00 & 3000.00 & 4000.00 & 10000.00\\\hline
Green & 2000.00 & 3000.00 & 4000.00 & 5000.00 & 14000.00\\\hline
Blue & 3000.00 & 4000.00 & 5000.00 & 6000.00 & 18000.00\\\hline\hline
Sum & 6000.00 & 9000.00 & 12000.00 & 15000.00 & 42000.00
\end{tcolorbox}
    \end{document}

결국 위의 코드는 다음 그림을 생성합니다.

여기에 이미지 설명을 입력하세요

나는 이것이 매뉴얼의 다른 예제와 유사하게 "즉시" 작동할 것이라고 기대하므로 내가 뭘 잘못하고 있는지, 무엇을 놓치고 있는지 알 수 없습니다.

답변1

로드하지 않으면 여러분과 동일한 결과가 나타납니다 colortbl. 오류는 다음과 같습니다!

Undefined control sequence.
\tcb@after@box ->\endtabularx \arrayrulecolor 
                                              {black}
l.20 \end{tcolorbox}

\arrayrulecolor의 명령 입니다 colortbl.

colortbl패키지 목록에 추가하면 (또는 Gonzalo Medina가 제안한 대로 table에 대한 옵션에 추가 \documentclass) 출력은 다음과 같습니다.

여기에 이미지 설명을 입력하세요

오류 없이.

관련 정보