
나는 scrbook을 사용하고 섹션에 연속적으로 번호를 매기고 싶기 때문에 섹션을 장에 종속되게 만들고 싶지 않습니다. 1.1, 1.2, 1.3, 2.1, 2.2, ... 대신 1, 2, 3, 4, ... 이어야 합니다.
도와줘서 고마워, 어떻게 해야 할지 모르겠어
답변1
해결책은 다음과 같습니다.\counterwithout
여기에 표시된 대로. 그러나 2018년 4월 릴리스부터 패키지 기능이 chngcntr
LaTeX 커널에 직접 통합되었으므로 다음을 사용할 수 있습니다.
\documentclass{scrbook}
% \usepackage{chngcntr} % not necessary in recent distributions
\counterwithout{section}{chapter}
\begin{document}
\tableofcontents
\chapter{First}
\section{Foo}
\section{Bar}
\chapter{Second}
\section{Baz}
\section{Bla}
\end{document}