{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.

learn more… | top users | synonyms (1)

1
vote
1answer
25 views

TexShop diacritic encoding

A newbie question. I have a number of colleagues who always use a different editor rather than texshop to edit, but use texshop to compile nonetheless. The reason I was told is that texshop corrupt ...
3
votes
1answer
60 views

Redefining a command and special character

I am trying to redefine \v command (wedge above character) to do what \vec does in mathmode and preserve \v in a command called, say \hac. This code works perfect \documentclass{article} \let\hac\v% ...
6
votes
1answer
108 views

Are (La)TeX macro/command names restricted to ASCII code characters (letters)?

Perhaps this question has been asked already, but my search efforts were unsuccessful. Is it necessary to have ASCII characters (i.e. letters basically [a..z,A..Z], special characters such as \( etc ...
0
votes
0answers
24 views

inputenc.sty error

LaTeX Error: File `latin.def' not found. Type X to quit or <RETURN> to proceed, or enter new name. (Default extension: def) Enter file name: ! Emergency stop. i would like to compile on file ...
2
votes
0answers
28 views

Problem with encoding [closed]

I have a problem with my tex file encoding. In my text in tex file I have something like this: 1. Wykonuje zaw??d z kt??rego zupe??nie nie jest zadowolony. Which should be: 1. Wykonuje zawód z ...
1
vote
1answer
73 views

XeLaTeX and the characters “éèàç”

Using accented characters (éèçà...) I get a space in my output rather than the correct symbol in all of my tests. I am using XeLaTeX: what is wrong? \documentclass[a4paper,twoside,12pt, ...
2
votes
1answer
75 views

Arabic characters in text

I saw there are numerous questions and answers for typesetting Arabic characters. Yet I can't get them work. I tried to replicate this answer, which is exactly what I want to obtain - few in line ...
5
votes
0answers
114 views

Keywords with spaces in Listings

I want spaced keywords in listings (that is, keyword, with spaces in between). Now, there are some questions in this site already answered, like this one, where the official answer is that “it is not ...
2
votes
0answers
47 views

Package inputenc Error: Unicode char -> from bibliography file [closed]

Recently I added a name in my bibliography file with the letter É. When I tried to compile, Texstudio gave me the following code: Package inputenc Error: Unicode char \u8:É. not set up for use ...
1
vote
1answer
54 views

\DeclareUnicodeCharacter and LuaTeX

Is there an equivalent command to \DeclareUnicodeCharacter for LuaTeX that allows me to define alias commands for special UTF-8/Unicode characters? I am using a custom Fraktur font that uses Unicode's ...
4
votes
0answers
45 views

LuaTeX readline encoding

Must LuaTeX's \readline use latin-1 encoding? In the example below, I first store é in a file (well, and ^^J) which works well. Then I read it back in, using \readline and get two characters é (and ...
6
votes
1answer
113 views

Why doesn't LaTeX hyphenate words containing accents, e.g. “développement”? [duplicate]

In this MWE, Latex doesn't hyphen the word "développement" and prefer to create a HUGE hbox. \documentclass[a4paper,12pt,dvipsnames]{report} \usepackage[utf8]{inputenc} \usepackage[french]{babel} ...
2
votes
0answers
49 views

trouble with inputenc package

im having a hard time with TeXnicCenter 2.0 (with MikTex) on Windows 7. I set up a quite simple code. But the letters äüö seem to appear when they want to. I got a project file with another file ...
3
votes
1answer
73 views

what Inputenc should I choose in Texmaker (Win7)?

I've written a main.tex document in Kile under Debian and I want to continue writing it in Windows where I've just installed TexMaker (I need to type and hear audio-recordigs, Windows has a better ...
0
votes
1answer
32 views

Spanish character not working in 'listings' package [duplicate]

I have a Spanish character not working in 'listings' package. In the code example below, the first occurrence of the word 'ignorará' works. The second generates the error: ! Package inputenc Error: ...
4
votes
1answer
150 views

Non-latin characters with plain TeX

What would it take to output non-latin letters (e.g. cyrillic letters) to a document using just plain TeX (i.e. without using "third-party" macro packages such as LaTeX)?
1
vote
1answer
52 views

inputenc error: problems reading in .bib file from jabref

i'm relatively new to latex, so forgive me, if thats a silly one: I'm using miktex and texstudio. I keep getting the following error message, which prevent me from building up or compiling a document ...
7
votes
1answer
432 views

Text encoding driving me crazy

I am writing a paper in english but will need to provide a danish abstract and use the little word "Köppen" as well. For some reason I seam not to be able to get the them to work. This example: ...
3
votes
1answer
120 views

\write18 encoding

I wrote a bash script osmimage (source for tests), that downloads a map given by an address. I want to write a package that calls this script with \write18, but there are a few problems. The ...
2
votes
2answers
89 views

special characters not showing (mathexam+babel)

I am trying to edit a exam using a template I found on internet (article using mathexam package) but since I have to use special characters of Brazilian portuguese (like á, à, ç, ã, õ, ô, â, ê) my ...
3
votes
1answer
167 views

How to install `babel` in Texmaker?

How do I install babel language pack in Texmaker? I want to use \usepackage[swedish]{babel} in Texmaker. At the moment, Jag är bäst in Texmaker gives Jag r bst in the PDF. I use Windows 8.
4
votes
3answers
65 views

How to customize \fg{} and \og{} appearances in BEAMER?

How to customize << and >> appearances in beamer for a better appearance?
7
votes
3answers
199 views

Non-ascii character as argument

I want to do something special with some characters in the text. In this example that is just boldfacing them: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
4
votes
1answer
79 views

Activating characters with diacritics (accents)

I want to create an environment that would convert all á to \=a, all é to \=e and so on... (short-hand for macrons) Something that should have been a five-minutes easy-to-write tool became a real ...
5
votes
1answer
84 views

utf8 input encoding with biblatex (biber and bibencoding=utf8)

I have a document with Cyrillic, English and German. All worked well so far. But now I need a special Character in the bibliography.bib file. Its an \.{E} If I just put that in there it gives me the ...
5
votes
2answers
331 views

How to easily use UTF-8 with LaTeX?

It's probably a stupid question, but I cannot find any easy answers online, and the answers are sometimes contradictory. I am writing a document that uses a few strange alphabets. I want to use some ...
1
vote
0answers
67 views

inputenc errors caused by different LaTeX environments?

On my iMac, \usepackage[utf8]{inputenc} get's me Package inputenc Error: Keyboard character used is undefined. I don't get this error on my MacBook. Conversely, \usepackage[latin1]{inputenc} ...
4
votes
2answers
215 views

Where is the encoding format stored for a .tex file?

Where is the encoding format stored for a .tex file? I had my editor set to latin1 by mistake when I created my file and I had to resort to % !TEX encoding = UTF-8 Unicode in the preamble to force ...
1
vote
1answer
262 views

Error: Unicode char \u8 when importing bibliography

I have a LaTeX document in which I improt .bib database \bibliography{LagrangianRelax} \bibliographystyle{alpha} I am getting an error (I know its quite common): ! Package inputenc Error: Unicode ...
1
vote
0answers
140 views

Making the Swedish characters å, ä and ö appear [closed]

I need to use the following preamble but can not make the Swedish letters å, ä and ö appear. The part in Swedish is in the separate file called intro_summary.tex. I'm using TeXShop as my editor. I ...
3
votes
1answer
61 views

error for special characters in \section in a classicthesis

Provided the following tex document using classicthesis, produces an error. How can I use direct input of special characters in \section in classicthesis? I do not want to write e.g. \~{n} in the ...
1
vote
0answers
66 views

Definition environment versus utf8 [closed]

I had some problems with my code, then I changed to \usepackage[utf8]{inputenc} and I could compile. But now I have another problem. I write in Brazilian portuguese, so the definition environment ...
3
votes
1answer
140 views

Auto convert LaTeX escape codes to UTF-8 characters?

How do I—e.g., with AucTeX—automatically convert escaped characters like \~n to ñ for use with \usepackage[utf8]{inputenc}? I could do something like this: sed \ -e "s/\\'a/á/" \ -e ...
3
votes
1answer
188 views

Problems with accented characters in xelatex

The accented Portuguese characters work well when compiled with pdflatex but not with xelatex giving an inputenc error. Why? \documentclass{article} \usepackage[utf8]{inputenc} ...
2
votes
1answer
294 views

TeXmaker and polish letters

I have a problem with encoding polish letters in TeXmaker. What I mean by this is that: when I write Polish letters in TeXmaker they are visible as Polish letters: ą, ę, ć and so on ...
3
votes
1answer
93 views

How to locate problematic character in .bib file

I received this message when I try to include my bibliography in the document with \printbibliography ! Package inputenc Error: Unicode char \u8:‐ not set up for use with LaTeX. See the inputenc ...
0
votes
0answers
101 views

Accents generate errors with moderncv class

When using accented characters (e.g. ë) I get the following error: Package inputenc Error: Unicode char \u8:ële not set up for use with LaTeX. A minimal working example is given below. To the best ...
5
votes
2answers
245 views

Yen (¥) character (\textyen) in LaTeX - proper encoding

I am trying to type yen (¥) symbol in LateX. I am using UTF8 encoding: \usepackage[utf8]{inputenc} I tried to type this directly as ¥. When I try to compile file with pdflatex I get this error: ...
7
votes
1answer
69 views

Is typing an accented character and compositing it the same?

Suppose that I have T1 as font encoding (and therefore I will have no copy, search and hyphenation problems, etc). Is there any difference between typing, for example, \^e and ê in the output? My ...
3
votes
1answer
312 views

Problem with Unicode in LaTeX editor (LEd)

I have an UTF-8, polish text in .tex file. When I open it with my LEd (LaTeX editor), it shows ok (all characters can be seen). But when I try to compile it, I get error: Package inputenc Error: ...
3
votes
2answers
237 views

TeXstudio changed encoding

I wrote my text using UTF-8 encoding, however, TeXstudio somehow changed this and I cannot find the way to return my text in readable form. Is it possible at all or should I die now?
5
votes
1answer
108 views

UTF-8 encoding and Notepad with LaTeX

I have written some LaTeX commands in a separate file, say foo.tex and include them in my LaTeX document. Only after I edit foo.tex with Notepad (default editor in Windows), I get the following error ...
2
votes
1answer
148 views

Problem with XeTeX input and output encoding

As we all known, the TeX engine XeTeX takes UTF-8 as its default input and output encoding format. However, it provides two new primitive control sequences that could define input encoding: ...
10
votes
1answer
188 views

What benefits can I get from using utf-8 encoding instead of cp1251 for Russian?

I'm preparing to make a small package for typesetting math textbooks in Russian, under Windows (MikTeX distribution). What input encoding should I prefer? I've always been using cp1251, but as I ...
3
votes
1answer
286 views

Accent's problem with LaTeX update

I have updated my TeX distribution using MacTeX 2013 and I have now a problem on my TeX documents: The accents are not understood by Texmaker anymore. Here is a screenshot of what I get: Here is a ...
2
votes
1answer
265 views

Beamer not working at all!

Suddenly I am getting the cryptic "Text line contains an invalid character" errors (100 of them) on all my beamer files. Even this MWE doesn't work right: \documentclass{beamer} \begin{document} ...
16
votes
2answers
382 views

Why characters UTF-8 encoded are ISO-8859-1 encoded when written in an external file

For an UTF-8 encoded file as follows: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} % \newwrite\outtmp \immediate\openout\outtmp=out.tmp % \begin{document} ...
2
votes
1answer
111 views

Yes, another “Package inputenc error” question

I'm trying to figure out why LaTeX behaves this way. So, I have this project: https://dl.dropboxusercontent.com/u/12774331/latex.zip which is a perfectly working project, with lots of é and other ...
1
vote
0answers
87 views

ASCII graphs in LaTeX document?

I have ASCII graphs which I want to get nicer like the below. How can I embed ASCII graphs nicely converted to LaTeX document? Input 11 11 01 10 <-> 10 01 00 ...
2
votes
0answers
60 views

PDFLaTeX encoding problem [duplicate]

I am generating a pdf file with PDFLaTeX. The content of the pdf looks well at a first glance. However if I try to copy and paste the text to somewhere else the text look like this: ❉✐❡ ▼❡♥❣❡ ❛♥ ...