
답변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}