[Emacs] Remove references to minted, default to engraved backend
This commit is contained in:
parent
7e41b4cf70
commit
7e1d96e677
@ -4398,9 +4398,9 @@ 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-src-block-backend>>
|
||||||
<<org-latex-default-packages>>
|
<<org-latex-default-packages>>
|
||||||
<<org-export-latex-hyperref-format>>
|
<<org-export-latex-hyperref-format>>
|
||||||
<<org-export-latex-minted-options>>
|
|
||||||
<<org-latex-pdf-process>>
|
<<org-latex-pdf-process>>
|
||||||
<<org-latex-logfiles-add-extensions>>
|
<<org-latex-logfiles-add-extensions>>
|
||||||
<<org-re-reveal>>
|
<<org-re-reveal>>
|
||||||
@ -5031,18 +5031,20 @@ coloring is ~engraved~.
|
|||||||
(use-package engrave-faces
|
(use-package engrave-faces
|
||||||
:defer t
|
:defer t
|
||||||
:straight (:build t)
|
:straight (:build t)
|
||||||
:after org
|
:after org)
|
||||||
:config
|
|
||||||
(with-eval-after-load 'org
|
|
||||||
(csetq org-latex-src-block-backend 'engraved)))
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
#+name: org-latex-src-block-backend
|
||||||
|
#+begin_src emacs-lisp :tangle no
|
||||||
|
(require 'engrave-faces)
|
||||||
|
(csetq org-latex-src-block-backend 'engraved)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
The default packages break my LaTeX exports: for some reasons, images
|
The default packages break my LaTeX exports: for some reasons, images
|
||||||
are not loaded and exported in PDFs, so I needed to redifine the
|
are not loaded and exported in PDFs, so I needed to redifine the
|
||||||
default packages excluding the one that broke my exports; namely, I
|
default packages excluding the one that broke my exports; namely, I
|
||||||
need to remove ~inputenc~, ~fontenc~ and ~grffile~. I also added some default
|
need to remove ~inputenc~, ~fontenc~ and ~grffile~. I also added some default
|
||||||
packages:
|
packages:
|
||||||
- ~minted~ for syntax highlighting
|
|
||||||
- ~cleveref~ for better references to various elements.
|
- ~cleveref~ for better references to various elements.
|
||||||
- ~svg~ for inserting SVG files in PDF outputs
|
- ~svg~ for inserting SVG files in PDF outputs
|
||||||
- ~booktabs~ for nicer tables
|
- ~booktabs~ for nicer tables
|
||||||
@ -5054,8 +5056,7 @@ packages:
|
|||||||
("" "grffile" t)))
|
("" "grffile" t)))
|
||||||
(delete package org-latex-default-packages-alist))
|
(delete package org-latex-default-packages-alist))
|
||||||
|
|
||||||
(dolist (package '(("" "minted")
|
(dolist (package '(("capitalize" "cleveref")
|
||||||
("capitalize" "cleveref")
|
|
||||||
("" "svg")
|
("" "svg")
|
||||||
("" "booktabs")
|
("" "booktabs")
|
||||||
("" "tabularx")))
|
("" "tabularx")))
|
||||||
@ -5071,15 +5072,6 @@ since we are using ~cleveref~:
|
|||||||
(setq org-export-latex-hyperref-format "\\ref{%s}")
|
(setq org-export-latex-hyperref-format "\\ref{%s}")
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
And Minted should be default break lines if a line is too long:
|
|
||||||
#+name: org-export-latex-minted-options
|
|
||||||
#+begin_src emacs-lisp :tangle no
|
|
||||||
(setq org-latex-minted-options '(("breaklines")
|
|
||||||
("tabsize" "2")
|
|
||||||
("frame" "single")
|
|
||||||
("autogobble")))
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
When it comes to the export itself, the latex file needs to be
|
When it comes to the export itself, the latex file needs to be
|
||||||
processed several times through XeLaTeX in order to get some
|
processed several times through XeLaTeX in order to get some
|
||||||
references right. Don’t forget to also run bibtex!
|
references right. Don’t forget to also run bibtex!
|
||||||
|
Loading…
Reference in New Issue
Block a user