synchronize TOC and heading

This forum is for all Flare issues not related to any of the other categories.
Post Reply
davidfass
Propeller Head
Posts: 21
Joined: Tue Jan 26, 2016 9:12 am

synchronize TOC and heading

Post by davidfass »

Hi. I'm coming from FrameMaker where the TOC item is always identical to the corresponding heading text. It seems that in Flare, if I am changing a heading, I need to independently change the corresponding TOC item. That seems weird and error-prone. Is there a way to force the TOC text to always match the heading text. Thanks.
BedfordWriter
Sr. Propeller Head
Posts: 231
Joined: Wed Jun 23, 2010 10:13 am
Location: Nova Scotia

Re: synchronize TOC and heading

Post by BedfordWriter »

If you're generating print, that should happen automatically. Otherwise, not so much.

There is a method you could use, but you might not like it. Replace every heading and matching TOC entry with a variable. Both will update from the same definition, and therefore they'll match.
I'd have thought that you could use a system or heading variable in the TOC, but from my experiments, it doesn't seem to work. You should send in a feature request.
jackdeland
Propeller Head
Posts: 71
Joined: Tue May 07, 2013 9:13 am
Location: Ann Arbor, Michigan
Contact:

Re: synchronize TOC and heading

Post by jackdeland »

See Scott DeLoach's slide #8 http://www.slideshare.net/scottdeloach/ ... dtricksweb. The presentation is from 2009, and I haven't tried it, but I have seen variables in TOCs before, just can't remember the syntax.
Jack DeLand
MadSkills Consultant and Trainer
Adam Charles Consulting, LLC
Ann Arbor, Michigan
http://www.adamcharlesconsulting.com
davidfass
Propeller Head
Posts: 21
Joined: Tue Jan 26, 2016 9:12 am

Re: synchronize TOC and heading

Post by davidfass »

Thanks, but 'ugh'. I think I'll submit a feature request.
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: synchronize TOC and heading

Post by NorthEast »

You can do this the other way round - I'm assuming this is a help target you're talking about.

On the TOC item Advanced tab, set Auto-set title of linked file to Yes.

This will set each topic's title to the same text as the TOC item.

Then in your topic, instead of typing the text for the heading, insert the variable System.Title as the heading.

In the editor this will just show the topic filename, but when you build (not preview) it will be fine in the output.
I appreciate it's not ideal in that you can't easily see the heading in the topic itself.
davidfass
Propeller Head
Posts: 21
Joined: Tue Jan 26, 2016 9:12 am

Re: synchronize TOC and heading

Post by davidfass »

Thanks very much. I think that will help. Unfortunate that it is on a topic-by-topic basis, but thanks anyway for the pointer. -- Dave
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: synchronize TOC and heading

Post by NorthEast »

davidfass wrote:Thanks very much. I think that will help. Unfortunate that it is on a topic-by-topic basis, but thanks anyway for the pointer. -- Dave
It's not a great solution by any means, so it depends if the solution outweighs the problem.

Mind, I I'd guess the other solution has problems too - for those that use it, doesn't having variables for all the TOC item labels make it very hard to make sense of your TOC?
Post Reply