Headers with text aligned to left and right

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
MarinaMichaels
Sr. Propeller Head
Posts: 137
Joined: Fri Aug 01, 2008 2:23 am
Location: Northern California
Contact:

Headers with text aligned to left and right

Post by MarinaMichaels »

I am creating PDF output to match our company's Word styles. We don't have unique left/right pages; the text in the headers is like this:

Document Title (left-aligned) (space here) Section Title (right-aligned)
(entire header area has a half-point blue line/border underneath)

How can I create this alignment in my right and left layout pages? I tried inserting separate header frames, but that ended up with text overwriting when the content went to the next page.

A separate question: what setting do I use to get the topics to flow from one to another instead of starting a new page with each topic?

Thanks!
Psider
Propellus Maximus
Posts: 902
Joined: Wed Jul 06, 2011 1:32 am

Re: Headers with text aligned to left and right

Post by Psider »

If you don't have unique left and right pages, then I don't think you should have them in the page layout. Instead just define a Normal page and delete the left and right definitions - you might like to do this in a copy of your project, to make sure you don't accidentally lose something important.

I think you've probably got page-break-before specified for each topic heading style in your stylesheet. If all your topic headings are H1, then go into your stylesheet, select H1 and ensure page-break-before is set to avoid. You may have to define this in the Print medium, rather than Default.

HTH,
Amber
Greg
Sr. Propeller Head
Posts: 130
Joined: Thu Mar 29, 2012 12:01 am

Re: Headers with text aligned to left and right

Post by Greg »

I find the easiest way to get text aligned both right and left in the header is to insert a table in the header with two columns (one row).
Put the text you want right justified in the right cell and left justified text in the left.
MarinaMichaels
Sr. Propeller Head
Posts: 137
Joined: Fri Aug 01, 2008 2:23 am
Location: Northern California
Contact:

Re: Headers with text aligned to left and right

Post by MarinaMichaels »

Thanks to both of you! I think the table solution will work, and yes, h1 had page break before set to always, so I changed that in the print medium.

I am preserving the left/right pages because, although our company style doesn't need it, I also plan to use this template as a basis for projects we might do for clients who might have different needs (we do a lot of contract work). Though I suppose it would be easy enough to create left/right pages when needed.

Anyway, thanks again.
MarinaMichaels
Sr. Propeller Head
Posts: 137
Joined: Fri Aug 01, 2008 2:23 am
Location: Northern California
Contact:

Re: Headers with text aligned to left and right

Post by MarinaMichaels »

The table solution worked perfectly. Thanks!

I still cannot get the topics to flow. I've changed all the heading levels to avoid page breaks before (edit: in first just the print medium stylesheet, then also in the default), and yet there are still page breaks before each new topic in the PDF output. Am I missing another setting somewhere? Thanks!
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Headers with text aligned to left and right

Post by LTinker68 »

MarinaMichaels wrote:I still cannot get the topics to flow. I've changed all the heading levels to avoid page breaks before (edit: in first just the print medium stylesheet, then also in the default), and yet there are still page breaks before each new topic in the PDF output. Am I missing another setting somewhere? Thanks!
In the TOC Properties, did you set each topic to be the start of a new chapter and specified a page layout, or did you only specify that in one topic and all the others are inheriting that setting?
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
MarinaMichaels
Sr. Propeller Head
Posts: 137
Joined: Fri Aug 01, 2008 2:23 am
Location: Northern California
Contact:

Re: Headers with text aligned to left and right

Post by MarinaMichaels »

I specified the page break settings for each topic. If I only set those settings for the chapter-level topics, then all the topics run together, which is sort of what I want, except that I want a break at the chapter-level topics, and that isn't working. I'll keep experimenting with the settings. Thanks!
Msquared
Propellus Maximus
Posts: 848
Joined: Mon Aug 06, 2012 10:19 am
Location: Southampton, UK

Re: Headers with text aligned to left and right

Post by Msquared »

Could your topics start with a heading style that has

Code: Select all

page-break-before: always 
set?
Marjorie

My goal in life is to be as good a person as my dogs already think I am.
MarinaMichaels
Sr. Propeller Head
Posts: 137
Joined: Fri Aug 01, 2008 2:23 am
Location: Northern California
Contact:

Re: Headers with text aligned to left and right

Post by MarinaMichaels »

Thanks...no, all the heading styles are set to avoid page breaks before. But that was a good thought. :)
MarinaMichaels
Sr. Propeller Head
Posts: 137
Joined: Fri Aug 01, 2008 2:23 am
Location: Northern California
Contact:

Re: Headers with text aligned to left and right

Post by MarinaMichaels »

Following up: I have figured out how to get the various topics to flow or start on a new page; everything looks good. Thank you, everyone, for your help.
Post Reply