0.0으로 섹션을 어떻게 시작하나요?

0.0으로 섹션을 어떻게 시작하나요?

"짧은 서문" 섹션을 추가하려면 어떻게 해야 합니까? 나는 \section*{0.0 A Short Preface}아마도 괜찮을 것이라는 것을 알고 있지만 TeX은 굉장하고 더 나은 방법이 있어야 합니다.

이것은 내가 찾고 있는 일종의 것입니다(Google Docs에서 수행됨).

여기에 이미지 설명을 입력하세요

감사해요!

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

\SuspendCountersfrom을 사용하여 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}

여기에 이미지 설명을 입력하세요

관련 정보