I'm running into a weird LaTeX formatting issue.
I've modified the styling a bit on the tcolorbox for Sage input, as follows:
\newtcblisting{sageinput}{sagestyle, colback=sageblue, enhanced, sharp corners, borderline east={0.5pt}{0pt}{black}, borderline west={0.5pt}{0pt}{black},borderline north={0.5pt}{0pt}{black},before skip=10pt, after skip=0pt,frame hidden,}
This works great in a oneside layout.
But when I switch to twoside for printing, some of the input boxes collapse.
(Only some. Others get cut off a bit.)
I get the following:
This should be:
I can fix the ones that are misbehaving by modifying the sagestyle to use after skip=10pt
instead of after skip=0pt, but that leaves some undesirable empty space at the bottom of other boxes that aren't misbehaving in the same way.
OK, so I can just locally modify the ones that don't look right.
But I remain confused: why should changing from oneside to twoside (and making no other change in the .tex file) cause vertical space to disappear in some tcolorboxes?