[xep-support] Numbered paragraph with first line indent

Bob Stayton bobs at sagehill.net
Wed Mar 11 09:40:09 PDT 2009


I think this is a better approach than my suggestion.  Instead of overwriting the number block vertically as in my example, it overwrites horizontally.  However, it needs a couple of improvements.

Putting start-indent="0pt" will override any start-indent you already have.  If your list is already indented or if this is a nested list, then the list items will be moved all the way to the left margin.  Instead, removing the start-indent property on the fo:list-item-body will make it start at the same left position as the fo:list-item-label.  To get XEP to not report that as an error, set the margin-left="0pt".

Also, the end-indent properties were on the wrong elements.  They should be on the fo:list-item-label instead of the fo:blocks. Here is the improved version:

<fo:list-block provisional-distance-between-starts="0.5in">

<fo:list-item>

<fo:list-item-label  end-indent="label-end()">

<fo:block>9.</fo:block>

</fo:list-item-label>

<fo:list-item-body margin-left="0pt" text-indent="0.5in">

<fo:block><fo:inline font-weight="bold" text-decoration="underline">Confidentiality.</fo:inline> Each party must hold Protected Information of the other party in confidence and must only use or disclose that Protected Information in accordance with this agreement </fo:block>

</fo:list-item-body>

</fo:list-item>

<fo:list-item>

<fo:list-item-label end-indent="label-end()">

          <fo:block>10.</fo:block>

</fo:list-item-label>

<fo:list-item-body margin-left="0pt" text-indent="0.5in">

<fo:block><fo:inline font-weight="bold" text-decoration="underline"> Permitted Use and Disclosure.</fo:inline> Each party may use and copy the other party's Protected Information for the Permitted Purpose and may share that information with its directors, officers, employees and professional advisers who have a need to know the information for the Permitted Purpose, provided that any such person is under confidentiality obligations equivalent to the those set out in this agreement.  Each party must record the full name of any person to whom it discloses the other party's Protected Information and must promptly provide those names to the other party on request.</fo:block>

</fo:list-item-body>

</fo:list-item>

</fo:list-block>


Bob Stayton
Sagehill Enterprises
bobs at sagehill.net


  ----- Original Message ----- 
  From: Rutten, Henk 
  To: xep-support at renderx.com 
  Sent: Wednesday, March 11, 2009 6:08 AM
  Subject: RE: [xep-support] Numbered paragraph with first line indent


  Hi Justin,

   

  Perhaps a <fo:list-block> could do the trick?

   

  <fo:list-block>

  <fo:list-item>

  <fo:list-item-label start-indent="0">

  <fo:block end-indent="label-end()">9.</fo:block>

  </fo:list-item-label>

  <fo:list-item-body start-indent="0" text-indent="0.5in">

  <fo:block><fo:inline font-weight="bold" text-decoration="underline">Confidentiality.</fo:inline> Each party must hold Protected Information of the other party in confidence and must only use or disclose that Protected Information in accordance with this agreement </fo:block>

  </fo:list-item-body>

  </fo:list-item>

  <fo:list-item>

  <fo:list-item-label start-indent="0">

  <fo:block end-indent="label-end()">10.</fo:block>

  </fo:list-item-label>

  <fo:list-item-body start-indent="0" text-indent="0.5in">

  <fo:block><fo:inline font-weight="bold" text-decoration="underline"> Permitted Use and Disclosure.</fo:inline> Each party may use and copy the other party's Protected Information for the Permitted Purpose and may share that information with its directors, officers, employees and professional advisers who have a need to know the information for the Permitted Purpose, provided that any such person is under confidentiality obligations equivalent to the those set out in this agreement.  Each party must record the full name of any person to whom it discloses the other party's Protected Information and must promptly provide those names to the other party on request.</fo:block>

  </fo:list-item-body>

  </fo:list-item>

  </fo:list-block>

   

  Result in the enclosed pdf

   

  Henk Rutten

   

   

  Van: owner-xep-support at renderx.com [mailto:owner-xep-support at renderx.com] Namens Justin Lipton
  Verzonden: dinsdag 10 maart 2009 4:38
  Aan: xep-support at renderx.com
  Onderwerp: [xep-support] Numbered paragraph with first line indent

   

  Hi,

  I'm trying to work out the best way to produce the following style of numbered paragraphs:

  9.       Confidentiality.  Each party must hold Protected Information of the other party in confidence and must only use or disclose that Protected Information in accordance with this agreement.

  10.     Permitted Use and Disclosure.  Each party may use and copy the other party's Protected Information for the Permitted Purpose and may share that information with its directors, officers, employees and professional advisers who have a need to know the information for the Permitted Purpose, provided that any such person is under confidentiality obligations equivalent to the those set out in this agreement.  Each party must record the full name of any person to whom it discloses the other party's Protected Information and must promptly provide those names to the other party on request.



  We need the opening words of each paragraph, namely "Confidentiality." and "Permitted Use and Disclosure." to be indented at a fixed offset (similar to text-indent behavior). We've achieved this using fixed width floats for the number but find that the second line is always getting indented too.

  Here's some example FO:

    <fo:block>        <fo:block background-color="transparent" color="black" font-family="Times New Roman, Times, Symbol, serif" font-size="10pt" font-weight="normal" intrusion-displace="none" keep-together.within-page="always" line-height="120%" margin-left="0in" margin-right="0in" space-after="0in" space-before="6pt" text-align="justify">          <fo:float float="start">            <fo:block-container width="0.5in">              <fo:block color="black" font-family="Times New Roman, Times, Symbol, serif" font-size="10pt" font-weight="normal" keep-together.within-page="auto" margin-bottom="0pt" margin-left="0in" margin-right="0pt" space-after="0pt" text-align="left" text-indent="0pt">9.</fo:block>            </fo:block-container>          </fo:float>          <fo:inline font-weight="bold" text-decoration="underline">Confidentiality</fo:inline>.  Each party must hold Protected Information of the other party in confidence and must only use or disclose that Protected Information in accordance with this agreement.</fo:block>      </fo:block>      <fo:block>        <fo:block background-color="transparent" color="black" font-family="Times New Roman, Times, Symbol, serif" font-size="10pt" font-weight="normal" intrusion-displace="none" keep-together.within-page="always" line-height="120%" margin-left="0in" margin-right="0in" space-after="0in" space-before="6pt" text-align="justify">          <fo:float float="start">            <fo:block-container width="0.5in">              <fo:block color="black" font-family="Times New Roman, Times, Symbol, serif" font-size="10pt" font-weight="normal" keep-together.within-page="auto" margin-bottom="0pt" margin-left="0in" margin-right="0pt" space-after="0pt" text-align="left" text-indent="0pt">10.</fo:block>            </fo:block-container>          </fo:float>          <fo:inline font-weight="bold" text-decoration="underline">Permitted Use and Disclosure</fo:inline>.  Each party may use and copy the other party's Protected Information for the Permitted Purpose and may share that information with its directors, officers, employees and professional advisers who have a need to know the information for the Permitted Purpose, provided that any such person is under confidentiality obligations equivalent to the those set out in this agreement.  Each party must record the full name of any person to whom it discloses the other party's Protected Information and must promptly provide those names to the other party on request.</fo:block>      </fo:block> 

  We've tried a few other ways without success - what's the best way to achieve this?


  Regards,
  Justin.

  ------------------- (*) To unsubscribe, send a message with words 'unsubscribe xep-support' in the body of the message to majordomo at renderx.com from the address you are subscribed from. (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20090311/5ad4a7b1/attachment.html>


More information about the Xep-support mailing list