Add in text cross references to figures, sections, and tables using the Report Genorator toolbox.

15 views (last 30 days)
I am using Report Generator to translate a spreadsheet into a complete word document with sections, text, tables, figures, etc. I want cross reference figures, tables, and section numbers in the body of the text. Something like "see Figure 1.1 for more detail". I want to reference the figure (or table or section) number as it falls in the report.

Answers (1)

Rahul Singhal
Rahul Singhal on 3 Jun 2022
Hi Alec,
Please see mlreportgen.dom.XRef for creating such cross-references in DOCX reports.
  1 Comment
Alec Bowman
Alec Bowman on 6 Jun 2022
I had tried this, but I don't know of a way to access the figure number through this. Unless I manually enter the number (or any text) it won't populate. What I'm looking for is something along the lines of mlreportgen.dom.PageNumber where the page number is populated based on the linked item's page. Using XRef, the only way I've found to include the figure number is if I'm manually creating the figure numbers.

Sign in to comment.




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by