带有标题和覆盖整个页面的线条的自定义模板

带有标题和覆盖整个页面的线条的自定义模板

我正在尝试使用 LaTeX 在 MS Word 上复制模板。该模板如下图所示,必须应用于整个文档。

所需模板

到目前为止,我成功地使用 使文本位于页眉中fancyhdr(但我未能将其应用于所有页面,它在图表页面和包含章节名称的页面列表中缺失)或使用 使蓝线位于左侧​​(与上述问题相同)put \rule。出于某种原因,我无法同时将它们同时用于文档中的所有页面。

我附上我的序言,希望您能为我提供解决这个问题的建议。

% Preamble
\documentclass[12pt]{report}    
\makeatletter
\def\bstctlcite#1{\@bsphack
\@for\@citeb:=#1\do{%
\edef\@citeb{\expandafter\@firstofone\@citeb}%
\if@filesw\immediate\write\@auxout{\string\citat
ion{\@citeb}}\fi}%
\@esphack}
\makeatother
% Packages
% ---
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{afterpage}

\usepackage{color}
\usepackage{setspace}
\usepackage{footmisc}
\usepackage{color}
\usepackage{soul}
\usepackage{ulem}
\newcommand\semiHuge{\@setfontsize\semiHuge{23}{28}}
\def\blfootnote{\gdef\@thefnmark{}\@footnotetext}
\newcommand{\red}[1]{\textcolor{red}{#1}}
\newcommand{\blue}[1]{\textcolor{blue}{#1}}
\newcommand{\green}[1]{\textcolor{green}{#1}}
\usepackage[top=2.54cm, includehead,headheight=45pt,bottom=2.54cm,left=2.54cm,right=2.54cm]{geometry}
\definecolor{lightblue}{RGB}{157,225,230}
\definecolor{purple}{RGB}{188,165,207}
\definecolor{darkblue}{RGB}{146,154,200}
\newcommand{\lightblue}[1]{\textcolor{lightblue}{#1}}
\newcommand{\purple}[1]{\textcolor{purple}{#1}}
\newcommand{\darkblue}[1]{\textcolor{darkblue}{#1}}
\usepackage{amsmath} % Advanced math typesetting
\usepackage{hyperref} % Add a link to your document
\usepackage{graphicx} % Add pictures to your document
\usepackage{listings} % Source code formatting and highlighting
\usepackage{setspace}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\usepackage[draft=true]{scrlayer}

\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}%I dont want blck line in header 

\lhead{\textbf{\lightblue{\Large{Final Report}}\\ 
\purple{ECE 491: ECE Capstone Design Project -1\\
Fall 2017}}
}
\fancyhead[R]{\includegraphics[scale=0.5]{CoE.jpg}}
%\DeclareNewPageStyleByLayers{titlestyle}{test}
%
%
%\DeclareNewLayer[
%  background,
%  innermargin,
%  width=1cm,
%  hoffset=1cm,
%  contents={\color{lightblue}\rule{\layerwidth}{\layerheight},\put(-30,650){\color{darkblue}\rule{.25in}{2in}} }
%]{test}
\doublespacing
%\pagestyle{titlestyle}  
\usepackage{mathptmx}
\title{Internship report}
\author{Rawan}
\date{\today}

\usepackage{blindtext}

\begin{document}

\newpage
\listoffigures
\listoftables
\tableofcontents

\newpage
\chapter{\large \textbf{Introduction}}
\blinddocument
\end{document}

答案1

LaTeX 文档中的某些页面与“正常”页面相比具有不同的页面样式。例如\chapter通常使用\thispagetsyle{plain}

您可以尝试使用类(和类的memoir超集),它提供用于设置章节、图表列表等的页面样式的命令。类似如下:bookreportarticle

\documentclass{memoir}
 % your preamble
\aliaspagestyle{chapter}{your page style}
\aliaspagestyle{listoffigures}{your page style}

未经测试。但请阅读第七章分页和页眉请参阅文档(< texdoc memoir)以了解更多信息。

相关内容