Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latex Configuration Leads to Problems with Quotes #1391

Open
dstrohmaier opened this issue Dec 21, 2022 · 0 comments
Open

Latex Configuration Leads to Problems with Quotes #1391

dstrohmaier opened this issue Dec 21, 2022 · 0 comments

Comments

@dstrohmaier
Copy link

dstrohmaier commented Dec 21, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant