From d6306f5e790cd2582b7d1094c4f4cb2973e44b73 Mon Sep 17 00:00:00 2001
From: Lee <ler762@users.sourceforge.net>
Date: Mon, 22 Oct 2018 23:22:11 -0400
Subject: [PATCH] have the 'print' section of the stylesheet convert &code;
 strings

We need docbook to convert &code; strings to latin1/ISO-8859 when
creating text files like AUTHORS or README
Add a style-specification id="print-notoc" section so we can
create text files without a table of contents
---
 doc/source/ldp.dsl.in | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/doc/source/ldp.dsl.in b/doc/source/ldp.dsl.in
index 1c0ffb0e..95dc16b6 100644
--- a/doc/source/ldp.dsl.in
+++ b/doc/source/ldp.dsl.in
@@ -46,8 +46,8 @@
   ;; Put chapter labels in running heads?
   #t)
 
-;; this is necessary because right now jadetex does not understand
-;; symbolic entities, whereas things work well with numeric entities.
+;; this is the 'print' portion of the stylesheet so we want to
+;; convert ampersand-code strings to character values
 (declare-characteristic preserve-sdata?
   "UNREGISTERED::James Clark//Characteristic::preserve-sdata?"
   #f)
@@ -246,6 +246,22 @@
 </style-specification>
 
 
+<style-specification id="print-notoc" use="print">
+<style-specification-body>
+
+;; ===================================================
+;; Variant without TOC
+;; ===================================================
+
+(define %generate-article-toc%
+  ;; Should a Table of Contents be produced for Articles?
+  ;; If true, a Table of Contents will be generated for each 'Article'.
+  #f)
+
+</style-specification-body>
+</style-specification>
+
+
 <!--
 ;; ===================================================
 ;; customize the html stylesheet; borrowed from Cygnus
-- 
2.49.0