Questions tagged [unicode]

{unicode} is for questions about Unicode (an international standard for character encoding) and its implementations. For questions about input encodings use {input-encodings}.

Filter by
Sorted by
Tagged with
295 votes
14 answers
311k views

Entering Unicode characters in LaTeX

How do I enter Unicode characters in LaTeX? What packages do I need to install and what escape sequence do I type to specify Unicode characters in an ASCII source file?
John D. Cook's user avatar
  • 3,181
230 votes
7 answers
235k views

utf8x vs. utf8 (inputenc)

I normally use \usepackage[utf8]{inputenc} for my latex document but on this site i saw a lot of code with \usepackage[utf8x]{inputenc}. What are the differences between the 2 options ? Is there one ...
PHL's user avatar
  • 7,465
34 votes
5 answers
9k 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 ...
Petra's user avatar
  • 341
79 votes
7 answers
72k views

Having problems with listings and UTF-8. Can it be fixed?

I'm having some problems with listings and UTF-8 in my document. Maybe someone can help me? Some characters work, like é and ó, but á and others appear at the beginning of words... \documentclass[...
KramerTheCat's user avatar
32 votes
7 answers
6k views

LaTeX baffled by BOM---Unicode's byte order mark.

Unicode applies the convention of using a byte order mark as signature at the beginning of a text stream, identifying the encoding used within it. The following three bytes at the beginning of a file: ...
Yossi Gil's user avatar
  • 15.7k
132 votes
13 answers
412k views

inputenc Error: Unicode char \u8: not set up for use with LaTeX

This is with ref to my previous question Package clash in multilingual report. \documentclass[11pt,table,a4paper]{article} \usepackage{lmodern} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \...
Manish's user avatar
  • 1,521
19 votes
4 answers
3k views

Hyperref: Scandinavian characters (æø) don't work in \url, hyperlink is wrong

Background A while ago it became possible to use the letters æ, ø and å in URLs, and some websites, like the encyclopaedia Store Norske Leksikon, has made use of this. Recently, a question was posted ...
Torbjørn T.'s user avatar
17 votes
2 answers
3k views

comment.sty and UTF8 encoding

