Use file local variables instead of buffer local variables
This commit is contained in:
parent
c408bdb50d
commit
8602371251
13
README.org
13
README.org
@ -4341,7 +4341,7 @@ exporting from Org-mode to LaTeX.
|
||||
(when (require 'ox-latex nil 'noerror)
|
||||
;; https://emacs.stackexchange.com/questions/47347/
|
||||
;; customizing-org-latex-title-command-to-edit-title-page
|
||||
(make-variable-buffer-local 'org-latex-classes)
|
||||
(make-local-variable 'org-latex-classes)
|
||||
(cl-pushnew '("article-local"
|
||||
"\\documentclass[11pt]{article}
|
||||
[NO-DEFAULT-PACKAGES]
|
||||
@ -4354,19 +4354,14 @@ exporting from Org-mode to LaTeX.
|
||||
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
|
||||
org-latex-classes :key #'car :test #'equal)
|
||||
|
||||
(make-variable-buffer-local 'org-latex-title-command)
|
||||
(setq org-latex-title-command (concat title-page))
|
||||
|
||||
(make-variable-buffer-local 'org-latex-toc-command)
|
||||
(setq org-latex-toc-command "
|
||||
(setq-local org-latex-title-command (concat title-page))
|
||||
(setq-local org-latex-toc-command "
|
||||
\\tableofcontents\\label{toc}
|
||||
\\listoflistings
|
||||
\\listoftables
|
||||
\\newpage
|
||||
")
|
||||
|
||||
(make-variable-buffer-local 'org-latex-subtitle-format)
|
||||
(setq org-latex-subtitle-format ""))
|
||||
(setq-local org-latex-subtitle-format ""))
|
||||
#+end_src
|
||||
|
||||
#+caption[Show a title-page example for =org-latex-title-command=]:
|
||||
|
Loading…
Reference in New Issue
Block a user