New answers tagged python
1
vote
Accepted
You can't use `macro parameter character #' in horizontal mode. I can't print a code .py with special characters
From the manual of listings:
When the language is Python, # is the comment character and therefore everything that follows the first one (on the same line) is treated as LaTeX code. The second # ...
Top 50 recent answers are included
Related Tags
python × 458pythontex × 47
listings × 45
minted × 45
pdftex × 33
code × 26
matplotlib × 26
tikz-pgf × 23
pylatex × 22
pgfplots × 15
pdf × 14
pygments × 14
tables × 13
color × 13
xetex × 12
errors × 12
beamer × 11
windows × 11
fonts × 10
compiling × 10
packages × 9
miktex × 8
texstudio × 8
scripts × 8
graphics × 7