장의 위치를 ​​변경하는 방법

장의 위치를 ​​변경하는 방법

첫 번째 장에만 영향을 미치고 나머지는 그대로 유지해야 합니다. 이 코드가 있습니다.

\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}

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

관련 정보