"tcolorbox.sty" 파일의 컴파일 오류를 해결하는 방법

"tcolorbox.sty" 파일의 컴파일 오류를 해결하는 방법

패키지를 사용하여 간단한 컬러박스를 만들려고 하는데 파일을 tcolorbox포함하면 컴파일 오류가 발생합니다 tcolorbox.sty.

다음 코드를 고려해보세요:

%\documentclass[12pt]{article}
\documentclass[dvipsnames,cmyk]{article}

% File Containing All the Control Settings
\usepackage{../../Style/mystyle}
\usepackage{../../Style/tcolorbox/tcolorbox}    ---> This line is giving compilation Error
\usetikzlibrary{matrix}
\begin{document} 

\end{document}

컴파일 오류:

! Paragraph ended before \pgfkeys@@qset was complete.

파일의 문제 행은 다음 tcolorbox.sty과 같습니다.

parskip/.style={before={\par\pagebreak[0]\noindent},after={\par}},
noparskip/.style={before={\par\smallskip\pagebreak[0]\noindent},after={\par\smallskip}},

이 오류를 해결하는 방법을 안내해주세요.

답변1

matrix오류가 발생합니다. 이 MWE(오류 없이 컴파일)를 시도한 다음 %를 삭제하고 다시 컴파일하십시오.

MWE:

\documentclass[dvipsnames,cmyk]{article}
\usepackage{tcolorbox}
%\usetikzlibrary{matrix}
\begin{document} 
test

\begin{tcolorbox}[colback=red!5,colframe=red!75!black]
  My box.
\end{tcolorbox}
\end{document}

관련 정보