minted icon indicating copy to clipboard operation
minted copied to clipboard

minted (or a dependency) breaks package flushend

Open languitar opened this issue 6 years ago • 3 comments

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

languitar avatar Oct 20 '17 10:10 languitar

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.

gpoore avatar Oct 20 '17 11:10 gpoore

Thanks. At least this workaround works. Maybe this can be added to the documentation?

languitar avatar Oct 20 '17 12:10 languitar

...It took me a long time to discover this incompatibility. Glad the fix exists, said it is still not "properly" resolved...

IiroUllin avatar Dec 26 '23 20:12 IiroUllin