{unicode} is for questions about Unicode (an international standard for character encoding) and its implementations. For questions about input encodings in general, use {encodings}. For questions specifically about the `inputenc` package, use {inputenc}.
80
votes
9answers
22k 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?
63
votes
4answers
17k 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 ...
26
votes
4answers
32k 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, ...
22
votes
2answers
12k 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)"
...
19
votes
3answers
644 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. ...
19
votes
1answer
276 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, ∃ 𝛿 > ...
16
votes
3answers
922 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 ...
15
votes
2answers
222 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
1answer
403 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
2answers
586 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
7answers
7k views
utf8 or latin1 encoding - german
\usepackage[utf8]{inputenc}
or
\usepackage[latin1]{inputenc}
I write in german if that matters.
pro and contra?
14
votes
2answers
466 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 ...
14
votes
3answers
1k 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: ...
14
votes
1answer
411 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
1answer
186 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
2answers
393 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 ...
13
votes
3answers
918 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 ...
13
votes
4answers
628 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 ...
12
votes
3answers
266 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 ...
12
votes
4answers
184 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 ...
12
votes
2answers
7k 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
1answer
190 views
Remapping LaTeX symbol to another unicode value
When compiling the following piece of LaTeX code, the ∖ symbol does not show up.
\documentclass{article}
\usepackage{unicode-math}
\setmainfont{Latin Modern Roman}
\setmathfont{Latin Modern Math}
...
12
votes
2answers
607 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 ...
12
votes
1answer
246 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 ...
11
votes
3answers
544 views
How do I print a beta in TeX Gyre Termes text mode?
I have to write a document in Times. Therefore I started writing it in TeX Gyre Termes, based on the note on Time's font page. However, I use PDFLaTeX, so I can't directly type Greek characters. So if ...
11
votes
3answers
1k 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’.”
...
11
votes
5answers
807 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, ...
11
votes
3answers
1k 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}
...
11
votes
3answers
689 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
1answer
479 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 ...
10
votes
3answers
2k 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, ...
10
votes
2answers
552 views
Replacing Unicode non-breakable spaces by normal spaces
I am using the Neo keyboard layout, which uses all kinds of modifier keys to input all kinds of characters (e.g. Greek letters and mathematical symbols). It also has shift+Mod3+space mapped to Unicode ...
10
votes
2answers
2k 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 ...
10
votes
2answers
2k 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
2answers
595 views
unicode \begin{verbatim} with cmtt?
A lot of leading-edge programming languages (like Coq and Agda) allow nearly unrestricted use of unicode symbols in program text, so you can have math characters like $\otimes$ (Unicode U+2A02) as ...
10
votes
2answers
1k 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 ...
9
votes
2answers
476 views
How can I get utf8 character
I want to make cross references for sections to be symbols but after using the description given I got error report saying keyboard character used is undefined in inputencoding 'utf8'. What might be ...
9
votes
3answers
476 views
Diereses (German Umlauts) in math?
Is it possible to enter Umlauts directly in math?
I would like to do something like the following (using XeLaTex):
\documentclass{article}
\usepackage{amsmath}
\usepackage[silent,no-math]{fontspec}
...
9
votes
1answer
197 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 ...
9
votes
4answers
3k 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...
...
9
votes
2answers
349 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 ...
9
votes
1answer
129 views
Wrong spacing around guillemets
I use UTF-8 encoding to type a document in French, with the following definitions for guillemets:
\DeclareUnicodeCharacter{AB}{\og}
\DeclareUnicodeCharacter{BB}{\fg\xspace}
and the Babel package:
...
9
votes
1answer
104 views
Encoding of non-ASCII characters (Umlauts) in \jobname
I need to parse \jobname to extract some metadata (such as the subject of a letter) that is encoded in the filename of the .tex file. The filenames are not restricted to ASCII, but maybe any UTF8 ...
9
votes
1answer
256 views
Is direct utf8 input of combining diacritics in math mode possible with lualatex?
I am trying to typeset a document with combining diacritics directly input in it. I use LuaLaTex. Here is a minimal example illustrating the original issue:
\documentclass{minimal}
...
9
votes
2answers
506 views
Do XeTeX and LuaTeX always use Unicode?
I am writing some functions to manipulate strings. A typical way to produce a character with a given character code is the \lowercase primitive. The following code produces a character with code 234, ...
9
votes
1answer
93 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 ...
9
votes
1answer
201 views
Is there a way to get pdflatex to accept Unicode combining accents?
I typeset my work with pdflatex and UTF-8 input files with lots of Unicode characters. Most of them work with a simple \usepackage[utf8]{inputenc} in my preamble, and for the others I simply maintain ...
8
votes
4answers
649 views
The § character
I need information about § character. I have seen it used for numbering (equivalent to nº) and as a separator. Which is its name or code? Where can it be used?
8
votes
4answers
511 views
Fun unicode characters with pandoc
Silly question: I want to use a heart (♥) character in my presentation.
I'm already using xelatex as engine so it doesn't complain for the character itself but it doesn't render it. Just a blank ...
8
votes
2answers
219 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 ...


