
내 Markdown 코드 내에서 tcolorboxes를 사용하기 위해 Markdown 프리앰블에서 다음 코드를 사용하고 있습니다.
header-includes:
- |
```{=latex}
\usepackage{tcolorbox}
\newtcolorbox{norm-box}{colback=gray!5!white,arc=0pt,outer arc=0pt,colframe=gray!60!black}
\newtcolorbox{info-box}{colback=cyan!5!white,arc=0pt,outer arc=0pt,colframe=cyan!60!black}
\newtcolorbox{warn-box}{colback=orange!5!white,arc=0pt,outer arc=0pt,colframe=orange!80!black}
\newtcolorbox{error-box}{colback=red!5!white,arc=0pt,outer arc=0pt,colframe=red!75!black}
\newtcolorbox{attn-box}{colback=green!5!white,arc=0pt,outer arc=0pt,colframe=green!75!black}
pandoc-latex-environment:
tcolorbox: [box]
norm-box: [norm]
info-box: [info]
warn-box: [warn]
error-box: [error]
attn-box: [attn]
...
그런 다음 Markdown 텍스트에서 이 코드를 사용하여 헤더와 글머리 기호 목록이 포함된 라이트박스를 생성합니다.
::: info
**Objectives:**
- test
- test
- test
- test
:::
Pandoc을 실행하고 Markdown 파일에서 PDF를 생성하려고 하면 다음과 같은 오류 메시지가 나타납니다.
Error running filter pandoc-latex-environment:
Error in $.blocks[1].c[1][14].c: cannot unpack array of length 3 into a tuple of length 2
마지막 글머리 기호 항목을 제거하면 문제 없이 컴파일됩니다.
::: info
**Objectives:**
- test
- test
- test
test
:::
이것은 나에게 버그처럼 보입니다. tcolorbox 내부에 글머리 기호 목록을 만들 수 있는 다른 방법이 있습니까?
참고: Markdown의 tcolorbox에 대한 모든 항목을 LaTeX로 옮기면 제대로 작동합니다.
\begin{tcolorbox}[colback=cyan!5!white,arc=0pt,outer arc=0pt,colframe=cyan!60!black,title=\textbf{Objectives}]
\begin{itemize}
\item test
\item test
\item test
\item test
\end{itemize}
\end{tcolorbox}
그러나 이러한 문서는 교육을 받지 않은 많은 LaTeX 사용자가 사용하므로 가능한 한 단순하게 유지되어야 합니다. 감사해요.