cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

A differnt question about TOC and long titles

ebheadrick
1-Visitor

A differnt question about TOC and long titles

Hi again,

I searched and didn't find an answer.... How do you get a title to wrap nicely before the page number when you have a very long title?

I haven't tried it yet, but might an alignment group work? This also might be a "problem" in the index when you have term wrapping.

Has anyone else solved this problem before?

Thanks,
Ellen

5 REPLIES 5

Hi, Ellen...

On Thu, Feb 25, 2010 at 8:50 PM, Ellen Headrick
<ellen.headrick@jeppesen.com> wrote:
> I searched and didn't find an answer.... How do you get a title to wrap
> nicely before the page number when you have a very long title?

Can you give us a little more detail about exactly how you want the
title to wrap and be aligned? What isn't working about the approach
you're using now?

> I haven't tried it yet, but might an alignment group work? This also might
> be a "problem" in the index when you have term wrapping.

It should be possible to accomplish what you want with just indent
settings and maybe some indent items in the appropriate savetexts
and/or usetexts.

-Brandon 🙂

If you want both the title and the page number to be on the same line, you would have to use algroup. Otherwise, assuming that the title occurs first, putting a right-indent on the title would make the title and the page number render on separate lines.
You can't do much horizontal formatting (indent, justification) unless you also have block formatting.

Algroup is usually the best solution.

It is possible to build a table by inserting table markup directly in your construction rules. If you have to use dot leaders on your TOCs, this can cause different problems, but for very simple tables, this usually works pretty well.

-Jason

Here's an example that might help, see the attached file for how it looks when composed.

In the <title> e-i-c, the savetext is:

<savetext textid="toc-part.app"&lt;br"/>conrule="<toc-subsect.fmt>, ssecnum, @56pt, #CONTENT, 0.34em, dotfill, 0.34em, subsect-pg-numb.txt, -33pt, </toc-subsect.fmt>"
append="1">

The character fill for 'dotfill' is:

<charfill literal="." cfid="dotfill" mincount="2">

The formatting pseudo-element is:

<e-i-c gi="toc-subsect.fmt&lt;br"/> <charlist charsubsetref="title-bold-9">
<indent leftind="68pt" rightind="*+136pt" firstln="*-56pt">
<quadding quad="left" lastquad="ljustify">
<postsp minimum="1.2pt" nominal="1.2pt" maximum="1.2pt">
<keeps scope="col" keep="1" next="0" prev="0">
</charlist>
</e-i-c>

You'll need to adjust spacings to suit your page. Hope this gets you started.


David

David S. Taylor

Project Manager, Structured Information
Institute for Research in Construction
National Research Council Canada
Bldg. M-23A, Room 239
1200 Montreal Road, Ottawa, ON K1A 0R6

David,
Thanks this was exact type of example I was thinking about.

Ellen B Headrick
Phone: 303.328.6358 | ellen.headrick@jeppesen.com<">mailto:ellen.headrick@jeppesen.com>
Announcements

Top Tags