I want to create empty boxes with a given height and a width of \textwidth
. I tried the following:
\framebox(\textwidth{}, 80){} % (a)
\framebox[\textwidth]{} % (b)
(b) does not work (because I cannot specify the height... ), and (a) works but gives me the following error:
ERROR: Missing number, treated as zero.
I don't really understand why it works with this error... So if anyone could help me figure this out.
I am using exam.cls, so my real code is something like:
\fullwidth{\color{black!30}\framebox(\textwidth{}, 80){}}
But I can reproduce without the \fullwidth
... I also checked the value of \textwidth
:
\the\textwidth
% 469.755pt
Maybe the problem is the pt
at the end but I don't know how to get rid of it...
Of course, if you have other solutions to create empty boxes with specified criteria, I am open to suggestion!
\framebox[\textwidth]{\rule{0pt}{80pt}}
?