
장과 섹션 제목의 형식을 지정하기 위해 titlesec 패키지를 사용하려고 합니다. 내가 원하는 형식을 제공하는 매크로가 정의되어 있지만 titlesec을 사용하여 형식을 복제하려고 할 때 간격이 정확하지 않은 것 같습니다.
MWE:
\documentclass[letterpaper]{book}
\usepackage{titlesec}
\usepackage{lipsum}
\setlipsumdefault{1}
\newcommand{\chapterpretitle}{}
\titleformat{\chapter}[display]
{\large\scshape\filcenter}{\chapterpretitle}{0pt}{\Huge\bfseries}
\titlespacing{\chapter}{0pt}{0pt}{0pt}
\newcommand{\ctitle}[2][\*]{%
\renewcommand{\chapterpretitle}{#1}
\chapter{#2}}
\newcommand{\ctitleTwo}[2][The Chapter]{
\begin{center}
{\scshape\large #1,\\
called\\
\Huge\bfseries #2.}
\end{center}\par}
\begin{document}
\ctitle[The Chapter\\called,]{Chapter One}
\lipsum
\ctitleTwo{Chapter One}
\lipsum
\end{document}
첫 번째 장 제목 형식을 마지막 장 제목 형식과 일치시키고 싶습니다. 이것이 나에게 보이는 방법입니다:
어떤 도움이라도 대단히 감사하겠습니다. 감사합니다.
답변1
\titleformat{\chapter}[display]
{\large\scshape\filcenter}{\chapterpretitle}{-12pt}{\Huge\bfseries}
\titlespacing{\chapter}{0pt}{0pt}{5pt}
\newcommand{\ctitle}[2][\*]{%
\renewcommand{\chapterpretitle}{#1}
\chapter{#2.}}