Closed havrikov closed 3 years ago
This is caused by a new behavior in the varwidth
package that algpseudocodex
is using internally, see https://tex.stackexchange.com/q/600349/123920.
This answer on StackExchange describes a workaround that fixes the problem: https://tex.stackexchange.com/a/600420/123920
I hope that varwidth
will get fixed soon and I don't plan to implement a workaround in algpseudocodex
for now.
Understood.
Thank you for clarifying.
FWIW, this is what it looks like with the workaround applied:
As you can see, the comment is still slightly offset with regards to its line.
Nevertheless, feel free to close this issue.
Thanks for pointing out the offset comments! The problem seems to disappear if you use rightComments=false
. I'll leave this open and hope it will be fixed soon with a proper fix of varwidth
.
If you need a properly formatted document now and you don't use \BeginBox
and \EndBox
, you can download a copy of algpseudocodex.sty
and replace varwidth
with minipage
everywhere in there. This fixes it for me (but makes all boxes maximal width).
Issue appears to be fixed in newest version of TeX Live (including the offset comments).
Since the latest update to the TexLive and MikTeX distributions (as of
2021-06-06
) the spacing between the lines inalgpseudocodex
is off, and as a result, the indent lines are also misplaced.Consider the following snippet:
Since the update, it renders as follows: