-
|
Hi, I was trying to find in the library a way to insert "List of Tables" and "List of Figures" in a similar way that I do for table of contents. I was searching around and I couldn't find anything on that. It seems as if I have to do it from scratch. For table of contents we have: Is there anything similar for "list of tables" and "table of figures"? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
Hey Symeon, did you get anywhere with this? I'm looking for the same thing. |
Beta Was this translation helpful? Give feedback.
-
|
Hi Symeon, |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Table of figures is just a TOC with \c flag.
The caption numbers are SEQ field. Please have a look at http://webapp.docx4java.org/OnlineDemo/ecma376/WordML/SEQ.html
Now implemented in docx4j, and to be part of a docx4j 11.5.4 release:
TOC supports the C switch: https://github.com/plutext/docx4j/blob/VERSION_11_5_4/docx4j-core/src/main/java/org/docx4j/toc/switches/CSwitch.java
You can renumber captions (SEQ fields): https://github.com/plutext/docx4j/blob/VERSION_11_5_4/docx4j-core/src/main/java/org/docx4j/model/fields/seq/FieldUpdaterSEQ.java and see example https://github.com/plutext/docx4j/blob/VERSION_11_5_…