Compare commits

...

2 Commits

Author SHA1 Message Date
58d9e9a2ca Fix typo 2024-02-11 16:19:39 +01:00
8602371251 Use file local variables instead of buffer local variables 2024-02-11 16:19:02 +01:00

View File

@ -2621,7 +2621,7 @@ region becomes the block BODY. Otherwise, insert an empty block."
(end-of-line)))))
(with-eval-after-load 'org
(keymap-set org-mode-map "C-c C-;" #'org-insert-source-block))
(keymap-set org-mode-map "C-c C-;" #'org-insert-source-block))
#+end_src
#+caption[Setup =org-src=]:
@ -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=]: