Tenho uma caixa que gostaria de incluir no cabeçalho, em vez de repeti-la manualmente em todas as páginas. Como posso conseguir isso?
\documentclass[addpoints, 12pt]{exam}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage[nameinlink]{cleveref}
\pagestyle{headandfoot}
\firstpageheader{\large\bfseries Astronomy Exam\\ \bigskip
\large\bfseries Last Name:\enspace\makebox[1.9in]{\hrulefill}}
{}
{\large\bfseries Univ ID: \makebox[2in]{\hrulefill} \\ \bigskip
\large\bfseries First Name:\enspace\makebox[2in]{\hrulefill}}
\runningheader{\large\bfseries Last Name:\enspace\makebox[1.9in]{\hrulefill}}
{}
{\large\bfseries First Name:\enspace\makebox[2in]{\hrulefill}}
\firstpagefooter{}{}{}
\runningfooter{}{\thepage}{}
\begin{document}
\begin{center}
\fbox{\fbox{\parbox{5.5in}{\centering
Answer the questions in the spaces provided on the
answer sheets.}}}
\end{center}
\begin{questions}
\question
\newpage
\begin{center}
\fbox{\fbox{\parbox{5.5in}{\centering
Answer the questions in the spaces provided on the
answer sheets.}}}
\end{center}
\question
\end{questions}
\end{document}
Responder1
Usei o geometry
-Package para ajustar a altura e largura do cabeçalho para que ele pudesse caber no topo da página.
Em seguida, mesclei os cabeçalhos esquerdo, central e direito no cabeçalho esquerdo, o que tornou a organização e o espaçamento de tudo muito mais fácil. Tentei manter o layout inicial o máximo que pude.
Aqui está o exemplo de trabalho:
\documentclass[addpoints, 12pt]{exam}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage[nameinlink]{cleveref}
\usepackage[top=5.5cm,left=2.5cm,right=2.5cm]{geometry}
\pagestyle{headandfoot}
\firstpageheader{\large\bfseries Astronomy Exam \hspace{4.3cm} Univ ID: \makebox[2in]{\hrulefill}\\ \bigskip
\large\bfseries Last Name:\enspace\makebox[1.9in]{\hrulefill} \large\bfseries
First Name:\enspace\makebox[2in]{\hrulefill}
\begin{center}
\fbox{\fbox{\parbox{5.5in}{\centering\small
Answer the questions in the space provided on the
answer sheets.}}}
\end{center}
}
{}
{}
\runningheader{
\large\bfseries Last Name:\enspace\makebox[1.9in]{\hrulefill} \large\bfseries
First Name:\enspace\makebox[2in]{\hrulefill}
\begin{center}
\fbox{\fbox{\parbox{5.5in}{\centering\small
Answer the questions in the space provided on the
answer sheets.}}}
\end{center}
}
{}
{}
\firstpagefooter{}{}{}
\runningfooter{}{\thepage}{}
\begin{document}
\begin{questions}
\question This is a question.
\newpage
\question This is another question.
\end{questions}
\end{document}