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
1
vote
0answers
21 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 ...
2
votes
1answer
1k 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
345 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 ...
1
vote
1answer
111 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
0answers
514 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 ...
1
vote
0answers
12k 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{...
0
votes
2answers
165 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 ...
1
vote
1answer
150 views

How to use UTF8 in the Metropolis theme?

I want to make a presentation with Metropolis in the SharedLatex but I want to use utf8 so I can use the symbols from the PT-BR language. But when I try \usepackage[utf8]{inputenc} it changes the ...
3
votes
2answers
311 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=...
9
votes
1answer
216 views

pdflatex, breakurl and unicode characters

I am trying to write an URL using breakurl, that includes an accented character. I am trying to use pdflatex with utf8 inputenc (also tried utf8x). But I can't get a decent result. My best result is ...
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
14k 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
195 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
314 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
98 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.
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{>}\...
1
vote
2answers
207 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 ...
1
vote
0answers
124 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
244 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
447 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 ...
1
vote
1answer
60 views

Get unicode characters and siunitx \ang{} to work together

Code: % !TeX program = lualatex \documentclass{article} \usepackage{lmodern} \usepackage{fontspec, newunicodechar} \newfontfamily{\fallbackfont}{DejaVu Sans Mono}[Scale=MatchLowercase] \...
2
votes
0answers
190 views

Missing Character; Possible to Redefine Unicode Mapping?

The font I am using lacks many spacing modifier letters and all combining diacritical marks. It does, however, have the diacritics I require, albeit non-combining, in its Private Use Area. In my .tex ...
1
vote
1answer
66 views

Displaying leftwards arrow (U+2190) in regular text using xelatex

\documentclass[10pt,a4paper,twoside]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{tipa} \usepackage{xltxtra} \defaultfontfeatures{Mapping=tex-text} \usepackage{gentium}...
8
votes
3answers
428 views

input tokens through the unicode position

With luatex I can inject tokens with a command through their unicode positions (see the following example). I'm wondering if this could be done with pdflatex too. It doesn't need to have all the ...
3
votes
2answers
244 views

Unable to use certain accents with LuaLaTeX

With the upgrade to TeXLive 2017, I'm finding that a lot of my documents are failing to compile with lualatex because I had been using the packages xunicode and xltxtra to access uncommon accents ...
0
votes
1answer
251 views

accented characters error

I'm writing with french language. Document and chapters title are okey but the main text like this: Here the used packages: \usepackage[explicit]{titlesec} \usepackage[french]{babel} \usepackage{...
7
votes
1answer
245 views

Weird DeclareUnicodeCharacter / siunitx clash

I love declaring unicode characters to write readable formulas. However, I just ran into a strange issue. The following works as expected, with the “×” sign being replaced with the chosen code (“plop”)...
1
vote
0answers
140 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} \...
0
votes
1answer
738 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 ...
0
votes
1answer
250 views

Print any utf-8 character to copy-paste from pdf

I have this code: \documentclass[varwidth,border=10pt]{standalone} \usepackage{graphicx} \newcommand{\MyBrand}{% \includegraphics[width=3em]{myBrand}% } \begin{document} I always use \MyBrand , ...
2
votes
1answer
135 views

Substitute missing fonts in ConTeXt

I am writing some notes using ConTeXt, with the Palatino font. The notes include verbatim Coq code containing Unicode characters. The problem is that some of these characters don't show up in the ...
3
votes
1answer
113 views

How are charcodes categorized in LaTeX3/expl3?

I don't understand the following part from this solution: \peek_charcode:NTF ^^f0 What does the '^^f0' mean? Where does it come from? I looked into interface3.pdf and couldn't find anything. The ...
21
votes
2answers
2k 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
1
vote
1answer
411 views

Usable XeLaTeX file for every Editor/TeX front-end program

