memoir クラスを使用せずにこの章のスタイルを実現するにはどうすればよいでしょうか?

memoir クラスを使用せずにこの章のスタイルを実現するにはどうすればよいでしょうか?

このような章のスタイルはなくfncychapmemoirクラスを使用すると現在の設定 (クラス) と多くの競合が発生しますが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}

ここに画像の説明を入力してください

ここに画像の説明を入力してください

関連情報