Closed vlasakm closed 1 year ago
Better solution is to use
\hrule width\dimexpr\hsize-\leftskip height10pt depth4pt \kern-4pt}}%
in the \_printverbline
macro. I corrected CTUstyle in this sense, see https://github.com/olsak/CTUstyle3/commit/ac693ca7c367357ec9557f2e9a237422303951d8.
Thank you for noticing.
Thanks, much better!
Consider what happens when
\begtt
is nested under\begitems
and we color the verbatim text and increase the indentation to highlight the issue:The colored verbatim blocks go off the side.
To be honest I am not sure what is the right typograhical handling of this, and I guess that maybe use of such constructs is even discouraged.
Nonetheless I needed it, and in the end settled on adding this to my document:
Though a proper handling would be needed. I admit I am not even sure how
\hsize
really interacts with (colored) verbatim and lists.