The problem: Some times we have to prepare a LaTeX project on our linux and to give it to another person to run it on Windows or mac. We don't really know what TeX front-end program will the other ...
0
votes
0answers
190 views

How to sort umlauts in bibliography correctly

I have a bibliography problem in Lyx or more generally in Latex, the sorting of names having "umlauts", i.e. especially Å, Ä and Ö is wrong, so e.g. "Gödel" should come after "Gzdel". I need sorting ...
2
votes
1answer
108 views

`lstlisting` confused by `ucharclasses` (monospace code and unicode emojis) with xelatex

I need to have Unicode emojis in text dealing with code and Unicode. When I include the ucharclasses and the correct incantation, I can get the Unicode emojis, but any monospaced text appears to ...
1
vote
1answer
419 views

Insert an emoticon using xelatex

I would like to insert an emoticon (Unicode 10. code point 1F600) into my document. Mine just shows a tofu box. Here is my failing example: \documentclass[9pt]{memoir} \usepackage[Latin,Greek,...
3
votes
2answers
174 views

How do I get datatool to play nicely with utf8 inputenc and non-ASCII in the incoming CSV?

If I try to compile the following LaTeX file: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{datatool} \begin{document} \tableofcontents \appendix \section{Bill of Materials} \...
2
votes
0answers
428 views

Unicode characters with XeLaTeX without changing the font

I need to write a document using a given template (with specific fonts and font sizes for title, headers, body etc.). The document is in English, but I need to type some Unicode characters (for ...
0
votes
1answer
3k views

Package inputenc Error: Unicode char \u8:ónpr not set up for use with LaTeX

I recently changed from texmaker to texstudio and i'm facing this ugly problem that doesn't leave to split my text into several files. Here's my main file: \documentclass{article} \usepackage[...
1
vote
1answer
66 views

Compatibility issues between `[utf8]{inputenc}` and certain macros of `tkz-base`

\usepackage{tkz-base} after \usetikzlibrary{babel} overcomes compatibility problems between tkz-base and babel, but if [utf8]{inputenc} is used tikzpicture 1. compiles OK, while tikzpicture 2., unless ...
2
votes
1answer
3k views

How can I use unicode symbols in TeX source?

I've tried using \usepackage[utf8]{inputenc}, but that throws an error: Package inputenc Error: Unicode char µ (U+B5) (inputenc) not set up for use with LaTeX. Whatever I do, unicode ...
2
votes
1answer
289 views

Bounding box and umlaut issue in text decoration

In the above TikZ picture, how can I extend the bounding box to include the text decoration without manual tinkering (the only solution I was able to find is fiddle with the border or margin class ...
1
vote
1answer
66 views

Dynamically generated .tex file with unpredictable UTF-8 strings

I'm developing an application that uses pdflatex with a dynamically generated .tex file to output pdf reports. In this .tex file, I'm embedding UTF-8 strings from a database, which can contain ...
0
votes
2answers
541 views

Package inputenc Error: Unicode char èse (U+E0)

I'm writing a report on Latex and when I build my file, I got 1 error and I have no idea what the problem is. Here the package that I load at the beginning of the document and all my files are save ...
0
votes
1answer
217 views

Bibtex and abbreviation of author names with non-latin first letter

The following code produces wrong bibliography: \documentclass[final,5p,times,twocolumn, sort&compress]{elsarticle} \journal{FGCS} \usepackage[utf8]{inputenc} \usepackage[british]{babel} \begin{...
1
vote
1answer
125 views

Either batch transcode (character sets) a whole list of image filenames … or use a character encoding conversion function within the main Tex file?

I am very excited about this code by User @egreg which I will be using to display images of the stroke order of a Chinese character whenever you hover over a certain character. I changed the code a ...
2
votes
1answer
121 views

tex4ht and theorem style in bold face and small caps

I am attempting to create a custom theorem style where the header is simultaneously in bold face and in small caps. (I know that "double emphasis" is something to be avoided.) This, however, produces ...