* Trouble compiling latex sources in UTF-8 encodind
@ 2005-01-17 15:06 giglio robbo' d'acciaio
2005-01-17 15:41 ` Peter Dyballa
[not found] ` <mailman.13693.1105977418.27204.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 8+ messages in thread
From: giglio robbo' d'acciaio @ 2005-01-17 15:06 UTC (permalink / raw)
I'didn't understood yet if it's a latex or emacs related problem, anyway...
Latex aborts when compiling file with accented letters, like àèìòù etc.
I use utf-8 encoding in my ~/.emacs:
(custom-set-variables
'(current-language-environment "UTF-8"))
and i've added support for unicode input encoding in my file.tex inserting:
\usepackage{ucs}
\usepackage[italian]{babel}
\usepackage[utf8x]{inputenc}
Any clue?
--
Non capisco tutta questa eccitazione per il multitasking: io sono anni
che leggo in bagno.
-- Carlo Landini
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Trouble compiling latex sources in UTF-8 encodind
2005-01-17 15:06 Trouble compiling latex sources in UTF-8 encodind giglio robbo' d'acciaio
@ 2005-01-17 15:41 ` Peter Dyballa
[not found] ` <mailman.13693.1105977418.27204.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 8+ messages in thread
From: Peter Dyballa @ 2005-01-17 15:41 UTC (permalink / raw)
Cc: help-gnu-emacs
Am 17.01.2005 um 16:06 schrieb giglio robbo' d'acciaio:
> I'didn't understood yet if it's a latex or emacs related problem,
> anyway...
> Latex aborts when compiling file with accented letters, like àèìòù etc.
> I use utf-8 encoding in my ~/.emacs:
>
> (custom-set-variables
> '(current-language-environment "UTF-8"))
I'd like to give all guilt to Emacs. GNU Emacs has a few options for a
file-encoding. It could have chosen one that is incompatible with what
Dominique Unruh thought would be UTF-8 content. Since you are obviously
using Latin glyphs why don't you use for LaTeX
\usepackage[latin1]{inputenc}
and
(set-default-coding-systems 'iso-latin-9-unix)
(set-keyboard-coding-system 'iso-latin-9)
(prefer-coding-system 'iso-latin-9-unix)
for GNU Emacs? Otherwise you might like to choose from this:
; (set-language-environment 'UTF-8)
(set-default-coding-systems 'utf-8)
(setq file-name-coding-system 'utf-8)
(setq default-buffer-file-coding-system 'utf-8)
; (set-keyboard-coding-system 'utf-8)
; (set-terminal-coding-system 'iso-8859-9-unix)
(set-terminal-coding-system 'utf-8)
;; (set-clipboard-coding-system 'utf-8)
;; (set-selection-coding-system 'utf-8)
(set-language-environment 'German)
; (prefer-coding-system 'iso-8859-15)
You can check with 'mule-diag what's the situation in Emacs.
--
Greetings
Pete
How many Microsoft engineers does it take to screw in a lightbulb?
None.
They just redefine "dark" as the new standard.
--
Mit friedvollen Grüßen
Pete
Es ist, glaub' ich, nichts so heiß, wie's gerne scheinen möchte.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Trouble compiling latex sources in UTF-8 encodind
[not found] ` <mailman.13693.1105977418.27204.help-gnu-emacs@gnu.org>
@ 2005-01-17 16:10 ` David Kastrup
2005-01-17 16:25 ` Matthias
0 siblings, 1 reply; 8+ messages in thread
From: David Kastrup @ 2005-01-17 16:10 UTC (permalink / raw)
Peter Dyballa <Peter_Dyballa@Web.DE> writes:
> Am 17.01.2005 um 16:06 schrieb giglio robbo' d'acciaio:
>
>> I'didn't understood yet if it's a latex or emacs related problem,
>> anyway...
>> Latex aborts when compiling file with accented letters, like àèìòù etc.
>> I use utf-8 encoding in my ~/.emacs:
>>
>> (custom-set-variables
>> '(current-language-environment "UTF-8"))
>
> I'd like to give all guilt to Emacs. GNU Emacs has a few options for a
> file-encoding. It could have chosen one that is incompatible with what
> Dominique Unruh thought would be UTF-8 content. Since you are
> obviously using Latin glyphs why don't you use for LaTeX
>
> \usepackage[latin1]{inputenc}
>
> and
>
> (set-default-coding-systems 'iso-latin-9-unix)
> (set-keyboard-coding-system 'iso-latin-9)
> (prefer-coding-system 'iso-latin-9-unix)
>
> for GNU Emacs?
Because it would be really devastatingly stupid to specify _different_
encodings for LaTeX and Emacs?
Either use latin1 with both, or latin9 with both, or if you really
must, utf-8 with both (but then preview-latex will not work properly).
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Trouble compiling latex sources in UTF-8 encodind
2005-01-17 16:10 ` David Kastrup
@ 2005-01-17 16:25 ` Matthias
2005-01-17 16:47 ` David Kastrup
0 siblings, 1 reply; 8+ messages in thread
From: Matthias @ 2005-01-17 16:25 UTC (permalink / raw)
David Kastrup <dak@gnu.org> wrote:
> Because it would be really devastatingly stupid to specify
> _different_ encodings for LaTeX and Emacs?
I don't understand... I've been using the following for years with a
latin-9 environment then a utf-8 one; never seen any problem...
(modify-coding-system-alist 'file "\\.tex\\'" 'iso-latin-1)
--
Matthias
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Trouble compiling latex sources in UTF-8 encodind
2005-01-17 16:25 ` Matthias
@ 2005-01-17 16:47 ` David Kastrup
2005-01-18 9:34 ` Matthias
0 siblings, 1 reply; 8+ messages in thread
From: David Kastrup @ 2005-01-17 16:47 UTC (permalink / raw)
Matthias <cimosque@free.fr> writes:
> David Kastrup <dak@gnu.org> wrote:
>
>> Because it would be really devastatingly stupid to specify
>> _different_ encodings for LaTeX and Emacs?
>
> I don't understand... I've been using the following for years with a
> latin-9 environment then a utf-8 one; never seen any problem...
>
> (modify-coding-system-alist 'file "\\.tex\\'" 'iso-latin-1)
But Peter did not recommend that. Peter recommended using
\usepackage[latin1]{inputenc} together with setting Emacs' encoding to
latin9 (aka iso-8859-15).
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Trouble compiling latex sources in UTF-8 encodind
2005-01-17 16:47 ` David Kastrup
@ 2005-01-18 9:34 ` Matthias
2005-01-18 23:37 ` giglio robbo' d'acciaio
0 siblings, 1 reply; 8+ messages in thread
From: Matthias @ 2005-01-18 9:34 UTC (permalink / raw)
> But Peter did not recommend that. Peter recommended using
> \usepackage[latin1]{inputenc} together with setting Emacs' encoding
> to latin9 (aka iso-8859-15).
You're right! I was reading eyes wide shut...
--
Matthias
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Trouble compiling latex sources in UTF-8 encodind
2005-01-18 9:34 ` Matthias
@ 2005-01-18 23:37 ` giglio robbo' d'acciaio
2005-01-19 10:54 ` David Kastrup
0 siblings, 1 reply; 8+ messages in thread
From: giglio robbo' d'acciaio @ 2005-01-18 23:37 UTC (permalink / raw)
Forgive me i I make dumb questions but this unicode stuff really drives me
crazy.
Once I've saved a file using unicode utf-8, how can I translate it into another
coding system, like latin-1 for istance, without messing 8bit chars?
Thanks
--
Non capisco tutta questa eccitazione per il multitasking: io sono anni
che leggo in bagno.
-- Carlo Landini
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Trouble compiling latex sources in UTF-8 encodind
2005-01-18 23:37 ` giglio robbo' d'acciaio
@ 2005-01-19 10:54 ` David Kastrup
0 siblings, 0 replies; 8+ messages in thread
From: David Kastrup @ 2005-01-19 10:54 UTC (permalink / raw)
giglio robbo' d'acciaio <daniele@mother.nostromo.wy> writes:
> Forgive me i I make dumb questions but this unicode stuff really
> drives me crazy.
> Once I've saved a file using unicode utf-8, how can I translate it
> into another coding system, like latin-1 for istance, without
> messing 8bit chars?
C-x RET f runs the command set-buffer-file-coding-system
which is an interactive compiled Lisp function in `international/mule'.
It is bound to C-x RET f, <menu-bar> <options> <mule> <set-various-coding-system> <set-buffer-file-coding-system>.
(set-buffer-file-coding-system CODING-SYSTEM &optional FORCE NOMODIFY)
Set the file coding-system of the current buffer to CODING-SYSTEM.
This means that when you save the buffer, it will be converted
according to CODING-SYSTEM. For a list of possible values of CODING-SYSTEM,
use M-x list-coding-systems.
If CODING-SYSTEM leaves the text conversion unspecified, or if it
leaves the end-of-line conversion unspecified, FORCE controls what to
do. If FORCE is nil, get the unspecified aspect (or aspects) from the
buffer's previous `buffer-file-coding-system' value (if it is
specified there). Otherwise, leave it unspecified.
This marks the buffer modified so that the succeeding C-x C-s
surely saves the buffer with CODING-SYSTEM. From a program, if you
don't want to mark the buffer modified, specify t for NOMODIFY.
If you know exactly what coding system you want to use,
just set the variable `buffer-file-coding-system' directly.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-01-19 10:54 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-17 15:06 Trouble compiling latex sources in UTF-8 encodind giglio robbo' d'acciaio
2005-01-17 15:41 ` Peter Dyballa
[not found] ` <mailman.13693.1105977418.27204.help-gnu-emacs@gnu.org>
2005-01-17 16:10 ` David Kastrup
2005-01-17 16:25 ` Matthias
2005-01-17 16:47 ` David Kastrup
2005-01-18 9:34 ` Matthias
2005-01-18 23:37 ` giglio robbo' d'acciaio
2005-01-19 10:54 ` David Kastrup
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).