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
37 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
  • 95
1 vote
0 answers
47 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
  • 189k
0 votes
1 answer
109 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
37 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
103 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
33 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
46 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
  • 655
1 vote
1 answer
39 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
64 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
65 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
71 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
185 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
  • 163
9 votes
1 answer
399 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
  • 105
0 votes
1 answer
383 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
280 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
231 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,094
0 votes
3 answers
279 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
  • 125
0 votes
0 answers
253 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
15 votes
2 answers
10k 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
132 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
  • 178
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
  • 317
0 votes
1 answer
249 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
  • 305
4 votes
3 answers
262 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
193 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
125 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
187 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
  • 515
0 votes
1 answer
83 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
492 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
  • 515
1 vote
1 answer
77 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
78 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 vote
2 answers
59 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
177 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
  • 178
0 votes
0 answers
40 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
0 votes
2 answers
275 views

How to have Polish characters and not affect language of table of contents, etc

I am trying to add some Polish characters as part of an acknowledgement section (I am using Texmaker). I have tried using \usepackage[T1]{fontenc} and \usepackage{polski} - the use of the T1 encoding ...
kalle's user avatar
  • 123
0 votes
1 answer
104 views

Plain LuaTeX unicode letters with PiTeX

I'm trying to isolate fonts.ptxlua from pitex to access Open/True-Type fonts with the YaX interface. I can load the font correctly; however, as I tried to typeset some proofs, I found that now LuaTeX ...
jarnosz's user avatar
  • 4,213
1 vote
1 answer
94 views

Non-ASCII escape characters

I'm using all ASCII characters in my code blocks, so I need to reach for non-ASCII ones for the escape characters. I expected Xetex to deal with this just fine; alas, it doesn't seem to be the case. \...
Cactus's user avatar
  • 1,067
0 votes
1 answer
450 views

Bottom square bracket (U+23B5)

I'm looking for how to add a bottom square bracket (looks like this: ⎵) in latex (Overleaf specifically although I don't believe it should be different?). According to Entering Unicode characters in ...
NyW's user avatar
  • 3
2 votes
2 answers
510 views

How to get accented letters (ogonek) in a specific font?

I need to use a specific font (New Aster LT Standard), and I am running into issues with 2 characters in my text. One is the polish ogonek on the name "Dąbrówka", the other is an accented ...
user1940642's user avatar
0 votes
1 answer
267 views

How to Latex without error text with emoji included? [duplicate]

I'm reading output from where users put their own input into a latex document. It appears as though the users can include emojis. So my question, what is then minimal needed so that the following MWE ...
Geoff's user avatar
  • 2,637
6 votes
2 answers
563 views

Typesetting unicode characters

I try to use unicode characters in tex source: \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} ∀ \end{document} The universal quantifier does not typeset with xelatex. ...
Gergely's user avatar
  • 953
1 vote
2 answers
144 views

How to write a preamble for latex files (in French) shared between MacOS, Linux and Windows?

I'm in charge of a database of scientific exercises (>1000) written in french (UTF8 encoding) and sharing a single preamble. Those exercises can be edited and compiled (pdflatex) by various users ...
M. Miguel-Brebion's user avatar
2 votes
0 answers
46 views

Encoding of file from WinEdt to TexMaker

I have a TeX file that was created, edited and compiled by another person using WinEdt. I now want to keep writing on it using TexMaker, but when I open it with this new editor, these strange symbols ...
Wild Feather's user avatar
2 votes
1 answer
1k views

How to solve the problem with accented letters?

I've imported a MATLAB code in my document by using the \lstinputlisting environment but I have the following errors about the accented letters: package inputenc error: invalid utf-8 byte sequence; ...
g_don's user avatar
  • 779
4 votes
1 answer
72 views

UTF-8 Mu won't render inside custom environment

I just tried using this https://tex.stackexchange.com/a/83883/143861 for syntax highlighting Python in overleaf \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} % Default fixed font ...
theonlygusti's user avatar
0 votes
1 answer
267 views

Inputenc error with apostrophe in bibliography

I am using LyX and am trying to import my references a BibLaTeX file. I am getting the following error when I try to compile: Package inputenc error: Keyboard character used is undefined. It then ...
cruijf's user avatar
  • 41

1
2 3 4 5
13