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
36
votes
2answers
942 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 ...
4
votes
1answer
333 views

Monokai minted theme annoyingly highlighting unicode caracters

I recently started using the monokai theme with minted which I use because it works well with XeLaTeX. I found that when using unicode characters in code they get highlighted is red. This behaviour is ...
6
votes
2answers
1k views

How To Include a Reversed Angle Symbol (⦣) in LaTeX

I am creating a LaTeX document in Overleaf, and I need to include the reversed angle character, "⦣", as well as a few other symbols that LaTeX does not recognize. Is there a way to include the ⦣ ...
4
votes
3answers
416 views

How to use the non-unicode glyphs

In some OpenType fonts e.g. XITS Math, there are some non-unicode glyphs. For example, the "display integral" glyph has the same code point (U+222B) as the normal integral. Although the big int can be ...
0
votes
0answers
403 views

Slow Compilation with Texmaker

When I open a texmaker file in my mac, it asks me: "It seems that this file can not be correctly decoded with the default encoding system (System). Use this encoding: UTF-8". When I do this, my ...
2
votes
1answer
131 views

Multibyte StrLen? (StrLen for chinese characters)

I am currently using \StrLen{#1} inside my \newcommand. This works flawlessly for any common string written in latin alphabet. "Hello" has string length of 5 for example. Problem is with chinese ...
0
votes
1answer
483 views

Can't get LyX-generated file to handle umlaut properly

The code below is generated by LyX. I trimmed down the original in order to make a MWE. No matter what I do with this, I keep getting an error message when the file tries to compile with pdflatex. \...
4
votes
1answer
248 views

Harnessing the TeX compiler to write a TeX to UTF8 converter

Dealing with most of one's text in UTF-8 rather than TeX-strings has many advantages, it is not only easy on the eyes, fingers and editors, but also it becomes real easy to feed your text to spellers, ...
2
votes
2answers
71 views

Yet another glyph problem with Unicode

I have a tricky problem with combined diacritics and the CMU font family (CMU Serif). There seems to be no simple way to get the correct .pdf-output for a character like å̄, i.e. a + ring above (U+...
3
votes
1answer
193 views

Automatically substitute missing glyph with another in LuaLaTeX

For some reason the russian letter ё is missing in some fonts, which leads to warning (file c:/Users/mishk/OneDrive/Stuff/fonts/PTSerifPro-Regular.otf) (cff ): 'seac' character deprecated in type 2 ...
2
votes
2answers
287 views

Why does utf8 not allow Cyrillic letters in listings when utf8x does?

Answers in utf8x vs. utf8 (inputenc) say that utf8x shouldn't generally be used. However, with listings, \documentclass[12pt]{beamer} \usepackage{ucs} \usepackage[utf8]{inputenc} \usepackage[T1,T2A]{...
14
votes
2answers
7k views

Error “Please insert PRERENDERUNICODE”

I meet a subtle problem. My simplest code is as follows. I am working in Win 7-32bit, my editor is WinEdt 7.0 (Build: 20120125 (v. 7.0)), saved as UTF-8, compiled with pdflatex(MiKTeX2.9). \...
3
votes
1answer
168 views

Using “labbook” document class with Lualatex

I want to use the labbook document class, but it seems not to work with LuaLaTeX compiler, with some UTF-8 error (hereafter). Is there any possibility to make it work ? String contains an invalid utf-...
2
votes
1answer
175 views

Problems with diacritics in Ancient Greek

I need to type a special Greek character in LaTeX (I use XeLaTeX), but I don't know how do it. \documentclass[14pt]{book} \usepackage[a4paper,left=0.5cm,right=0.5cm,top=0.8cm,bottom=0.5cm,footskip=0....
26
votes
10answers
3k 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 ...
1
vote
1answer
346 views

Why is CJK not supported by default?

It is possible to process Chinese, Japanese and Korean text using the xeCJK package or the xtexart document class, as shown in the Q&A “How does one type Chinese in LaTeX?”. But why are these ...
1
vote
1answer
102 views

Printing the character ⱱ (U+2C71 = labiodental flap)

I need to print the IPA symbol for the labiodental flap ⱱ (Unicode U+2C71) and it is not available in the tipa package for phonetic symbols. Is there a way I can use the Unicode hex in the input so I ...
0
votes
1answer
613 views

Eastern European name [duplicate]

In my .bib file, there is a reference including the following name in the authors list: Mitášová, Helena When the PDF is generated, this name does not display correctly: MitÃaÅaovÃa I searched for ...
2
votes
2answers
6k views

! Package inputenc Error: Unicode char ​ (U+200B)?

\begin{description} \item[Public : ] Dans les clouds ​​publics, \item[Privé : ] Dans les clouds ​​privés, \end{description} I don't know why I got the error mentioned in the question knowing that ...
21
votes
3answers
7k 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 ...
3
votes
1answer
100 views

listings package rearranges (Emoji) characters

When I render the following document with xelatex... \documentclass{scrbook} \usepackage{fontspec} \usepackage{listings} \newfontface{\emojifont}{Symbola_hint.ttf} \begin{document} \emojifont{The ...
6
votes
2answers
1k views

Do I need to use \usepackage[T1]{fontenc} if I use lualatex?

When producing documents with pdflatex that may contain special utf-8 characters, it is recommended to add the following to the preamble \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} I know ...
0
votes
0answers
128 views

How to define hyphenation for different languages in LuaLaTeX?

I want to define additional hyphenation rules for different languages in LuaLaTeX. How should the hyphenation for English and German be defined in myhyphenations.tex in the following minimal working ...
1
vote
0answers
22 views

\edef with accent breaks List of Tables [duplicate]

Foreword: I'm aware that I'm doing unusual stuff with LaTeX :P I noticed that when I use \edef in something that contains an unicode (non-ASCII) character, TeX not only expands the macros, but also ...
9
votes
2answers
3k views

How to get the Peso sign (₱) in LaTeX?

I'm looking for a way to include a Philippine Peso sign (Unicode code point 0x20B1) in a LaTeX document. Using the textcomp package (as shipped with the base latex distribution) in conjunction with ...
1
vote
1answer
124 views

How do I set up an environment for multiple languages?

been trying to set up a real multilangual environment for year. Now finally I would like to get it done. Why does the following mwe not work?: \documentclass[a4paper, twoside]{book} \usepackage{...
2
votes
1answer
2k views

Latex graphviz package does not accept umlauts

Though graphviz' generic dot routine accepts UTF8 and in that respect also umlauts, the latex graphviz package does not. It always generates an error if an umlaut is included in a label (See https://...
4
votes
4answers
352 views

How do I get a (xe)Latex symbol equivalent to unicode character U+15D0?

Unicode character U+15D0 is found to be an ancient form to represent the value 50, later on associated to "L" in the Roman system, something like \|/. I am preparing a historical text about numbers ...
2
votes
0answers
555 views

How to use \DeclareUnicodeCharacter with U+302 for biblatex [closed]

I am using a .bib file exported from Zotero with BetterBibTeX. I have activated the option export unicode as plain-text latex commands in the Better BibTex export options for BibLaTeX. I am stuck with ...
3
votes
0answers
14k views

package inputenc error unicode char - (U+2212) error [duplicate]

I'm getting this error package inputenc error unicode char - (U+2212) on the following part of my text: (it's happening at lines 98-99) \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{...
4
votes
1answer
438 views

Copy and paste unicode math

Consider the following example compiled with luatex. \documentclass{standalone} \usepackage{unicode-math} \setmathfont{Latin Modern Math} \begin{document} $A_1$ \end{document} Since Latin Modern ...
31
votes
3answers
157k 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 ...
0
votes
2answers
189 views

How to get U+0022 char (plain double quote) in latex?

I would like to get this char within general text in latex: " But I only am able to get “ or ” i.e. I would like to include the U+0022 unicode char in my document. But if I do this: \char"0022 I ...
3
votes
2answers
326 views

[T1]{fontenc}, [utf8]{inputenc} and {microtype}: Kerning does not work

My code looks as follows: \documentclass[12pt,a4paper]{report} \usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[activate={true,nocompatibility},final,...
3
votes
1answer
3k views

producing pdf from markdown with pandoc and xelatex generate misleading error messages

I encounter a weird issue when I tried to convert a markdown file to pdf using pandoc. My markdown file contains Chinese characters and English characters. The command I use is: pandoc --pdf-engine=...
7
votes
1answer
7k views

Unicode char {U+200B}

When want to cite more then two authors, I got this: ! Package inputenc Error: Unicode char ​ (U+200B) (inputenc) not set up for use with LaTeX. \documentclass[a4paper,oneside,BCOR=...
1
vote
2answers
1k views

Use unicode character U+2192 in LaTeX

I have the following document (excerpts): \documentclass[a4paper]{article} % Paketimporte \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \usepackage{eurosym} \...
8
votes
3answers
16k views

How to solve the `Package inputenc Error: Unicode char not set up for use with LaTeX` problem?

NOTE : this problem is closely related to the one here, but I can't seem to adapt it to my situation, since I don't know where the names of these characters (e.g.,\textvisiblespace, \textcompwordmark ...
0
votes
1answer
218 views

! Undefined control sequence. for Hindi Unicode chars

\documentclass[12pt]{article} \usepackage[utf8x]{inputenc} \usepackage{amsmath,amssymb} \begin{document} \pagestyle{empty} \begin{displaymath} स्कूल \end{displaymath} \end{document} This tex file ...
1
vote
0answers
320 views

Nordic characters in matlab code

I'm new here and pretty new to LaTeX, so go easy on me. I'm importing MATLAB code from .m files using \lstset{language=Matlab}, but have some trouble with nordic characters "å, ä, ö". the rest of the ...
0
votes
1answer
106 views

I want to put the symbol percent %

When I try to put the symbol %, an error is returned. My code is: casi el 25\% which results in the error: ! Package inputenc Error: Unicode char × (U+D7) (inputenc) not set up for use with LaTeX.
1
vote
2answers
215 views

Font that supports both upright and italics Scandinavian and Greek characters in math?

In terms of character support, a lot of LaTeX fonts leave something to wish for. At the moment I'm using Palatino for text and fourier for maths while having to accept that å, ä, ö, æ and ø only exist ...
2
votes
4answers
1k views

How can I make verbatim's → use a monospace font

I want to show UTF-8 characters representing a map like this: \documentclass[11pt,a4paper]{article} \usepackage[utf8x]{inputenc} \usepackage[spanish]{babel} \begin{document}\shorthandoff{>}\...
5
votes
2answers
389 views

XeTeX kerning with \newunicodechar

Am using Adobe Garamond Pro and need the two characters ʾ and ʿ that do not exist in that font. I have solved this by rotating ˘ 90 degrees either direction and making these new unicode characters ...
1
vote
0answers
135 views

Background color split into stripes in listings package

How can we remove the white spaces in background? \documentclass[12pt,a4paper]{article} \usepackage{fontspec} \setmainfont{Khmer OS} \setsansfont{Khmer OS} \setmonofont{Khmer OS} \usepackage{xcolor} \...
4
votes
2answers
1k views

How to use Scandinavian characters in LaTeX math mode?

Here's a MWE/MNWE: \documentclass[10pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{icomma} \...
5
votes
1answer
258 views

Typewriter font for math symbols (∃, ∀) in scaled verbatim environment for pdflatex

I would like to use math symbols (such as ∀ and ∃) in a scaled verbatim environment, using a typewriter font. The current answer to Proper typewriter font for math symbols (∀, ∃, →), e.g. in verbatim ...
3
votes
1answer
465 views

Add unicode character to document

I'm trying to enter two Unicode characters in my document. The first is 「 and the second is 」. However, none of the solutions I've seen thus far have been able to help me implement these two ...
0
votes
1answer
776 views

Entering Unicode Character [closed]

Despite related questions and answers, I am still confused. In xelatex, how do I insert a unicode character like, http://unicode.scarfboy.com/?s=U%2bfdfb ? (In my workflow I need to insert the ...
1
vote
0answers
143 views

fontspec error with Urdu in LuaLaTeX / XeLaTeX [duplicate]

This is my document with some Urdu text between English. \documentclass[smallextended]{svjour3} \usepackage{xltxtra} \usepackage{fontspec} \usepackage{polyglossia} \...