![章节样式-报告类别](https://linux22.com/image/290509/%E7%AB%A0%E8%8A%82%E6%A0%B7%E5%BC%8F-%E6%8A%A5%E5%91%8A%E7%B1%BB%E5%88%AB.png)
我正在寻找用于报告类文档的不同类型的章节样式格式。我喜欢回忆录类 Veelo 章节样式。如何为报告类文档类做完全相同的格式
\documentclass{memoir}
\usepackage{graphicx}
\stockaiv
\settrimmedsize{242mm}{165mm}{}
\settrims{20mm}{20mm}
\settypeblocksize{}{33pc}{1.618}
\setlrmargins{}{}{1.5}
\setulmarginsandblock{3pc}{3pc}{*}
\setcolsepandrule{1pc}{0pt}
\chapterstyle{veelo}
\checkandfixthelayout
\trimFrame
\begin{document}
\chapter{My first chapter}
\end{document}
答案1
以下是使用titlesec
memoir
包和样式所使用的设置:
\documentclass{report}
\usepackage{graphicx}
\usepackage{titlesec}
\usepackage{lipsum} %just to generate text for the example
\newcommand*\HUGE{\Huge}
\newcommand*\chapnamefont{\normalfont\LARGE\MakeUppercase}
\newcommand*\chapnumfont{\normalfont\HUGE}
\newcommand*\chaptitlefont{\normalfont\HUGE\bfseries}
\newlength\beforechapskip
\newlength\midchapskip
\setlength\midchapskip{\paperwidth}
\addtolength\midchapskip{-\textwidth}
\addtolength\midchapskip{-\oddsidemargin}
\addtolength\midchapskip{-1in}
\setlength\beforechapskip{18mm}
\titleformat{\chapter}[display]
{\normalfont\filleft}
{{\chapnamefont\chaptertitlename}%
\makebox[0pt][l]{\hspace{.8em}%
\resizebox{!}{\beforechapskip}{\chapnumfont\thechapter}%
\hspace{.8em}%
\rule{\midchapskip}{\beforechapskip}%
}%
}%
{25pt}
{\chaptitlefont}
\titlespacing*{\chapter}
{0pt}{40pt}{40pt}
\begin{document}
\chapter{Demonstration of the veelo chapter style}
\lipsum[2]
\end{document}