瀏覽代碼

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.
Nicolas Goaziou 10 年之前
父節點
當前提交
73809c1aa8
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      lisp/ox-texinfo.el

+ 3 - 2
lisp/ox-texinfo.el

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