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 (Math) highlight is broken when auctex is installed #35

Open
milanglacier opened this issue Nov 23, 2022 · 0 comments
Open

Latex (Math) highlight is broken when auctex is installed #35

milanglacier opened this issue Nov 23, 2022 · 0 comments

Comments

@milanglacier
Copy link

milanglacier commented Nov 23, 2022

two versions of minimal config (one with auctex installed and one without auctex installed)

the first is without auctex installed:

(require 'package)
(setq package-user-dir "~/Downloads/emacs-package-dir")

(setq package-list '(poly-R poly-markdown ess))
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(package-initialize)

(unless package-archive-contents
  (package-refresh-contents))

(dolist (package package-list)
  (unless (package-installed-p package)
    (package-install package)))

(setq markdown-enable-math t)
(setq warning-minimum-level :error)

emacs -Q -l minimal-config.el opens the following rmd file: test.rmd

---
title: 'test rmd'
author: 'author'
date: '12/14/2021'
output: 
    bookdown::pdf_document2:
---

$y = \sum_{i=1}^n sin5x^3 + 2$

the rendering is the following:

Screen Shot 2022-11-23 at 01 16 05

and if with auctex installed:

(require 'package)
(setq package-user-dir "~/Downloads/emacs-package-dir")

(setq package-list '(poly-R poly-markdown ess))
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(package-initialize)

(unless package-archive-contents
  (package-refresh-contents))

(dolist (package package-list)
  (unless (package-installed-p package)
    (package-install package)))

(setq markdown-enable-math t)
(setq warning-minimum-level :error)

emacs -Q -l minimal-config.el opens the same file, will see that math (latex) highlight is broken:

Screen Shot 2022-11-23 at 01 17 16

It is clear that the highlight of the keyword (\sum) is broken, and the variable pitch for superscript and subscript is also broken

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