ox-texinfo: Allow to set a different title for hard copy

* lisp/ox-texinfo.el (texinfo): Provide new export property.
(org-texinfo-template): Use dedicated title for hard copy, when
available.
This commit is contained in:
Nicolas Goaziou 2014-08-05 22:53:19 +02:00
parent e0dbe1c776
commit 73809c1aa8
1 changed files with 3 additions and 2 deletions

View File

@ -128,7 +128,8 @@
(:subauthor "SUBAUTHOR" nil nil newline)
(:texinfo-dircat "TEXINFO_DIR_CATEGORY" nil nil t)
(:texinfo-dirtitle "TEXINFO_DIR_TITLE" nil nil t)
(:texinfo-dirdesc "TEXINFO_DIR_DESC" nil nil t)))
(:texinfo-dirdesc "TEXINFO_DIR_DESC" nil nil t)
(:texinfo-printed-title "TEXINFO_PRINTED_TITLE" nil nil t)))
@ -770,7 +771,7 @@ holding export options."
;; Title
"@finalout\n"
"@titlepage\n"
"@title " title "\n"
(format "@title %s\n" (or (plist-get info :texinfo-printed-title) title))
(let ((subtitle (plist-get info :subtitle)))
(and subtitle
(org-element-normalize-string