summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/guile/skribilo/engine/info.scm22
-rw-r--r--src/guile/skribilo/package/base.scm11
2 files changed, 18 insertions, 15 deletions
diff --git a/src/guile/skribilo/engine/info.scm b/src/guile/skribilo/engine/info.scm
index 2744f4e..2f983b7 100644
--- a/src/guile/skribilo/engine/info.scm
+++ b/src/guile/skribilo/engine/info.scm
@@ -143,12 +143,14 @@
 ;*    block-title ::%chapter ...                                       */
 ;*---------------------------------------------------------------------*/
 (define (block-title obj e)
-  (let ((title    (markup-option obj :title))
-        (subtitle (markup-option obj :subtitle)))
-      (let ((title (if title title subtitle)))
-	 (if (string? title)
-	     title
-             (ast->string title)))))
+  (or (let ((title (markup-option obj :info-node)))
+        (and title (ast->string title)))
+      (let ((title    (markup-option obj :title))
+            (subtitle (markup-option obj :subtitle)))
+        (let ((title (if title title subtitle)))
+          (if (string? title)
+              title
+              (ast->string title))))))
 
 ;*---------------------------------------------------------------------*/
 ;*    check-node-title-conflicts ...                                   */
@@ -600,7 +602,7 @@
 ;*    info ::%section ...                                              */
 ;*---------------------------------------------------------------------*/
 (markup-writer 'section info-engine
-  :options '(:title :html-title :number :toc :file :env)
+  :options '(:title :info-node :number :toc :file :env)
   :action (lambda (n e)
             (let ((body  (markup-body n))
                   (title (markup-option n :title)))
@@ -621,7 +623,7 @@
 ;*    info ::%subsection ...                                           */
 ;*---------------------------------------------------------------------*/
 (markup-writer 'subsection info-engine
-  :options '(:title :html-title :number :toc :env :file)
+  :options '(:title :info-node :number :toc :env :file)
   :action (lambda (n e)
             (let ((body  (markup-body n))
                   (title (markup-option n :title)))
@@ -638,7 +640,7 @@
 ;*    info ::%subsubsection ...                                        */
 ;*---------------------------------------------------------------------*/
 (markup-writer 'subsubsection info-engine
-  :options '(:title :html-title :number :toc :env :file)
+  :options '(:title :info-node :number :toc :env :file)
   :action (lambda (n e)
             (let ((body  (markup-body n))
                   (title (markup-option n :title)))
@@ -664,7 +666,7 @@
 ;*    info ::%chapter ...                                              */
 ;*---------------------------------------------------------------------*/
 (markup-writer 'chapter info-engine
-  :options '(:title :number :file :toc :html-title :env)
+  :options '(:title :number :file :toc :info-node :env)
   :action (lambda (n e)
             (let ((body   (markup-body n))
                   (file   (markup-option n :file))
diff --git a/src/guile/skribilo/package/base.scm b/src/guile/skribilo/package/base.scm
index c8aac4a..862d146 100644
--- a/src/guile/skribilo/package/base.scm
+++ b/src/guile/skribilo/package/base.scm
@@ -1,6 +1,6 @@
 ;;; base.scm -- The base markup package of Skribe/Skribilo.
 ;;;
-;;; Copyright 2005, 2006, 2007, 2008  Ludovic Courtès  <ludo@gnu.org>
+;;; Copyright 2005, 2006, 2007, 2008, 2009  Ludovic Courtès  <ludo@gnu.org>
 ;;; Copyright 2003, 2004  Manuel Serrano
 ;;;
 ;;;
@@ -200,7 +200,8 @@
 			opts
 			:key
 			(ident #f) (class "chapter")
-			title (html-title #f) (file #f) (toc #t) (number #t))
+			title (html-title #f) (info-node #f)
+                        (file #f) (toc #t) (number #t))
    (new container
       (markup 'chapter)
       (ident (or ident (symbol->string (gensym "chapter"))))
@@ -227,7 +228,7 @@
 			opts
 			:key
 			(ident #f) (class "section")
-			title (file #f) (toc #t) (number #t))
+			title info-node (file #f) (toc #t) (number #t))
    (new container
       (markup 'section)
       (ident (or ident (symbol->string (gensym "section"))))
@@ -255,7 +256,7 @@
 			   opts
 			   :key
 			   (ident #f) (class "subsection")
-			   title (file #f) (toc #t) (number #t))
+			   title info-node (file #f) (toc #t) (number #t))
    (new container
       (markup 'subsection)
       (ident (or ident (symbol->string (gensym "subsection"))))
@@ -280,7 +281,7 @@
 			      opts
 			      :key
 			      (ident #f) (class "subsubsection")
-			      title (file #f) (toc #f) (number #t))
+			      title info-node (file #f) (toc #f) (number #t))
    (new container
       (markup 'subsubsection)
       (ident (or ident (symbol->string (gensym "subsubsection"))))