Skip to main content

New answers tagged

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 ...
egreg's user avatar
  • 1.2m
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} \...
Mico's user avatar
  • 519k
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.
cfr's user avatar
  • 212k
3 votes
Accepted

Displaying a text in the center of the page

You can use vertical fills: \begin{document} \vspace*{\fill} \centerline{Example.} \vspace{\fill} \end{document}
invictus's user avatar
3 votes

Displaying a text in the center of the page

To display the text in the centre of the paper, you could use tikz (compile two times): \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[remember picture,overlay] \...
samcarter_is_at_topanswers.xyz's user avatar

Top 50 recent answers are included