List Info

Thread: Different numbers of columns on a single page?




Different numbers of columns on a single page?
user name
2007-02-28 12:02:12
Hello,

Simple question that may not have a simple answer:

I understand how to set up custom page masters for FO output with different numbers of columns, but what if I want to change the column layout mid-page?  Say, for example, that I want half a page to have three columns, and the other half to have one column.

Is this possible?

Thanks,
Colin
Re: Different numbers of columns on a single page?
user name
2007-02-28 12:20:02
Ah, I just discovered the "span" attribute.  So, I can make my entire page three-columns, and then use span=";all" on the FO objects that I want to span across these columns.

Can someone just confirm that this is the best way to do what I am after?

Thanks,
Colin

On 2/28/07, Colin Shapiro < cmshapirogmail.com">cmshapirogmail.com> wrote:
Hello,

Simple question that may not have a simple answer:

I understand how to set up custom page masters for FO output with different numbers of columns, but what if I want to change the column layout mid-page?&nbsp; Say, for example, that I want half a page to have three columns, and the other half to have one column.

Is this possible?

Thanks,
Colin

Re: Re: Different numbers of columns on a single page?
user name
2007-02-28 12:26:10
Hi Colin,
It is the only way to do it, so it had better be the best way.  8^)
 
Depending on your XSL-FO processor, span may or may not work in all contexts.&nbsp; The XSL-FO spec says a spanned block must be a direct child of fo:flow.&nbsp; But DocBook uses nested fo:block elements for sections to apply section properties.  That can be worked around, if you need it.
&nbsp;
Bob Stayton
Sagehill Enterprises
DocBook Consulting
sagehill.net">bobssagehill.net
&nbsp;
 ;
----- Original Message -----
Sent: Wednesday, February 28, 2007 10:20 AM
Subject: [docbook-apps] Re: Different numbers of columns on a single page?

Ah, I just discovered the "span" attribute.  So, I can make my entire page three-columns, and then use span="all" on the FO objects that I want to span across these columns.

Can someone just confirm that this is the best way to do what I am after?

Thanks,
Colin

On 2/28/07, Colin Shapiro <gmail.com">cmshapirogmail.com> wrote:
Hello,

Simple question that may not have a simple answer:

I understand how to set up custom page masters for FO output with different numbers of columns, but what if I want to change the column layout mid-page?&nbsp; Say, for example, that I want half a page to have three columns, and the other half to have one column.

Is this possible?

Thanks,
Colin

Re: Re: Different numbers of columns on a single page?
user name
2007-02-28 14:18:29
Bob,

Thanks for that tip, it was very helpful.&nbsp; I'm sure I'd be pulling my hair out later when the span attribute refused to work after I put it in a nested fo:block.

I just tried it to see what would happen with FOP v0.93, and it doesn't work unless it's in a direct child of fo:flow.&nbsp; And there are no errors indicating what the problem is.

Thanks,
Colin

On 2/28/07, Bob Stayton < bobssagehill.net">bobssagehill.net> wrote:
Hi Colin,
It is the only way to do it, so it had better be the best way.  8^)
 
Depending on your XSL-FO processor, span may or may not work in all contexts.&nbsp; The XSL-FO spec says a spanned block must be a direct child of fo:flow.&nbsp; But DocBook uses nested fo:block elements for sections to apply section properties.  That can be worked around, if you need it.
 
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobssagehill.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bobssagehill.net
 ;
 
----- Original Message -----
Sent: Wednesday, February 28, 2007 10:20 AM
Subject: [docbook-apps] Re: Different numbers of columns on a single page?

Ah, I just discovered the "span" attribute.  So, I can make my entire page three-columns, and then use span=";all" on the FO objects that I want to span across these columns.

Can someone just confirm that this is the best way to do what I am after?

Thanks,
Colin

On 2/28/07, Colin Shapiro < cmshapirogmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">cmshapirogmail.com> wrote:
Hello,

Simple question that may not have a simple answer:

I understand how to set up custom page masters for FO output with different numbers of columns, but what if I want to change the column layout mid-page?&nbsp; Say, for example, that I want half a page to have three columns, and the other half to have one column.

Is this possible?

Thanks,
Colin


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )