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
33 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 ...
user avatar
  • 31
11 votes
2 answers
494 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?
user avatar
0 votes
1 answer
36 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 ...
user avatar
  • 168
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]{...
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 ...
user avatar
  • 143
0 votes
1 answer
36 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} \...
user avatar
  • 235
4 votes
3 answers
189 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 ...
user avatar
  • 308
0 votes
1 answer
72 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 "−&...
user avatar
0 votes
0 answers
36 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. ...
user avatar
  • 95
3 votes
2 answers
89 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 ...
user avatar
  • 515
0 votes
1 answer
27 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 ...
user avatar
1 vote
1 answer
106 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[...
user avatar
  • 515
1 vote
1 answer
39 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 ...
user avatar
1 vote
2 answers
50 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. \...
user avatar
0 votes
1 answer
82 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 ...
user avatar
  • 168
0 votes
0 answers
39 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. ...
user avatar
0 votes
2 answers
42 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 ...
user avatar
  • 101
0 votes
1 answer
81 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 ...
user avatar
  • 3,993
1 vote
1 answer
58 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. \...
user avatar
  • 945
0 votes
1 answer
171 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 ...
user avatar
  • 3
2 votes
2 answers
185 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 ...
user avatar
0 votes
1 answer
94 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 ...
user avatar
  • 2,545
5 votes
2 answers
331 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. ...
user avatar
  • 747
1 vote
1 answer
88 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 ...
user avatar
1 vote
0 answers
29 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 ...
user avatar
2 votes
1 answer
325 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; ...
user avatar
  • 491
4 votes
1 answer
47 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 ...
user avatar
0 votes
1 answer
129 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 ...
user avatar
  • 41
1 vote
1 answer
64 views

figure environment isn't compiling with babel and hebrew in pdflatex

I have a project that is written both in Hebrew and in English, which is compiled with pdfLatex on Overleaf. Since this compiler is not a Unicode engine, one has to declare the Hebrew letters ...
user avatar
  • 298
1 vote
1 answer
69 views

Interpreting colouring set by console codes with minted

Is it possible to interpret console codes for colouring with minted? My current approach: Create a file containing console codes with $ printf "normal text\n\033[0;36mcyan text\033[0;0m\nnormal ...
user avatar
  • 13
2 votes
3 answers
50 views

Uniform line height with tabularx-- possibly due to mix of Russian and English?

I have a table using tabularx: As you see, the line heights are not uniform. I would like every line to be the same height as the third row (inanimate | no change). I tried [1ex], and there is no ...
user avatar
  • 23
1 vote
2 answers
421 views

Different rendering of µ (micro) and other unicode symbols when compiling with XeTeX

This is not a "how-to" question but rathe a "why" question. I'm working on re-writing a MS Word document in LaTeX to be compiled with XeTex. I noticed some symbols not showing, ...
user avatar
  • 278
0 votes
0 answers
45 views

Conflict between utf8 and other packages

Whatever I do I receive this message (! Package inputenc Error: Invalid UTF-8 byte sequence) when I run livre.tex. I assume that livre.tex combined with .sty file doesn't like (Ôter) as a first word ...
user avatar
0 votes
1 answer
70 views

How to \input{} a tex file with unicode characters

I have a big table that containing the Unicode character "±". If I put this table on my main tex file, there is no problem. But when I put it in another tex file and try to \input{} it, then ...
user avatar
7 votes
1 answer
264 views

inputenc is no longer needed?

by mistake I noticed that my text (UTF-8 encoded, contains german special characters ä, ö, ü, ß) is compiled without errors although I forgot the inputenc (\usepackage[utf8]{inputenc}). Here is a ...
user avatar
  • 159
0 votes
1 answer
295 views

How can I get both Greek and Unicode characters to render in a verbatim environment?

I am including some Julia code that uses Unicode characters, including Greek letters, in a verbatim environment. I've tried LaTeX, XeLaTeX, and LuaLaTeX (and am still open to using any of them), but ...
user avatar
  • 133
0 votes
4 answers
257 views

The Czech accents ěščřžý are not showing in the output

I have the following MnWE, and it is non-working since after xelatex.exe it doesn't show the Czech letters with accents ěščřž, but it shows "á". So how do I type these accents no matter how ...
user avatar
  • 1,838
0 votes
0 answers
115 views

Thesis V3.bbl: 72: Package inputenc Error: Invalid UTF-8 byte sequence

I am writing my thesis and the preamble looks as the following: \documentclass[11pt,a5paper,footinclude=true,headinclude=true]{scrbook} % KOMA-Script book \usepackage[utf8]{inputenc} \usepackage[T1]{...
user avatar
3 votes
2 answers
5k views

Package inputenc: Unicode character ≤ (U+2264) (inputenc) not set up for use with LaTeX - Error caused by unnoticed literal "≤"

When trying to build my LaTeX-file with latexmk in VS Code using Latex Workshop extension, the following error is thrown: Package inputenc: Unicode character ≤ (U+2264) (inputenc) not set up for use ...
user avatar
0 votes
0 answers
119 views

Use any unicode character in source with pdfLaTeX (without XeLaTeX or LuaLaTeX)

I'm writing a script that converts .md files into latex source code and compiles it to a .pdf. I've been using pdfLaTeX and would rather not refactor this late in the game. I want to be able to handle ...
user avatar
0 votes
1 answer
69 views

How to handle umlauts in file names with lualatex on Windows?

There are lots of questions about encoding in general, but none that I have found are related to umlauts in filenames. On Windows, LuaLaTeX cannot handle umlauts: PS> lualatex ümlaut.tex This is ...
user avatar
  • 337
0 votes
0 answers
128 views

latexmk fails with Invalid UTF-8 byte sequence even though I already used multiple tools to convert file to utf-8!

I would like to use latexmk in Visual Studio Code with the LaTeX plugin but I am facing some issues regarding encoding: Package inputenc: Invalid UTF-8 byte "A4. Package inputenc: Invalid UTF-8 ...
user avatar
3 votes
1 answer
120 views

Trouble in biber with "ḥʼḤ"

I am facing issues with special characters in biber. Specifically, this is about "ʼ", "ḥ" and "Ḥ". These are used for Arabic transcription. I have tried rendering this ...
user avatar
  • 63
0 votes
0 answers
213 views

UseRawInputEncoding and Norwegian letters

I'm currently writing a document in overleaf that has a lot of code implemented in the lstlisting environment. The problem with this is that it floods my log with "invalid utf-8 byte sequence ...
user avatar
0 votes
1 answer
293 views

How do I ensure UTF-8 input encoding?

According to the babel manual, after 2018, I do not need to explicitly load the inputenc package --- ``if the encoding is UTF-8''. So, how do I know which encoding my keyboard actually writes in? ...
user avatar
  • 803
0 votes
1 answer
253 views

**LaTeX** insert Unicode Characters (relational Database chars)

I recently tried to insert the Characters for the relational Algebra (left/right (semi) join, ...) but failed up to now. I know that it is problematic with Unicode and ASCII encoding, but I thought ...
user avatar
  • 393
0 votes
0 answers
27 views

Package Inputenc Error with morefloats package

Herewith package morefloats, I got the error message saying Package inputenc Error: Unicode character (inputenc) not set up for use with LaTeX. \usepackage{morefloats} I'm wondering if anyone can help ...
user avatar
0 votes
1 answer
101 views

What kind of encoding is root.tex from ieeeconf using?

I downloaded the IEEEconf document class (the ctan version seems to be several versions behind). I have problems to figure out the encoding of the file root.tex in the ieeeconf.zip file. All quotation ...
user avatar
  • 8,259
0 votes
0 answers
138 views

Correct preamble with T1 font encoding

I am wondering if I have set up a correct preamble. In particular I must use T1 encoding, because I am writing in Portuguese. \documentclass[english,portuguese]{article} \usepackage[portuguese]{babel} ...
user avatar
  • 225
0 votes
1 answer
221 views

svg package not rendering svg containing math

I have an svg file of an equation as follows <svg xmlns="http://www.w3.org/2000/svg" xmlns:wrs="http://www.wiris.com/xml/cvs-extension" height="29" width="85"...
user avatar

1
2 3 4 5
13