[texhax] Double hyphen in Emacs LaTeX mode

Dan vi5u0-texhax at yahoo.co.uk
Wed Apr 28 15:05:51 CEST 2010


On Mon, 26 Apr 2010, Philipp Stephani wrote:

> Actually, it's a well-known behavior that's easy to reproduce. Just
> save and load/revert the following file:

> \documentclass{minimal}
> \usepackage[ngerman]{babel}
> \begin{document}

> \end{document}

> This is a convenience feature for Babel users. It is only activated
> when the file contains \usepackage{babel} while being loaded. I
> think it already existed in 11.85.

Yes, apologies.  It's all explained in section 5.4.1.2 of the TeXInfo
pages for AucTeX.  It's not entirely easy to reproduce, firstly
because it depends on the options given to \usepackage{babel}, and
secondly because there's a filename-dependence - e.g. try calling
Philipp's minimal example "index.tex": AucTeX then doesn't do the
hyphen conversion; whereas it does if you call the file "ondex.tex".
That explains why I haven't seen it before: I call most of my
hand-edited LaTeX documents "index.tex".

-- 

Regards,

Dan


More information about the texhax mailing list