In LaTeX mode, when I type \" (to produce a Umlaut like ö, ä or ü in the resulting PDF) emacs replaces it by ''\` (two single quotation marks, a backslash, and a backtick) which does not work for typesetting Umlaute. There is a related question here. However I want to turn off this replacing under all circumstances, so that pressing " always inserts a literal " for all languages and not two single ' or anything else.
1 Answer
You can try setting the following variables, which are defined in tex.el
.
(setq TeX-open-quote "\""
TeX-close-quote "\"")
This allows me to enter "
literally with LaTeX-mode
.
-
-
1Are you using some autopairing packages like
smartparens
? You can try disabling them if yes. You can also check what the"
key is bound to inLaTeX-mode
. That is how I identified the variables to customize. Aug 5 at 14:54
Here is some "quoted material"
and the quotes will be replaced by double backticks on the left and double ticks (single quotes) on the right, but if I sayHere is an \"umlauted letter
, it is left as is. Processing it throughpdflatex
shows the expected. Do you have some yasnippet or some abbrev-like mechanism operating? You might want to try withemacs -q -l minimal.el
whereminimal.el
just loads AucTeX without the rest of your configuration. If that works as expected, bisect your init file to find the culprit.pdflatex
, try for example\documentclass{article} \usepackage{lmodern} \usepackage[T1]{fontenc} \begin{document} foo föö \end{document}
. Just make sure you save the .tex file in UTF-8. No need for XeLaTeX or LuaLaTeX.