Multi-coloured text in TOC possible?

K

kipster

Hi, I'm new to the forum - hope you can help me out!

I have a document that was originally English but has been translate
into Chinese. However it has been done so that it is now a bilingua
document, with the translated text inserted below each paragraph using
manual line break to separate the English text from the Chinese text
The Chinese text has then been formatted with a blue font colour to mak
the document visually easier to read.

I have applied the \X switch in the TOC field to recognise the lin
breaks in the TOC, so the TOC is displayed with the Chinese heading tex
underneath the English heading text as per the main body of th
document.

However, the TOC only displays the Chinese text in black, despite i
being formatted blue in the headings. Is there any way to display thi
in the TOC so the English text in the heading is black and the Chines
text is blue
 
P

Peter T. Daniels

In case there isn't a way to format the color automatically, a way to
handle it would be, after you're absolutely sure that everything in
the ToC is absolutely correct, convert the ToC to plain text and apply
the color manually.
 
S

Stefan Blom

How did you apply the color to text? By default, direct font formatting
(that is, formatting not applied via a style) should reflect in the TOC.

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"kipster" wrote in message Hi, I'm new to the forum - hope you can help me out!

I have a document that was originally English but has been translated
into Chinese. However it has been done so that it is now a bilingual
document, with the translated text inserted below each paragraph using a
manual line break to separate the English text from the Chinese text.
The Chinese text has then been formatted with a blue font colour to make
the document visually easier to read.

I have applied the \X switch in the TOC field to recognise the line
breaks in the TOC, so the TOC is displayed with the Chinese heading text
underneath the English heading text as per the main body of the
document.

However, the TOC only displays the Chinese text in black, despite it
being formatted blue in the headings. Is there any way to display this
in the TOC so the English text in the heading is black and the Chinese
text is blue?
 
S

Suzanne S. Barnhill

Actually, this has come up before, and I found, to my surprise, that while
many kinds of direct font formatting (bold, italic, underline, All Caps,
small caps, and the like) are reflected in the TOC, font color is not.
Another example of Word doing just the opposite of what would really be
helpful.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 
L

Lisa Wilke-Thissen

Hi,

you didn't mention the Word version.
I have a document that was originally English but
has been translated into Chinese. However it has
been done so that it is now a bilingual document,
with the translated text inserted below each paragraph
using a manual line break to separate the English text
from the Chinese text.

You didn't choose the best way. Instead of separating Chinese text from
English text by manual breaks, paragraph marks would have been the
better way. English and Chinese text should be formatted by different
styles (including different font colour). So a TOC could have been
created by entries of 2 different styles, and also the TOC could have
used 2 different styles to reflect the colours.
However, the TOC only displays the Chinese text in
black, despite it being formatted blue in the headings.
Is there any way to display this in the TOC so the English
text in the heading is black and the Chinese text is blue?

Create a paragraph style for Englisch text, create another one for
Chinese text.
Then modify your document. Replace manual line breaks (^l) by
paragraph marks (^p):

Strg + H
More
Find: ^l
Replace: ^p
Replace all

