[xep-support] Numbered paragraph with first line indent

Bob Stayton bobs at sagehill.net
Wed Mar 18 19:48:58 PDT 2009


Exari SignatureHi Justin,
Did you see my reply of 11 March?  It solves that indent problem.

http://services.renderx.com/lists/xep-support/5823.html

Bob Stayton
Sagehill Enterprises
bobs at sagehill.net


  ----- Original Message ----- 
  From: Justin Lipton 
  To: xep-support at renderx.com 
  Sent: Wednesday, March 18, 2009 5:32 PM
  Subject: Re: [xep-support] Numbered paragraph with first line indent


  Hi Henk,

  Thanks heaps for this it's great. However I just can't seem to get the output right when the indent for the number is non-zero.
  Here's my latest fo:


      <fo:block margin-left="0in" margin-right="0in" space-after="12pt" space-before="0in" text-align="left">        <fo:list-block>            <fo:list-item>              <fo:list-item-label>                <fo:block end-indent="label-end()" start-indent="0.5in">1.1.</fo:block>              </fo:list-item-label>              <fo:list-item-body start-indent="0" text-indent="1in">                <fo:block>                  <fo:inline font-weight="bold" text-decoration="underline">Assignment.</fo:inline>  This Agreement will be binding on all successors and assigns.</fo:block>              </fo:list-item-body>            </fo:list-item>          </fo:list-block>        </fo:block>      </fo:block>      <fo:block>        <fo:block margin-left="0in" margin-right="0in" space-after="12pt" space-before="0in" text-align="left">          <fo:list-block>            <fo:list-item>              <fo:list-item-label>                <fo:block end-indent="label-end()" start-indent="0.5in">1.2.</fo:block>              </fo:list-item-label>              <fo:list-item-body start-indent="0" text-indent=" 1in">                <fo:block>                  <fo:inline font-weight="bold" text-decoration="underline">Enforcement.</fo:inline>  This Agreement supersedes all prior understandings or agreements regarding the same subject matter, and may be modified only by written agreement.</fo:block>              </fo:list-item-body>            </fo:list-item>          </fo:list-block>        </fo:block>      </fo:block>The corresponding pdf is attached. You'll see the numbers (1.1. and 1.2.) are rendered backwards. I think XEP does this when it thinks there is not enough space to render the text but there is plenty of space available.

  Thanks again for all of the helpful suggestions.

  Regards,
  Justin.

  Rutten, Henk wrote: 
    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 




  -- 

  Justin Lipton
  justin.lipton at exari.com
  Level 7, 10-16 Queen Street, Melbourne 3000 Australia 
  Tel +61 3 9621 2775 | Fax +61 3 9621 2776 


  Exari Systems
  Boston | London | Melbourne | Munich
  www.exari.com

  Really Important Notice
  Actually, this is only important if this email was sent to you by mistake or if someone sent it to you when they shouldn't have. If you got it by mistake, please reply and tell us so we can re-send it to the right person. If you got it from someone who should know better, please tell them they're in big trouble. In either case, please don't forward it on to anyone else. Or print it. Or talk about it. Otherwise you'll be in big trouble too.


  For Contract Relief 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20090318/6cc4da93/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exari-clr-24.gif
Type: image/gif
Size: 1790 bytes
Desc: not available
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20090318/6cc4da93/attachment.gif>


More information about the Xep-support mailing list