aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Stokely <murray@FreeBSD.org>2001-09-02 02:37:50 +0000
committerMurray Stokely <murray@FreeBSD.org>2001-09-02 02:37:50 +0000
commit598555cf3f4f68e2aa32de4371d0ce6425343dad (patch)
treed5132a9eddfa5d3b4cf7b5880c369a5b717008ff
parent9fd01c21c2a9ff8ef113a3823450d33f1ff811c4 (diff)
downloaddoc-598555cf3f4f68e2aa32de4371d0ce6425343dad.tar.gz
doc-598555cf3f4f68e2aa32de4371d0ce6425343dad.zip
Make the niceheaders output look at the page width to determine how
wide the rule should be beneath the chapter title. While I'm here, add variables for niceheader-rule-spacebefore and spaceafter. PR: 29403 Pointed out by: Nik
Notes
Notes: svn path=/head/; revision=10526
-rw-r--r--en_US.ISO8859-1/share/sgml/freebsd.dsl10
1 files changed, 7 insertions, 3 deletions
diff --git a/en_US.ISO8859-1/share/sgml/freebsd.dsl b/en_US.ISO8859-1/share/sgml/freebsd.dsl
index 9a3df00bdd..ebd7bb4e23 100644
--- a/en_US.ISO8859-1/share/sgml/freebsd.dsl
+++ b/en_US.ISO8859-1/share/sgml/freebsd.dsl
@@ -1,4 +1,4 @@
-<!-- $FreeBSD: doc/en_US.ISO8859-1/share/sgml/freebsd.dsl,v 1.12 2001/07/28 03:00:03 murray Exp $ -->
+<!-- $FreeBSD: doc/en_US.ISO8859-1/share/sgml/freebsd.dsl,v 1.13 2001/08/03 19:11:16 murray Exp $ -->
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
<!ENTITY freebsd.dsl PUBLIC "-//FreeBSD//DOCUMENT DocBook Language Neutral Stylesheet//EN" CDATA DSSSL>
@@ -62,6 +62,9 @@
<![ %output.print.niceheaders; [
+ (define niceheader-rule-spacebefore (* (HSIZE 5) %head-before-factor%))
+ (define niceheader-rule-spaceafter 0pt)
+
(define ($component-title$)
(let* ((info (cond
((equal? (gi) (normalize "appendix"))
@@ -157,9 +160,10 @@
(if (equal? (gi) (normalize "index"))
(empty-sosofo)
(make rule
- length: 475pt
+ length: %body-width%
display-alignment: 'start
- space-before: (* (HSIZE 5) %head-before-factor%)
+ space-before: niceheader-rule-spacebefore
+ space-after: niceheader-rule-spaceafter
line-thickness: 0.5pt)))))
(element authorgroup