slatex / sTeX

A semantic Extension of TeX/LaTeX
49 stars 9 forks source link

Exam whitespace (\testnewpage and \testemptypage) not working properly #364

Closed lambdaTotoro closed 1 year ago

lambdaTotoro commented 1 year ago

Pretty much exactly what it says on the tin. We're having retakes soon and currently, when I pdflatex the retake for IWGS, the \testnewpage and \testemptypage commands don't actually get translated into whitespace.

/cc @kohlhase

Jazzpirate commented 1 year ago

Do you have an example document I can try out pushed somewhere?

lambdaTotoro commented 1 year ago

Yes I do. retake.tex in MiKoCourses/IWGS/source/SS22 should do!

Jazzpirate commented 1 year ago

Turns out:

  1. \testnewpage and \testemptypage do nothing unless the package option boxed is given (for hwexam or problem). I'm not entirely sure what it does or why it even exists, but adding the package option solves your problem
  2. I found another bug in \testemptypage and while fixing it also rewrote it so that the text "This page was intentionally left empty" is set at the bottom of the page rather than at the top. I vaguely remember there being discussions that otherwise it might be confusing to students. (See d1d76297ec5c0e4055f5f6c8bd55f4bb7df5464a)
lambdaTotoro commented 1 year ago

Thank you, das funktioniert. Jetzt ist der Whitespace aber überall, auch im retake-with-solutions.pdf. Gibt es etwas, was ich dort im tex eintragen kann, damit der Whitespace wieder verschwindet?

Jazzpirate commented 1 year ago

hmm, hast du mal boxed=false versucht? Aber ehrlich gesagt bin ich jetzt am raten. Keine ahnung was die intention hinter dem boxed war oder warum ausgerechnet das bestimmt ob newpages was tun... 0o

lambdaTotoro commented 1 year ago

Guess or not, it works! Thank you! =)