想要我的页眉和页脚正好从节页面开始

想要我的页眉和页脚正好从节页面开始
\documentclass[a4paper]{article}

%pagestyle

\usepackage{fancyhdr}

\usepackage{blindtext}

\usepackage{lipsum}

\pagestyle{fancy}

\fancyhf{}

\fancyhead{}

\fancyhead[R]{\footnotesize\itshape\bfseries\nouppercase\thepage}%\ of \pageref{LastPage}} 

\makeatletter

\makeatother

\fancyhead[L]{\footnotesize\itshape\nouppercase\rightmark}

 %\fancyfoot[R]{\footnotesize\itshape\ampmtime}

\setlength{\headheight}{12.0pt}

\renewcommand{\headrulewidth}{1.5pt}

\renewcommand{\footrulewidth}{0.5pt}

\cleardoublepage

\renewcommand{\contentsname}{Table of Contents}

\tableofcontents

\cleardoublepage

\markboth{\nomname}{\nomname}% maybe with \MakeUppercase

\printnomenclature

\cleardoublepage

\renewcommand\listfigurename{List of Figures}

\listoffigures

\cleardoublepage

\renewcommand\listtablename{List of Tables}

\listoftables

\begin{abstract}
We propose an improved approach to illustrate...
\end{abstract}

\begin{document}

\section{Lecture 1}

\section{Lecture 2}

\section{Lecture 3}

\end{document}

答案1

像这样?

\documentclass[a4paper]{article}
%pagestyle
\usepackage{fancyhdr}
\usepackage{blindtext}
\pagestyle{fancy}   
\fancyhf{}
\fancyhead{}
\fancyhead[R]{\footnotesize\itshape\bfseries\nouppercase\thepage}%\ of \pageref{LastPage}}
\fancyhead[L]{\footnotesize\itshape\nouppercase\rightmark}
 %\fancyfoot[R]{\footnotesize\itshape\ampmtime}
\setlength{\headheight}{12.0pt}
\renewcommand{\headrulewidth}{1.5pt}
\renewcommand{\footrulewidth}{0.5pt}
\begin{document}
\thispagestyle{empty}   %% <---- put this here
\renewcommand{\contentsname}{Table of Contents}
\tableofcontents
\renewcommand\listfigurename{List of Figures}
\listoffigures
\renewcommand\listtablename{List of Tables}
\listoftables
\begin{abstract}
We propose an improved approach to illustrate...
\end{abstract}
\Blinddocument

\end{document}

在此处输入图片描述

根据评论,您可以这样做:

\documentclass[a4paper]{article}
%pagestyle
\usepackage{fancyhdr}
\usepackage{blindtext}
\pagestyle{fancy}
\fancyhf{}
\fancyhead{}
\fancyhead[R]{\footnotesize\itshape\bfseries\nouppercase\thepage}%\ of \pageref{LastPage}}
\fancyhead[L]{\footnotesize\itshape\nouppercase\rightmark}
 %\fancyfoot[R]{\footnotesize\itshape\ampmtime}
\setlength{\headheight}{12.0pt}
\renewcommand{\headrulewidth}{1.5pt}
\renewcommand{\footrulewidth}{0.5pt}
\begin{document}
\thispagestyle{plain}   %% <---- put this here
\pagenumbering{roman}   %%<---- put this
\renewcommand{\contentsname}{Table of Contents}
\tableofcontents
\renewcommand\listfigurename{List of Figures}
\listoffigures
\renewcommand\listtablename{List of Tables}
\listoftables
\begin{abstract}
We propose an improved approach to illustrate...
\end{abstract}
\clearpage               %%<---- put this
\pagenumbering{arabic}   %%<---- put this
\Blinddocument

\end{document}

在此处输入图片描述

相关内容