Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

inputenc and latin1

955 views
Skip to first unread message

zunbeltz

unread,
Dec 3, 2002, 3:25:01 AM12/3/02
to
Hi

I've some trouble with this simple code. I've use it on windows (wiht miktex)
without problems, but now I'm using linux (Suse 8.1) and it doesn't woirk

the code:
\documentclass[12pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage[OT1]{fontenc}
\usepackage[spanish]{babel}

\begin{document}
\title{Organización}
\author{Zunbeltz Izaola}
\date{\today}
\maketitle

\end{document}

the log error is:


! Package inputenc Error: Keyboard character used is undefined
(inputenc) in inputencoding `latin1'.


the problem is the "o" with accent, but i don't know why

Zunbeltz

Rolf Niepraschk

unread,
Dec 3, 2002, 3:31:37 AM12/3/02
to
zunbeltz wrote:
> Hi
>
> I've some trouble with this simple code. I've use it on windows (wiht miktex)
> without problems, but now I'm using linux (Suse 8.1) and it doesn't woirk
>
...

> the problem is the "o" with accent, but i don't know why

Try:
\usepackage[T1]{fontenc}

...Rolf
--
|| Rolf Niepraschk c/o Physikalisch-Technische Bundesanstalt ||
|| Abbestr. 2-12; D-10587 Berlin, Germany ||
|| Tel/Fax: ++49-30-3481-316/490, email: niepr...@ptb.de ||

Robin Fairbairns

unread,
Dec 3, 2002, 5:06:22 AM12/3/02
to

it works here[*], so either:

-- you've copied (rather than included) something that was in an
eccentric character set, where "ó" had a different position, or
-- you've got a corrupt copy of latin1.def

[*] apart from the diagnostic about spanish hyphenation patterns,
which i don't have. you do realise that you won't get decent
hyphenation using ot1 fonts?
--
Robin Fairbairns, Cambridge -- the man with no voice (_again_)

David Kastrup

unread,
Dec 3, 2002, 5:10:56 AM12/3/02
to
r...@cl.cam.ac.uk (Robin Fairbairns) writes:

> zunl...@hotmail.com (zunbeltz) writes:

> >without problems, but now I'm using linux (Suse 8.1) and it doesn't woirk
> >
> >the code:
> >\documentclass[12pt,a4paper]{article}
> >\usepackage[latin1]{inputenc}

> >\title{Organización}

> >! Package inputenc Error: Keyboard character used is undefined
> >(inputenc) in inputencoding `latin1'.
> >
> >the problem is the "o" with accent, but i don't know why
>
> it works here[*], so either:
>
> -- you've copied (rather than included) something that was in an
> eccentric character set, where "ó" had a different position, or
> -- you've got a corrupt copy of latin1.def

Or SuSE has changed its default character set to something different
from Latin-1.

--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
UKTUG FAQ: <URL:http://www.tex.ac.uk/cgi-bin/texfaq2html>

Bernd Strieder

unread,
Dec 3, 2002, 7:39:11 AM12/3/02
to
zunbeltz wrote:
> I've some trouble with this simple code. I've use it on windows (wiht
> miktex) without problems, but now I'm using linux (Suse 8.1) and it
> doesn't woirk

No problem here using SuSE 8.1. Is it possible that the text itself was not
latin1, but somehow worked on windows. What does the text look like viewed
at the command-line on linux, e.g. with cat, less or vi?

> ! Package inputenc Error: Keyboard character used is undefined
> (inputenc) in inputencoding `latin1'.

Bernd Strieder

Lars Madsen

unread,
Dec 3, 2002, 11:12:18 AM12/3/02
to
open the file in Emacs, choose Mule --> Set Coding system --> buffer file

type latin-1

then a similar problem worked for us.

/daleif

zunbeltz

unread,
Dec 3, 2002, 6:08:06 PM12/3/02
to
Bernd Strieder <stri...@informatik.uni-kl.de> wrote in message news:<asi8or$ah6$1...@news.uni-kl.de>...

> zunbeltz wrote:
> > I've some trouble with this simple code. I've use it on windows (wiht
> > miktex) without problems, but now I'm using linux (Suse 8.1) and it
> > doesn't woirk
>
> No problem here using SuSE 8.1. Is it possible that the text itself was not
> latin1, but somehow worked on windows. What does the text look like viewed
> at the command-line on linux, e.g. with cat, less or vi?

The text was typed with Emacs, and i think the problem is there. The
text dosn't looked right in vi (instead of "ó" apear a number - 255 i
think). I know that this is not the best group to ask it, but, someone
can point me to some regerence about encodings ( expecialy encodings
in Emacs and Linux/Unix utilites to traslates files from one encoding
to another)

Thanks

Zunbeltz

David Kastrup

unread,
Dec 3, 2002, 6:42:48 PM12/3/02
to
zunl...@hotmail.com (zunbeltz) writes:

> Bernd Strieder <stri...@informatik.uni-kl.de> wrote in message news:<asi8or$ah6$1...@news.uni-kl.de>...
> > zunbeltz wrote:
> > > I've some trouble with this simple code. I've use it on windows (wiht
> > > miktex) without problems, but now I'm using linux (Suse 8.1) and it
> > > doesn't woirk
> >
> > No problem here using SuSE 8.1. Is it possible that the text itself was not
> > latin1, but somehow worked on windows. What does the text look like viewed
> > at the command-line on linux, e.g. with cat, less or vi?
>
> The text was typed with Emacs, and i think the problem is there. The
> text dosn't looked right in vi (instead of "ó" apear a number - 255 i
> think). I know that this is not the best group to ask it, but, someone
> can point me to some regerence about encodings ( expecialy encodings
> in Emacs and Linux/Unix utilites to traslates files from one encoding
> to another)

Well, load the file, then ask Emacs what it thinks the encoding is
(with C-h C RET) for saving the file is. You can change that with
C-x C-m f latin-1-unix RET
then save again.

And it might be worth finding out why Emacs did what it did. What
did C-h C RET tell you about the default coding system?

What is the output of

locale

in your shell?

zunbeltz

unread,
Dec 4, 2002, 4:37:32 AM12/4/02
to
David Kastrup <David....@t-online.de> wrote in message > Well, load the file, then ask Emacs what it thinks the encoding is

> (with C-h C RET) for saving the file is. You can change that with
> C-x C-m f latin-1-unix RET
> then save again.
>
> And it might be worth finding out why Emacs did what it did. What
> did C-h C RET tell you about the default coding system?
thank, I've done it and it works!!

>
This is what Emacs thinks about the default coding system:
Coding system for saving this buffer:
1 -- iso-latin-1-unix
Default coding system (for new files):
1 -- iso-latin-1 (alias: iso-8859-1 latin-1)
Coding system for keyboard input:
nil
Coding system for terminal output:
0 -- iso-latin-9 (alias: iso-8859-15 latin-9 latin-0)
Defaults for subprocess I/O:
decoding: 1 -- iso-latin-1 (alias: iso-8859-1 latin-1)
encoding: 1 -- iso-latin-1 (alias: iso-8859-1 latin-1)

Priority order for recognizing coding systems when reading files:
1. iso-latin-1 (alias: iso-8859-1 latin-1)
2. iso-2022-jp (alias: junet)
3. iso-2022-7bit
4. iso-2022-7bit-lock (alias: iso-2022-int-1)
5. iso-2022-8bit-ss2
6. emacs-mule
7. raw-text
8. japanese-shift-jis (alias: shift_jis sjis)
9. chinese-big5 (alias: big5 cn-big5)
10. no-conversion (alias: binary)
11. mule-utf-8 (alias: utf-8)

Other coding systems cannot be distinguished automatically
from these, and therefore cannot be recognized automatically
with the present coding system priorities.

The followings are decoded correctly but recognized as iso-2022-7bit-lock:
iso-2022-7bit-ss2 iso-2022-7bit-lock-ss2 iso-2022-cn iso-2022-cn-ext
iso-2022-jp-2 iso-2022-kr

Particular coding systems specified for certain file names:

OPERATION TARGET PATTERN CODING SYSTEM(s)
--------- -------------- ----------------
File I/O "\\.elc\\'" (emacs-mule . emacs-mule)
"\\(\\`\\|/\\)loaddefs.el\\'"
(raw-text . raw-text-unix)
"\\.tar\\'" (no-conversion . no-conversion)
"" (undecided)
Process I/O nothing specified
Network I/O nothing specified

