engrave-faces icon indicating copy to clipboard operation
engrave-faces copied to clipboard

`org-latex-engraved-theme` does not impact syntax highlighting

Open hydrobeam opened this issue 3 years ago • 3 comments

Description of issue

Setting org-latex-engraved-theme to t seems to only impact the background colour of exported code blocks in pdf, and the syntax highlighting remains the default colour. However, specifying:

#+attr_latex: :engraved-theme THEME

above a specific code block causes it to be correctly highlighted.

setting #+latex_engraved_theme: THEME in the file does not cause syntax highlighting to occur.

Screenshots

  • Appearance of source code in buffer image

  • The way it's rendered normally image

  • Appearance of export with specifying the properties image

Config

I'm using Doom Emacs, here's my relevant config

  • engrave-faces:
(use-package! engrave-faces-latex
  :after ox-latex
  :config
  (add-to-list 'org-latex-engraved-options '("linenos" "true"))
  (setq org-latex-engraved-theme "t")
  )
  • general org config
  (setq org-latex-src-block-backend 'engraved)

hydrobeam avatar Sep 02 '22 16:09 hydrobeam

Have you tried setting org-latex-engraved-theme to t not "t" ?

tecosaur avatar Sep 02 '22 17:09 tecosaur

Have you tried setting org-latex-engraved-theme to t not "t" ?

If i do that, then the I get an error in the modeline when compiling to pdf: Wrong type argument: stringp, t I activated edebug while doing this, here's the output: https://pastebin.com/ErDPELdg

hydrobeam avatar Sep 02 '22 17:09 hydrobeam

This may be fixed by https://git.tecosaur.net/tec/org-mode/commit/3c18d1dfb3f7914f253e26ee3be7813d46659307

tecosaur avatar Sep 04 '22 05:09 tecosaur

Let me know if this is not fixed.

tecosaur avatar Dec 05 '22 17:12 tecosaur