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

learn more… | top users | synonyms (1)

98
votes
5answers
40k 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 ...
18
votes
3answers
2k 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: ...
28
votes
1answer
1k 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} ...
100
votes
8answers
40k 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?
22
votes
4answers
7k 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... ...
12
votes
5answers
1k 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, ...
39
votes
4answers
65k 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, ...
13
votes
3answers
2k 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’.” ...
12
votes
2answers
2k 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
1answer
220 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} ...
10
votes
2answers
793 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, ...
19
votes
7answers
15k views

utf8 or latin1 encoding - german

\usepackage[utf8]{inputenc} or \usepackage[latin1]{inputenc} I write in german if that matters. pro and contra?
7
votes
4answers
3k 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 ...
16
votes
5answers
884 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 ...
8
votes
1answer
2k 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?
9
votes
1answer
546 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} ...
12
votes
1answer
1k 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 ...
14
votes
2answers
843 views

How to fix missing or incorrect mappings from glyphtounicode.tex

glyphtounicode.tex has been described as the best solution for generating copy-and-pasteable symbols. However, I find that various symbols that I need to use do not paste as the appropriate Unicode ...
18
votes
3answers
2k views

Using unicode Roman numerals in XeTeX

As mentioned in How can I get Roman numerals in text?, there are several ways in which one can add Roman numerals to text in TeX. However, these solutions all seem to use three I's to make a roman ...
8
votes
5answers
2k 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 ...
5
votes
1answer
439 views

high and low CJK codepoints in a single XeLaTeX document

I often require a combination of CJK characters with both low and high codepoints in the same line of text. (Here "low" means "in the Basic Multilingual Plane" or BMP, with codepoint lower than hex ...
6
votes
2answers
1k 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 ...
25
votes
3answers
38k 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} ...
12
votes
3answers
2k views

How to get accented unicode characters that can be copy-pasted?

The aim is to generate the .pdf with accented characters (the .tex file has mixed macro and unicode input), in a way that the .pdf text can be copy-pasted. An example: \documentclass{article} ...
16
votes
2answers
580 views

How does one publish/promote a new package?

I just took all the wonderful information supplied here, and wrote a small package that makes it possible to use Unicode characters for section, subsection, subsubsection, paragraph, subparagraph and ...
13
votes
2answers
2k views

Mapping from Unicode character to LaTeX-Symbol for BibTeX?

I'm writing a little BibTeX exporter for the publication database of my institute. We do have a lot of authors with all kind of weird characters in their names, which get the "WTF is ...
7
votes
5answers
3k views

No simple UTF8 support in latex?

The following should look good in your browser, AND compile in Latex looking beautiful right? \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} UTF-8 test: \begin{verbatim} logic: ...
6
votes
2answers
558 views

How to input characters into XeLaTeX

How do I input the non-keyboard characters into TeXShop? My minimum working example: \documentclass{book} % Font Settings \usepackage{fontspec} \newfontfamily\myfont{C64 Pro Mono} \begin{document} ...
6
votes
2answers
2k views

How to import a text file (with accent, special chars)

I got some text file (logs) that I want to import I saw this post: How do I import a text file so that it becomes the body text of my LaTeX document? which work, but all the special chars (UTF-8) are ...
2
votes
1answer
1k views

Use unicode font for cyrillic in gnuplot

Why I need to do this? I'n writting my diploma in laTeX and almost finish them, but I want to use in graph labels and legend the same font that LateX uses. As I know, the default LaTeX font in CM, so ...
16
votes
5answers
16k views

Unicode degree symbol ° in math formulas: \textdegree invalid in math mode

I'd like to be able to simply input a degree symbol as ° in my source code. German keyboards have a key for this, and it makes the source so much more readable. I'm using pdflatex from TeXLive 2012, ...
14
votes
2answers
5k views

How can I tell LaTeX that an \input file is in a different encoding from inputenc?