> What is the output of
>
> locale
>
> in your shell?

LANG=es_ES@euro
LC_CTYPE="es_ES@euro"
LC_NUMERIC="es_ES@euro"
LC_TIME="es_ES@euro"
LC_COLLATE=POSIX
LC_MONETARY="es_ES@euro"
LC_MESSAGES="es_ES@euro"
LC_PAPER="es_ES@euro"
LC_NAME="es_ES@euro"
LC_ADDRESS="es_ES@euro"
LC_TELEPHONE="es_ES@euro"
LC_MEASUREMENT="es_ES@euro"
LC_IDENTIFICATION="es_ES@euro"
LC_ALL=

Zunbeltz

David Kastrup

unread,
Dec 4, 2002, 5:59:26 AM12/4/02
to
zunl...@hotmail.com (zunbeltz) writes:

> This is what Emacs thinks about the default coding system:
> Coding system for saving this buffer:
> 1 -- iso-latin-1-unix
> Default coding system (for new files):
> 1 -- iso-latin-1 (alias: iso-8859-1 latin-1)

How comes Emacs thinks this? Have you set the default language
environment somewhere?

> Coding system for terminal output:
> 0 -- iso-latin-9 (alias: iso-8859-15 latin-9 latin-0)

So Emacs knows that you have a Latin-9 terminal...

