由于某种原因,标题页未显示页眉。代码如下:
\documentclass[11pt,addpoints]{exam}
\usepackage[top=.25in, bottom=.75in, left=.5in, right=.5in]{geometry}
\usepackage{pdfpages}
\usepackage[utf8]{inputenc}
\usepackage{amsfonts}
\usepackage{amsmath}
\pagestyle{headandfoot}
\begin{document}
\title{\textbf{Form A}}
\author{\textbf{Brad}}
\date{2018-19}
\maketitle
\thispagestyle{headandfoot}
\coverlhead{Math 110}
\coverchead{Exam 1}
\coverrhead{Fall 2018}
\begin{coverpages}
\begin{center}
\vspace{5mm}
\gradetable[h][questions]
\end{center}
\vspace{5mm}
\makebox[\textwidth]{Name and Period:\enspace\hrulefill}
\vspace{5mm}
\makebox[\textwidth]{Student ID Number:\enspace\hrulefill}
\fbox{\fbox{\parbox{5.5in}{\centering
Answer the questions in the spaces provided. If you run out of room
for an answer, continue on the back of the page.}}}
\end{coverpages}
答案1
这是因为您调整了页边距,导致页眉超出了页面边界。删除(或调整)您的geometry
边距修复了这个问题。
我在下面对您的代码添加了一些更新(包括上述建议):
\documentclass[addpoints]{exam}
\pagestyle{headandfoot}
\begin{document}
\title{\textbf{Form A}}
\author{\textbf{Brad}}
\date{2018-19}
\maketitle
\coverlhead{Math 110}
\coverchead{Exam 1}
\coverrhead{Fall 2018}
\thispagestyle{headandfoot}
\begin{coverpages}
\begin{center}
\vspace{5mm}
\gradetable[h][questions]
\end{center}
\vspace{5mm}
\noindent
\makebox[\linewidth]{Name and Period:\enspace\hrulefill}
\vspace{5mm}
\noindent
\makebox[\linewidth]{Student ID Number:\enspace\hrulefill}
\vspace{5mm}
\begin{center}
\fbox{\fbox{\parbox{5.5in}{\centering
Answer the questions in the spaces provided. If you run out of room
for an answer, continue on the back of the page.}}}
\end{center}
\end{coverpages}
\end{document}