[pdftex] How to handle different tex encoding files? SOLVED :-)

Gengis Kanhg Toledo Ramírez gengiskanhg.geo at yahoo.com
Sat Feb 24 01:19:40 CET 2007


My apologies if these mails are out of topic. I thing
an emacs forum is 
not the best place, maybe a latex one, but I could not
be sure if latex 
have the same problem that pdflatex, now I thing yes.

Thank you very much, your suggestions were helpfully
to me, special that 
from Jaime E. Villate. That's the key.

Only I should add two notes:

1. Using emacs, after I did:
 >   C-x RET f
 > then, write down latin-1-unix
 > You will notice that ** appears in the status bar,
indicating that the
 > buffer has been changed and needs to be saved
again.

I did "C-x C-s" to safe the buffer, the system again
asked me for what 
encoding will be used. I use <tab> to view a list of
available enconding 
and I selected the one that best matched
(latin-1-unix): 
"iso-latin-1-with-esc"

I close (kill) the buffer and reopen to prove it. In
some files I had to 
erase some special not understood "codes" for
mathematics text and in 
one cases parenthesis were not be recognized. Maybe I
mixed one encoding 
to other and after I edited, so I created a bad soup,
but fortunately 
unrecognised characters were a few and I could modify
them easily.

2. Like some of you said, If there is almost one
character not 
recognised (bad coded) in our file after the encoding
conversion, Emacs 
ask for the encoding to be used, so we should be
careful and choose 
"no-change" and change the bad characters instead.




My politic as a member of the free software community
is to give back to 
the community the problem and solution in the best
understood way, so I 
ask you if you can recommend me some internet place to
put it or if 
these mails are available from web searchers.


Thank you very much.

Regards.



Jaime E. Villate wrote:
> This question is off-topic in this list (pdftex); in
any case, here
> goes an answer, with apologies to the list.
> 
> On Thu, 2007-02-22 at 13:35 -0800, Gengis Kanhg
Toledo Ramírez wrote:
>> Yesterday I copy text from a PDF and paste it to
one
>> latex file. When I tried to save the file with
emacs it ask me about
>> bad encoding, so I should select one encoding from
a list. I pause
>> the saving opperation and search the web for "what
to do?", I didn't
>> find any help so I had to decide, so I select
"emacs-mule" encoding
>> (mule=Multi Language encoding)
> 
> that was a mistake. You should have selected
latin-1-unix.
> You can correct the problem easily: open the file
again with Emacs
> and follow this sequence of menus:
>   Options -> Mule -> Set Coding System -> For Saving
this Buffer
> or, if you are an Emacs purist:
>   C-x RET f
> then, write down latin-1-unix
> You will notice that ** appears in the status bar,
indicating that the
> buffer has been changed and needs to be saved again.
> 
> How did I know that you had to use latin 1? because
according to
> the error message, you might have
\usepackage[latin1]{inputenc}
> in your preamble. Notice that it is now recommended
to move into
> UTF8 which is more general. To do that you can use
> \usepackage[utf8]{inputenc] an save all your files
in UTF8. An easier
> way to convert to a different encoding, without
having to open
> the file with Emacs, is using the program iconv.
> 
> Regards,
> Jaime Villate
> 
> P.S. congratulations on your thesis, I'm very
interested in Maglev.
> 
> 
> 
> 


 
____________________________________________________________________________________
The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php


More information about the pdftex mailing list