Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [input-encodings]

{input-encodings} is about the various input code pages like latin1 or utf-8 ({unicode}) which interpret the sequence of numbers underlying text files and map each number to a certain glyph (character). A popular package for pdfLaTeX is inputenc.

Filter by
Sorted by
Tagged with
0 votes
0 answers
38 views

Vietnamese warnings with babel and biblatex

\documentclass{article} \usepackage[T5,T1]{fontenc} \usepackage[vietnamese, british]{babel} \usepackage{csquotes} \usepackage{biblatex} \begin{document} \foreignlanguage{vietnamese}{Ngô Bảo Châu} \...
Gargantuar's user avatar
  • 1,241
0 votes
0 answers
29 views

LyX shows warning that the macros file I'm using is encoded in "auto-legacy" while parent is "utf-8", how to solve this?

here's the error message: but when I check the macros file it's encoded in utf-8 so I don't know what's the problem. it has no problem compiling the document, but when I checked around it does this ...
Nate3384's user avatar
  • 197
1 vote
0 answers
42 views

Should I include a BOM with my encoding?

In TeXnicCenter I have the option to save files as utf-8 with or without BOM. Which one should I choose?
ltcomdata's user avatar
  • 935
1 vote
0 answers
35 views

Lyx + Xetex and bibliography errors

I'm preparing my document in Lyx and I'd like to use Xetex with it. My document compiles with bibliography which misses russian words completely. The BIB- file is saved in UTF8 encoding. The main Lyx-...
Alexandra's user avatar
0 votes
0 answers
56 views

problem with "LaTeX Error: Option clash for package inputenc"

