Word Output with TOC page #s not aligning with right edge

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
Glenn Lea
Jr. Propeller Head
Posts: 4
Joined: Fri Sep 29, 2017 1:37 am

Word Output with TOC page #s not aligning with right edge

Post by Glenn Lea »

Hi all,

I have included a TOC for Word output in my project using the following:

<p class="TOCHeading">Table of Contents</p>
<MadCap:tocProxy />

I have defined a Word medium

@media Word
{

Furthermore. I defined the following CSS styles for the TOC:

MadCap|tocProxy.toc
{
color: #000000;
font-family: Arial, sans-serif;
padding-left: 20px;
padding-top: 10px;
letter-spacing: normal;
}

p.TOC1
{
color: #000000;
font-family: Arial, sans-serif;
font-size: 11pt;
letter-spacing: normal;
font-weight: bold;
word-spacing: normal;
letter-spacing: normal;
mc-leader-indent: 0pt;
mc-leader-offset: 10pt;
mc-leader-align: right;
text-align: left;
line-height: 150%;
margin: 1.12em 0;
margin-bottom: 1.12em;
margin-left: 0pt;
margin-right: 0;
margin-top: 10pt;
padding-bottom: 4px;
}

p.TOC2
{
color: #000000;
font-family: Arial, sans-serif;
font-size: 11pt;
letter-spacing: normal;
font-weight: normal;
letter-spacing: normal;
margin-top: 10pt;
mc-leader-offset: 10pt;
mc-leader-align: right;
text-align: left;
padding-bottom: 4pt;
line-height: 150%;
margin: 1.12em 0;
margin-bottom: 1.12em;
margin-left: 10pt;
padding-left: 0pt;
mc-leader-indent: 5pt;
}

p.TOC3
{
color: #000000;
font-family: Arial, sans-serif;
font-size: 11pt;
letter-spacing: normal;
font-weight: normal;
word-spacing: normal;
letter-spacing: normal;
margin-top: 10pt;
mc-leader-indent: 0pt;
mc-leader-offset: 10pt;
line-height: normal;
mc-leader-align: right;
text-align: left;
padding-bottom: 4pt;
margin: 1.12em 0;
margin-bottom: 1.12em;
margin-left: 20pt;
padding-left: 0pt;
}

When generating the Word doc, the TOC outputs fine, with the odd exception that the numbers have decided to be right aligned at 14 cm rather than the correct right edge of the margin.

Any suggestions?

Thx.
Glenn
You do not have the required permissions to view the files attached to this post.
Glenn J. Lea
Senior Technical Writer
Berlin, Germany
Nita Beck
Senior Propellus Maximus
Posts: 3669
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Word Output with TOC page #s not aligning with right edg

Post by Nita Beck »

In my experience, this is a quirk (dare I say design flaw, if not outright bug) in Flare's Word output.

Using the same CSS, I output content to both PDF, whose generated table of contents shows well-behaved page numbers aligned at the right margin, and Word, whose generated table of contents exhibits the behavior you see. Because my Word output is only used for reviews, I have never bothered to try to figure this quirk out, so alas I have no advice to offer. I at least wanted to confirm that you're not the only one seeing this.

Anyone else got some advice for solving this issue?
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
Glenn Lea
Jr. Propeller Head
Posts: 4
Joined: Fri Sep 29, 2017 1:37 am

Re: Word Output with TOC page #s not aligning with right edg

Post by Glenn Lea »

Thanks Nita. Glad to hear its a common problem, as I did everything "according to the book" yet still got this behaviour. I can, of course, mess around in Word to fix the problem, but I shouldn't have to. Flare should know how to generate TOCs correctly, considering how sophisticated it is within CSS. It still baffles me how Flare decided to put a tab at 14 cm. Why 14? Seems rather random. After all, it got the left margin correct. Why not the right?

Anyone else find a solution, other than messing in Word?
Glenn
Glenn J. Lea
Senior Technical Writer
Berlin, Germany
devans
Sr. Propeller Head
Posts: 108
Joined: Thu Sep 09, 2010 9:56 pm
Location: Sydney Australia

Re: Word Output with TOC page #s not aligning with right edg

Post by devans »

This was covered in a previous thread: viewtopic.php?f=10&t=21502&p=109608&hil ... rd#p109608
Post Reply