TeX - LaTeX Asked on December 29, 2021
I have the following MWE:
documentclass[a4paper]{exam}
% renewcommand{questionshook}{
% setlength{itemsep}{30pt}
% }
begin{document}
section{leet}
someleet.
section{moreleet}
somemoreleet.
begin{questions}
question something here.
begin{EnvFullwidth}
section{blah}
end{EnvFullwidth}
question blahblah.
end{questions}
end{document}
Compiling this code returns the following results, with the renewcommand
block commented on the left, and uncommented on the right (open the images in new tabs, ideally):
Notice two things:
The spacing above the blah
section is equal in both cases, but clearly more than the normal sectioning space.
The spacing below the same section is massively expanded when the question spacing is changed.
Another thing I noted, is that commands such as clearpage
or newpage
do nothing to eliminate the space above the sectioning command, when placed in a questions
environment.
My goal is as such, for the sectioning commands within the questions
environment (i.e. not just section
, but subsection
, etc too):
The spacing above the sectioning command should be equal to the itemsep{}
set in the newcommand
.
The spacing below the sectioning command should be equal to the usual spacing below a sectioning command not within the questions
environment.
If a sectioning command begins on a new page, or clearpage
/newpage
is explicitly specified, then there should be no additional space above the sectioning text, i.e. a new page nullifies the space mentioned in 1.
Can this be achieved with some wrangling?
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP