#1 keep-with-next bullets

open
nobody
None
5
2009-04-27
2001-04-24
No

In the print DSSSL stylesheet, if a new paragraph is created
within a listitem after the bullet or number of an
orderedlist/itemizedlist, that paragraph
needs to be kept together with the bullet or number. For example,

<itemizedlist><title>YE OLDE ITEMIZEDLIST</title>
<listitem><para>Item 1</para>
<listitem><para>Item 1</para>
<variablelist>
<varlistentry><term>A</term><listitem><para>xxxxx</para></listitem></varlistentry>
<varlistentry><term>B</term><listitem><para>xxxxx</para></listitem></varlistentry>
</variablelist>
<listitem><para>Item 4</para>
</itemizedlist>

If the variablelist is rendered as a table, the first cell of the table at
least needs to be kept on the same page as the bullet:

YE OLDE ITEMIZEDLIST

* Item 1
* Item 2
*
[page break!]
--------------------
| A | xxxxx |
--------------------
| B | xxxxx |
--------------------
* Item 4

This only applies when the bullet/number is on a different paragraph from the start of the actual
content (which, of course, shouldn't be happening at all); so a keep: 'page won't do (bullets on the
same para as their listitem should not be kept on the same page as the next listitem!) This may
require setting a global flag for para creation within lists, triggering a keep-with-previous setting.

Discussion

  • Norman Walsh

    Norman Walsh - 2001-04-29
    • assigned_to: nwalsh --> nobody
     
  • Adam Di Carlo

    Adam Di Carlo - 2003-01-21
    • assigned_to: nobody --> adicarlo
     
  • Adam Di Carlo

    Adam Di Carlo - 2003-02-17
    • assigned_to: adicarlo --> nobody
     
  • Adam Di Carlo

    Adam Di Carlo - 2003-02-17

    Logged In: YES
    user_id=18375

    This is rather hard to fix. Here's how the Flow Objects look
    for a list:

    * (itemized list)
    C (variable list)
    xxxxx

    <display-group start-indent="58pt">
    <paragraph keep="page" space-before="5pt"
    first-line-start-indent="-10pt" font-family-name="Times New
    Roman" font-weight="medium" font-size="10pt">
    <sequence>
    <a name="problem"/>
    <line-field font-size="8pt" position-point-shift="0pt"
    field-width="10pt"><text>•</text></line-field>
    </sequence>

    [[ page break here ]]

    <sequence>
    <paragraph keep-with-next="true" space-before="10pt"
    first-line-start-indent="0pt" start-indent="58pt">
    <text>C</text>
    </paragraph>
    <display-group start-indent="78pt">
    <paragraph keep="page" space-before="5pt"
    first-line-start-indent="-20pt" font-family-name="Times New
    Roman" font-weight="medium" font-size="10pt">
    <sequence>
    <line-field
    field-width="20pt"><text> </text></line-field>
    </sequence>
    <sequence>
    <text>xxxxx</text>
    </sequence>
    </paragraph>
    </display-group>

    There's no real way to force the sequence with the bullet to
    keep-with-next with the following sequence, containing the
    variablelist
    (or table in your example). I have been able to force the entire
    listitem contents into a page (display-group keep: 'page)
    but that
    is an elephant gun.

    You pointed out a possible "keep-with-previous" case but I'm not
    really sure how I can use this and yet modularly identify
    all possible
    elements under the listitem.

    Giving up on this one....

     
  • Peter Eisentraut

    • milestone: 112684 --> 447635
     
  • Robert Stayton

    Robert Stayton - 2009-04-27
    • labels: 321158 -->
    • milestone: 447635 -->
     

Log in to post a comment.