Single ToC, multiple PDF outputs

This forum is for Single-Sourcing your Flare content to multiple outputs.
Post Reply
Fiona
Sr. Propeller Head
Posts: 118
Joined: Tue Jan 27, 2015 7:44 am
Location: U.K.

Single ToC, multiple PDF outputs

Post by Fiona »

I need to produce multiple styles of PDF with the same ToC. Unfortunately there are a few different page layouts within each book (front cover, ToC, chapters, index, etc). From the responses in viewtopic.php?f=75&t=31900 it looks like I'll have to replicate the ToC multiple times and assign the different page layouts to each one. This strikes me as very bad practice and not at all future proof, so I was wondering whether anyone knows of an alternative approach (for example, is it possible to include a variable in the ToC entry page layout selection so that it always uses the "chapter" layout but the target chooses whether it's chapter style 1, chapter style 2, chapter style 3, etc.)?

The only workaround I can think of is putting all the chapters into one ToC, then having multiple other ToCs (one for each PdF output) that pull this in. More future proof than just completely replicating the original ToC but not ideal.
kmorrison
Sr. Propeller Head
Posts: 107
Joined: Mon Nov 11, 2013 3:04 pm
Location: Ottawa, Canada
Contact:

Re: Single ToC, multiple PDF outputs

Post by kmorrison »

I can think of a couple of different ways to handle this:

If it's feasible, make one page layout file, but use some combination of condition tags and variables so that layout will be rendered a little differently in the different outputs. For example, you might include alternate condition-tagged logo images, and use a variable for the document title in the footer. Then the different targets would have different condition tag expressions and variable definitions to make that come out right.

If the first option isn't feasible because the layouts are just too different, you could create a TOC for each chapter, and then for the various outputs, create TOCs that include the relevant chapters, with the appropriate layouts selected. This way, if you add a topic to a chapter, you only need to add it in one place instead of a bunch. The only time you'd have to be editing multiple TOCs is to add or remove chapters.
Post Reply