LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-13-2005, 02:45 AM   #1
bnj
Member
 
Registered: Apr 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 70

Rep: Reputation: 15
text encoding, emacs and LaTeX.


Hello,

I would like to know how to check the encoding of a text file (UTF-8? Latin-1? other?).
All the editors I use on my computer (emacs, kwrite) seem to code by default in UTF-8, but LaTeX seems to assume the file is latin-1. Therefore, I have to change the encoding each time I write a new file.

So, my questions are:
- how to check the encoding of a text file?
- how to force a text editor (emacs, for example) to use a specific encoding by default?
- how to make LaTeX accept UTF-8?

Thank you in advance for your answer to any of these questions.

Benjamin

Last edited by bnj; 10-13-2005 at 04:13 AM.
 
Old 10-13-2005, 03:46 AM   #2
enemorales
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Rep: Reputation: 30
Latex and UTF

It looks like

\usepackage[utf8]{inputenc}

does the job.

(See http://www.bidon.ca/article103.html)
 
Old 10-13-2005, 07:56 AM   #3
bnj
Member
 
Registered: Apr 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 70

Original Poster
Rep: Reputation: 15
Thank you. That works great.

Now does anybody have the answer to the other questions? I would really like to have more control on the encoding of my files.

Best regards,

Benjamin
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LaTex text/graphic overlay edgjerp Linux - Software 1 02-27-2006 04:52 AM
find out encoding of text kpachopoulos Linux - General 0 08-28-2005 03:03 PM
html to text + encoding? David the H. Linux - General 6 11-22-2004 05:10 AM
cannot insert latex environment using emacs (C-c C-e) with auctex parv Linux - Software 6 09-02-2004 01:19 AM
best text editor for LaTeX ryancw Linux - Newbie 1 09-01-2003 04:19 PM


All times are GMT -5. The time now is 07:11 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration