Cannot widen my TOC in Word output

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
Pierrick Lussan
Jr. Propeller Head
Posts: 9
Joined: Fri Apr 17, 2009 2:02 am

Cannot widen my TOC in Word output

Post by Pierrick Lussan »

Good morning,

I have been trying for over a week to widen the table of contents I obtain in Word 2007 (I am using Flare 4.2). The stylesheet class of my output toc proxy is p.TOC3.

I found some indications in the help system: Using Styles to Determine the Look of a Print TOC, and applied the solution described in that topic: "If you want to change the width of the entire TOC you would first expand the Box property group. Then you would click in the cell to the right of the width property and set the value". Unfortunately, it does not seem to work at all and this is what I get:
Flare_forum.gif
Would someone know how to change this setting?

Thank you,

Pierrick Lussan (Paris, France)
You do not have the required permissions to view the files attached to this post.
Pierrick Lussan
PROMODAG
doc_guy
Propellus Maximus
Posts: 1979
Joined: Tue Nov 28, 2006 11:18 am
Location: Crossroads of the West
Contact:

Re: Cannot widen my TOC in Word output

Post by doc_guy »

The help topic that addresses this is located in:

Features > Table of Contents > Generated TOC for Print-based output > Using Styles to Determine the Look of a Print TOC > How to use styles to determine the look of a print TOC (entire container).

This topic can be found online here: http://tinyurl.com/c4osfg

The trick I'd watch out for here, it to make sure you're editing the PRINT section of your stylesheet when you follow the steps in this help topic.

If that doesn't work, let us know.
Paul Pehrson
My Blog

Image
Pierrick Lussan
Jr. Propeller Head
Posts: 9
Joined: Fri Apr 17, 2009 2:02 am

Re: Cannot widen my TOC in Word output

Post by Pierrick Lussan »

This is actually the topic I read before submitting my question.
However, nothing changes, whatever unit and value I set in there (30 px, 80%, 10 centimeters...), auto, inherit...
Besides, what I am supposed to enter in there is not very clear:

For example, if you want to change the width of the entire TOC you would first expand the Box property group. Then you would click in the cell to the right of the width property and set the value.

(set the value... but what???)
You do not have the required permissions to view the files attached to this post.
Pierrick Lussan
PROMODAG
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Cannot widen my TOC in Word output

Post by LTinker68 »

Try using a fixed width size, not a proportionate width size. Set it to 6 inches, for example, instead of 80%. See if that works. And you'd have to do that for all the TOC levels, not just TOC3. TOC3 only relates to the level 3 topics, so you need to change TOC1, TOC2, etc., too.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
SharpeMagpie
Jr. Propeller Head
Posts: 7
Joined: Wed May 20, 2009 7:24 am

Re: Cannot widen my TOC in Word output

Post by SharpeMagpie »

I have the same problem

Image

I've tried setting the tocProxy width to 6.00 In, this ripples through to all the p.TOC styles, but still no joy.

Is there some other styleheet overriding this, I only have the one Styles.css? I can't control the TOC level either - I've set the mc-heading-level to 1 and I still get every level outputed.
General Confusion
Propeller Head
Posts: 28
Joined: Thu Jul 12, 2007 12:20 pm
Location: Bath MI

Re: Cannot widen my TOC in Word output

Post by General Confusion »

I happened upon this post while looking for something else.

CSS sends me into a tailspin, so I cobble it in Word. If you select the entire TOC, you should see a tab character in the ruler (it'll be faint; mine usually shows up at the 6" mark). Click and drag this character to your right margin.
rekiwi
Propeller Head
Posts: 13
Joined: Wed Mar 08, 2006 12:59 pm
Location: Palo Alto, CA

Re: Cannot widen my TOC in Word output

Post by rekiwi »

Ditto with the TOC headache in v5.

As Maj. General Confusion noted, the width of the TOC has nothing to do with width settings and everything to do with the tab stop that is set automatically for the TOC styles.

I double-checked my Normal.dot template and searched for any other templates that Flare might apply. No dice.

I crawled through my project stylesheets, Flare's app stylesheets and schema definitions, and the DLLs. I found lots of references to setting tab stops, mostly Word interop object interfaces and such, but nowhere can I find where that blasted TOC tab stop is coming from.

Frustrating.
SteveS
Senior Propellus Maximus
Posts: 2090
Joined: Tue Mar 07, 2006 5:06 pm
Location: Adelaide, far side of the world ( 34°56'0.78\"S 138°46'44.28\"E).
Contact:

Re: Cannot widen my TOC in Word output

Post by SteveS »

If you are setting your stylesheet medium, make sure you set it in your target as well!

If you don't it will use the default stylesheet.

HTH
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
rekiwi
Propeller Head
Posts: 13
Joined: Wed Mar 08, 2006 12:59 pm
Location: Palo Alto, CA

Re: Cannot widen my TOC in Word output

Post by rekiwi »

Thanks for the tip, Steve. All of my medium settings are consistent.

I think the point I was trying to make is that the effective width of the TOC in Word (the width of the heading, leader, and page number) is determined by the position of the right-aligned tab for the TOCx styles.

I can't find anywhere in Flare's UI or source files a facility that allows me to change the position of that right-aligned tab.

I can change some aspects of the tab with mc-leader-align, mc-leader-format, and mc-leader-offset, but it would be great to have a mc-leader-width or something similar to determine the width of the TOC.

If someone can either point me to the setting I've missed or suggest a programmatic work around, I'll be in your debt.
rekiwi
Propeller Head
Posts: 13
Joined: Wed Mar 08, 2006 12:59 pm
Location: Palo Alto, CA

Re: Cannot widen my TOC in Word output

Post by rekiwi »

I've tamed this beast.

Specify a negative value for mc-leader-offset for the p.TOC styles (select "Show Generated Content Styles" to filter the Stylesheet Editor). Also, as Steve pointed out, make sure you're working in the correct medium.

This moves the page number to the right of the tab.

I'd still like the ability to set the tab width rather than set the page number position relative to something I have no control over, but I'm a realistic control freak. I'll take what I can get.
nsemple
Propeller Head
Posts: 86
Joined: Wed Feb 08, 2006 9:24 am

Re: Cannot widen my TOC in Word output

Post by nsemple »

Just wanted to say thank you for this posting.

I am using Flare version 6.1 and encoutered the same issue described here. Setting the box property setting described in Flare's Help does not resolve the issue. Tried everything I could think of (including what others here tried) to no avail. Searched the forums, and found this post.

After following the recommendation to change the mc-leader-offset default property value with a negative value (From the .css, click Show Generated Content Styles, expand the Unclassified Properties set, to find the mc-leader-offset property.), I played around and using a -40 pt value finally got the TOC to be the width I wanted.

THANK YOU!
General Confusion
Propeller Head
Posts: 28
Joined: Thu Jul 12, 2007 12:20 pm
Location: Bath MI

Re: Cannot widen my TOC in Word output

Post by General Confusion »

Many thanks. :)
Mishou6779
Propeller Head
Posts: 57
Joined: Mon Jun 01, 2009 9:19 am

Re: Cannot widen my TOC in Word output

Post by Mishou6779 »

I just wanted to chime in on this in case there are other 'mericans like me who are using the standard American 8 1/2 x 11 letter paper. These are the settings I want in my Word output:

1. 1" margins all around
2. TOC leader to end on the right at 6.5"

To get that to work I had to use the workaround mentioned here, but I used -60pt (open your .css | Show Generated Content Styles | Medium: print | p.TOC1 through p.TOC9 styles set to -60pt).

So finally, I have my TOC leaders and page references exactly where I want them.
bushy
Jr. Propeller Head
Posts: 3
Joined: Wed Apr 18, 2012 12:10 pm

Re: Cannot widen my TOC in Word output

Post by bushy »

The issue remains in Flare 8.0. But as stated, you can work around it by setting a negative value for the mc-leader-offset property for each of your p.toc styles.

Note: If you are using the Simplified View of the CSS Editor, the mc-leader-offset property appears on the Leader tab as Page Number Width.
Post Reply