Re: Alternative variable in Header/Footer

Subject: Re: Alternative variable in Header/Footer
From: dmbrown -at- brown-inc -dot- com
To: TECHWR-L <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Mon, 26 Jan 2004 16:38:39 -0800

Is there a way, similar to FM, where I can place an alternative variable
in a header or footer, so that if the primary variable isn't found on
the page, the secondary is?
Example: I have a primary heading style, Heading2 and a secondary
heading style, Heading2TopOfPage. I want the primary instance of
Heading2 to be populated into the footer, but in absence of Heading2,
use Heading2TopOfPage.

As Mike O suggested, your footer should contain a field something like this:

{ if { STYLEREF Heading2 } = "" { STYLEREF Heading2TopOfPage } { STYLEREF Heading2 } }

Remember, those braces aren't typed--they're the special field delimiters.

You'll probably want the MERGEFORMAT option in the second and third REF fields, and you may want to experiment with the \L option to get the effect you want.

If you can't make it work, drop me a note off-list.

--David

=========================================================================

A V A I L A B L E N O W ! http://www.html-indexer.com/

HTML Indexer is still the easiest way to create and maintain real indexes
for web sites, intranets, HTML Help, JavaHelp, and other HTML documents.








References:
Alternative variable in Header/Footer: From: John Posada

Previous by Author: Re: Dictionary of Connotations
Next by Author: Re: Gray brackets
Previous by Thread: Alternative variable in Header/Footer
Next by Thread: Re: Alternative variable in Header/Footer


What this post helpful? Share it with friends and colleagues:


Sponsored Ads