Closed TijlE-1951707 closed 2 months ago
%
is a distinct issue (a minor one, I guess), but I believe it is a problem of the listings package, in that case. I'd be happy to fix it if I can, though.In the case nothing can be done for Overleaf being annoying, it can be closed. Thanks!
Well, I'm not sure if it's a duplicate to #3, but it can still be annoying when
%
symbols are inside the code block.\pyth
When writing
%
inside\pyth
, overleaf highlights the remainder of the code and text outside the curly braces as a comment. The pdf renders as desired though.Overleaf also produces a warning.
Notice that I had to use 2 blank spaces, otherwise the remaining code gets printed right next to the
%
symbol.Finally, using
\%
gets printed as "\%" as expected, so it doesn't solve this either. (Though again, another space is necessary, which is not expected.)\python
Similar, but acceptable annoyances exist in the
\python
command.Is there any way to fix this?