I'm currently writing a .tex report with my wife. She's on a Windows machine and I'm running Linux over here; we've decided to encode our report in ISO-8859-1 (i.e., we use ...
10
votes
1answer
135 views

How to write the € symbol into a file, when using Package [utf8]{inputenc}

With the following MWE, I can write the € symbol into the file euro.txt \documentclass{article} \newwrite\tempfile \immediate\openout\tempfile="euro.txt" \begin{document} Write Euro symbol into a ...
7
votes
3answers
233 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?
6
votes
1answer
639 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 ...
4
votes
1answer
145 views

LuaTeX won't end a line at Unicode emdash

I'm using LuaLaTeX instead of XeLaTeX for my book, mainly because it supports microtype's expansion feature, to produce the optimal word spacing and line breaking that will result in the most uniform ...
4
votes
2answers
414 views

Fix nested section numbers in RTL languages with polyglossia.

The third subsection in the second subsection of the first section should be numbered 1.2.3. This holds also for RTL languages, since numbers, including Dewey numbering is still LTR even in an RTL ...
20
votes
3answers
915 views

Which Unicode fonts are available with grades/optical sizes comparable to Donald Knuth's awesome eight grades in Computer Modern Roman?

Which Unicode fonts are available with grades/optical sizes comparable to Donald Knuth's awesome eight grades in Computer Modern Roman? It would be great to get at least 3 options! This question is ...
12
votes
1answer
337 views

Hyphens at end of line disappear upon pasting, even if they were present in the input

When I paste text from pdflatex output, there are two things about hyphens that I would like to change: Hyphens paste as "hyphen-minus" (U+002D, "-"), but I would prefer the newer Unicode character ...
12
votes
3answers
894 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 ...
11
votes
2answers
3k views

UTF8 not working in LuaTeX in TeXLive 2010

I've been trying to set a document using lualatex in my TeXLive 2010 installation. Unfortunately, the non-ASCII characters are left out from the output. In the following minimal document produces a ...
8
votes
2answers
500 views

How to write properly an accent in a web address?

I'm trying to write a hyperlink for a DjVu document that includes Latin accent, but for some reason, it only displays properly for the PDF one. Specifically, on my list of references (bibliography), I ...
8
votes
2answers
7k views

Use biblatex and utf8

For my thesis, I use biblatex for the bibliography. As seen here, biblatex is not compatible, with \usepackage[utf8x]{inputenc}. It was reported as close but I still have the same problem with my ...
7
votes
1answer
1k views

Getting (Xe)LaTeX to display accents and characters not included with the font

The font I'm using (Adobe Garamond Premier Pro) does have certain precomposed glyphs with diacritics, so I'm having (Xe)LaTeX add them in. I found this post and used the method described there for ...
4
votes
1answer
77 views

Error when using endfloat with unicode characters

I have a problem with the endfloat package and unicode characters. When I compile the following, everything works as expected: \documentclass{article} \usepackage[utf8]{inputenc} ...
4
votes
2answers
170 views

Math escape in listings and surround white space

I want to use the double right arrow for some Scala code in listings. I thought I'd use the mathescape option and $\Rightarrow$. However, this "eats" whitespace around it, e.g. if I have foo ...
3
votes
1answer
332 views

Problem with Unicode in LaTeX editor (LEd)

I have an UTF-8, polish text in .tex file. When I open it with my LEd (LaTeX editor), it shows ok (all characters can be seen). But when I try to compile it, I get error: Package inputenc Error: ...
3
votes
1answer
277 views

odd displays of accentuated characters in lstlisting environment

when i try to write accentuated characters (éà...) in a lstlisting environment, hence : \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{xcolor} ...
2
votes
1answer
101 views

Problem with composite letters in section labels

Although there are some advices that deal with the warning message: Composite letter `\textasciicaron+c'not defined in PD1 encoding See here, for example: Problem with UTF-8 in meta data It ...
1
vote
1answer
177 views

How do I paste codepoints outside of the basic multilingual plane with accsupp or \pdfglyphtounicode?

As described in the answers to this question, the accsupp package can be used to have symbols paste as arbitrary Unicode codepoints. For example you might want to write something like the following, ...