Latex Configuration Leads to Problems with Quotes
dstrohmaier opened this issue · 0 comments
dstrohmaier commented
Problem
As documented in this commit, Prelude lets the smartparens package handle smart quotes in latex:
b774a24
This is not a good solution, because smartparens has a bug with regard to these quotes that has not been fixed and has been documented here:
Fuco1/smartparens#772
Possible Fix
The github issue also provides a possible fix for the Prelude situation. Insert this fix:
(sp-with-modes '(tex-mode
plain-tex-mode
latex-mode
LaTeX-mode)
(sp-local-pair "\"`" "\"'"
:unless '(sp-latex-point-after-backslash sp-in-math-p)
:post-handlers '(sp-latex-skip-double-quote)))
and remove
(setq TeX-close-quote "")
(setq TeX-open-quote "")
again, which were added in b774a24