0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 18:36:26 +00:00

lisp/ox-latex.el: Remove obsolete Babel and Polyglossia alists

* (org-latex--format-spec): The new variable is now `org-latex-language-alist'.
This commit is contained in:
Juan Manuel Macias 2022-07-26 18:01:52 +02:00 committed by Ihor Radchenko
parent bc875e5ccf
commit d37c0ee5fa
No known key found for this signature in database
GPG key ID: 6470762A7DA11D8B

View file

@ -1861,8 +1861,11 @@ INFO is a plist used as a communication channel."
"Create a format-spec for document meta-data.
INFO is a plist used as a communication channel."
(let ((language (let ((lang (plist-get info :language)))
(or (cdr (assoc-string lang org-latex-babel-language-alist t))
(nth 1 (assoc-string lang org-latex-polyglossia-language-alist t))
;; The second element in
;; `org-latex-language-alist' is always the
;; language name, regardless of the type of the
;; alist entry.
(or (nth 1 (assoc-string lang org-latex-language-alist t))
lang))))
`((?a . ,(org-export-data (plist-get info :author) info))
(?t . ,(org-export-data (plist-get info :title) info))