[Emacs] Better settings for LaTeX export with source code

This commit is contained in:
Lucien Cartier-Tilet 2022-06-26 22:23:41 +02:00
parent 914bfdb3b6
commit 3bf05c8141
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -1662,7 +1662,7 @@ configuration for the ~mu4e~ package itself.
`(lambda () (visual-line-mode 1))) `(lambda () (visual-line-mode 1)))
:gfhook ('mu4e-view-mode-hook (mu4e-view-mode--prepare)) :gfhook ('mu4e-view-mode-hook (mu4e-view-mode--prepare))
:config :config
(with-eval-after-load "mm-decode" (with-eval-after-load 'mm-decode
(add-to-list 'mm-discouraged-alternatives "text/html") (add-to-list 'mm-discouraged-alternatives "text/html")
(add-to-list 'mm-discouraged-alternatives "text-richtext")) (add-to-list 'mm-discouraged-alternatives "text-richtext"))
@ -4386,7 +4386,6 @@ extended however we like!
<<org-babel-load-languages>> <<org-babel-load-languages>>
<<org-use-sub-superscripts>> <<org-use-sub-superscripts>>
<<org-latex-compiler>> <<org-latex-compiler>>
<<org-latex-listings>>
<<org-latex-default-packages>> <<org-latex-default-packages>>
<<org-export-latex-hyperref-format>> <<org-export-latex-hyperref-format>>
<<org-export-latex-minted-options>> <<org-export-latex-minted-options>>
@ -5015,20 +5014,15 @@ variable:
#+END_SRC #+END_SRC
A new backend that was introduced in org-mode for LaTeX source block A new backend that was introduced in org-mode for LaTeX source block
coloring is ~engraved~, relying on ~engraved-faces~. Lets install this coloring is ~engraved~.
package. #+BEGIN_SRC emacs-lisp
#+begin_src emacs-lisp
(use-package engrave-faces (use-package engrave-faces
:straight (:build t)
:defer t :defer t
:after ox) :straight (:build t)
#+end_src :after org
:config
We can now tell Emacs to use the ~engraved~ backend. (with-eval-after-load 'org
#+NAME: org-latex-listings (csetq org-latex-src-block-backend 'engraved)))
#+BEGIN_SRC emacs-lisp :tangle no
(with-eval-after-load 'engrave-faces
(setq org-latex-listings 'engraved))
#+END_SRC #+END_SRC
The default packages break my LaTeX exports: for some reasons, images The default packages break my LaTeX exports: for some reasons, images