Subject: Another JadeTeX problem From: Thomas Corte <thomas@xxxxxxxxxxxxxxxxxx> Date: Sun, 6 Sep 1998 12:08:01 +0200 (MESZ) |
Hello, I have found another strange JadeTeX behaviour and I wonder if anyone on this list can help me with this: The DSSSL standard claims that consecutive display spaces shall be reduced down to one of them according to certain rules. jadetex.dtx (Version 1.05 with appropriately patched Jade 1.1.1) seems to have code for this, and this works for e.g. sequences of display-group FOs with space-before- and space-after characteristics. However, it sometimes fails for NESTED display groups. To make the problem clear, I have included some (short) test material: Test DTD (simple.dtd): --8<-------------------------------------------------------------------- <!-- simple.dtd --> <!ELEMENT Root - - (Block | Para)+> <!ELEMENT Block - - (Block | Para)+> <!ELEMENT Para - - (#PCDATA)> --8<-------------------------------------------------------------------- Test instance: --8<-------------------------------------------------------------------- <!DOCTYPE root SYSTEM "simple.dtd" [ ]> <root> <para>Text outside any Block</para> <block> <para>Text in Block</para> </block> <para>Text2 outside any Block, followed by double blocksep</para> <block> <block> <para>Text in Block in Block</para> </block> </block> <para>Text3 outside any Block, followed by triple blocksep</para> <block> <block> <block> <para>Text in Block in Block in Block</para> </block> </block> </block> <para>Text outside any Block</para> </root> --8<-------------------------------------------------------------------- Test stylesheet: --8<-------------------------------------------------------------------- <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN"> (element ROOT (make simple-page-sequence (process-children))) (element BLOCK (make display-group start-indent: 10pt space-before: 30pt space-after: 30pt (process-children))) (element PARA (make paragraph space-before: 10pt space-after: 10pt (process-children))) --8<-------------------------------------------------------------------- While RTF output correctly shows 30pt display space between all the paragraphs of this example, JadeTeX inserts 60pt of space after the "Text2 ..." paragraph and 90pt of space after the "Text3 ..." paragraph. Am I wrong or should this be considered a JadeTeX bug? ____________________________________________________________________ | | | knipp | Knipp Medien und Kommunikation oHG ------- Technologiepark Martin-Schmeisser-Weg 9 D-44227 Dortmund Thomas Corte Fon: 0231-9703-0 thomas@xxxxxxxxxxxxxxxxxx Fax: 0231-9703-200 DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
JadeTeX problems, Thomas Corte | Thread | Re: Another JadeTeX problem, Louis-Dominique Dube |
JadeTeX problems, Thomas Corte | Date | Re: docbook style sheets (graphics), Adam P. Harris |
Month |