Book a Demo

Author Topic: Adding Bookmarks to RTF Templates  (Read 5755 times)

AndyJ

  • EA User
  • **
  • Posts: 337
  • Karma: +5/-3
  • It's only a model
    • View Profile
Adding Bookmarks to RTF Templates
« on: April 19, 2012, 09:18:27 am »
Hi People,

I'm trying to include the project glossary into my produced documentation.

It's happily reproducing in the .RTF template, but doesn't have a bookmark that I can find.

I've tried adding bookmarks within the template editor, but haven't successfully invoked them from the parent Word document.

Has anyone managed to get this to work?

Andy
Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."

AndyJ

  • EA User
  • **
  • Posts: 337
  • Karma: +5/-3
  • It's only a model
    • View Profile
Re: Adding Bookmarks to RTF Templates
« Reply #1 on: April 19, 2012, 10:02:05 am »
Further to the above.

What is happening is the RTF editor is creating a pair of bookmarks that look like this:

{\*\bkmkstart Project_Glossary}{\*\bkmkend Project_Glossary}

I haven't been able to find any way to prevent the editor from creating these as a pair, wherever I create them. As there is no content between this pair, the result is always that Word returns nothing when this bookmark is used as a reference to the resulting RTF file.

Highlighting a block of text (which contains the glossary tags) does not result in the bookmarks being created at either end for example.

Does anyone know of any other method where I can place these bookmarks where I need them to be in the template?

Can the template be exported and edited in a code editor for example?
Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."

AndyJ

  • EA User
  • **
  • Posts: 337
  • Karma: +5/-3
  • It's only a model
    • View Profile
Re: Adding Bookmarks to RTF Templates
« Reply #2 on: April 19, 2012, 12:52:24 pm »
I've tried manually adding the bookmarks to the RTF template, but the curly brackets and backslashes are being escaped in the output.

i.e. I'm looking for this:

{\*\bkmkstart Project_Glossary}\par

but I'm getting this:
\{\\*\\bkmkstart Project_Glossary\}\par
Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."

AndyJ

  • EA User
  • **
  • Posts: 337
  • Karma: +5/-3
  • It's only a model
    • View Profile
Re: Adding Bookmarks to RTF Templates
« Reply #3 on: April 19, 2012, 02:26:42 pm »
Still answering my own posts...

I've tried exporting the RTF template, editing it in Notepad, and importing it back into EA...

So far I have not found any place that I can insert bookmarks into the template and have them either side of the generated project glossary.

:(
Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."