Problem mit Packet listings Thema ist als GELÖST markiert
Siehe zum Stichwort utf8 und listings auch listingsutf8.
goLaTeX-Knigge (mit Minimalbeispiel und »So stellst Du Deine Frage richtig«)
Wie kann ich Code in meinem Beitrag hervorheben?
Wie hänge ich ein Bild an meine Frage?
KOMA-Script
Wie kann ich Code in meinem Beitrag hervorheben?
Wie hänge ich ein Bild an meine Frage?
KOMA-Script
Problem mit Packet listings
Leider funktioniert es nur in diesem Minimalbeispiel. In meiner echten LaTeX Datei, die eine Dokumentation einer Access-Datenbank samt kommentiertem VBA-Code enthält, funktioniert es nicht. Es gibt eine Fehlermeldung. Das ist aber nicht so einfach und ist entweder ein Bug oder ein Kompatibilitätsproblem. Ich hab euch mal den Text aus der listings Dokumentation, der hier nun zum greifen kommt, wie ich meine.
Gruß, Tanata
Es gibt Hoffnung, aber ist wird ein zähes Erlesen von neuer Information sein.National characters If you type in such characters directly as characters of
codes 128–255 and use them also in listings, let the package know it—or you’ll
get really funny results. extendedchars=true allows and extendedchars=false
prohibits listings from handling extended characters in listings. If you use them,
you should load fontenc, inputenc and/or any other package which defines the
characters.
! I have problems using inputenc together with listings. This could be a compatibility
problem. Make a bug report as described in section 6 Troubleshooting.
The extended characters don’t cover Arabic, Chinese, Hebrew, Japanese, and so
on—specifically, any encoding which uses multiple bytes per character.
Thus, if you use the a package that supports multibyte characters, such as
the CJK or ucs packages for Chinese and UTF-8 characters, you must avoid letting
listings process the extended characters. It is generally best to also specify
13
extendedchars=false to avoid having listings get entangled in the other package’s
extended-character treatment.
If you do have a listing contained within a CJK environment, and want to
have CJK characters inside the listing, you can place them within a comment
that escapes to LATEX– see section 4.14 for how to do that. (If the listing is not
inside a CJK environment, you can simply put a small CJK environment within
the escaped-to-LATEXportion of the comment.)
Similarly, if you are using UTF-8 extended characters in a listing, they must
be placed within an escape to LATEX.
Also, section 7 has a few details on how to work with extended characters in
the context of .
Gruß, Tanata