-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[WORKAROUND] LaTeX quotation mechanism is broken #15003
Comments
WORKAROUND When the 4th element of Add this snippet in (add-hook 'TeX-language-de-hook
(lambda ()
(add-to-list 'TeX-quote-language-alist '("german" "\"`" "\"'" nil)))) It will override the default German style. Now, if you press Rather than using TeX primitives for the Latin quotation marks, use UTF-8 chars. (add-hook 'TeX-language-de-hook
(lambda ()
(add-to-list 'TeX-quote-language-alist '("german" "«" "»" nil)))) Now, if you press |
You should directly changing Your workaround is self-referencing. |
No, it is not, the hook is triggered by the "German" is not a good label for the issue since this can happen for any language. |
The quotations you preferred is not the default for German. https://www.overleaf.com/learn/latex/Typesetting_quotations#Reference_guide |
try to disable smartparens-mode first |
Good suggestion, after successfully disabling |
I am to rewrite most language styles because some are missing and others are simply wrong. Still, this doesn't solve |
@vitaminace33 you don't have to exclude this package all together. spacemacs/core/templates/.spacemacs.template Lines 408 to 415 in b1c9ddc
Another way is to add a hook to |
Thx @lebensterben, I went fast and furious ;-) I notified upstream. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
Description
The LaTeX quotation mechanism has been broken recently (1 week or less, I would say). I don't know if Spacemacs is to blame or some other package. A pure, clean Emacs session with uptodate AUCTeX works as expected.
Reproduction guide 🪲
test.tex
.rm -r ~/.emacs*
, install AUCTeX,M-x package-install RET auctex RET
, and add the following to~/.emacs
.test.tex
. Press double quote"
once to get a two backticks``
, and twice to get a literal double quote"
. Write something and press double quote"
again once, two single quotes''
, or twice,literal double quote"
, to close the quote.babel
's line, save the file, restart and repeat the experiment (with now German quotation)."
will insert directly both opening and closing quotation marks (with cursor in between),``''
. German quotation (an any other language style) breaks: Pressing"
erases or swaps some characters of the previous line and wrong chars are inserted. Perhaps the package that changes the English behavior is now breaking the other styles.Observed behaviour: 👀 💔
If German (or other language) style is activated,
\usepackage[german]{babel}
, pressing"
erases or swaps some characters of the previous line and wrong chars are inserted.Expected behaviour: ❤️ 😄
If German (or other language) style is activated,
\usepackage[german]{babel}
, pressing"
once should insert"`"'
, twice""
.System Info 💻
The text was updated successfully, but these errors were encountered: