From 64dce3c5c77eb90e59b73c293e15b96cd275855f Mon Sep 17 00:00:00 2001 From: Hugo Heagren Date: Fri, 10 Jan 2025 13:01:28 +0000 Subject: [PATCH] ox-latex.el: new custom var `org-latex-default-class-options' * lisp/ox-latex.el (org-latex-default-class-options): New option. (latex): Default to `org-latex-default-class-options'. --- lisp/ox-latex.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 782be244b..b99fae1df 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -121,7 +121,7 @@ (org-export-define-backend 'latex (:filter-verse-block . org-latex-clean-invalid-line-breaks)) :options-alist '((:latex-class "LATEX_CLASS" nil org-latex-default-class t) - (:latex-class-options "LATEX_CLASS_OPTIONS" nil nil t) + (:latex-class-options "LATEX_CLASS_OPTIONS" nil org-latex-default-class-options t) (:latex-header "LATEX_HEADER" nil nil newline) (:latex-header-extra "LATEX_HEADER_EXTRA" nil nil newline) (:description "DESCRIPTION" nil nil parse) @@ -423,6 +423,12 @@ (defcustom org-latex-default-class "article" :group 'org-export-latex :type '(string :tag "LaTeX class")) +(defcustom org-latex-default-class-options "" + "The defailt options passed to the document class." + :group 'org-export-latex + :type '(string :tag "LaTeX class") + :safe #'stringp) + (defcustom org-latex-classes '(("article" "\\documentclass[11pt]{article}" -- 2.39.5