
この 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
コンテキスト バージョン: 2017.06.06 13:22 (Windows 7) を使用しています。
何か間違ったことをしているのでしょうか? それともこれは既知の問題でしょうか?
答え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