Bug#413045: Patch for Umlauts ( at least ). method for creating more
The following patch removes this problem when encountering umlauts
--- /usr/share/texmf-texlive/tex/latex/listings/listings.sty 2008-06-10
22:46:51.000000000 +0200
+++ /usr/local/share/texmf/tex/latex/listings/listings.sty 2010-03-13
22:02:34.000000000 +0100
@@ -923,6 +923,13 @@
\lst@ProcessLetter{"24}\textdollar
\lst@ProcessOther {"25}\%
\lst@ProcessOther {"26}\&
+ \lst@ProcessLetter{"E4}{\"a}
+ \lst@ProcessLetter{"F6}{\"o}
+ \lst@ProcessLetter{"FC}{\"u}
+ \lst@ProcessLetter{"C4}{\"A}
+ \lst@ProcessLetter{"D6}{\"O}
+ \lst@ProcessLetter{"DC}{\"U}
+ \lst@ProcessLetter{"DF}{\ss{}}
\lst@ProcessOther {"27}{\lst@ifupquote \textquotesingle
\else \char39\relax \fi}
\lst@ProcessOther {"2A}{\lst@ttfamily*\textasteriskcentered}
Untested:
The following is suggested in a forum for spanish characters
( http://stackoverflow.com/questions/1116266/listings-in-latex-with-utf-8-or-at-least-german-umlauts ):
\lst@ProcessOther {"E1}{\'a}
\lst@ProcessOther {"C1}{\'A}
\lst@ProcessOther {"E9}{\'e}
\lst@ProcessOther {"C9}{\'E}
\lst@ProcessOther {"ED}{\'i}
\lst@ProcessOther {"CD}{\'I}
\lst@ProcessOther {"F3}{\'o}
\lst@ProcessOther {"D3}{\'O}
\lst@ProcessOther {"FA}{\'u}
\lst@ProcessOther {"DA}{\'U}
\lst@ProcessOther {"F1}{ñ}
\lst@ProcessOther {"D1}{Ñ}
I claim no copyright in these changes / patches. Feel free to do whatever you want with them.
Yours, Julian Bangert
Reply to: