mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-25 14:32:52 +00:00
ox-latex: String variables are not file local safe
* lisp/ox-latex.el (org-latex-default-figure-position): (org-latex-default-quote-environment, org-latex-image-default-scale): (org-latex-reference-command): File local safe string variables allow to write Org files allowing to inject any command. Link: https://list.orgmode.org/ffa77c01d47b15dfc0ae687cab95fb01@posteo.net/
This commit is contained in:
parent
981402a93d
commit
80e7c9f80f
|
@ -413,8 +413,7 @@ use of a package such as hyperref or cleveref and then change the format string
|
||||||
to \"\\autoref{%s}\" or \"\\cref{%s}\" for example."
|
to \"\\autoref{%s}\" or \"\\cref{%s}\" for example."
|
||||||
:group 'org-export-latex
|
:group 'org-export-latex
|
||||||
:type 'string
|
:type 'string
|
||||||
:package-version '(Org . "9.5")
|
:package-version '(Org . "9.5"))
|
||||||
:safe #'stringp)
|
|
||||||
|
|
||||||
;;;; Preamble
|
;;;; Preamble
|
||||||
|
|
||||||
|
@ -734,8 +733,7 @@ or if the image is wrapped within a \"wrapfigure\" environment.
|
||||||
Scale overrides width and height."
|
Scale overrides width and height."
|
||||||
:group 'org-export-latex
|
:group 'org-export-latex
|
||||||
:package-version '(Org . "9.3")
|
:package-version '(Org . "9.3")
|
||||||
:type 'string
|
:type 'string)
|
||||||
:safe #'stringp)
|
|
||||||
|
|
||||||
(defcustom org-latex-image-default-height ""
|
(defcustom org-latex-image-default-height ""
|
||||||
"Default height for images.
|
"Default height for images.
|
||||||
|
@ -752,8 +750,7 @@ environment."
|
||||||
:group 'org-export-latex
|
:group 'org-export-latex
|
||||||
:type 'string
|
:type 'string
|
||||||
:version "26.1"
|
:version "26.1"
|
||||||
:package-version '(Org . "9.0")
|
:package-version '(Org . "9.0"))
|
||||||
:safe #'stringp)
|
|
||||||
|
|
||||||
(defcustom org-latex-inline-image-rules
|
(defcustom org-latex-inline-image-rules
|
||||||
`(("file" . ,(rx "."
|
`(("file" . ,(rx "."
|
||||||
|
@ -797,8 +794,7 @@ default we use here encompasses both."
|
||||||
"Default environment used to `quote' blocks."
|
"Default environment used to `quote' blocks."
|
||||||
:group 'org-export-latex
|
:group 'org-export-latex
|
||||||
:package-version '(Org . "9.5")
|
:package-version '(Org . "9.5")
|
||||||
:type 'string
|
:type 'string)
|
||||||
:safe #'stringp)
|
|
||||||
|
|
||||||
(defcustom org-latex-default-table-mode 'table
|
(defcustom org-latex-default-table-mode 'table
|
||||||
"Default mode for tables.
|
"Default mode for tables.
|
||||||
|
|
Loading…
Reference in a new issue