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
1answer
294 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 ...
8
votes
3answers
19k 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
265 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} \...
20
votes
2answers
4k views

Can we stop recommending fontspec as first choice in case lualatex is used?

This question may belong on Meta, please move it in that case, I'm not sure. This answer made me think again why almost everybody is recommending loading fontspec in case lualatex is used. I see just ...
2
votes
1answer
2k 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 ...
7
votes
1answer
293 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
196 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
162 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 ...
1
vote
1answer
128 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
327 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
67 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
623 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 ...
3
votes
2answers
615 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 ...
2
votes
2answers
83 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\...
2
votes
2answers
4k views

Special characters in knitr generated figure caption

I would like to pass special characters and formatting with the knitr generated captions. I am trying to understand two things: 1) Is it possible to pass LaTeX syntax through the caption? 2) How ...
9
votes
1answer
9k 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 "...
5
votes
1answer
13k views

Package inputenc Error: Unicode char - {U+2010)

I am encountering the following error and have no idea where to find the solution; Package inputenc Error: Unicode char ‐ (U+2010) (inputenc) not set up for use with LaTeX. See the ...
4
votes
1answer
628 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
129 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
136 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
454 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
255 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
310 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
426 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
545 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
387 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
1answer
631 views

acronym with inputenc changes between latin10 and utf8

[edited] finished OK MWE This is mwe.dtx. % \iffalse (METACOMMENT) %% %% --------------------------------------------------------------------- %% %% Document class `mwe' to use with LaTeX 2e. %% %...
5
votes
1answer
716 views

Diacritics inside an Epigraph in LyX

I can use letters marked with diacritics in most parts of my document. Now, I'm making an epigraph \epigraph{,evlos t'nac uoy melborp a si ereht fI''\\ ''.ti dnif :evlos nac uoy melborp reisae na si ...
6
votes
1answer
5k views

Using German umlaut in LaTeX tabular directive

I am trying to use German umlauts in a tabular directive. The file is encoded in UTF8 and the useage of umlauts outside of the tabular directive is working flawlessly so there should be no general ...
9
votes
2answers
2k views

Pi, Kappa, Latin Small Letter Long S: problems with UTF8

I'm using Springers svmono for a book with many mathematical symbols and special characters. There are quite a few problems with characters that are simply not printed (using pdfLatex), so I tried ...
3
votes
1answer
2k views

inputenc[utf8] error with input-function of external tex files

I got a problem with inputenc[utf8]. My document is in German and uses 'ä, ö, ü' which usually works fine with the following preamble: \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[...
16
votes
1answer
5k views

Migrating from pdfTeX to LuaTeX: Problems with reproducing output for legacy projects

I'm currently analyzing and evaluating a migration process from pdfTeX to LuaTeX for our current TeX workflow. With LuaTeX being a fork of pdfTeX and packages like luainputenc at hand it seemed ...
0
votes
0answers
417 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'. ...
2
votes
1answer
4k 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
1answer
137 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 ...
0
votes
1answer
86 views

How to put a latin1 file inside utf8 file, using the input comand

I have a latex file that have been written using: \usepackage[utf8]{inputenc} In this file, there are few external files also written using this package. Now I need to put a external file that was ...
1
vote
1answer
915 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 ...
3
votes
1answer
298 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
517 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 ...
2
votes
1answer
510 views

adding vertical space conflicts with inputenc using utf8x only

For context, this question was raised by the answer to a previous question. I'm trying to design a title page for a beamer presentation, although this could be a more general issue. I use the ...
4
votes
3answers
387 views

Can't write Greek RecipeName in xcookybooky

I am using xcookybooky to create my own cookbook in greek. Until now I was using iso-8859-7 encoding in all my documents and it was working fine. With xcookybooky there is an issue with this ...
1
vote
1answer
668 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 ...
1
vote
1answer
248 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
104 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
731 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'...
0
votes
1answer
1k 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
230 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
375 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 ...