修改报告类中使用的章节标题

修改报告类中使用的章节标题

如何将以下内容从回忆录类转换为报告类?我目前正在撰写报告类的论文,如果我可以使用本章标题就太好了:

\usepackage{fourier} % or what ever
\usepackage[scaled=.92]{helvet}%. Sans serif - Helvetica
\usepackage{color,calc}
\newsavebox{\ChpNumBox}
\definecolor{ChapBlue}{rgb}{0.00,0.65,0.65}
\makeatletter
\newcommand*{\thickhrulefill}{%
    \leavevmode\leaders\hrule height 1\p@ \hfill \kern \z@}
\newcommand*\BuildChpNum[2]{%
    \begin{tabular}[t]{@{}c@{}}
        \makebox[0pt][c]{#1\strut}           \\[.5ex]
        \colorbox{ChapBlue}{%              
        \rule[-10em]{0pt}{0pt}%            
        \rule{1ex}{0pt}\color{black}#2\strut 
        \rule{1ex}{0pt}}%                  
    \end{tabular}}
\makechapterstyle{BlueBox}{%
    \renewcommand{\chapnamefont}{\large\scshape}
    \renewcommand{\chapnumfont}{\Huge\bfseries}
    \renewcommand{\chaptitlefont}{\raggedright\Huge\bfseries}
    \setlength{\beforechapskip}{20pt}
    \setlength{\midchapskip}{26pt}
    \setlength{\afterchapskip}{40pt}
    \renewcommand{\printchaptername}{}
    \renewcommand{\chapternamenum}{}
    \renewcommand{\printchapternum}{%
        \sbox{\ChpNumBox}{%
            \BuildChpNum{\chapnamefont\@chapapp}%
            {\chapnumfont\thechapter}}}
    \renewcommand{\printchapternonum}{%
        \sbox{\ChpNumBox}{%
            \BuildChpNum{\chapnamefont\vphantom{\@chapapp}}%
            {\chapnumfont\hphantom{\thechapter}}}}
    \renewcommand{\afterchapternum}{}
    \renewcommand{\printchaptertitle}[1]{%
        \usebox{\ChpNumBox}\hfill
        \parbox[t]{\hsize-\wd\ChpNumBox-1em}{%
            \vspace{\midchapskip}%
            \thickhrulefill\par
            \chaptitlefont ##1\par}}%
}
\chapterstyle{BlueBox}

我还是 Latex 的新手,所以我以这种方式寻求帮助

相关内容