
составление этого 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