Now select all blue coloured text. For that you can use the Styles pane
("select all # instances).
Or use the Find dialog:

Strg + H
Alt + F
Format | Font | Colour ...
Highlight all items found in ...

Apply your Chinese style to all selected paragraphs.
In a similar way apply the English style to the other paragraphs.

When inserting a TOC choose "Options". Apply 2 different TOC levels to
your English and Chinese style (e. g. TOC level 1 and TOC level 2).
So the TOC will be formatted by 2 different styles (TOC1, TOC2). Modify
those styles to reflect different colours.

Regards from Germany
Lisa
 
S

Stefan Blom

I vaguely recall that discussion. However, I have tested this in Word 2010,
and it seems to work as expected in that version, that is, direct color
formatting is visible in the TOC.

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"Suzanne S. Barnhill" wrote in message
Actually, this has come up before, and I found, to my surprise, that while
many kinds of direct font formatting (bold, italic, underline, All Caps,
small caps, and the like) are reflected in the TOC, font color is not.
Another example of Word doing just the opposite of what would really be
helpful.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 
S

Suzanne S. Barnhill

Interestingly, I'm not seeing that at all, even in Word 2010 (at least not
running on Windows XP--haven't tested in Windows 7).

Actually, worse still, I'm seeing it intermittently. I can get blue to show
up sometimes but never red. I thought perhaps it was a distinction between
theme colors and standard colors, but it's not that simple.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

Stefan Blom said:
I vaguely recall that discussion. However, I have tested this in Word 2010,
and it seems to work as expected in that version, that is, direct color
formatting is visible in the TOC.

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"Suzanne S. Barnhill" wrote in message
Actually, this has come up before, and I found, to my surprise, that while
many kinds of direct font formatting (bold, italic, underline, All Caps,
small caps, and the like) are reflected in the TOC, font color is not.
Another example of Word doing just the opposite of what would really be
helpful.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 
S

Stefan Blom

OK, my limited testing seemed to indicate that all is now well (Word 2010 on
Windows 7). If the issue occurs intermittently, I could have missed it. :-(

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"Suzanne S. Barnhill" wrote in message
Interestingly, I'm not seeing that at all, even in Word 2010 (at least not
running on Windows XP--haven't tested in Windows 7).

Actually, worse still, I'm seeing it intermittently. I can get blue to show
up sometimes but never red. I thought perhaps it was a distinction between
theme colors and standard colors, but it's not that simple.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

Stefan Blom said:
I vaguely recall that discussion. However, I have tested this in Word 2010,
and it seems to work as expected in that version, that is, direct color
formatting is visible in the TOC.

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"Suzanne S. Barnhill" wrote in message
Actually, this has come up before, and I found, to my surprise, that while
many kinds of direct font formatting (bold, italic, underline, All Caps,
small caps, and the like) are reflected in the TOC, font color is not.
Another example of Word doing just the opposite of what would really be
helpful.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 
K

kipster

Thanks for all your replies. The font colour was applied as direc
formatting but unfortunately I am limited to Word 2003 here at work, s
it looks like the easiest way to resolve my particular problem would b
Peter's suggestion to convert the TOC to unformatted text and appl
formatting manually.
Hi,

You didn't choose the best way. Instead of separating Chinese text fro

English text by manual breaks, paragraph marks would have been the
better way. English and Chinese text should be formatted by different
styles (including different font colour). So a TOC could have been
created by entries of 2 different styles, and also the TOC could have
used 2 different styles to reflect the colours.

Lisa

I could do this but it is quite a complex document with many differen
styles (outline numbered headings, paragraph styles, table styles & lis
styles). This is probably why the translator used manual breaks t
preserve the formatting for the translated text. In this case I think i
would be too much work creating new styles. Thanks for the suggestio
anyway
 
L

Lisa Wilke-Thissen

Hi Suzanne, hi Stefan,

colors coming from theme colors, and being applied directly to text,
seem to be considered in the TOC.
But just "Text"-colors (Text 1, Text 2), not Background, Accent 1...)
are considered. However, the color in the TOC is not the same as used
in the main text:
{ TOC \o "1-1" \h \z \t "Title;2" }
{ TOC \o "1-1" \h \z \t "Title;2" \x }

Removing \h in the TOC, and additionally (or instead of) using the
switch \u, will reflect colors of main text in the TOC:

{ TOC \o "1-1" \z \t "Title;2" }
{ TOC \o "1-1" \z \t "Title;2" \x }
{ TOC \o "1-1" \h \z \t "Title;2" \u }
{ TOC \o "1-1" \z \t "Title;2" \u}

--
Regards from Germany
Lisa [MS MVP Word]


"Stefan Blom" wrote
OK, my limited testing seemed to indicate that all is now well (Word
2010 on Windows 7). If the issue occurs intermittently, I could have
missed it. :-(


"Suzanne S. Barnhill" wrote
 
S

Suzanne S. Barnhill

Thanks, as always, for your attention to detail, Lisa. Seems like this is
something it might be worthwhile to bring up with the Word team, as it seems
to me that color should at least be handled consistently, though of course
it would be most desirable for color to be treated the same as other font
properties (italic, bold, etc.).

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

Lisa Wilke-Thissen said:
Hi Suzanne, hi Stefan,

colors coming from theme colors, and being applied directly to text, seem
to be considered in the TOC.
But just "Text"-colors (Text 1, Text 2), not Background, Accent 1...) are
considered. However, the color in the TOC is not the same as used in the
main text:
{ TOC \o "1-1" \h \z \t "Title;2" }
{ TOC \o "1-1" \h \z \t "Title;2" \x }

Removing \h in the TOC, and additionally (or instead of) using the switch
\u, will reflect colors of main text in the TOC:

{ TOC \o "1-1" \z \t "Title;2" }
{ TOC \o "1-1" \z \t "Title;2" \x }
{ TOC \o "1-1" \h \z \t "Title;2" \u }
{ TOC \o "1-1" \z \t "Title;2" \u}

--
Regards from Germany
Lisa [MS MVP Word]


"Stefan Blom" wrote
OK, my limited testing seemed to indicate that all is now well (Word 2010
on Windows 7). If the issue occurs intermittently, I could have missed
it. :-(


"Suzanne S. Barnhill" wrote
 
S

Stefan Blom

Lisa, Suzanne:

Colors seem to behave if you delete the \h (hyperlink) switch from the TOC
field code.

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"Suzanne S. Barnhill" wrote in message
Thanks, as always, for your attention to detail, Lisa. Seems like this is
something it might be worthwhile to bring up with the Word team, as it seems
to me that color should at least be handled consistently, though of course
it would be most desirable for color to be treated the same as other font
properties (italic, bold, etc.).

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

Lisa Wilke-Thissen said:
Hi Suzanne, hi Stefan,

colors coming from theme colors, and being applied directly to text, seem
to be considered in the TOC.
But just "Text"-colors (Text 1, Text 2), not Background, Accent 1...) are
considered. However, the color in the TOC is not the same as used in the
main text:
{ TOC \o "1-1" \h \z \t "Title;2" }
{ TOC \o "1-1" \h \z \t "Title;2" \x }

Removing \h in the TOC, and additionally (or instead of) using the switch
\u, will reflect colors of main text in the TOC:

{ TOC \o "1-1" \z \t "Title;2" }
{ TOC \o "1-1" \z \t "Title;2" \x }
{ TOC \o "1-1" \h \z \t "Title;2" \u }
{ TOC \o "1-1" \z \t "Title;2" \u}

--
Regards from Germany
Lisa [MS MVP Word]


"Stefan Blom" wrote
OK, my limited testing seemed to indicate that all is now well (Word 2010
on Windows 7). If the issue occurs intermittently, I could have missed
it. :-(


"Suzanne S. Barnhill" wrote
 
S

Stefan Blom

OK, reading Lisa's post again, I see that you have already noticed that...

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"Stefan Blom" wrote in message
Lisa, Suzanne:

Colors seem to behave if you delete the \h (hyperlink) switch from the TOC
field code.

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"Suzanne S. Barnhill" wrote in message
Thanks, as always, for your attention to detail, Lisa. Seems like this is
something it might be worthwhile to bring up with the Word team, as it seems
to me that color should at least be handled consistently, though of course
it would be most desirable for color to be treated the same as other font
properties (italic, bold, etc.).

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

Lisa Wilke-Thissen said:
Hi Suzanne, hi Stefan,

colors coming from theme colors, and being applied directly to text, seem
to be considered in the TOC.
But just "Text"-colors (Text 1, Text 2), not Background, Accent 1...) are
considered. However, the color in the TOC is not the same as used in the
main text:
{ TOC \o "1-1" \h \z \t "Title;2" }
{ TOC \o "1-1" \h \z \t "Title;2" \x }

Removing \h in the TOC, and additionally (or instead of) using the switch
\u, will reflect colors of main text in the TOC:

{ TOC \o "1-1" \z \t "Title;2" }
{ TOC \o "1-1" \z \t "Title;2" \x }
{ TOC \o "1-1" \h \z \t "Title;2" \u }
{ TOC \o "1-1" \z \t "Title;2" \u}

--
Regards from Germany
Lisa [MS MVP Word]


"Stefan Blom" wrote
OK, my limited testing seemed to indicate that all is now well (Word 2010
on Windows 7). If the issue occurs intermittently, I could have missed
it. :-(


"Suzanne S. Barnhill" wrote
 
S

Stefan Blom

Lisa,

This is off-topic, but I just have to ask if you are using some sort of
add-in to add ">" for quoted text in WLM?

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"Lisa Wilke-Thissen" wrote in message

Hi Suzanne, hi Stefan,

colors coming from theme colors, and being applied directly to text,
seem to be considered in the TOC.
But just "Text"-colors (Text 1, Text 2), not Background, Accent 1...)
are considered. However, the color in the TOC is not the same as used
in the main text:
{ TOC \o "1-1" \h \z \t "Title;2" }
{ TOC \o "1-1" \h \z \t "Title;2" \x }

Removing \h in the TOC, and additionally (or instead of) using the
switch \u, will reflect colors of main text in the TOC:

{ TOC \o "1-1" \z \t "Title;2" }
{ TOC \o "1-1" \z \t "Title;2" \x }
{ TOC \o "1-1" \h \z \t "Title;2" \u }
{ TOC \o "1-1" \z \t "Title;2" \u}

--
Regards from Germany
Lisa [MS MVP Word]


"Stefan Blom" wrote
OK, my limited testing seemed to indicate that all is now well (Word 2010
on Windows 7). If the issue occurs intermittently, I could have missed it.
:-(


"Suzanne S. Barnhill" wrote
 
L

Lisa Wilke-Thissen

Hi Stefan,

"Stefan Blom" wrote
This is off-topic, but I just have to ask if you are
using some sort of add-in to add ">" for quoted text in WLM?

unfortunately not :-(. But I would prefer to have one...
 
S

Stefan Blom

Hmm, we had the OEQuoteFix for Outlook Express (not that I ever used it).
Google suggests WLM QuoteFix (http://www.dusko-lolic.from.hr/wlmquote/) or
OE PowerTool(http://www.grzegorz.net/oe/oept.php?lang=en), but I haven't
dared to install either of them....

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"Lisa Wilke-Thissen" wrote in message

Hi Stefan,

"Stefan Blom" wrote
This is off-topic, but I just have to ask if you are
using some sort of add-in to add ">" for quoted text in WLM?

unfortunately not :-(. But I would prefer to have one...
 
K

kipster

Lisa said:
Hi Suzanne, hi Stefan,

colors coming from theme colors, and being applied directly to text,
seem to be considered in the TOC.
But just "Text"-colors (Text 1, Text 2), not Background, Accent 1...)
are considered. However, the color in the TOC is not the same as used
in the main text:
{ TOC \o "1-1" \h \z \t "Title;2" }
{ TOC \o "1-1" \h \z \t "Title;2" \x }

Removing \h in the TOC, and additionally (or instead of) using the
switch \u, will reflect colors of main text in the TOC:

{ TOC \o "1-1" \z \t "Title;2" }
{ TOC \o "1-1" \z \t "Title;2" \x }
{ TOC \o "1-1" \h \z \t "Title;2" \u }
{ TOC \o "1-1" \z \t "Title;2" \u}

'Stefan Blom[_3_ said:
;492280']Lisa, Suzanne:

Colors seem to behave if you delete the \h (hyperlink) switch from th
TOC
field code.

-- 
Stefan Blom
Microsoft Word MVP


Thanks for that Lisa & Stefan. Removing the \h switch worked
 
S

Suzanne S. Barnhill

Does WLM not have the same option OE has to add those characters? I haven't
used WLM much for NGs (I have it only on my laptop and use the laptop for
NGs only when traveling), but I thought I was posting pretty much the same
way as with OE.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

Stefan Blom said:
Lisa,

This is off-topic, but I just have to ask if you are using some sort of
add-in to add ">" for quoted text in WLM?

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"Lisa Wilke-Thissen" wrote in message

Hi Suzanne, hi Stefan,

colors coming from theme colors, and being applied directly to text,
seem to be considered in the TOC.
But just "Text"-colors (Text 1, Text 2), not Background, Accent 1...)
are considered. However, the color in the TOC is not the same as used
in the main text:
{ TOC \o "1-1" \h \z \t "Title;2" }
{ TOC \o "1-1" \h \z \t "Title;2" \x }

Removing \h in the TOC, and additionally (or instead of) using the
switch \u, will reflect colors of main text in the TOC:

{ TOC \o "1-1" \z \t "Title;2" }
{ TOC \o "1-1" \z \t "Title;2" \x }
{ TOC \o "1-1" \h \z \t "Title;2" \u }
{ TOC \o "1-1" \z \t "Title;2" \u}

--
Regards from Germany
Lisa [MS MVP Word]


"Stefan Blom" wrote
OK, my limited testing seemed to indicate that all is now well (Word 2010
on Windows 7). If the issue occurs intermittently, I could have missed
it. :-(


"Suzanne S. Barnhill" wrote
 
S

Suzanne S. Barnhill

Thanks, Stefan. In my own documents (for print), I do usually remove the \h
switch to make the TOC easier to edit, but when testing for other users I
always create the bog-standard TOC (not changing any of the Options in the
dialog) in order to be starting from a known default, so I hadn't tested
that way.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

Stefan Blom said:
Lisa, Suzanne:

Colors seem to behave if you delete the \h (hyperlink) switch from the TOC
field code.

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"Suzanne S. Barnhill" wrote in message
Thanks, as always, for your attention to detail, Lisa. Seems like this is
something it might be worthwhile to bring up with the Word team, as it
seems
to me that color should at least be handled consistently, though of course
it would be most desirable for color to be treated the same as other font
properties (italic, bold, etc.).

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

Lisa Wilke-Thissen said:
Hi Suzanne, hi Stefan,

colors coming from theme colors, and being applied directly to text, seem
to be considered in the TOC.
But just "Text"-colors (Text 1, Text 2), not Background, Accent 1...) are
considered. However, the color in the TOC is not the same as used in the
main text:
{ TOC \o "1-1" \h \z \t "Title;2" }
{ TOC \o "1-1" \h \z \t "Title;2" \x }

Removing \h in the TOC, and additionally (or instead of) using the switch
\u, will reflect colors of main text in the TOC:

{ TOC \o "1-1" \z \t "Title;2" }
{ TOC \o "1-1" \z \t "Title;2" \x }
{ TOC \o "1-1" \h \z \t "Title;2" \u }
{ TOC \o "1-1" \z \t "Title;2" \u}

--
Regards from Germany
Lisa [MS MVP Word]


"Stefan Blom" wrote
OK, my limited testing seemed to indicate that all is now well (Word
2010
on Windows 7). If the issue occurs intermittently, I could have missed
it. :-(


"Suzanne S. Barnhill" wrote
Interestingly, I'm not seeing that at all, even in Word 2010 (at least
not running on Windows XP--haven't tested in Windows 7).
Actually, worse still, I'm seeing it intermittently. I can get
blue to show up sometimes but never red. I thought perhaps
it was a distinction between theme colors and standard colors, but
it's
not that simple.
 
S

Stefan Blom

No, WLM doesn't add anything at all, as you can tell by looking at this
reply. :-(

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"Suzanne S. Barnhill" wrote in message
Does WLM not have the same option OE has to add those characters? I haven't
used WLM much for NGs (I have it only on my laptop and use the laptop for
NGs only when traveling), but I thought I was posting pretty much the same
way as with OE.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

Stefan Blom said:
Lisa,

This is off-topic, but I just have to ask if you are using some sort of
add-in to add ">" for quoted text in WLM?

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"Lisa Wilke-Thissen" wrote in message

Hi Suzanne, hi Stefan,

colors coming from theme colors, and being applied directly to text,
seem to be considered in the TOC.
But just "Text"-colors (Text 1, Text 2), not Background, Accent 1...)
are considered. However, the color in the TOC is not the same as used
in the main text:
{ TOC \o "1-1" \h \z \t "Title;2" }
{ TOC \o "1-1" \h \z \t "Title;2" \x }

Removing \h in the TOC, and additionally (or instead of) using the
switch \u, will reflect colors of main text in the TOC:

{ TOC \o "1-1" \z \t "Title;2" }
{ TOC \o "1-1" \z \t "Title;2" \x }
{ TOC \o "1-1" \h \z \t "Title;2" \u }
{ TOC \o "1-1" \z \t "Title;2" \u}

--
Regards from Germany
Lisa [MS MVP Word]


"Stefan Blom" wrote
OK, my limited testing seemed to indicate that all is now well (Word 2010
on Windows 7). If the issue occurs intermittently, I could have missed
it. :-(


"Suzanne S. Barnhill" wrote
 

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