如何僅更改章節的位置

如何僅更改章節的位置

它只需要影響第一章,其他的必須保持不變,我有這個代碼

\documentclass{book}
\usepackage{ragged2e}
 \begin{document}
\chapter*{ETAPA}
\label{cap:experimental}
this intro

\section{Exp}
this Exp SECTION


\chapter{ETAPA2}
\label{cap:experimental}
this intro

\section{Exp2}
this Exp SECTION

\end{document}

我需要這個結果:

在此輸入影像描述

答案1

僅對一個未編號的章節而不是對所有章節執行此操作實際上沒有意義。無論如何,就在這裡。

\documentclass{book}
\usepackage{etoolbox}

\usepackage{showframe} % for showing text block borders

\makeatletter
\newcommand{\differentchapter}[1]{%
  \begingroup
  \patchcmd{\@makeschapterhead}{50}{20}{}{}%
  \patchcmd{\@makeschapterhead}{40}{70}{}{}%
  \patchcmd{\@makeschapterhead}{\bfseries}{\centering\bfseries}{}{}%
  \chapter*{#1}%
  \endgroup
}
\makeatother

\begin{document}

\differentchapter{ETAPA}

this intro

\section{Exp}
this Exp SECTION

\chapter{ETAPA2}
\label{cap:experimental}
this intro

\section{Exp2}
this Exp SECTION

\end{document}

在此輸入影像描述

相關內容