New answers tagged exam
3
votes
Exam class: \numpages wrong when enforcing an even number of pages
The exam class writes the value for \exam@lastpage at the “wrong” time, so your \AtEndDocument instructions comes after the annotation is made. You can fix it by rewriting the correct value at the ...
2
votes
Exam class: \numpages wrong when enforcing an even number of pages
You may want to look into employing the pageslts package. Using this package for the task at hand may be overkill, but I think it's worth knowing about.
\documentclass{exam}
\usepackage{pageslts}
\...
5
votes
Accepted
Exam class: \numpages wrong when enforcing an even number of pages
I would just use the kernel's count from the previous run:
Number of pages: \PreviousTotalPages
results in 2 on the second compilation.
Top 50 recent answers are included
Related Tags
exam × 956macros × 47
tables × 38
formatting × 35
header-footer × 32
environments × 31
multicol × 30
tikz-pgf × 26
spacing × 26
horizontal-alignment × 23
counters × 22
indentation × 21
answers × 21
questionnaire × 21
lists × 19
points × 18
gradetable × 18
numbering × 17
exercises × 17
examdesign × 16
exsheets × 15
page-breaking × 14
errors × 13
graphics × 12
floats × 12