Author Topic: RTF document generation: list of tables/figures  (Read 2179 times)

Rob7795

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
RTF document generation: list of tables/figures
« on: April 09, 2009, 10:30:02 am »
Hi, I'm trying to get the RTF document generated for my model to contain a suitable caption for all tables and diagrams inserted into the document, and then have a "list of tables" and "list of figures" on the contents page.

I've not found an explicit way of inserting the tables into the template, so I've performed a copy&paste from a real RTF document that has them. I've done a similar thing for the "captions" to tables and diagrams/figures.

It seems to work - mostly.  The tables are inserted into the output RTF file, but table numbers are repeated (not unique), and I don't get any entries for the diagrams.

My text for a table caption is:
    Table { SEQ Table \* ARABIC } - table name

and my text for a figure/diagram caption is:
    FIgure { SEQ Figure \* ARABIC } - diagram name


Has anyone got experience in this area?

Cheers, Rob.

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 589
  • Karma: +7/-0
    • View Profile
Re: RTF document generation: list of tables/figure
« Reply #1 on: April 09, 2009, 12:07:25 pm »
With the RTF report generator; there is only minimal support for  the full Word-macro set. Only key fields such as Dates are really supported.

karras

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: RTF document generation: list of tables/figures
« Reply #2 on: April 06, 2016, 12:00:43 am »
A solved this problem by inserting a RTF file with the field to the template.

AndyJ

  • EA User
  • **
  • Posts: 332
  • Karma: +5/-2
  • It's only a model
    • View Profile
Re: RTF document generation: list of tables/figures
« Reply #3 on: April 07, 2016, 03:11:26 pm »
I think I've achieved that by applying styles in the RTF template, then allowed word to generate the table of figures by relying on the style.

I haven't used RTFs for a long time now, and am struggling to find an example.
Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 8465
  • Karma: +207/-26
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: RTF document generation: list of tables/figures
« Reply #4 on: April 07, 2016, 03:27:24 pm »
I think I've achieved that by applying styles in the RTF template, then allowed word to generate the table of figures by relying on the style.

That's how we do it as well.

Geert