fancyhdr 不执行任何操作

fancyhdr 不执行任何操作

我尝试将页码移动到页面主题的右上角,然后使用 将其从底部中心移除fancyhdr。阅读fancyhdr语法后,它看起来相当直观,但当我编译代码时什么也没有发生。这是我的代码:

\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{setspace}
\usepackage[a4paper, left=1.5in,right=1in,top=1in,bottom=1in]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{This is my name}
\rhead{\thepage}
\cfoot{center of the footer!}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}

\usepackage{lastpage}
\usepackage{longtable}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{amsmath}
\usepackage{adjustbox}
\usepackage{breqn}
\usepackage{lscape}

\begin{document}

\pagenumbering{roman}
\doublespacing

\begin{titlepage}
\begin{center}
    \vspace*{1cm}
       \textbf{title}
%       \vspace{0.5cm}
%        Thesis Subtitle

\vspace{7cm}
by \\
Name 

\vfill
  A thesis \\
  submitted in partial fulfillment \\
 of the requirements for the degree of \\
 Masters of Science in Economics \\
       \vspace{2cm}
       May 2020


\end{center}
\end{titlepage}


\chapter*{Copyright or Creative Commons}
\pagestyle{empty}

\chapter*{Electronic Defense Committee Approval}
\pagestyle{empty}

\chapter*{Dedication}

\chapter*{Acknowledgements}

\chapter*{Abstract}
Abstract goes here

\tableofcontents

\listoftables

\listoffigures


\begin{abbreviations}{ll}
\end{abbreviations}

\chapter*{List of Symbols}

\chapter{Introduction}

\pagenumbering{arabic}

intro

\end{document}

相关内容