\listoftheorems 및 tcbtheorems가 표시되지 않는 대안,

\listoftheorems 및 tcbtheorems가 표시되지 않는 대안,

나는 appednix에 있는 내 문서의 끝부분에서 정의(정리) 목록을 얻으려고 했습니다. 불행하게도 목록이 비어 있습니다. 사용해 보았습니다설명은 여기하지만 (나에게는) 작동하지 않습니다. 여기서 "질문 목록"으로 표시된 "Definitionsverzeichnis"는 다음과 같아야 합니다.여기에 이미지 설명을 입력하세요나는 실수를 찾지 못하고 4시간 동안 검색을 하고 있어서 조금 답답합니다.

tcbtheorems를 사용해 보세요. 저는 mdtheorems를 사용했는데, 정리 목록을 얻는 데 문제가 없었습니다. 그러나 이제는 작동하지 않습니다 ...

아마도 tcbtheorems이 정말 멋져 보이고 나는 그것을 유지하고 싶기 때문에 누군가 나를 도울 수 있을 것입니다.

내 MWE는 다음과 같습니다.

\documentclass[ngerman,12pt, listof=totocnumbered, toc=bibliographynumbered,appendixprefix = on]{scrartcl} %scrartcl  article}

\usepackage[ngerman]{babel}

% preamble   
\usepackage{tcolorbox}   
\tcbuselibrary{theorems}   
\tcbuselibrary{skins}   
\usepackage{amsthm}   
\usepackage{thmtools}   
\usepackage{cleveref}
\usepackage{thmtools}
\usepackage[framemethod=tikz]{mdframed}



% definiton   
\tcbset{    
 defstyle/.style={fonttitle=\bfseries\upshape,fontupper=\slshape,arc=0mm,colback=blue!5!white,colframe=blue!75!black},    
 theostyle/.style={fonttitle=\bfseries\upshape, fontupper=\slshape,colback=red!10!white,colframe=red!75!black},    
}   
\newtcbtheorem[number within=subsection,crefname={definition}{definitions}, list inside={qst}]{Definition}{defstyle}{def}{qst}    
\newtcbtheorem[use counter from=Definition, crefname={theorem}{theorems}, list inside={qst}]{Theorem}{theostyle}{theo}{qst}       
\newtcbtheorem[use counter from=Definition,crefname={corollary}{corollaries}]{Corollary}{Corollary}{theostyle}{cor}

\newtcbtheorem[use counter from=Definition]{definition}{Definition}{theorem style=plain,enhanced,colframe=blue!50!black,colback=yellow!20!white,coltitle=red!50!black,fonttitle=\upshape\bfseries,fontupper=\itshape,drop fuzzy shadow=blue!50!black!50!white,boxrule=0.4pt}{theo}

% theorem 
\newtheorem{satz}{Satz}

\begin{document}   
\section{hello}   
\subsection{world}   



\section{new section}    
\subsection{new subsection for definitons}    


% example definition     
\begin{definition}{Hello}{labelHEY}%
\newline
a nice definition
\end{definition}

% example theorem
\begin{tcolorbox}[colback=gray!10!white,colframe=red!60!black,sharp corners=all ]
\begin{satz}
this is not a proof, just a theorem
\end{satz}
\end{tcolorbox}


% appendix, 


\tcblistof[\section]{qst}{Definitionsverzeichnis}

\end{document}

다음과 같이 보입니다.여기에 이미지 설명을 입력하세요

귀하의 도움과 시간을 내주셔서 정말 감사드립니다.

답변1

동일한 것에 대해 많은 패키지를 로드하지 마십시오. 이는 코드를 매우 혼란스럽게 만들 뿐입니다. 하나를 고수하고 문서를 확인하여 주장이 올바른지 확인하십시오.

\documentclass[ngerman,12pt, listof=totocnumbered, toc=bibliographynumbered,appendixprefix = on]{scrartcl} %scrartcl  article}

\usepackage[ngerman]{babel}

% preamble
\usepackage{tcolorbox}
\tcbuselibrary{theorems}
\tcbuselibrary{skins}
\usepackage{cleveref}

% definiton
\tcbset{
 defstyle/.style=
  {fonttitle=\bfseries\upshape,fontupper=\slshape,arc=0mm,colback=blue!5!white,colframe=blue!75!black},
 theostyle/.style=
  {fonttitle=\bfseries\upshape, fontupper=\slshape,colback=red!10!white,colframe=red!75!black},
}
\newtcbtheorem[number within=subsection,
               crefname={definition}{definitions}, 
               list inside={qst}] %init
               {definition} %name
               {Definition} %display
               {defstyle}   %options
               {def}        %prefix
\newtcbtheorem[use counter from=definition, crefname={theorem}{theorems}, 
               list inside={qst}]
               {theorem}
               {Theorem}
               {theostyle}
               {theo}


\begin{document}
\section{hello}
\subsection{world}



\section{new section}
\subsection{new subsection for definitons}


% example definition
\begin{definition}{Hello Definition}{labelHEY}%
a nice definition
\end{definition}

\begin{theorem}{Hello Theorem}{labelHEY}%
a nice theorem
\end{theorem}


\tcblistof[\section]{qst}{Definitionsverzeichnis}

\end{document}

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

관련 정보