
решение1
В самом простом случае установка счетчика разделов на -1
приведет к тому, что следующим разделом станет 0
.
\documentclass{book}
\begin{document}
\setcounter{section}{-1}
\section{text}
\end{document}
Чтобы изменить внешний вид секционирования, например, добавить номер подраздела по умолчанию, необходимо \thesection
также переопределить .
\documentclass{article}
\usepackage{lipsum}
\renewcommand\thesection{\arabic{section}.\arabic{subsection}}
\begin{document}
\setcounter{section}{-1}
\section{A Short Preface}
\lipsum[1]
\section{Introduction}
\lipsum[2]
\end{document}
решение2
Редактировать: Обновить с помощьюxassoccnt v.0.8-- использование каскадной приостановки счетчиков, т.е. все счетчики в списке сброса счетчиков будут приостановлены:
\documentclass{book}
\usepackage{xassoccnt}
\usepackage{blindtext}
\setcounter{secnumdepth}{4}
\begin{document}
\tableofcontents
\listoffigures
\listoftables
\CascadeSuspendCounters{chapter}
\chapter{The first chapter}
\section{Foo}
\begin{figure}
\caption{A foo figure}
\end{figure}
\begin{table}
\caption{A foo table}
\end{table}
\subsection{My First subsection}
\blindtext
\section{Foobar}
\subsection{Foobar subsection}
\blindtext
\subsubsection{Foobar Again}
\blindtext
\ResumeAllSuspendedCounters
\chapter{Another chapter}
\begin{figure}
\caption{Another figure}
\end{figure}
\SuspendCounters{chapter,section}
\chapter{Yet another chapter}
\section{Foo section in yet another chapter}
\begin{figure}
\caption{Another figure}
\end{figure}
\end{document}
Использование \SuspendCounters
from xassoccnt
для фиксации счетчиков и их последующего возобновления.
\documentclass{article}
\usepackage{xassoccnt}
\usepackage{blindtext}
\begin{document}
\SuspendCounters{section}
\SuspendCounters{subsection}
\section{Foo}
\subsection{My First subsection}
\blindtext
\ResumeSuspendedCounters{section}
\ResumeSuspendedCounters{subsection}
\section{Foobar}
\blindtext
\end{document}