문서에 두 개의 새로운 섹션 명령을 만들려고 합니다 scrartcl
. 두 번째는 첫 번째를 기반으로 합니다.
MWE는 다음과 같습니다.
\documentclass{scrartcl}
\DeclareNewSectionCommand[
afterskip=1.5ex plus .2ex,
beforeskip=-3.25ex plus -1ex minus -.2ex,
indent=0pt,
level=2,
font=\usekomafont{subsection},
tocindent=1.5em,
tocnumwidth=2.3em,
counterwithin=section,
style=section]{subphase}
\DeclareNewSectionCommand[
afterskip=1.5ex plus .2ex,
beforeskip=-3.25ex plus -1ex minus -.2ex,
indent=0pt,
level=3,
font=\usekomafont{subsection},
tocindent=2.0em,
tocnumwidth=2.3em,
counterwithin=subphase,
style=section]{task}
\begin{document}
\section{A}
\subphase{Phase}
\task{Task}
\task{Task}
\task{Task}
\subphase{Phase}
\task{Task}
\task{Task}
\task{Task}
\end{document}
이를 사용하면 lualatex
다음과 같은 오류 메시지가 나타납니다.
! TeX capacity exceeded, sorry [input stack size=5000].
\thesubphase ...sname the\scr@local@counterwithin
\endcsname .\arabic {subph...
l.26 \subphase{Phase}
그렇다면 문제는 어디에 있습니까?
저는 KOMA-Script를 처음 접했기 때문에 이것은 완전히 초보적인 실수일 수도 있습니다.
업데이트 1:
오래된 TeXlive 설치였을 수도 있습니다. 도움이 되는지 지금 바로 2017 버전을 설치해 보세요.
업데이트 2:
최신 TeXlive 버전을 설치하면 문제가 해결되었습니다. 실제로 오래된 KOMA 스크립트 버전인 것 같습니다.
답변1
최신 TeXlive 버전(20170524)을 수동으로 설치하면 문제가 해결되었습니다(원래 버전은 Ubuntu 16.04 APT 저장소의 2015였습니다). 실제로 오래된 KOMA 스크립트 버전인 것 같습니다.