Newline in a toc

P

Paul Terrano

One of the {TOC} switches is \x which is said to preserve a
newline character. I am formatting a long toc with TC fields and
I would like a blank line in the toc periodically.

Where in the TC does the newline character go, is it <enter> or
<shift-enter> and does the resulting empty line follow or precede
the entry that contains the newline character? I can get the
effect by entering a return manually, but this method will not
survive an update.

I did not find any definitive statements on this subject when I
searched the microsoft.public.word.* newsgroups on Google.
 
D

Daiya Mitchell

If the "periodically" comes at a regular point--e.g., you have Parts,
Chapters, and Subsections of Chapters, and you want an extra blank line
before every Part, you could use a different approach.

All the Part 1, Part 2, Part 3 entries in the TOC are presumably formatted
in a style, e.g. TOC 1 or TOC 2? Format the corresponding TOC style to have
space before.

Tweak this example to meet your needs, if possible. If your blank lines are
not regular, say so, so that someone will return to your original question.
(Although I can't imagine how irregular blank lines in a TOC would be a good
idea. :)
 
P

Paul Terrano

Thank you for your very prompt reply. Your solution suits my
needs
and I should have thought of it.

The blank lines are in fact, irregular. The table of contents is
a list of function names in alphabetical order and I wanted a
blank line ahead of each leading letter change. An alternate TOC
style works nicely.
 
S

Suzanne S. Barnhill

Daiya's reply has solved your problem, I think, but to answer your original
question, the switch you ask about wouldn't help you at all because it would
insert a line break in the middle of the TOC entry. If you put it at the end
of your TC field, it would insert a line break between the entry itself and
the page number. What it's intended to do is break long titles in the same
way that they are broken in the document, meaning that the line break is
usually in the middle of the entry, but a better approach to this is usually
to set a right indent for the TOC style (leaving the right tab stop for the
page number at the right margin), so that the entry wraps short of the page
number.
 
D

Daiya Mitchell

Glad to help, and thanks for showing me how irregular blank lines can make
lots of sense.
DM
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top