minted
minted copied to clipboard
minted (or a dependency) breaks package flushend
When using minted, the package flushend
for balancing a two column document on the last page stops working. Columns are simply not balanced anymore.
Might be related:
- https://tex.stackexchange.com/questions/246892/need-help-balancing-the-columns-of-references-using-two-column-ieeetran-on-last
- https://tex.stackexchange.com/questions/136884/incompatibility-between-flushend-and-lineno-packages
Based on your second link, it appears that flushend
is incompatible with lineno
, which minted
loads for line breaking. If you can do without line breaking, then you can prevent lineno
from being loaded by adding this to your preamble before loading minted
:
\makeatletter
\@namedef{[email protected]}{9999/12/31}
\@namedef{[email protected]}{}
\makeatother
This basically hacks the package loading mechanism to make it behave as if lineno
were loaded, even though it isn't.
If you do need line breaking, then the issues between flushend
and lineno
would have to be figured out, and I don't have enough experience with the internal workings of either to be able to help with that.
Thanks. At least this workaround works. Maybe this can be added to the documentation?
...It took me a long time to discover this incompatibility. Glad the fix exists, said it is still not "properly" resolved...