件名によってセクション番号がずれる

件名によってセクション番号がずれる

この 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

ここに画像の説明を入力してください

関連情報