章节样式-报告类别

章节样式-报告类别

在此处输入图片描述

我正在寻找用于报告类文档的不同类型的章节样式格式。我喜欢回忆录类 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

以下是使用titlesecmemoir包和样式所使用的设置:

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

在此处输入图片描述

相关内容