|
@@ -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))
|