Add LaTeX mode to the file variables for LaTeX export
This commit is contained in:
parent
1356d65fcf
commit
57576de1f1
@ -3,7 +3,7 @@
|
|||||||
#+latex_class: article-local
|
#+latex_class: article-local
|
||||||
#+latex_class_options: [11pt,a4paper,english,svgnames]
|
#+latex_class_options: [11pt,a4paper,english,svgnames]
|
||||||
#+macro: kbd (eval (by-backend-kbd-org-macro $1))
|
#+macro: kbd (eval (by-backend-kbd-org-macro $1))
|
||||||
#+options: ^:{}
|
#+options: ^:{} timestamp:nil
|
||||||
#+property: header-args:emacs-lisp :exports code :tangle init.el
|
#+property: header-args:emacs-lisp :exports code :tangle init.el
|
||||||
#+startup: showeverything
|
#+startup: showeverything
|
||||||
#+begin_src latex :noweb yes :results raw
|
#+begin_src latex :noweb yes :results raw
|
||||||
@ -2440,6 +2440,8 @@ else:
|
|||||||
(with-eval-after-load 'ox-latex
|
(with-eval-after-load 'ox-latex
|
||||||
(setopt
|
(setopt
|
||||||
org-latex-compiler "lualatex"
|
org-latex-compiler "lualatex"
|
||||||
|
org-latex-compiler-file-string
|
||||||
|
"%% -*- LaTeX; -*-\n%% Intended LaTeX compiler: %s\n"
|
||||||
org-latex-hyperref-template "\\hypersetup{
|
org-latex-hyperref-template "\\hypersetup{
|
||||||
pdfauthor={%a},
|
pdfauthor={%a},
|
||||||
pdftitle={%t},
|
pdftitle={%t},
|
||||||
@ -3354,6 +3356,9 @@ environments and non-floating breakable LaTeX environments by means of
|
|||||||
(make-variable-buffer-local 'org-export-filter-src-block-functions)
|
(make-variable-buffer-local 'org-export-filter-src-block-functions)
|
||||||
(add-to-list 'org-export-filter-src-block-functions
|
(add-to-list 'org-export-filter-src-block-functions
|
||||||
'org-latex-engraved-source-block-filter)
|
'org-latex-engraved-source-block-filter)
|
||||||
|
(make-variable-buffer-local 'org-latex-compiler-file-string)
|
||||||
|
(setq org-latex-compiler-file-string
|
||||||
|
"%% -*- mode: LaTeX; -*-\n%% Intended LaTeX compiler: %s\n")
|
||||||
(when (fboundp 'smart-latex-engrave-org-source-blocks)
|
(when (fboundp 'smart-latex-engrave-org-source-blocks)
|
||||||
(smart-latex-engrave-org-source-blocks)))
|
(smart-latex-engrave-org-source-blocks)))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
Loading…
Reference in New Issue
Block a user