> Priority order for recognizing coding systems when reading files:
> 1. iso-latin-1 (alias: iso-8859-1 latin-1)

But it would not recognize a Latin-9 file when coming across it...

> > What is the output of
> >
> > locale
> >
> > in your shell?
> LANG=es_ES@euro
> LC_CTYPE="es_ES@euro"

And that is a Latin-9 coding system...

Personally, I have switched my system from Latin-9 or even utf8
completely back to Latin-1 and will keep it that way until I am
reasonably sure Emacs will be fine with that in all respects I could
imagine (including when starting something like x-symbol or LaTeX or
such).

Encoded mail/news will display the Euro character and even utf8 files
fine as long as I use X11, and that is most of what would matter for
me.

Of course, things should work just the same, but not all important
packages/tools of me seemingly do so perfectly.

zunbeltz

unread,
Dec 4, 2002, 5:11:32 PM12/4/02
to
David Kastrup <David....@t-online.de> wrote in message news:<x5k7iqo...@lola.goethe.zz>...
> zunl...@hotmail.com (zunbeltz) writes:
>
All the problem was that the LANG enviroment variable was not set approperly.
I've put the iso-8859, and all is going well. Thank you for your information
and patience :-)

Zunbeltz

Robin Fairbairns

unread,
Dec 5, 2002, 3:24:47 AM12/5/02
to
zunl...@hotmail.com (zunbeltz) writes:
>All the problem was that the LANG enviroment variable was not set approperly.
>I've put the iso-8859, and all is going well. Thank you for your information
>and patience :-)

i hope you've put slightly more than that in: iso 8859 is (so far) a
15-part standard (iirc -- not all parts are currently populated, i
think). most people from western europe (or speaking a w.e.-derived
language) use iso 8859-1 (latin1), though we can probably expect iso
8859-15 (latin9) to take over sooner or later, being as how it has a
euro sign in it.

zunbeltz

unread,
Dec 9, 2002, 2:50:09 AM12/9/02
to
r...@cl.cam.ac.uk (Robin Fairbairns) wrote in message news:<asn2gf$af0$2...@pegasus.csx.cam.ac.uk>...

> i hope you've put slightly more than that in: iso 8859 is (so far) a
> 15-part standard (iirc -- not all parts are currently populated, i
> think). most people from western europe (or speaking a w.e.-derived
> language) use iso 8859-1 (latin1), though we can probably expect iso
> 8859-15 (latin9) to take over sooner or later, being as how it has a
> euro sign in it.
Yes. I put this (all right, SuSe put it for me, but commented)
export LANG=es_ES.ISO-8859-1

I only had to comment out this line in my .profile.

Zunbeltz Izaola

0 new messages