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
2
votes
0answers
537 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
479 views

Problem with utf8 and \maketitle [closed]

I have the following master document: \documentclass[tesi,english]{editorialupv} \input{preambulo} \bibliography{referencias} \graphicspath{ {../figuras/} {../logos/} {./figuras/} {./...
1
vote
1answer
722 views

This error keeps appearing: ! Package inputenc Error:Keyboard character used is undefined in inputencoding ansinew

I have been working on this document without problem, but now everytime I compile it, this message appears: ! Package inputenc Error: Keyboard character used is undefined (inputenc) ...
3
votes
2answers
621 views

inputenc when we write in english

I will submit a paper in mathematic to a journal. I write it in english. Can I delete the following code \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} Or I should replace it by another ...
0
votes
1answer
262 views

Latex showing inputenc Error for latin1 at \end{Document}

Editor: TexStudio Latex: MiKTex 2.9 I was trying to add a biblatex file to my document and that workt fine for the first few times. After that the Error: Package inputenc Error: Keyboard character ...
1
vote
0answers
457 views

A way to change the encoding of a .tex file [closed]

Sometimes, when the contents of a .tex is copied from .docx file, its own encoding might not fit your expectation and cause problems as you compiling it. One way to convert the file to the encoding ...
8
votes
3answers
15k 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 ...
1
vote
1answer
230 views

I'm having trouble with inputenc package clashing

I get a "LaTeX Error: Option clash for package inputenc." in a line which is a blank line right after \usepackage[utf8]{inputenc}. \documentclass{RITA} \usepackage[T1]{fontenc} \usepackage{url} \...
2
votes
1answer
1k views

Conflict between UTF-8 and ANSI encoding

I'm writing a document in spanish language. Since I need to use spanish accents (for example "camión") the best encoding should be utf-8. However, for some reason, when I compile the document (I'm ...
0
votes
2answers
2k views

Problem with inputenc

I created a TeX on Ubuntu using Kile. However now I'm working on Windows 10 using TeXnicCenter. Once I tried to compile the same TeX file I got about 80 errors. All the errors were concerned with ...
8
votes
3answers
440 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 ...
7
votes
1answer
256 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”)...
3
votes
2answers
183 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} \...
3
votes
3answers
143 views

How to insert ordinal number into a listing?

I have the following code: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{listings} \title{DuvidaLatex} \author{Ricardo Ramos} \date{October 2017} \...
0
votes
0answers
23 views

Compatibility issues between package `tkz-base`, `inputenc` and `babel` [duplicate]

I would normally work with [greek,russian,frenchb,english]{babel} which requires [utf]{inputenc} and am getting problems with some of the tkz-base macros. The error messages are incoherent so I hope ...
2
votes
1answer
303 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
563 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 ...
6
votes
1answer
377 views

Automatically convert CJK Unicode to percent encoding in HREF

I'm using LuaLaTex, TexShop, class Memoir. I'm trying to make a hyperlinked text with the destination URL containing Unicode characters. For example, https://namu.wiki/w/대전역. Manually converting ...
2
votes
2answers
80 views

What is preventing the È to be properly formatted?

I am using the following package: https://github.com/franen/matrita There is a \rispostatutti command defined as follows: \newcommand{\rispostatutti}[1]{% \par\nobreak\vspace{\prerisp}% \noindent\...
3
votes
2answers
526 views

Switching LaTeX files from latin-1 to utf-8: “Keyboard character used is undefined”

My .tex and .sty files were in encoding latin-1. I've converted them [using Emacs] to utf-8. In my sty file, I replaced \usepackage[latin1]{inputenc} with \usepackage[utf8]{inputenc} :: The ...
1
vote
1answer
126 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 ...
8
votes
1answer
7k views

Command \k unavailable in encoding OT1 (error takes me to line which doesn't even have “\k” in it

I am in an incredibly frustrating situation - after weeks and weeks of editing my dissertation in Latex, the inevitable error that just doesn't seem to make any sense has surfaced. I get the error "...
1
vote
1answer
530 views

What output encoding does `latexdiff` use?

I'm trying to use latexdiff on two versions of a document. These are encoded in UTF8 and have the \usepackage[utf8]{inputenc} statement as first line within the preamble. I processed the files then ...
4
votes
1answer
552 views

Why isn't my biblatex document accepting UTF-8 in the bibliography?

After the questions: How to set the english option to abntex2cite bibliography package? What is the difference between bibtex and biblatex? I am trying to migrate to biblatex as it seems more up-to-...
0
votes
0answers
121 views

Danish character encoding broken with nested lstlisting

In order to help TexStudio with its intellisense, I wrapped a \lstnewenvironment inside a \newenvironment. This allowed TeXStudio to properly highlight the newly defined environment. However, when I ...
0
votes
1answer
128 views

LaTeX fails to compile due to Umlauts [duplicate]

I am fairly new to LaTeX, so please bear with me! :) So my problem is the following: I have a LaTeX document with several subsections. I write in German, so I have to use Umlauts. Using them normally ...
11
votes
1answer
452 views

How is the TeX engine informed of the OS's end-of-line marker and file encoding?

The TeX engine processes the input file on a line-by-line basis (The TEXbook, p. 46). The first line will be read from the file, undergo some pre-processing (see below), and then the engine will start ...
2
votes
1answer
224 views

TeX file corrupted (wrongly coded/decoded) while compiling

I was compiling my .tex file using pdflatex on an external hard drive, while the compilation took very long (the HDD got super slow from then on), I pulled the drive out. Now, the .tex file seems to ...
3
votes
1answer
274 views

