I want to add Python code into my document, but the common solution (/lstlisting) generates text with spaces between each letter, messes up indentation, and doesn't include line breaks, which are crucial since I want to be able to copy the code from my document after I'm done.
Asked
Active
Viewed 615 times
mintedpackage preserves the code a bit better when copied as compared tolistingsconsidering spaces and line breaks, although indentation is still problematic (but a good programming editor can re-indent the code automatically). – Marijn Jan 26 '21 at 12:05