Linked Questions

2
votes
1answer
1k views

Spanish character not working in 'listings' package [duplicate]

I have a Spanish character not working in 'listings' package. In the code example below, the first occurrence of the word 'ignorará' works. The second generates the error: ! Package inputenc Error: ...
1
vote
0answers
2k views

lstlisting environment with UTF-8 encoding [duplicate]

I have a problem using lstlisting environment with utf8 encoding. I got this error Package inputenc Error: Unicode char \u8:�\expandafter not set up for use wit MWE \documentclass{article} \...
0
votes
0answers
45 views

How to get Unicode in code listings? [duplicate]

I want to use Unicode text (a mixture of cyrillic and japanese characters) in a code listing that uses default LaTeX fonts (in other words, source code fonts are left to default). However, for all non-...
0
votes
0answers
32 views

How to use uncodable chars like Σ inside program listings in LyX? [duplicate]

I have a code that runs with some characters like Σ and I'm trying to include them in my program listings but I get the "LyX: Uncodable characters in listing inset". I don't want to "mathscape = true"...
1
vote
0answers
31 views

\lstinputlisting with source file containing logic symbols [duplicate]

I have a source code file that I want to include in my LaTeX document with \lstinputlisting. However, this source file contains logic symbols like ∃ (it's encoded in UTF-8), which produce errors. I ...
1
vote
0answers
26 views

Special characters in formatted code [duplicate]

I want to show some nicely formatted source code, e.g.: er ist ein bisschen ein ötto geworden My document: \documentclass[a4paper,10pt,ngerman]{scrartcl} \usepackage{babel} \usepackage[T1]{fontenc} ...
0
votes
0answers
14 views

error while using diacritical marks in matlab code in latex [duplicate]

I'm very new to latex and I'm trying to write a latex document in polish. It contains diacritical marks such as "ą" or "ś" and it all works fine until I try to add some Matlab code to the document. My ...
30
votes
6answers
23k views

How to insert code with accents with listings?

I'm trying to insert source code in LaTeX with using listings, but my code has accents and pdflatex gives me this error: Unicode char \u8:�\expandafter not set up for use with LaTeX. This is a code ...
23
votes
3answers
7k views

The 'listings' package and UTF-8

Please, do you know if there's any possibility how to use the listings package together with XeLaTeX? I have to use XelaTeX and therefore I have UTF-8 encoded files. This is not compatible with ...
9
votes
3answers
849 views

Can I include Chinese characters in listings? If so, how?

I'd like to include Chinese characters in listings. Can it be done, and, if so, how?
0
votes
1answer
5k views

lstinline has Invalid UTF-8 byte 167

Possible duplicate of this question MWE: \documentclass[% parskip=full,% empty line after each paragraph. twoside=false% not a 2-sided print for a book. ]{scrbook} % \usepackage[utf8]{inputenc} ...
4
votes
2answers
816 views

An error appears saying that utf8 and listing are not compatible

If I compile the next code the following error appear. ! Package inputenc Error: Unicode char \u8:�\expandafter\lst@FillFixed@\fi not set up for use with LaTeX. See the inputenc package ...
2
votes
2answers
517 views

Problem with 'é' character in listings

I have this MWE \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[frenchb]{babel} \usepackage{colortbl} \usepackage{lmodern} \usepackage{listings} ...
5
votes
2answers
188 views

`showexpl` doesn't work with accents

It seems that showexpl removes the accents when it is processing them. How can I make it to use accented letters? Is there a replacement or a similar package that is more robust? \documentclass{...
5
votes
1answer
609 views

verbments (listings alternative) and UTF-8

This is a follow-up question to UTF8 for listings With these MWE I will not see the german umlauts in the resulted pdf (XeLaTeX was used): \documentclass{article} \usepackage{verbments} \begin{...

15 30 50 per page