View Single Post
  #1   Report Post  
Brian Kramer
 
Posts: n/a
Default How to?: Hyperlinks with text derived from bookmarks that work in

I've experimented extensively with the REF and HYPERLINK fields and I am
stumped.

Here is my scenario:

I am using the SEQ field to generate the auto-numbered text: "Example 1,"
"Example 2," and so on. Auto-numbering is a requirement since things move
around a lot. In particular, my auto-numbered fields are accomplished with {
SEQ Example \# "E'x'ample 0 }, where Example is the name of the SEQ and
"E'x'ample 0" generates the corresponding text.

On some of these I surround the text with a bookmark. e.g. Bk_SomeExample
might be a bookmark around the field-generated text "Example 3."

In various places, I insert cross-reference fields (REF) that hyperlink to
these bookmarks. e.g. the text "See Example 3" is done with "See { REF
Bk_SomeExample \h }" where the \h flag enables the hyperlink to the paragraph
containg the bookmark.

So far so good for a Word document. When viewed within Word itself, this
gives me autonumbered examples with hyperlinks to them.

The document is being saved as HTML. When opening in Internet Explorer 6.0.
the hyperlinks do not work. This appears to be because { REF ... } fields
don't translate into hyperlinks that are honored by IE.

If I instead use { HYPERLINK ... } fields, then I.E. is honors them. But
then I no longer have the ability to use bookmarks to specify the text of the
hyperlink. For example, I do not want to have to go through all my {
HYPERLINK ... } fields to manually change "See Example 3" to "See Example 4"
if some new example was inserted into my document!

So in summary, I am in much need of a solution that allows me to create
hyperlinks whose text is not constant value, but rather given by a bookmark,
and that that hyperlink is honored by Internet Explorer.

Thank you in advance for your help,

Brian