Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
19
votes
1answer
3k views

Automatically change é to \'e – most convenient setup for accented letters?

I assume this is really basic question, I'm new to LaTeX, I read a first step tutorial to get ready to write some documents but I couldn't answer my own question at this time and I really don't know ...
23
votes
1answer
421 views

Any 7-bit way to write ä (umlaut-a) without "

I'm using a batch file to generate a small LaTeX input file. I cannot use proper umlauts, but the batch file has problems with " as text and I want to produce the word März. Is there any way in ...
47
votes
4answers
5k views

What is the difference between font encoding and input encoding?

From list of obsolete packages and classes we must avoid, I found 2 terminologies, i.e., font-encoding and input-encoding. What is the difference between them?
11
votes
2answers
3k views

How can I get utf8 character

I want to make cross references for sections to be symbols but after using the description given I got error report saying keyboard character used is undefined in inputencoding 'utf8'. What might be ...
0
votes
2answers
1k views

Special characters are losing format every time I open a document

Ok I was working with this document at home and at work in Gummi. I was using a template where everything is set for spanish so everything was working fine. Today I come to work and I find that when I ...
9
votes
2answers
1k views

best practice international template

I would like to have a template which can be internationalised (i.e. is suited for latin script languages) and uses the microtype package. I suppose that we therefore need the following packages: ...
2
votes
1answer
1k views

unicode-math and tex4ht with utf-8 input

