La opción Legalpaper para el examen de clase de documento no funciona. Por favor ayuda.

La opción Legalpaper para el examen de clase de documento no funciona. Por favor ayuda.

Estoy intentando crear un examen de opción múltiple en un documento legal de EE. UU. Estoy usando TeXShop en una MacBook Air M2 con MacOS 14.4.1. Acabo de instalar TeXLive 2024. Aquí está parte del registro de la consola:

LaTeX2e <2023-11-01> patch level 1
L3 programming layer <2024-02-20>
(/usr/local/texlive/2024/texmf-dist/tex/latex/exam/exam.cls
Document Class: exam 2023/07/09 Version 2.704 by Philip Hirschhorn
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/ifthen.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/article.cls
Document Class: article 2023/05/17 v1.4n Standard LaTeX document class

La clase de documento del examen funciona como se esperaba con el tamaño de papel de carta predeterminado (no hay opción para la clase de documento, pero cuando agrego la opción legalpaper, ya no funciona de manera confiable).

Aquí está mi archivo fuente (tomado del manual enhttps://math.mit.edu/~psh/exam/examdoc.pdf):

\documentclass[answers,12pt]{exam}
\pagestyle{headandfoot}
\firstpageheadrule
\firstpagefootrule 
\firstpageheader{Math 115}{Final Exam}{July 4, 1776}
\runningheader{Math 115}
{Page \thepage\ of \numpages}
{July 4, 1776}
\firstpagefooter{Math 115}{Final Exam}{Page \thepage\ of \numpages}
\runningfooter{Math 115}{Final Exam}{Page \thepage\ of \numpages}
\runningheadrule 
\runningfootrule 
\usepackage{times}

\begin{document}

EXAM

\begin{questions}

\question My question with multiple choices.

\begin{choices}
   \choice The first choice.
   \choice The second choice.
   \choice The third choice.
   \choice The fourth choice.
   \CorrectChoice The fifth choice.
\end{choices}

\end{questions}

\end{document}

que produce esta salida:ingrese la descripción de la imagen aquí

Cuando agrego solo la legalpaperopción a mi archivo fuente (de la página 102 de la documentación exam.cls):

\documentclass[legalpaper,answers,12pt]{exam}
\pagestyle{headandfoot}
\firstpageheadrule
\firstpagefootrule 
\firstpageheader{Math 115}{Final Exam}{July 4, 1776}
\runningheader{Math 115}
{Page \thepage\ of \numpages}
{July 4, 1776}
\firstpagefooter{Math 115}{Final Exam}{Page \thepage\ of \numpages}
\runningfooter{Math 115}{Final Exam}{Page \thepage\ of \numpages}
\runningheadrule 
\runningfootrule 
\usepackage{times}

\begin{document}

EXAM

\begin{questions}

\question My question with multiple choices.

\begin{choices}
   \choice The first choice.
   \choice The second choice.
   \choice The third choice.
   \choice The fourth choice.
   \CorrectChoice The fifth choice.
\end{choices}

\end{questions}

\end{document}

Obtengo el siguiente resultado (espacio adicional encima del encabezado y sin pie de página):

ingrese la descripción de la imagen aquí

Respuesta1

La clase no configura el tamaño del pdf, por lo que si el valor predeterminado de su sitio es A4, las opciones de tamaño de página realmente no funcionan y no está claro que funcionen incluso si el valor predeterminado de su sitio es carta (no rastreé su configuración).

Puede informar esto a los encargados del paquete, pero la solución más fácil (para ellos y para usted) es cargar geometrypara arreglar las cosas.

Si lo desea, puede ajustar otras cosas usando las opciones de geometría, por ejemplo, aumentar \textheightun poco si lo desea.

Los pdfinfoinformes de utilidad

Page size:      612 x 792 pts (letter)

ingrese la descripción de la imagen aquí

\documentclass[
letterpaper
,answers,12pt]{exam}
\usepackage{geometry}

\pagestyle{headandfoot}
\firstpageheadrule
\firstpagefootrule 
\firstpageheader{Math 115}{Final Exam}{July 4, 1776}
\runningheader{Math 115}
{Page \thepage\ of \numpages}
{July 4, 1776}
\firstpagefooter{Math 115}{Final Exam}{Page \thepage\ of \numpages}
\runningfooter{Math 115}{Final Exam}{Page \thepage\ of \numpages}
\runningheadrule 
\runningfootrule 
\usepackage{times}

\begin{document}

EXAM

\begin{questions}

\question My question with multiple choices.

\begin{choices}
   \choice The first choice.
   \choice The second choice.
   \choice The third choice.
   \choice The fourth choice.
   \CorrectChoice The fifth choice.
\end{choices}

\end{questions}

\end{document}

información relacionada