python-latex-highlighting icon indicating copy to clipboard operation
python-latex-highlighting copied to clipboard

non-ascii characters in the whole document are affected by this package

Open efokken-abb opened this issue 1 month ago • 0 comments

Hi!

I really like this package! Unfortunately I am German and need umlauts from time to time and pythonhighlight kills umlauts (and possibly other non-ascii characters) in the whole document.

Here is an example:

\documentclass{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{pythonhighlight}

\begin{document}
Umlaut: ö Ö
\end{document}

Result:

Image

If you leave out the fontenc package, umlauts are (in my pdfviewer at least) just skipped:

\documentclass{article}

\usepackage{pythonhighlight}

\begin{document}
Umlaut: ö Ö
\end{document}

Result:

Image

Would be cool if you can help!

efokken-abb avatar Dec 12 '25 09:12 efokken-abb