Re: [xep-support] Numbered paragraph with first line indent

From: Justin Lipton <justin.lipton@exari.com>
Date: Tue Mar 10 2009 - 13:29:39 PST
Hi,

Unfortunately when I tried this (line-height="1") the number is misaligned with the text that follows it on the same line. It does fix the second line issue being indented.

The leader approach does not work when you don't know if the number will be 9 or 10 (i.e. the first line will be one character out)
Thanks for pointing out why the inline-container approach was not working.

We can't find a reliable way to get this working! There must be a way as I would have thought that this situation comes up reasonably regularly.

Here's some FO with the line-height set:

    <fo:block>
        <fo:block background-color="transparent" color="black" font-family="Times New Roman, Times, Symbol, serif" font-size="12pt" font-weight="normal" intrusion-displace="none" line-height="120%" margin-left="0in" margin-right="0in" space-after="12pt" space-before="0in" text-align="left">
          <fo:float float="start">
            <fo:block-container width="1in">
              <fo:block color="black" font-family="Times New Roman, Times, Symbol, serif" font-size="12pt" font-weight="normal" keep-together.within-page="auto" line-height="1" margin-bottom="0pt" margin-left="0.5in" margin-right="0pt" space-after="0pt" text-align="left" text-indent="0pt">9.</fo:block>
            </fo:block-container>
          </fo:float>Publicity.  No party will disclose the existence or terms of this Agreement without prior written consent or unless required by law or court order.</fo:block>
      </fo:block>
      <fo:block>
        <fo:block background-color="transparent" color="black" font-family="Times New Roman, Times, Symbol, serif" font-size="12pt" font-weight="normal" intrusion-displace="none" line-height="120%" margin-left="0in" margin-right="0in" space-after="12pt" space-before="0in" text-align="left">
          <fo:float float="start">
            <fo:block-container width="1in">
              <fo:block color="black" font-family="Times New Roman, Times, Symbol, serif" font-size="12pt" font-weight="normal" keep-together.within-page="auto" line-height="1" margin-bottom="0pt" margin-left="0.5in" margin-right="0pt" space-after="0pt" text-align="left" text-indent="0pt">10.</fo:block>
            </fo:block-container>
          </fo:float>
          <fo:inline font-size="12pt" font-weight="bold" text-decoration="underline">General.</fo:inline>
        </fo:block>
      </fo:block>



Regards,
Justin.


G. Ken Holman wrote:
At 2009-03-10 07:46 -0400, I misspoke:
sure enough, adding the following to the block prevents the second line from going

"allows the second line to go"

to the start edge:

   line-height="1"

As I suspected, the leading of the block inside of the float is big enough to trigger the apparent indentation of the second line.  By removing the leading (using a line height scalar value), there is now room for the second line to go to the edge.



--
XQuery/XSLT training in Prague, CZ 2009-03 http://www.xmlprague.cz
XQuery/XSLT/XSL-FO training in Los Angeles (New dates!) 2009-06-08
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/f/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/f/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@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


--
Exari Signature

Justin Lipton
justin.lipton@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.

exari logo
For Contract Relief

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@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

exari-clr-24.gif
Received on Tue Mar 10 14:28:10 2009

This archive was generated by hypermail 2.1.8 : Tue Mar 10 2009 - 14:28:11 PST