Align text to multiple margins

View: New views
6 Messages — Rating Filter:   Alert me  

Align text to multiple margins

by Brandon Nason :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

For the headers in my document I want to have the section Number aligned at 0.5" and the Title aligned at 1.0" how do I do this?

Re: Align text to multiple margins

by jlr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Brandon Nason wrote:
For the headers in my document I want to have the section Number aligned at 0.5" and the Title aligned at 1.0" how do I do this?
If you use block, you can state exactly where you want the alignment.
         <fo:block-container
              absolute-postion="absolute"
              left="1in">
              <fo:block>
                  <.........rest of the stuff>
              </fo:block>
         </fo:block-container>

Hope this helps.
jlr    

Re: Align text to multiple margins

by Brandon Nason :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Maybe I'm not seeing it but I don't think that is what I want. Let me explain better. Before each paragraph of text I want a single line that says "1.0         Title" When I ran the code you gave me it put all of them at the top of the document and not right above the paragraph its supposed to be over. Here is an example of what I want

1.0     Title
          Here is the start of the paragraph.
2.0     Title 2
  2.1   Title 2.1
          Paragraph for section 2.1


jlr wrote:
If you use block, you can state exactly where you want the alignment.
         <fo:block-container
              absolute-postion="absolute"
              left="1in">
              <fo:block>
                  <.........rest of the stuff>
              </fo:block>
         </fo:block-container>

Re: Align text to multiple margins

by jlr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have some info which I think will display as you had stated.  I am needing to get a couple of things taken care of before I can respond with all of the detail. It will most likely be tomorrow.   Sorry for the delay.
jlr


Maybe I'm not seeing it but I don't think that is what I want. Let me explain better. Before each paragraph of text I want a single line that says "1.0         Title" When I ran the code you gave me it put all of them at the top of the document and not right above the paragraph its supposed to be over. Here is an example of what I want

1.0     Title
          Here is the start of the paragraph.
2.0     Title 2
  2.1   Title 2.1
          Paragraph for section 2.1


jlr wrote:
If you use block, you can state exactly where you want the alignment.
         <fo:block-container
              absolute-postion="absolute"
              left="1in">
              <fo:block>
                  <.........rest of the stuff>
              </fo:block>
         </fo:block-container>


Re: Align text to multiple margins

by jlr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't know if you have the book titled XSL Formatting Objects - Developer's Handbook by Doug Lovell.  This is an excellent book for giving examples of the different types of formatting.  I will be contacting you later today to send you some info.
Thanks,
jlr




Maybe I'm not seeing it but I don't think that is what I want. Let me explain better. Before each paragraph of text I want a single line that says "1.0         Title" When I ran the code you gave me it put all of them at the top of the document and not right above the paragraph its supposed to be over. Here is an example of what I want

1.0     Title
          Here is the start of the paragraph.
2.0     Title 2
  2.1   Title 2.1
          Paragraph for section 2.1


jlr wrote:
If you use block, you can state exactly where you want the alignment.
         <fo:block-container
              absolute-postion="absolute"
              left="1in">
              <fo:block>
                  <.........rest of the stuff>
              </fo:block>
         </fo:block-container>


Re: Align text to multiple margins

by Brandon Nason :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No, I don't have that book, but I may purchase it in the future. Thanks for the help!

jlr wrote:
I don't know if you have the book titled XSL Formatting Objects - Developer's Handbook by Doug Lovell.  This is an excellent book for giving examples of the different types of formatting.  I will be contacting you later today to send you some info.