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
297 votes
14 answers
313k 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,201
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
230 votes
6 answers
933k 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)" ...
endolith's user avatar
  • 2,401
132 votes
13 answers
413k 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
113 votes
5 answers
29k views

How to include a Lenny face in a LaTeX document? e.g. ( ͡° ͜ʖ ͡°)

How would one include a "classic" Lenny face in a LaTeX document? A paper is due tomorrow and I am curious. e.g. ( ͡° ͜ʖ ͡°) I have attempted to use the verbatim environment but it has proved ...
pixatlazaki's user avatar
  • 1,203
107 votes
4 answers
318k 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
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
62 votes
6 answers
178k 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, ...
MvG's user avatar
  • 2,573
61 votes
5 answers
101k views

Typeset the shrug ¯\_(ツ)_/¯ emoji

I'm completing a problem set, one problem for which I literally have no idea what to do on. The graders would prefer to have a physical copy of the problem so I thought it best to include the ¯\_(ツ)_/¯...
djechlin's user avatar
  • 749
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
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
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
46 votes
3 answers
335k 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 ...
Semafoor's user avatar
  • 856
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
44 votes
7 answers
47k 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
36 votes
3 answers
45k 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 ...
Martin Trigaux's user avatar
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
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
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
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
31 votes
4 answers
40k views

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

I have the following LaTeX document, saved in the UTF-8 character set encoding: \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} φΔδ汉 \end{document} (it has 3 Greek characters ...
Frank's user avatar
  • 6,975
30 votes
6 answers
9k 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 automatically....
Canageek's user avatar
  • 17.6k
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
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
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
27 votes
2 answers
7k views

Using unicode ℝ as commands \mathbb{R}

I want to use a unicode character, say $ℝ$, and get the equivalent command $\mathbb{R}$. So what I want is something like \newcommandℝ{\mathbb{R}} //it won't work by default, of course How can I do ...
Eric's user avatar
  • 1,655
27 votes
9 answers
5k 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 ...
Tyler Lawson's user avatar
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
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
26 votes
1 answer
82k views

«» resemble too much \ll \gg

I am typesetting a translation of some ancient poetry book from another language (namely Finnish). In the text there are several quotes which uses the Guillemets (« and »). Since I am using a UTF-8 ...
Helios's user avatar
  • 653
25 votes
4 answers
4k 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 ...
Jonathan Komar's user avatar
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
25 votes
2 answers
2k 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 ...
Yossi Gil's user avatar
  • 15.7k
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,559
25 votes
3 answers
8k 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 ...
Village's user avatar
  • 13.2k
25 votes
1 answer
3k views

Unicode in PDF Metadata

There are several ways of setting PDF meta data when compiling LaTeX documents. The two most popular ways are arguably via pdfinfo, \pdfinfo{ /Author (Erwin Schrödinger) } and hyperref, \...
Nico Schlömer's user avatar
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
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
23 votes
5 answers
4k 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
21 votes
5 answers
3k views

Detexify-like service where I can paste a symbol

With detexify, I can draw a symbol and find code to reproduce it in LaTeX. Suppose that I already have the symbol ∀. I could mimic its shape by drawing it by hand into detexify, and if I draw it ...
gerrit's user avatar
  • 5,115
21 votes
3 answers
3k 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. ...
Village's user avatar
  • 13.2k
21 votes
2 answers
1k views

How can (La)TeX read UTF-8?

As described in The TeXbook, TeX reads files byte by byte, regardless of the particular format -- as I understand, this is just how IniTeX is set up. I also understand that LaTeX is just a ...
extremeaxe5's user avatar
21 votes
2 answers
22k 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 \usepackage[latin1]{...
Waldir Leoncio's user avatar
21 votes
2 answers
4k views

Unicode in XeTeX with automatic font substitution?

I've got a word processor (WordGrinder) which supports Unicode. It can export LaTeX files, which then get run through XeTeX. Unfortunately, it seems that while XeTeX understands the Unicode correctly,...
David Given's user avatar
21 votes
3 answers
5k 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 \usepackage[unicode=...
topskip's user avatar
  • 36.7k
21 votes
1 answer
577 views

Adding full non-English Unicode language (Bengali) support to polyglossia

As we can see in this question, Bengali (Bangla) support in polyglossia is incomplete. The major weak areas are, Support for numerals. Support for other language related areas like dates. For the ...
Masroor's user avatar
  • 17.5k
20 votes
4 answers
4k views

How to enter 🅱 in latex

I need to enter the 🅱 sign in LaTeX for a paper I'm writing. I tried compiling my paper using XeLaTeX, but it just ignores 🅱. Is there perhaps a way to enter the 🅱's Unicode code point itself into ...
Brian Lee's user avatar
  • 433
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
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
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

1
2 3 4 5
28