{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)

106
votes
6answers
46k 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 ...
102
votes
8answers
44k 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?
46
votes
2answers
62k views

Which dot character to use in which context?

Wikipedia lists several dot characters in Unicode. These are the ones that are ambiguous to me: interpunct, middle dot (·) · · U+00B7 "midpoint (in typography)" ...
41
votes
4answers
72k 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, ...
33
votes
4answers
47k 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} ...
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} ...
24
votes
4answers
8k 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... ...
21
votes
1answer
406 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, ∃ 𝛿 > ...
20
votes
3answers
896 views

Unicode character look-up

Now that I have switched to primarily using XeTeX, I find I do not use Detexify or the The Comprehensive LaTeX Symbol List to find symbols very much. However, I often still need to locate symbols. ...
20
votes
3answers
980 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 ...
20
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: ...
19
votes
7answers
16k views

utf8 or latin1 encoding - german

\usepackage[utf8]{inputenc} or \usepackage[latin1]{inputenc} I write in german if that matters. pro and contra?
18
votes
5answers
1k 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 ...
18
votes
5answers
20k 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, ...
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 ...
18
votes
6answers
951 views

Converting LaTeX into Unicode for email

My standard procedure for writing mathematical email has been to use pidgin-LaTeX for some time now, and many of those I communicate with do the same. However, someone I know has recently started a ...
17
votes
2answers
479 views

Why characters UTF-8 encoded are ISO-8859-1 encoded when written in an external file

For an UTF-8 encoded file as follows: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} % \newwrite\outtmp \immediate\openout\outtmp=out.tmp % \begin{document} ...
16
votes
2answers
601 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 ...
16
votes
2answers
270 views

“Namethatchar” macro

I am searching for a macro/package that would give the name of characters. Here are a few examples of a possible behaviour: \namethatchar{A} → A \namethatchar{À} → Agrave \namethatchar{a} → a ...
15
votes
5answers
4k 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 ...
15
votes
4answers
10k views

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

I have the following LaTeX document: \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} φΔδ汉 \end{document} But I get the following error: $ latex foo This is pdfTeX, Version ...
15
votes
2answers
1k views

Hide your e-mail address from spam crawlers

According to Security SE it is highly recommendable to cover your email address in publicly available documents. I'm aware of the discussion about handling email addresses as images: Crawler ...
15
votes
4answers
705 views

Non-ASCII characters in Biblatex

I am using biblatex with backend=biber and the following .bib file: @article{concellon_synthesis_2006, title = {Synthesis of Enantiopure ({αS,βS)-} or ({αR,βS)-β-Amino} Alcohols by Complete ...
15
votes
2answers
223 views

biber eating \langle and \rangle commands

I have some entries in my reference list that contain \langle and \rangle signs in their title like the one in the following MWE: \begin{filecontents}{\jobname.bib} @BOOK{test, author = {A. Uthor}, ...
15
votes
1answer
746 views

listings package changes hyphens to minus signs

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 ...
14
votes
5answers
1k views

Using “◌” in Latex - “Unicode char \u8:Γùî not set up for use with LaTeX”

How can I use the character ◌ (25CC): http://www.fileformat.info/info/unicode/char/25cc/index.htm ? I am using MikTex (pdflatex) under Window; I am importing the following packages: ...
14
votes
2answers
783 views

How to insert Greek letters directly in math environment?

Why are non-Latin characters not displayed in formulas, even when using XeLaTeX? \documentclass{article} \usepackage{xltxtra} \begin{document} $\omega$ %displyed $ω$ %not displyed ...
14
votes
3answers
198 views

How to find characters that LaTeX doesn't like?

I use exported .bib entries with biber, biblatex and \usepackage[utf8]{inputenc}, in my literature reports for my group. This means most standard annoying characters (à, etc) are handled ...
14
votes
3answers
951 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 ...
14
votes
2answers
6k 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 ...
14
votes
1answer
549 views

Command names with utf-8/special characters

Is it possible to define \newcommand{\√}[1]{\sqrt{#1}} as commands like this one would sometimes be easier to use.
14
votes
2answers
3k 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 ...
14
votes
2answers
902 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 ...
14
votes
3answers
11k views

'Not element of' in Latin Modern

In the following example, the ∉ symbol does not look good. \documentclass{article} \usepackage{unicode-math} \setmainfont{Latin Modern Roman} \setmathfont{Latin Modern Math} \begin{document} This ...
14
votes
2answers
1k views

Option unicode=true with hyperref

Is there a drawback when using the option unicode=true with the package hyperref and the engines PDFTeX, XeTeX and LuaTeX? In other words, can a portable document always have ...
14
votes
1answer
244 views

Prevent LuaLaTeX from splitting umlauts

Here's a minimal example: \documentclass{minimal} \usepackage{fontspec}\setmainfont{Cambria} \begin{document}aöz\end{document} Compiling this into a PDF using lualatex and extracting the text using ...
13
votes
4answers
2k views

Using package minted with non-english characters

I would like to use LaTeX package minted to colorize my c and Cuda code. I need to write comments in the code in czech. I use package inputenc with utf-8 and czech characters (ěščřžýáíé) work good in ...
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’.” ...
13
votes
3answers
436 views

How does XeTeX typeset (math) symbols which are input as unicode?

I'm considering moving to Xe(La)TeX for the main reason that it allows me to use unicode in my LaTeX code, making said code easier to read, especially the math. But I'm confused on how XeTeX typesets ...
13
votes
1answer
561 views

How to work with two encodings?

I'll try to explain my problem here. I know that there are many posts dealing with this but I'm still confused. We have many files from different machines with different systems. The important is: ...
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 ...
13
votes
1answer
365 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
432 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 é ...
12
votes
1answer
2k 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 ...
12
votes
3answers
850 views

Redefine apostrophes to prevent bad kerning

The apostrophe in Adobe’s Minion Pro font has a kerning that is much too tight for typesetting French, where sequences of letters like l’a or d’e or j'a are common. One solution I found is to wrap ...
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, ...
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} ...
12
votes
1answer
217 views

dealing with thin spaces in XeLaTeX and LuaLaTeX

In the following small example I get unexpected but different results in XeLaTeX and LuaLaTeX: \documentclass{article} \usepackage{fontspec} \setlength\parindent{0pt} \newcommand*\x{\rule{1cm}{1cm}} ...
12
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 ...
12
votes
1answer
764 views

From LaTeX with pdflatex to plain TeX

I've always wanted to try plain TeX instead of LaTeX. I can use plain but I'm not able to use correctly the fonts and I'm not able to use the french hyphenation. I would to know how to do this with ...