
이 MWE를 컴파일합니다.
\starttext
\startchapter[title=chapter 1]
\startsection[title=Section 1.1]
\startsubsection[title=Section 1.1.1]
\subject{a Subject}
\stopsubsection
% Another subsection which numbers incorrectly
\startsubsection[title=Section 1.1.2]
\stopsubsection
\stopsection
\stopchapter
\stoptext
컨텍스트 버전 사용: Windows 7에서 2017.06.06 13:22.
내가 여기서 뭔가 잘못하고 있는 걸까요? 아니면 알려진 문제인가요?
답변1
잘못된 구조 수준을 사용하고 있습니다. \subject
의 번호가 없는 변형입니다 \section
. 그래서 당신은 \subsubsubject
( \subsubsection
.
\starttext
\startchapter[title=chapter 1]
\startsection[title=Section 1.1]
\startsubsection[title=Section 1.1.1]
\subsubsubject{a Subject}
\stopsubsection
\startsubsection[title=Section 1.1.2]
\stopsubsection
\stopsection
\stopchapter
\stoptext
하위 섹션이 더 높은 수준(이 경우 섹션)에서 카운터 재설정을 무시하도록 만들 수도 있지만 \section
이는 \subject
.
\defineresetset[noreset][1,1,1,0][1]
\setuphead[subsection][sectionresetset=noreset]
\starttext
\startchapter[title=chapter 1]
\startsection[title=Section 1.1]
\startsubsection[title=Section 1.1.1]
\subject{a Subject}
\stopsubsection
\startsubsection[title=Section 1.1.2]
\stopsubsection
\stopsection
\startsection[title=Section 1.1]
\startsubsection[title=Section 1.1.1]
\subject{a Subject}
\stopsubsection
\startsubsection[title=Section 1.1.2]
\stopsubsection
\stopsection
\stopchapter
\stoptext