編譯這個 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