Emacs org 模式:latex 片段的背景颜色(带有 org-highlight-latex-and-related ):要更改哪个变量?

Emacs org mode: background color of latex fragments (with `org-highlight-latex-and-related`) : which variable to change?

好的,所以我的 org-mode latex 片段的背景颜色略有偏离,但只有在我:

(setq org-highlight-latex-and-related '(native))

如图所示

它看起来类似于 ~~(代码)中涉及的背景突出显示功能。

有人知道怎么办吗?

奖金:

尝试过:

提示:

(defface org-latex-and-related
  (let ((font (cond ((assq :inherit custom-face-attributes)
             '(:inherit underline))
            (t '(:underline t)))))
    `((((class grayscale) (background light))
       (:foreground "DimGray" ,@font))
      (((class grayscale) (background dark))
       (:foreground "LightGray" ,@font))
      (((class color) (background light))
       (:foreground "SaddleBrown"))
      (((class color) (background dark))
       (:foreground "burlywood"))
      (t (,@font))))
  "Face used to highlight LaTeX data, entities and sub/superscript."
  :group 'org-faces
  :version "24.4"
  :package-version '(Org . "8.0"))

回答我自己的问题。

像往常一样,tecosaur got there first 并给出了内部结构的良好分解。

神奇的代码是

(require 'org-src)
(add-to-list 'org-src-block-faces '("latex" (:inherit default :extend t)))