帶有標題和整個頁面的一行的自訂模板

帶有標題和整個頁面的一行的自訂模板

我正在嘗試使用 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) 中了解更多。

相關內容