You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Press ["] once to get «.», twice for "." (or vice-versa if TeX-quote-after-quote is non-nil).
Notes
Brackets indicate a key.
Dot indicates the point or cursor position.
Double angular brackets are the hypothetical current value of TeX-quote-open and TeX-quote-close but could be different depending on the applied language style, e.g. "< and ">, respectively.
Press ["] once, depending on the value of TeX-quote-after-quote and if TeX-quote-open and TeX-quote-close are single or double characters, different behavior are present. Worst case scenario is that only part of the quote string is inserted, moreover partly in the previous line and partly in the current, while deleting a previous character. Refer to syl20bnr/spacemacs#15003 for specific "experiments".
Steps to reproduce the problem
On vanilla Emacs, install auctex and smartparens.
Open a .tex file including \usepackage[german]{babel} (parsing on load must be activated to successfully load the language style).
Expected behavior
Press
["]once to get«.», twice for"."(or vice-versa ifTeX-quote-after-quoteis non-nil).Notes
TeX-quote-openandTeX-quote-closebut could be different depending on the applied language style, e.g."<and">, respectively.Actual behavior
Press
["]once, depending on the value ofTeX-quote-after-quoteand ifTeX-quote-openandTeX-quote-closeare single or double characters, different behavior are present. Worst case scenario is that only part of the quote string is inserted, moreover partly in the previous line and partly in the current, while deleting a previous character. Refer to syl20bnr/spacemacs#15003 for specific "experiments".Steps to reproduce the problem
auctexandsmartparens.\usepackage[german]{babel}(parsing on load must be activated to successfully load the language style).I leave here my
.emacsfor reference.Workaround
A workaround has been documented in syl20bnr/spacemacs#15003 that allows the use
smartparens.Environment & version information
smartparensversion: 20210817.1912major-mode:latex-modeM-x emacs-version): GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2020-09-19