Cross references and TOC mc-heading-level

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
Titus
Propeller Head
Posts: 38
Joined: Thu Dec 04, 2014 2:33 pm

Cross references and TOC mc-heading-level

Post by Titus »

Hello,

This is my first time posting here, so go easy on me..

I found on these forums that I could expand the list of headings that appear in my cross-references list by setting the mc-heading-level values accordingly (this way I wouldn't have to manually create bookmarks for all lower level headings and xref those). Unfortunately, this also adds unnecessary headings, namely H4 through H6, to my PDF Table of Contents.

I experimented with a few different things, like toc-depth (which is apparently only for miniTOCs), and setting PrintSupport attributes for p.TOC4-6 (like mc-heading-level = 0) but all to no avail.

Is there any way to get all headings to show up in the cross-reference list without using mc-heading level, or such that they won't also appear in the TOC?

Thanks for your help!
angelabartz
Propeller Head
Posts: 36
Joined: Mon Apr 07, 2014 4:18 pm

Re: Cross references and TOC mc-heading-level

Post by angelabartz »

Hi Titus,

You mentioned that you set the PrintSupport attributes for p.TOC4-6 to mc-heading-level: 0;

If you don’t want headings 4-6 to show up in the TOC, use that setting on H4, H5, and H6 rather than on the p.TOCs.
-Angela
Titus
Propeller Head
Posts: 38
Joined: Thu Dec 04, 2014 2:33 pm

Re: Cross references and TOC mc-heading-level

Post by Titus »

Hi Angela,

Yep, that's what I do, and that's what I want. But I also want to be able to cross-reference those headings without having to manually add bookmarks, and I found that the way to do so was to use the mc-heading-level attribute (which of course, unfortunately, adds those headings in the TOC as well).

Anyway, thanks for your input! It is much appreciated. :D
gbusch
Propeller Head
Posts: 44
Joined: Wed Mar 26, 2014 8:52 am
Location: Germany

Re: Cross references and TOC mc-heading-level

Post by gbusch »

What you're trying to do is not possible.
You cannot have autobookmarks on elements with a heading level greater that 1 but hide those elements from the toc.
That is at least my experience so far.

I tried this for a while an gave up.
As soon something has a heading level 1+ it will show up in the toc.
And as soon as something has heading level set to 0 it won't be able to be cross-referenced automatically.

:(
Titus
Propeller Head
Posts: 38
Joined: Thu Dec 04, 2014 2:33 pm

Re: Cross references and TOC mc-heading-level

Post by Titus »

Thanks gbusch, that's what I figured. I don't know why they have to use the same attribute, but it is what it is...

Cheers! :mrgreen:
gbusch
Propeller Head
Posts: 44
Joined: Wed Mar 26, 2014 8:52 am
Location: Germany

Re: Cross references and TOC mc-heading-level

Post by gbusch »

It seems i was wrong.
Just read this workaround for auto-cross-reference-able image captions: http://forums.madcapsoftware.com/viewto ... 75#p105275
I think you can also use it for your purposes.
Post Reply