회고록 클래스를 사용하지 않고 이 장 스타일을 달성하는 방법은 무엇입니까?

회고록 클래스를 사용하지 않고 이 장 스타일을 달성하는 방법은 무엇입니까?

fncychap그러한 챕터 스타일이 없고 클래스를 사용하면 현재 memoir설정(클래스)과 많은 충돌이 발생하므로 book이 스타일을 만드는 방법(아마도 패키지 사용 titlesec)은 무엇입니까?

목차 및 장 스타일:

여기에 이미지 설명을 입력하세요 그리고 나

챕터에 대한 설정은 다음과 같습니다.

\usepackage[ ]{titlesec}  
\titleformat{\chapter}[display]
{\normalfont\LARGE\bfseries }{\chaptertitlename\  \thechapter}{10pt}{\huge}
\titlespacing*{\chapter}{0pt}{40pt}{40pt}  % left, vertical, skip

답변1

다음은 titlesec; 나는 또한 microtype작은 대문자의 간격을 두는 데 사용했습니다.

\documentclass{book}
\usepackage{titlesec,microtype}

\titleformat{\chapter}[display]
 {\normalfont\normalsize\scshape}
 {\makebox[\textwidth]{\titlerule[0.8ex]\quad\textls{\chaptername}\ \thechapter\quad\titlerule[0.8ex]}}
 {1ex}
 {\titlerule\vspace{1ex}\centering\huge\textls[50]}
 [\titlerule]

\titleformat{name=\chapter,numberless}[display]
 {\normalfont\normalsize\scshape}
 {\makebox[\textwidth]{\titlerule[0.8ex]}}
 {1ex}
 {\titlerule\vspace{1ex}\centering\huge\textls[50]}
 [\titlerule]

\begin{document}

\chapter*{Contents}

\chapter{FETCH Automated Verification and Validation}

\end{document}

셀 수 없이 많은 장

번호가 매겨진 장

답변2

옵션 titlesec과 함께 사용하는 또 다른 방법 :explicit

\documentclass{book}

\usepackage{lipsum} % just for the example

\def\hrulefillthick{\leavevmode\leaders\hrule height3pt\hfill\kern0pt}

\usepackage[explicit]{titlesec}

\titleformat{\chapter}[display]
{\normalfont\normalsize\scshape}
{\hrulefillthick\hspace*{.5cm}\chaptertitlename\  \thechapter\hspace*{.5cm}\hrulefillthick}
{5pt}
{\titlerule\centering\huge#1}
[\titlerule]

\titleformat{name=\chapter,numberless}[display]
{\normalfont\normalsize\scshape}
{\hrulefillthick}
{5pt}
{\titlerule\centering\huge#1}
[\titlerule]

\begin{document}

\tableofcontents

\chapter{FETCH Automated Verification and Validation}
\lipsum[1-3]
\end{document}

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

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

관련 정보