Transformation accent characters written in Tex

I am using UTF8 encoding now and don't need to use LaTeX macros to typeset accented characters. Would you know an automative process to convert accent characters coded with Tex macros to utf8 ...
3
votes
1answer
386 views

Greek letters with Minted or listings and LuaLaTeX

I am trying to get a listing into my LaTeX document. A simple listing would be the following XML: <!-- Lüscher-Weiß with β --> Then I try to get this into my document. \documentclass[...
1
vote
1answer
495 views

German Umlauts in US-ASCII encoding

I got a LaTeX project that has been exported (downloaded) from an ShareLaTeX Online installation. Seems that it stored all Tex files as US-ASCII according to what I see on MacOS using the following ...
1
vote
0answers
355 views

Package inputenc Error: Unicode char â„¡ (U+2121)(inputenc) not set up for use with LaTeX. \printbibliography[heading=bibintoc] [closed]

I have some problem with the "Package inputenc Error: Unicode char â„¡ (U+2121)(inputenc)". I am using Zotero and "export" the bibliography to a bib file. To correct certain information I recently ...
1
vote
0answers
83 views

Strange error with inputenc [closed]

The head of my document looks like \documentclass[intlimits,twoside,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[eqsecnum]{cmpj3} \usepackage{bm} \usepackage{float} \newcommand{\ii}{\...
0
votes
0answers
402 views

Package inputenc Error: Keyboard character used is undefined for begin document

I get the following error when trying to typeset my document: ./masterproef.tex:68: Package inputenc Error: Keyboard character used is undefined (inputenc) in inputencoding `ascii'. ...
0
votes
1answer
127 views

Problem with a damaged .tex file

Yesterday a failed USB extraction damaged an important .tex file for me, I attached the file in a Dropbox link. When I try to open the .tex in Texmaker a message suddenly appears that says something ...
1
vote
1answer
803 views

Package inputenc Error: Unicode char ̂ (U+302)(inputenc) not set up for use with LaTeX. … $\widehat{\left (OA,AA' \right )}$

I'm writing my dissertation in Portuguese but the latex is finding this kind of error. In fact, I'm using some mathematical characters. How do I resolve this? Here below is the location of the error ...
1
vote
1answer
468 views

Non-ASCII characters in TexPad desktop in XeLaTex

I am using Texpad 1.7.42 (Desktop, not cloud or iOS), to edit locally TeX documents produced originally in the cloud (on Overleaf). My documents contain many Unicode characters, and use XeLaTex with ...
1
vote
1answer
619 views

How can I use new unicode characters?

I know, there are lots of questions about Unicode and I've read a lot of these. But I wasn't able to solve my problem: I have to use the characters ↊ and ↋ (U+218A and U+218B) in my text. I tried ...
3
votes
1answer
284 views

Can't compile an arabic file using LuaLaTeX

I have an article written in arabic I want to use tex to get a PDF file, but I can't compile the file (I'm using LuaLaTeX), I get this error: ! String contains an invalid utf-8 sequence. l.137 \...
1
vote
1answer
230 views

Can't insert some arabic characters

I would to insert some arabic characters like ﴾ but I can't, I get this error: ! Package inputenc Error: Unicode char ﴾ (U+FD3F) I tried \DeclareUnicodeCharacter and \usepackage[utf8x]{inputenc} but ...
0
votes
3answers
94 views

Cyrillic text in ngerman document

I have a long German text that contains cryillic. Up until this point I had this and it worked fine, allowing me to write umlauts etc: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[...
1
vote
1answer
644 views

\printbibliography results in error: ! Argument of \UTFviii@three@octets has an extra }

I have been dealing with this problem some days. Maybe you can help me? When running pdflatex I get this error: ! Argument of \UTFviii@three@octets has an extra }. <inserted text> \par l.15 I'...
2
votes
1answer
3k views

'Can only be used in preamble' Error when using \input for a chapter

It's my first post here; hopefully I'm not butchering how I'm supposed to post this. I'm working in the Report class using Arara, trying to use \input to import a chapter. % arara: pdflatex % arara: ...
0
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 ...
0
votes
1answer
955 views

How is \documentclass an “Undefined control sequence”?

I'm using AUCTeX 11.90 on emacs (recently upgraded from elpa packages) running on Windows 7. I've created a tex file and for some reason only this one particular file gives error msgs when I compile ...
0
votes
1answer
199 views

Error caused by a non-ASCII character in the presence of inputenc + listings

Processing the following .tex file with LaTeX: \documentclass{amsart} \usepackage[utf8]{inputenc} \usepackage{listings} \begin{document} \begin{lstlisting}[float,caption=example] ë \end{lstlisting} ...
1
vote
0answers
328 views

Can't compile a PDF with UTF-8 in Sweave [duplicate]

I try to compile in Sweave (R Studio) a PDF which contains cyrillic characters. The PDF-file looks nice, and the cyrillic characters display correctly. But when I try to copy some text from the PDF to ...
1
vote
5answers
550 views

Why use both fontenc and inputenc in the same document? [duplicate]

What's the point of using both fontenc and inputenc in the same preamble? Why would anyone want to specify an input encoding (with inputenc) and an output encoding (with fontenc) that don't coincide? ...
19
votes
4answers
13k views

Is there any reason to use inputenc?

My LaTeX text editor is GNU Emacs 25.1.1, which encodes text files in UTF-8. Is there any reason to specify \usepackage[utf8]{inputenc} in the preamble? Even if I migrate to a different computer ...