[texhax] Using accented characters in source

Heiko Oberdiek heiko.oberdiek at googlemail.com
Sat May 1 21:12:04 CEST 2010


On Sat, May 01, 2010 at 02:46:34PM -0400, Michael Barr wrote:

> On Sat, 1 May 2010, Lars Madsen wrote:
> 
> >In try one of the following
> >
> >\usepackage[ansinew]{inputenc} % std win encoding
> >\usepackage[latin1]{inputenc} % latin 1
> >\usepackage[applemac]{inputenc} % this is the default in TeXShop on MAC
> >\usepackage[utf8]{inputenc} % default in many linux dists, and in
> >% TeXWorks on all platforms
> >
> 
> None of those encodings worked.  The first gave what looked like a
> comma (but wasn't quite) and the other three caused a character
> undefined error. But the log file told me that was being loaded was
> xxxx.def and the directory that it was located in.  So I looked at
> those files and the names cpxxx.def looked interesting.  In
> particular cp437.def seemed to give the correct definitions.  Later
> I poked around in the windows help file and discovered that code
> page 437 is the standard US encoding.  I didn't test anything
> besides my original file, but with that encoding, it seems to work.

Alternative:

\usepackage{selinput}
\SelectInputMappings{%
  eacute=é,
  ccedilla=ç,
  % ...
}

Then the package tries to find a matching encoding. 

Yours sincerely
  Heiko Oberdiek


More information about the texhax mailing list