Using this preamble.tex: \documentclass[bookmarks = true]{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[magyar]{babel} \usepackage[latin1]{inputenc} \usepackage{amsmath, ...
Катерина Ковальова's user avatar
3 votes
3 answers
172 views

LICR representation with UTF-8

A way to get the LICR representation of a string (in pdflatex) is with \protected@edef. For example: \documentclass{article} \usepackage[cp1252]{inputenc} \begin{document} \makeatletter \protected@...
Javier Bezos's user avatar
  • 10.5k
1 vote
1 answer
260 views

Latex errors at special character

I have a special unicode character "𝌠" in LyX. When language is set to czech (as is the actual text) and encodung set to "standard for given language" and "standard" ...
Lukas's user avatar
  • 125
9 votes
2 answers
302 views

ExPex fails with unicode-math. How to avoid the clash?

The following code fails: \documentclass{article} \usepackage{expex} \usepackage{unicode-math}% Works without this \begin{document} \pex<ex> \a<foo>\begingl \gla foo// \glb foo// \glft ...
Niranjan's user avatar
  • 3,415
0 votes
0 answers
57 views

Universally usable macro definitions with literal UTF-8 content

Since UTF-8 is the default input encoding, it should be straigthforward to use literal Unicode characters in macro arguments,e.g. \newcommand*{\regards}{Grüße} This fails, if the macro is defined in ...
G. Milde's user avatar
  • 279
0 votes
0 answers
96 views

lambdalatex's tex live installation can't work with cyrillic [duplicate]

Latexmk fails to compile my document with cyrillic symbols. Terminal output: Rc files read: NONE Latexmk: This is Latexmk, John Collins, 6 Nov. 2023. Version 4.81. No existing .aux file, so I'll ...
Ig.Foer's user avatar
4 votes
1 answer
190 views

Cant make bibliography with cyrillic: Invalid UTF-8 byte sequence

I have some error, trying to manage my references. I am using Mac with Texshop and BibDesk. They both work absolutely fine in english, but when i try something with russian word in .bib file gives ...
greg's user avatar
  • 43
0 votes
1 answer
683 views

LaTeX Error: Unicode character е (U+0435) [closed]

I copy-pasted a paragraph from my google doc onto overleaf and I'm getting this error. I don't understand what it means and I realise that it has to do something with latex not expecting a character ...
Snow's user avatar
  • 1
1 vote
0 answers
94 views

Packages ucs and hyperref don't get along under xelatex

I'm getting an "undefined control sequence" error for \UTFviii@loop whenever I use both the ucs package and the hyperref package under XeLaTeX (and LuaLaTeX). (I understand \UTFviii@loop has ...
Stuart's user avatar
  • 105
1 vote
0 answers
109 views

Which encoding should I choose when saving files in Kile?

I noticed that Kile appears to have changed the default encoding for files to x-UTF_8j. It has also developed a bewildering list of encoding options in the file saving dialogue. (So this is probably ...
cfr's user avatar
  • 208k
0 votes
1 answer
546 views

Latexdiff not compiling

I just found out about Latexdiff and it's just what I need right now. But unfortunatly I can't get the .tex-file created by Latexdiff to compile on my maschine. I tried a minimal example: file nr. 1: ...
Jelt0's user avatar
  • 3
0 votes
1 answer
46 views

Package inputenc error not understood

There is an error I have that i absolutely don't understand: it comes from this article from which i am trying to include the reference: https://pubs.acs.org/doi/10.1021/jp993642l (inputenc) ...
None's user avatar
  • 23
5 votes
3 answers
2k views

Unreadable Russian TeX files

I am trying to access some Russian TeX files, but when I open it in TeXstudio (or any other editor), the text is not readable. For example, this is a line from one file: Ќ ©¤гвбп «Ё в ЄЁҐ а §«Ёз­лҐ ...
Alec Brooks's user avatar
0 votes
1 answer
191 views

Help with some special characters (░█)

I am trying to get these two characters to render properly (░█). So far, I tried using \verb, utf8 encoding, utf8x encoding, using lualatex with a few different fonts following this method. Each time, ...
payoliin's user avatar
0 votes
0 answers
17 views

Problem knitting in RStudio [duplicate]

LaTeX Error: Unicode character ^^[ (U+001B) not set up for use with LaTeX. keep getting this how do I fix?
JACLYN's user avatar
  • 1
0 votes
0 answers
46 views

Error when redefining \bibname (under T2A encoding)

I'm trying to compile the following document: \UseRawInputEncoding \documentclass[12pt]{book} \usepackage[T2A]{fontenc} %\usepackage[cp1251]{inputenc} \usepackage[russian]{babel} \usepackage[...
spyglass007's user avatar
0 votes
0 answers
14 views

IPA SIL keyboard - letters missing [duplicate]

I'm using the IPA SIL keyboard to write letters in latex. When I want the letter 'ɒ' , I type the shortcut '=o' (where =is a hotkey). Similarly 'a̯' is typed as 'a&*'. The problem arises when I ...
hal3m's user avatar
  • 33
0 votes
1 answer
49 views

New command based on hyperref cannot handle special input characters

My goal is to add a heavy underline to text that contains hyperlinks via the hyperref-package, such that, when printing out the file, one can see that there is a link hidded behind some words. When ...
Marie. P.'s user avatar
  • 685
1 vote
1 answer
57 views

Character ĵ being displayed as a black box

I'm writing a document in which I try to use the following characters used in Esperanto: ĉ, ĥ, ĵ, ŭ, ŝ, Ĉ, Ĥ, Ĵ, Ŭ, Ŝ. Until now I was using base latex and it was working just fine, but I switched to ...
Ismael Manzanares Carmona's user avatar
0 votes
1 answer
79 views

Incorrect encoding to display characters in table

Words in the table are not readable. How do I use the correct encoding to display the characters? This is my code: \caption{Generalized search strings for the databases} \centering \begin{tabularx}{\...
arnoob's user avatar
  • 1
1 vote
1 answer
66 views

Why does inputenc skip characters in defining octet parsing?

UTF-8 representations of Unicode characters may take up to four octets to define. If an octet is from "00 to "7F, then it is a single character. If it is from "C0 to "DF, then it ...
texnically's user avatar
0 votes
1 answer
98 views

I have a problem with my Title for my thesis

not set up for use with LaTeX. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... ...
Emilce Ortiz's user avatar
0 votes
0 answers
65 views

Why do control characters appear when I copy sentences from a PDF file created via LaTeX? [duplicate]

When I drag and copy text from PDF file that was compiled by LaTeX, often the content is not fully preserved. Diacritics are separated from characters, some math symbols change into other symbols and ...
ayelt1652's user avatar
2 votes
2 answers
257 views

LuaLaTeX with siunitx, luainputenc and T1 fontenc produces an error

Error I get the following error when compiling the MWE below with LuaLaTeX: ERROR: TeX capacity exceeded, sorry [input stack size=10000]. --- TeX said --- \curr@fontshape ->\f@encoding ...
Simon's user avatar
  • 195
9 votes
1 answer
470 views

How to detect if a Unicode character has been defined?

Using inputenc in pdfLaTeX, one can define macros for Unicode characters like this: \DeclareUnicodeCharacter{03BC}{\textmu} Is there a way to detect if μ has been defined? (and if so what it is ...
WBob's user avatar
  • 115
0 votes
1 answer
629 views

LaTeX Error: Option clash for package inputenc, using hyperref package

I have a class file in my LaTeX project. When I include the package \usepackage{hyperref} I get the following error: LaTeX Error: Option clash for package inputenc. The cls file: % http://ctan....
userB's user avatar
  • 3
3 votes
2 answers
485 views

Troubles with listings and polish characters (lualatex)

How I can display properly polish characters in code of programming language using listings package and lualatex compiler? main.cpp: //Zażółć gęślą jaźń #include <iostream> int main() { std::...
constantin_d's user avatar
1 vote
1 answer
354 views

"Invalid UTF-8 byte sequence" with Springer LNCS bst (splncs04)

My co-authors are using Overleaf to prepare a manuscript using the Springer LNCS style (version 2.21). The bibliography entries contain names with various non-ASCII letters, such as the dotted G (Ġ), ...
Psychonaut's user avatar
  • 3,184
0 votes
3 answers
401 views

Writing Cyrillic letters in bold with CM-like fonts

I'm trying to write bold Cyrillic letters in my document but can't achieve a satisfactory solution. I found an example on CTAN.org with source code here using the substitutefont package. What I want ...
Nicryc's user avatar
  • 135
0 votes
0 answers
386 views

Changing encoding in the editor for Turkish character

I had written all my tex files with latin5 encoding in texshop on Mac. Now I want to change the encoding to utf8 because all the files I get from my colleague are encoded with uft8. However, when I ...
Banx's user avatar
  • 43
16 votes
2 answers
21k views

What is the function \usepackage[utf8]{inputenc} used for and why we should add this in latex document?

As I'm new to LaTeX and learning it, I often came across \usepackage[utf8]{inputenc} and would like to know what this command does and why we should use this?
user268629's user avatar
0 votes
1 answer
184 views

Inputencoding and twemojis

The twemojis package does not seem to get along with [applemac]{inputenc}. MWE: \documentclass{standalone} \usepackage[applemac]{inputenc} \usepackage{twemojis} \begin{document} \end{document} Error ...
NCH32's user avatar
  • 188
0 votes
0 answers
17 views

Why does a combination of fontenc and inputenc creates a dim text [duplicate]

I wrote the following and got a dim text in TEX maker: \documentclass[11pt]{article} \usepackage[a4paper,left=2.0cm,right=2.0cm,top=\dimexpr15mm+1.5\baselineskip,bottom=2cm]{geometry} \usepackage[T1]{...
Himanshu's user avatar
11 votes
4 answers
1k views

Thích Nhất Hạnh in LaTeX tufte-book class

I am very new to LaTeX and am wanting to use the OVERLEAF.com template found here: https://www.overleaf.com/latex/templates/book-design-inspired-by-edward-tufte/gcfbtdjfqdjh I am using MiKTeX. I am ...
Steven's user avatar
  • 337
1 vote
1 answer
376 views

Inputenc error when unicode greek letters mapped to commands: Argument of \UTFviii@two@octets@combine has an extra }

I use inputenc to be able to write unicode in the source code and have it translated to LaTeX commands. For instance \usepackage[utf8]{inputenc} \DeclareUnicodeCharacter{221A}{\sqrt} \...
andrepd's user avatar
  • 325
4 votes
3 answers
294 views

Does XeLaTeX have something like DeclareUnicodeCharacter but supporting Unicode grapheme clusters (i.e. units of multiple of code points)?

I’d like to use \DeclareUnicodeCharacter to define mappings of Unicode characters, represented in decimal or hexadecimal form, with alternative expressions or graphics that should replace the Unicode ...
caw's user avatar
  • 318
0 votes
1 answer
221 views

Incorrect display of a dash [duplicate]

I have next problem: I can't compile code after I copied and paste it in editor, because dashes on the left side of picture are not the same as on the right. but if I replace "−" to "−&...
WinnieNotThePooh's user avatar
0 votes
0 answers
144 views

Package inputenc Error U+2217 but I don't have an asterisk anywhere [duplicate]

I am using BibLaTex, and in my code I use \printbibliography. It doesn't compile and gives me the error: Package inputenc Error: Unicode character ∗ (U+2217)(inputenc) not set up for use with LaTeX. ...
eli44's user avatar
  • 105
3 votes
2 answers
283 views

Text label in MetaPost: language support

I am working with the example: beginfig(1); label.urt("Текст на русском.", origin); label.llft("Text in English.", origin); endfig; The output contains: Missing character: There ...
Vladimir's user avatar
  • 589
0 votes
1 answer
175 views

Wrong character written before usage of \DeclareUnicodeCharacter

My bib file contains (the most famous book) @book {Gohberg-Krein*69, AUTHOR = {Gohberg, I. C. and Kre{\u \i}n, M. G.},} I'm using a usual amsart class and biblatex set with Biber and UTF-8. And my ...
Olivier Ramaré's user avatar
1 vote
1 answer
821 views

How to make TeXLive download and install the necessary files?

I am working with TeXLive 2021 in Linux Mint (English version). I need to work with Russian texts. I started from the file like this: \documentclass{article} \usepackage[T2A]{fontenc} \usepackage[...
Vladimir's user avatar
  • 589
1 vote
1 answer
97 views

Converting data to utf8 in a write

I need to \write (or to \iow_now:Nn) a file containing utf8-encoded text, from a LaTeX file in an encoding that is not necessarily utf8 (for context: one typical use of this is to collect metadata ...
Vincent Beffara's user avatar
1 vote
1 answer
82 views

Using utf8 characters in kvoptions

The problem is actually quite simple yet I haven't found a working solution. In the kvoptions package, you can define option keys for custom packages which take strings as a value, e.g. % `mysty.sty`, ...
Gargantuar's user avatar
  • 1,241
1 vote
2 answers
64 views

Package gmutils gives an error

For a standard package gmutils, this minimal example: \documentclass{article} \usepackage{gmutils} \begin{document} That's all! \end{document} gives an error: ! Undefined control sequence. \...
Alexander Gelbukh's user avatar
0 votes
1 answer
220 views

TeXShop loses "umlauts" in .tex files

I moved all my files to an external hard drive, then updated my Mac OS to Big Sur (that went awry so I had to erase the hard drive and set it up from scratch). Now I moved all files back to the Mac ...
NCH32's user avatar
  • 188
0 votes
0 answers
42 views

Do I need utf8 inputenc when I am already using T1 fontenc? [duplicate]

For German texts I use T1 fontenc so that the search option in my pdf preview can also find the umlauts. When I count the number of words using TeXcount, it tells me that the text is encoded in utf8. ...
Schubladenzieher's user avatar

1
2 3 4 5
14