ヘッダーとページ全体に線が付いたカスタムテンプレート

ヘッダーとページ全体に線が付いたカスタムテンプレート

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}

未テスト。しかし第7章を読んでくださいページネーションとヘッダー< texdoc memoir詳細については、ドキュメント ( ) を参照してください。

関連情報