I have a document which I'm compiling to PDF using LuaTeX, and I want to create an HTML version from the same sources. The text is german with umlauts, and for convenience I'm using some unicode-math (...
4
votes
1answer
716 views

How to print HTML entities in Latex using pdflatex

I've string of HTML entities containing characters in devnagri font. Sample HTML Entity String is : <h1>&#2311;&#2344;&#2346;&#2369;&#2335; &#2360;&#2366;&#2343;...
4
votes
1answer
3k views

Babel not working on OS X? [closed]

I'm using a MacBook Air, with OS X, and I have great difficulties in using Latex in my native language (serbian). If I use the standard babel package in TexShop: \usepackage[utf8]{inputenc} \...
3
votes
1answer
2k views

Encoding problems with custom LaTeX class (only on Windows 7/8). Why?

I've written a LaTeX class for my colleagues and me. Everything works fine on Linux and Mac OS X but not on Windows 7/8. The problem is the character-encoding on Windows 7/8 (using MikTeX). I use the ...
0
votes
1answer
319 views

Error with ASCII characters [closed]

I have an apostrophe as in educator's, which is displayed as eductaor&#39;s and prevents TeX from generating a pdf. I have used this as well: \usepackage[utf8]{inputenc} how can I fix that? (...
3
votes
1answer
6k views

Inputenc error with spanish

I'm currently writing my final thesis in TeXstudio and for a better organization I'm writing each chapter in a different text file. I'm also writing in Spanish and as far as I know, the inputenc ...
24
votes
1answer
3k views

In which order should I load inputenc and fontenc?

When I’m using pdfLaTeX, my preamble usually contains \usepackage[utf8]{inputenc} and \usepackage[T1]{fontenc} Should these two be loaded in any particular order? What problems could arise if they’...
1
vote
1answer
3k views

Which is the appropriate inputenc option for Slovak?

I have written latex document in English. Now I want to rewrite the same document in Slovak. What I found is this: instead: \usepackage[utf8]{inputenc} just use this: \usepackage{ucs} \...
2
votes
1answer
738 views

Special characters stopped appearing in text

I have a unicode text (XeLaTeX) in which I use vowels with umlaut, like ü and ö, which worked but suddenly stoped working. These give an error message: ! Package inputenc Error: Keyboard character ...
2
votes
1answer
3k views

Using \usepackage[utf8]{inputenc} in moderncv.cls [closed]

I am trying to compile a CV using moderncv.cls but have problems with the special danish characters æ,ø,å. Normally I add either \usepackage[utf8]{inputenc} or \usepackage[applemac]{inputenc} packages ...
8
votes
2answers
1k views

utf8 characters

I would like to include the output of the npm list command in a latex verbatim block: jeroen@jeroen-ubuntu:~/Desktop$ npm install d3 jeroen@jeroen-ubuntu:~/Desktop$ npm list /home/jeroen/Desktop └─┬ ...
1
vote
0answers
743 views

Uppercase Accents [closed]

My name is Sebastián and I'm doing my thesis in LaTeX. The last part of my work is the cover, but I have a problem compiling it. I have some uppercase letters with accents in the cover, and I get the ...
4
votes
1answer
903 views

inserting png introduces inputenc error

I want to write an article in Chinese, which needs to insert pictures. It's fine when I insert pictures as .pdf but the following problem occurs if .png is inserted: ! Package inputenc Error: ...
8
votes
2answers
2k views

Using non-ASCII characters in packages

What is the best way to use non-ASCII (say, Cyrillic) characters in a .sty file? If it's used in a LaTeX file that uses \inputenc[utf8]{inputenc}, than one can just use utf8 encoding in the .sty file ...
10
votes
2answers
3k views

How to use a non-ASCII character, such as a Greek letter, in bibtex?

This is the title of the journal article: Verification of a sliding window protocol in µCRL and PVS. This is the bibtex file for the same: @article{journals/fac/BadbanFGPP05, added-at = {2005-11-...
4
votes
0answers
1k views

biblatex biber non-latin (cyrillic) UTF-8 names [closed]

I am back where I was when I switched from stock bibtex to biblatex-biber: (cyrillic) non-latin UTF-8 names in the bibliography. It's why I started using biber in the first place, the same would ...
3
votes
1answer
3k views

LaTeX does not print words correctly: inputenc/fontenc problem

I'm using a MacBook Pro and TeXShop. I am writing a philosophy thesis and fairly new to LaTeX. In my preamble I have put \documentclass[a4paper,12pt]{article} \linespread{1.5} \usepackage[francais,...
22
votes
3answers
5k views

Do I need fontenc and inputenc

My question feels like a duplicate of: fontenc vs inputenc, but in that question the OP uses German and non-ascii characters. I speak and write in English exclusively. My keyboard is the standard en-...
3
votes
1answer
1k views

TeX complains about a “Package inputenc Error” [closed]

Compiling a simple document, I get the following error: On the line 166, there is a \begin{itemize} environment. I tried commenting it out and the error goes away, but there doesn't seem to be ...
2
votes
1answer
5k views

Translate from applemac to utf8

Hi at all i want to translate this template from applemac to utf8 how can i do? thanks at all !
5
votes
2answers
619 views

expand macro in single byte encoded code

In this minimal (not) working example, I try to use single-byte latin10-encoded source file, and expand a command-macro containing a character with \catcode254: % -*- mode: latex; unibyte: t; ...
4
votes
1answer
651 views

What encoding and line-feeds should I use in my TeX files to ensure portability?

In many of the editors and tools I use, I'm given the option to choose an "encoding" as well as a choice among "new lines". For example, in BBEdit, I am given the following for encoding and this ...
4
votes
1answer
2k views

inputenc error with unicode chars and verbatim

I am writing a package where I need to save the contents of several environments in verbatim mode to an auxiliary file. Then the auxiliary file is processed by an external program. In the next ...
3
votes
2answers
2k views

Using inputenc package for cp1252 encoding

I want to be able to use the ansinew characters in a latex document. According to the pdf file for the inputenc package, I can do that by putting \usepackage[cp1252]{inputenc} in my preamble. I do ...
7
votes
2answers
5k views

Error with inputenc and UTF-8 non-breaking space

This is a follow up to How to make non-breaking spaces (ties) in Org-mode that exports properly to LaTeX. One answer to the question is a solution that uses UTF-8 non-breaking spaces but these cause ...
2
votes
1answer
502 views

How do I embed Unicode G Cleff in a Verbatim environment?

I am writing a chapter on Unicode. I'm using LaTeX using the fancyvrb chapter and inputenc, which lets me type most unicode characters without problem. Problem: I want to include a character from the ...
1
vote
1answer
547 views

Problems with error message when using listings-package and inputenc.

I want to include the code of some script in my LaTeX document. In a "minimal" example, it works perfectly well - but only if I leave out the line \usepackage[latin1]{inputenc}: \documentclass[]{...
3
votes
1answer
419 views

Inputenc: utf8 characters in cross-references

I am using the hack given here as accepted solution to refer to a description list item by name instead of number. It works nicely, except when one of the words in the name ends with a non-ascii ...
4
votes
2answers
3k views

LaTeX: UTF8 and algorithm2e clash

I have this input file in utf8 encoding: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{algorithm2e} \begin{document} \begin{procedure} foo \caption{ö()} \end{procedure} \end{...