Skip navigation
Currently Being Moderated

Bullets placement

Jul 6, 2011 5:53 PM



I have been experimenting with bulleted lists, in particular to placing the bullets. This is what I have discovered so far:


With "outside" lists, using paragraphEndIndent in ListMarkerFormat, the right most I can put the bullet is with the right edge of the bullet line up with the left edge of the listAutoPadding line. For example:


<list listStylePosition='outside' listStyleType='disc' listAutoPadding="40"><listMarkerFormat><ListMarkerFormat paragraphEndIndent="0"/></listMarkerFormat>...


With "inside" lists, with empty beforeContent, the left most I can put the bullet is with the left edge of the bullet line up with the right side of the listAutoPadding line. For example:


<list listStylePosition='inside' listStyleType='disc' listAutoPadding="40"><listMarkerFormat><ListMarkerFormat beforeContent=""/></listMarkerFormat>...


However, there is a "gap" between these two, and that is the bullet sitting right on the listAutoPadding line itself. For example, half of the bullet on one side of the listAutoPadding line and half on the other. Is there a way to put the bullet on this line? Is there a better way to place bullets? (In general, I'm not finding a lot of good documentation on how to use lists. And I'm having to write a lot of code to switch between rather different approaches of setting up lists due to "inside" vs "outside.") Or am I doing this completely wrong? I wouldn't mind getting more info on how to set up lists using various values of left indent, first indent, etc, such as used in InDesign.


Thanks for the info.



  • Currently Being Moderated
    Jul 11, 2011 11:53 PM   in reply to will_spi

    Hi Will:


    TLF actually created two FTE's TextLine objects for one listItem object. One is the bullet line and the other is the listItem's content line. The position of the two line objects are controlled by different list and listItem attributes. There actually no 'listAutoPadding line'. It is something controlled by the attributes...


    I am not quite sure what your issue is. But in theory, you can put your bullet and content to any position you wanted by config the right attribute. Can you give an illlustration so that we can better understand your needs and find out the solution for you?



    Mark as:
  • Currently Being Moderated
    Jul 13, 2011 2:56 PM   in reply to will_spi

    The best docs we have on lists is here:


    "listAutoPadding" is the padding applied to the list if the padding value of the list element is set to "auto". So if you set the padding to 0, no padding will be applied, leaving the list paragraphs at the same indent level as the outer paragraphs. You can move it in from there to anywhere you want, using postive numbers, or out using negative numbers. But you'd have to calculate the exact setting required for having the bullet in the midpoint, depending on font and font size; that's not a calculation TLF will do for you.


    Hope this helps,


    - robin

    Mark as:
  • Currently Being Moderated
    Jul 14, 2011 3:43 PM   in reply to will_spi

    There is nothing that will allow you to center the marker on the line, sorry. I believe that it should be possible to change the position of the marker relative to the text by adjusting its padding in the ListMarkerFormat, but I don't think that works, currently. That's something that should be considered for adding to a future version.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points