I noted that if I use comment.sty and a there is a block of text containing UTF8 characters inside a comment environment, the compilation aborts! Minimal Example \documentclass{article} \usepackage[...
Roberto Pose's user avatar
20 votes
5 answers
6k views

Typesetting phonetic symbols: Unicode or tipa?

On TeX.SX there are a lot of questions of the form "How do I typeset [some phonetic symbol]?" For example: Typesetting modifier letter U+02ED The near-close, near-front unrounded vowel symbol The IPA ...
Jason Zentz's user avatar
  • 4,078
36 votes
2 answers
1k views

Why is the fraction off the math axis in XeTeX?

The fraction in textstyle is off the math axis in XeTeX when I use a Unicode math font. In LuaTeX, though, it aligns nicely with the math axis. The follwing MWE should illustrate this. Also, in ...
Henri Menke's user avatar
52 votes
3 answers
45k views

How to use phonetic IPA characters in LaTeX

I wish to write a paper about linguistics, so I thought about trying LaTeX. Sadly I couldn't figure out how to write the unique characters I need for my work, for example epsilon with a little tilde ...
John's user avatar
  • 595
25 votes
8 answers
4k views

How can I access a specific glyph in LuaLaTeX/Fontspec?

The OTF version of Minion Pro contains several Dingbats glyphs I would like to access. Some of them are not unicode, so I can not just copy the specific unicode character I want to access into my text ...
Ingo's user avatar
  • 19.6k
13 votes
2 answers
4k views

Unicode -(U+301) error in biblatex, but not in main text: {\'{\i}}

When compiling my document embedding references using biblatex, I get the error message: Package inputenc Error: Unicode char ́ (U+301)(inputenc) not set up for use with LaTeX With the help of ...
Wiebke's user avatar
  • 913
47 votes
3 answers
7k views

French accents in \hl from soul package

I'd like to use the \hl command from the soul package in a French text. However, it does not work whenever the part to highlight contains French accents (e.g.: \hl{é}). I could use \'e instead of é (...
Zach's user avatar
  • 653
25 votes
2 answers
2k views

Unicode in the equations: pros and cons

Is there any pros and cons for using of Unicode (and vice versa) in LaTeX equations? Consider two examples: \lim_{h→0}∫_{x_0}^{x_0 + h}\frac{f(t)}{h} = f(x_0) x_0 ⇔ ∀ 𝜀 > 0, ∃ 𝛿 > 0,(|x-x_0|...
m0nhawk's user avatar
  • 9,539
15 votes
2 answers
2k views

How to install HarfTeX on TeXLive?

I've Installed TeX Live 2019 and downloaded HarfTeX. I'm using Visual Studio Code along with LatexWorkshop on Windows 10 and without any problem tex files compile with xelatex and lualatex. What to do ...
user avatar
28 votes
1 answer
3k views

xelatex problem: Missing chars in TeXLive 2013 / \textfont XXX is undefined errors in miktex

I'm trying to track down the source of a problem with the new xetex binary in miktex. I think it is related to the following problem in TeXLive 2013: \documentclass{article} \usepackage{unicode-math} ...
Ulrike Fischer's user avatar
28 votes
1 answer
3k views

Define fallback font for specific Unicode characters in LuaLaTeX

This closed question prompts me to propose a more general question and a solution I don't think has been demonstrated here. When compiling with LuaLaTeX and using Unicode input, how do you set up a ...
musarithmia's user avatar
  • 12.2k
18 votes
2 answers
36k views

solve "Unicode char is not set up for use with LaTeX" without special handling of every new interesting UTF-8 character [duplicate]

on topic of duplicate claims - I tested Tell Latex to ignore ALL unicode errors? - "solution" it resulted in LaTeX displaying "?" rather than ​"⌀". Thanks to people who provided high quality and very ...
reducing activity's user avatar
107 votes
4 answers
317k views

"inputenc Error: Unicode char \u8" error while trying to write a degree symbol (invisible character)

No matter how I try to do it I always get the following error : ! Package inputenc Error: Unicode char \u8:­ not set up for use with LaTeX. I have tried using ­­­$^{\circ}$, \deg, \textdegree, ...
levesque's user avatar
  • 12.8k
34 votes
2 answers
13k views

How to find this unicode character U+202F in your LaTeX documents?

I get the following error but I cannot locate the unicode character Package inputenc Error: Unicode char   (U+202F) TeXLive: 2017 OS: Linux Debian Stretch 9.1
Léo Léopold Hertz 준영's user avatar
29 votes
1 answer
14k views

How do I enter an arbitrary Unicode code point into my document?

I want to enter a GREEK CAPITAL LETTER ALPHA (U+0391) into my LaTeX document. I do not want a LATIN CAPITAL A. How do I do this?
vy32's user avatar
  • 4,660
15 votes
7 answers
11k views

LaTeX/XeTeX setup Tamil/Indic languages

I use TexMaker and LyX in Ubuntu. I'd like to typeset Tamil/Telugu/Hindi text, and so far I've been unsuccessful. Please suggest me a working TeX/LaTeX/variants setup for Indic languages, especially ...
Ananth Pattabiraman's user avatar
17 votes
3 answers
3k views

How to disable percent-encoding in URLs?

I try to add a unicode URL into the bibliography and LaTeX automatically converts the cyrillyc letters into percent-encoding. I found that hyperref is responsible for this, but I found no way to ...
Himura's user avatar
  • 883
16 votes
2 answers
3k views

How to get devanagari numerals in latex or xetex

How to get devanagari numerals in xetex or latex - especially in enumerate environment? I can use unicode to write devanagari text but I am unable to get devenagari numerals in section numbers, ...
deshmukh's user avatar
  • 2,425
13 votes
1 answer
4k views

UTF8 for listings

With German umlauts I have to define these characters (Typesetting UTF8 listings with German Umlaute) and the following MWE is working: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[...
Micha's user avatar
  • 2,779
25 votes
1 answer
3k views

listings package changes hyphens to minus signs [duplicate]

The listings package transforms source-code hyphens (-, U+002D) into minus signs (−, U+2212) when using the default proportional fonts, though not when using the default monospaced typewriter font. A ...
Ben Liblit's user avatar
  • 1,433
23 votes
5 answers
3k views

Capital ẞ in LaTeX/XeTeX/lualatex/whatever

I am trying to get a ẞ in my LaTeX document. How can I do this? I already tried: Using other fonts: dejavu and libertine Using \MakeUppercase{ß}, which sometimes produces nothing, sometimes produces "...
schoppenhauer's user avatar
19 votes
2 answers
3k views

How to input accents in PlainTeX with UTF-8 encoding?

I'm using TeX with the plain format. On my keyboard there is the 'è' character (as well as é, ò, à, ù, ì). I'd like to make it work so that, when put è in the input file, TeX transforms it into \`e, ...
User's user avatar
  • 2,541
18 votes
3 answers
3k views

How to use xindy with XeTeX/LuaTeX?

According to Xindy revisited: Multi-lingual index creation for the UTF-8 age (TUGboat), “if one has a raw index file that was produced by [XeTeX], one can use xindy; it will ‘just work’.” ...
Caramdir's user avatar
  • 87.4k
17 votes
1 answer
3k views

Font substitution with XeLaTeX

I have an automatically generated document (using Doxygen) that has many different Unicode characters for many languages: Hebrew, Japanese, Greek, Arabic and more. Some parts of text displayed using ...
Artyom's user avatar
  • 293
17 votes
2 answers
16k views

Unicode char {U+200B}

When I try to cite more than two authors, I got this: ! Package inputenc Error: Unicode char ​ (U+200B) (inputenc) not set up for use with LaTeX. \documentclass[a4paper,oneside,BCOR=...
user124801's user avatar
12 votes
5 answers
2k views

Editors supporting unicode

For some reason it seems that my favourite editor TeXnicCenter doesn't support unicode (correct me please if I'm wrong, which wouldn't be the first time). Can anyone recommend an editor which does, ...
Rook's user avatar
  • 961
44 votes
7 answers
58k views

How to print a warning sign (triangle with exclamation point)?

I am interested in including a triangle with an exclamation point (unicode #9888: ⚠) in a tex document. I've looked in the usual places (detexify, etc.) and not found this symbol. The document should ...
Charles Staats's user avatar
26 votes
4 answers
21k views

Emoji Characters

I'm trying to display Emoji Characters inside my XeLaTeX Document. It seems to work for some glyphs like the numbers and pound sign but not for all. Here is a MWE: \documentclass{scrartcl} \...
lemen's user avatar
  • 263
11 votes
4 answers
6k views

Greek pdf bookmarks

I am puzzled with sections titled with Greek characters. They do appear in the pdf's Content list, though not correctly. For example, in my thesis--written in English with LyX, based on the KOMA-...
Nikos Alexandris's user avatar
9 votes
1 answer
10k views

Unicode with PdfLaTeX

I would like to get Alchemy symbols working in PdfLaTeX. I do not have access to XeTeX or LuaTex as I am using Tex Writer on the iPad. Here are two minimal examples. The first one works. \...
texuser's user avatar
  • 143
7 votes
2 answers
3k views

Change XeTeX fonts automatically depending on Unicode blocks

I would like to move from p(La)TeX (which was a TeX system specifically tailored to Japanese in a pre-Unicode era) to Xe(La)TeX, and I'm having a problem. In p(La)TeX, Japanese fonts are only used ...
Yuji's user avatar
  • 1,015
3 votes
4 answers
1k views

Accented letters with IM FELL fonts

I am having an error compiling the following code with xelatex and lualatex: ** WARNING ** "seac" character deprecated in Type 2 charstring. ** ERROR ** Type2 Charstring Parser: Parsing charstring ...
user56153's user avatar
  • 959
26 votes
1 answer
8k views

Entering unicode math symbols into LaTeX, direct from keyboard, on a Mac

I would like my LaTeX files to contain Unicode characters. For instance, I want to see ∃x.x ⟶ β in my text editor, rather than \exists x\ldotp x\longrightarrow\beta Also, I would like to ...
John Wickerson's user avatar
15 votes
3 answers
8k views

Why does XeTeX not display basic Unicode characters?

I have a document like this, but when I render it by invoking xelatex on it, the π character is displayed as a blank space: \documentclass[13pt,oneside]{scrbook} \usepackage{fontspec} % the problem ...
Marijn's user avatar
  • 285
13 votes
1 answer
1k views

Sanitize U+301 infection and others in references

Too often I messed with bad formated BibTeX files from references databases that are infected with active characters as % or & (usually in the abstract, that is not printed but produce an error ...
Fran's user avatar
  • 77.3k
12 votes
1 answer
2k views

Properly sort index containing utf8 characters?

If my input file is utf8 encoded, how to I create an index where the entries are properly sorted? Minimal example \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{makeidx} \makeindex \...
Juan A. Navarro's user avatar
7 votes
2 answers
2k views

Tell Latex to ignore ALL unicode errors?

I have a web interface that generates LaTeX-letters to customers. These letters are rendered dynamically. Some customers have some special characters in their names, that LaTeX can't translate, so I ...
TheWaveLad's user avatar
7 votes
2 answers
3k views

Old sanskrit fonts and unicode input

Is it possible to use the old devanagari fonts which were part of the packages sanskrit and velthuis with a modern direct devanagari unicode input method? They expect input in velthuis transliteration ...
muk.li's user avatar
  • 3,520
7 votes
1 answer
5k views

Unicode characters in lstlisting [duplicate]

I need to include code in the appendix of my thesis. The code contains comments and the compilation instantly breaks returning: Unicode char �\lst@FillFixed@ (U+5A8) (inputenc) not set ...
Gerry's user avatar
  • 277
3 votes
1 answer
3k views

UTF characters in listings

I use lstlistings for code and a lot of special characters can be displayed with literate. See my MWE \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{...
Micha's user avatar
  • 2,779
47 votes
7 answers
3k views

Is there any reason to prefer a unicode symbol versus its LaTeX command counterpart?

For example, consider the Swedish letter "Å" which is also the symbol for a unit of length in chemistry. When writing a document, there are three different ways to achieve this character: Å ...
AmphotericLewisAcid's user avatar
44 votes
7 answers
46k views

! Package inputenc Error: Unicode char ́ (U+301)(inputenc)

I get this error message, during compiling my .tex-document. line 234 - ! Package inputenc Error: Unicode char ́ (U+301)(inputenc) not set up for use with LaTeX.See the inputenc package documentation ...
Marius Knapp's user avatar
24 votes
7 answers
57k views

utf8 or latin1 encoding – German

\usepackage[utf8]{inputenc} or \usepackage[latin1]{inputenc} I write in German if that matters. Pro and contra?
gkane's user avatar
  • 343

1
2 3 4 5
9