[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: jadetex: page numbering
The following patch works for me (against 3.7): ------------------------------------------------------ diff -Naur jadetex-3.7-orig/jadetex.dtx jadetex-3.7/jadetex.dtx --- jadetex-3.7-orig/jadetex.dtx Fri Jun 22 22:41:03 2001 +++ jadetex-3.7/jadetex.dtx Mon Jul 2 10:03:53 2001 @@ -1606,6 +1606,9 @@ % Look out for the canonical 1in margins in TeX systems! % \begin{macrocode} \def\JadeSetPage{% + \ifnum\PageNumberRestart=1 + \global\c@page \@ne + \fi \ifnum\PageTwoSide=0 \global\@twosidefalse \else @@ -1741,9 +1744,6 @@ \fi \else \clearpage - \fi - \ifnum\PageNumberRestart=1 - \global\c@page \@ne \fi \fancyhf{}% \endDisplayNIC ------------------------------------------------------ However: - if you want to print double sided then you may well need some patches to openjade. Alternatively, add (or create) the following to your jadetex.cfg \def\PageTwoSide{1} \def\TwoSideStartOnRight{1} - If you don't want to restart page numbering at the Table of contents and Lists of Tables/Figures then you will need to change the stylesheets... ------------------ diff -Naur docbook-orig/print/dbdivis.dsl docbook/print/dbdivis.dsl --- docbook-orig/print/dbdivis.dsl Thu Sep 28 13:50:19 2000 +++ docbook/print/dbdivis.dsl Mon Jul 2 12:26:49 2001 @@ -69,7 +69,7 @@ (if %generate-book-toc% (make simple-page-sequence page-n-columns: %page-n-columns% - page-number-restart?: #t +;; page-number-restart?: #t page-number-format: ($page-number-format$ (normalize "toc")) use: default-text-style left-header: ($left-header$ (normalize "toc")) ---------------------- [You may not want this if you a printing a collection of books....] - If you want to print double sided and want your recto/verso title pages to *really* be recto/verso then the following patch from Richard Sharpe will fix that: ----------------------------------------- --- print/dbdivis.dsl.orig Mon Jul 2 00:06:19 2001 +++ print/dbdivis.dsl Mon Jul 2 00:20:06 2001 @@ -12,9 +12,14 @@ (nl (titlepage-info-elements (current-node) setinfo))) (make sequence (if %generate-set-titlepage% - (make sequence + (make simple-page-sequence + page-n-columns: %titlepage-n-columns% + input-whitespace-treatment: 'collapse + use: default-text-style (set-titlepage nl 'recto) - (set-titlepage nl 'verso)) + (make display-group + break-before: 'page + (set-titlepage nl 'verso))) (empty-sosofo)) (if (not (generate-toc-in-front)) @@ -52,9 +57,14 @@ (nl (titlepage-info-elements (current-node) bookinfo))) (make sequence (if %generate-book-titlepage% - (make sequence + (make simple-page-sequence + page-n-columns: %titlepage-n-columns% + input-whitespace-treatment: 'collapse + use: default-text-style (book-titlepage nl 'recto) - (book-titlepage nl 'verso)) + (make display-group + break-before: 'page + (book-titlepage nl 'verso))) (empty-sosofo)) (if (node-list-empty? dedication) @@ -124,9 +134,14 @@ (empty-node-list))))) (make sequence (if %generate-part-titlepage% - (make sequence + (make simple-page-sequence + page-n-columns: %titlepage-n-columns% + input-whitespace-treatment: 'collapse + use: default-text-style (part-titlepage nl 'recto) - (part-titlepage nl 'verso)) + (make display-group + break-before: 'page + (part-titlepage nl 'verso))) (empty-sosofo)) (if (not (generate-toc-in-front)) --- print/dbttlpg.dsl.orig Mon Jul 2 00:06:35 2001 +++ print/dbttlpg.dsl Mon Jul 2 00:16:10 2001 @@ -94,10 +94,11 @@ (set-titlepage-recto-elements) (set-titlepage-verso-elements)) elements))) - (make simple-page-sequence - page-n-columns: %titlepage-n-columns% - input-whitespace-treatment: 'collapse - use: default-text-style +;; (make simple-page-sequence +;; page-n-columns: %titlepage-n-columns% +;; input-whitespace-treatment: 'collapse +;; use: default-text-style + (make sequence ;; This hack is required for the RTF backend. If an external-graphic ;; is the first thing on the page, RTF doesn't seem to do the right @@ -1365,10 +1366,11 @@ (book-titlepage-recto-elements) (book-titlepage-verso-elements)) elements))) - (make simple-page-sequence - page-n-columns: %titlepage-n-columns% - input-whitespace-treatment: 'collapse - use: default-text-style +;; (make simple-page-sequence +;; page-n-columns: %titlepage-n-columns% +;; input-whitespace-treatment: 'collapse +;; use: default-text-style + (make sequence ;; This hack is required for the RTF backend. If an external-graphic ;; is the first thing on the page, RTF doesn't seem to do the right @@ -2622,11 +2624,12 @@ (partintro (node-list-first (node-list-filter-by-gi elements (list (normalize "partintro")))))) (if (part-titlepage-content? elements side) - (make simple-page-sequence - page-n-columns: %titlepage-n-columns% - input-whitespace-treatment: 'collapse - use: default-text-style - +;; (make simple-page-sequence +;; page-n-columns: %titlepage-n-columns% +;; input-whitespace-treatment: 'collapse +;; use: default-text-style + (make sequence + ;; This hack is required for the RTF backend. If an external-graphic ;; is the first thing on the page, RTF doesn't seem to do the right ;; thing (the graphic winds up on the baseline of the first line ---------------------------- Hope that helps. [I was about to post a more detailed message as I've finally been able to produce a "correct" double sided book for the first time!] Jan Scheffczyk wrote: > > Hallo, > > I recently updated to jadetex 3.7 and the DSSSL-Stylesheets 1.70 by Norman > Walsh. > > Page numbering seems to work relly fine, except that the page numbers restart > at the second chapter which is not wanted (%page-number-restart% #f). > Does anyone know how to control the page numbering as done by jadetex of if > it is a bug? > > Thanks a lot. > > Regards, > Jan
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC