branch: main commit 9e3e14e03e1ab5d8a95d8bffd5b28837de00c263 Author: Arash Esbati <ar...@gnu.org> Commit: Arash Esbati <ar...@gnu.org>
Support the \DocumentMetadata macro * font-latex.el (font-latex-built-in-keyword-classes): * latex.el (LaTeX-common-initialization): Add support for the \DocumentMetadata macro. --- font-latex.el | 2 +- latex.el | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/font-latex.el b/font-latex.el index 1d96e044..57149bda 100644 --- a/font-latex.el +++ b/font-latex.el @@ -377,7 +377,7 @@ variable `font-latex-fontify-sectioning'." ',num) ("RenewEnvironmentCopy" "{{") ("DeclareEnvironmentCopy" "{{") ("ShowEnvironment" "{") - ("listfiles" "[") ("hyphenation" "{")) + ("listfiles" "[") ("hyphenation" "{") ("DocumentMetadata" "{")) font-lock-function-name-face 2 command) ("function-noarg" ("enspace" "enskip" "quad" "qquad" "nonumber" diff --git a/latex.el b/latex.el index 6a24c16b..953d9e74 100644 --- a/latex.el +++ b/latex.el @@ -9130,7 +9130,23 @@ function would return non-nil and `(match-string 1)' would return "Position 1") (TeX-arg-completing-read ("top" "first" "last") "Position 2") - 2) )) + 2) + + '("DocumentMetadata" + (TeX-arg-key-val (("backend") + ("pdfversion") + ("uncompress") + ("lang") + ("pdfstandard" ("A-1b" "A-2a" "A-2b" "A-2u" "A-3a" + "A-3b" "A-3u" "A-4" "A-4E" "A-4F" + "X-4" "X-4p" "X-5g" "X-5n" "X-5pg" + "X-6" "X-6n" "X-6p" "UA-1" "UA-2")) + ("xmp" ("true" "false")) + ("colorprofiles") + ;; Skip the individual modules: + ("testphase" ("phase-I" "phase-II" "phase-III")) + ("debug" ("para" "log" "uncompress" "pdfmanagement" + "firstaidoff" "xmp-export" "tagpdf"))))) )) (TeX-run-style-hooks "LATEX")