我試圖在第一頁上放置一個精美的頁首和頁腳,但似乎無法弄清楚如何將頁腳放置在所有頁面上。我試圖找到分頁符號並插入一個\fancyhead{}
命令,除了第一頁之外,標題全部消失。但是,我想減少其餘空白頁面的頁眉間距。有什麼建議麼?謝謝,麻煩您了。
我正在使用的程式碼如下:
\usepackage{fancyhdr}
\pagestyle{fancy}
\newcommand{\Header}[3]{
\fancyhf{} % Clear header/footer
\renewcommand{\headrulewidth}{0pt} % Remove header rule
\fancyhead[C]{%
\begin{tabular}{ @{} p{\textwidth} @{} }
\textbf{\textsf{#1}}\hfill \textbf{\textsf{#2}} \\
\hline
\centering \textsf{\small{#3}}
\end{tabular}}
\setlength{\headheight}{19pt}
\cfoot{\scriptsize \thepage}
\lfoot{\scriptsize \copyright 2019 Name}}
我的文件如下:
\documentclass[11pt, a4paper, twoside]{article}
\usepackage[a4paper,top=2.5cm,bottom=2cm,left=2.54cm,right=2.54cm,marginparwidth=1.75cm]{geometry}
\usepackage[utf8]{inputenc}
\begin{document}
\Header{Class $-$ Study Guide}{21 February 2019}{Exam will be 10 short answer and 1 essay. We have to know theories, as well as the implications and problems with the theories.}
\thispagestyle{fancy}%%% Don't know about this%%%%
\section{Logical Positivists}
\lipsum
\clearpage
\fancyhead{}%%%%% only deleting header, not reducing spacing%%%%
\section{new stuff}
\lipsum
\end{document}