diff options
author | Karl Berry <karl@freefriends.org> | 2022-08-17 20:58:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-08-17 20:58:13 +0000 |
commit | 58d65b42a5472ce637fb9923099ac6805cbd0309 (patch) | |
tree | c099647c03719f1efc24f065c9fdaac6253d8a88 | |
parent | 8ff5963142e7e6b0b09348dda41b2594d5de8a66 (diff) |
exam (17aug22)
git-svn-id: svn://tug.org/texlive/trunk@64134 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/exam/exam.md5 | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/exam/examdoc.pdf | bin | 482795 -> 493628 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/exam/examdoc.tex | 38 |
3 files changed, 36 insertions, 6 deletions
diff --git a/Master/texmf-dist/doc/latex/exam/exam.md5 b/Master/texmf-dist/doc/latex/exam/exam.md5 index 6dbd2d391e4..c7a6e049d91 100644 --- a/Master/texmf-dist/doc/latex/exam/exam.md5 +++ b/Master/texmf-dist/doc/latex/exam/exam.md5 @@ -1,3 +1,3 @@ b210b790c86d89aeccb508074bd001ae exam.cls -c9c5a6648a0a34ff32595455124eec6c examdoc.tex -6de4faf2e619d56b8516369800d8a04a examdoc.pdf +08261e0c96d341f948483d8fbf78a118 examdoc.pdf +b44eb4ab2c875e46f5239d5c27c37d64 examdoc.tex diff --git a/Master/texmf-dist/doc/latex/exam/examdoc.pdf b/Master/texmf-dist/doc/latex/exam/examdoc.pdf Binary files differindex fcf3b7f84bd..dcd7c71f3d3 100644 --- a/Master/texmf-dist/doc/latex/exam/examdoc.pdf +++ b/Master/texmf-dist/doc/latex/exam/examdoc.pdf diff --git a/Master/texmf-dist/doc/latex/exam/examdoc.tex b/Master/texmf-dist/doc/latex/exam/examdoc.tex index 579d551ae62..dfca897c850 100644 --- a/Master/texmf-dist/doc/latex/exam/examdoc.tex +++ b/Master/texmf-dist/doc/latex/exam/examdoc.tex @@ -53,7 +53,7 @@ \newcommand{\bs}{\texorpdfstring{\char`\\}{}} \newcommand{\docversion}{2.7} -\newcommand{\docdate}{February 26, 2021} +\newcommand{\docdate}{August 14, 2022} %\newcommand{\docdate}{Draft: \today} %-------------------------------------------------------------------- @@ -595,7 +595,8 @@ on all pages after the first, give the commands Sections~\ref{sec:beginexamples} through \ref{sec:endexamples} contain many other examples of headers and footers, and the full explanation -of the commands for headers and footers is in +of the commands for headers and footers (including header and footer +commands other than the ones we've just mentioned) is in sections~\ref{sec:pagestyle}--\ref{sec:QuesSpan}. \index{header|)} @@ -7568,7 +7569,7 @@ on all other pages, you would give the commands \begin{verbatim} \lhead{Math 115} \chead[Second Exam]{} -\rhead[July 4, 1776]{Second Exam Continued)} +\rhead[July 4, 1776]{Second Exam (Continued)} \end{verbatim} Any of the three parts of the header can have multiple lines. To @@ -7591,6 +7592,32 @@ appear on every page, you would give the commands \index{header!three parts|)} +%-------------------------------------------------------------------- +\subsubsection{Commands with optional arguments} +\label{sec:OptArg} +\index{optional arguments} + +\LaTeX{} has the property that if a command takes an optional +argument, and if that optional argument contains a command that also +has an optional argument, then \emph{that inner command must be + enclosed within curly braces}. For example, if you want the right +justified part of the first page header to be +\samplehead{}{}{Name:\enspace\makebox[2in]{\hrulefill}}{} but you want +the right justified part of the header on pages after the first to be +empty, then you should give the command +\begin{verbatim} +\rhead[{Name:\enspace\makebox[2in]{\hrulefill}}]{} +\end{verbatim} +Note that the optional argument to the \verb"\rhead" command is +\begin{verbatim} +{Name:\enspace\makebox[2in]{\hrulefill}} +\end{verbatim} +and not +\begin{verbatim} +Name:\enspace\makebox[2in]{\hrulefill} +\end{verbatim} +This is due to the way that \LaTeX{} delimits optional arguments, and +is nothing special about the \verb"exam" document class. %--------------------------------------------------------------------- \subsubsection*{Leaving extra room for multiple line headers} @@ -8334,11 +8361,14 @@ incomplete. \pagestyle{headandfoot} \lhead{\large\bfseries Mathematics 115\\ First Exam, July 4, 1776} \chead{} -\rhead[\large\bfseries Name:\enspace\makebox[2in]{\hrulefill}]{} +\rhead[{\large\bfseries Name:\enspace\makebox[2in]{\hrulefill}}]{} \lfoot{} \cfoot[]{Page \thepage} \rfoot{} \end{verbatim} + (For an explanation of why there seems to be an extra pair of curly + braces in the optional argument to the \verb"\rhead" command, see + section~\ref{sec:OptArg}.) \end{example} %-------------------------------------------------------------------- |