add //pagenumber_hardcoding#283
Conversation
elong0527
left a comment
There was a problem hiding this comment.
Could you add PR description with screenshot to show it works as expected?
Also update vignettes to clarify the new control words
|
Thank you very much for adding this option. Once I can get it working it will be invaluable for me. I am having some issues at the moment, however. When I run the following code (verbatim as your example) I get the attached. I have tried escaping the underscore but that doesn't fully solve the issue either. I have version 1.2.0 installed - do I need a different version? |
|
You can install it from github using |
It works perfectly - thank you! |
Add Page Number Hardcoding Feature for Multi-Page Tables
Summary
This PR implements a new
\pagenumber_hardcodingcontrol word that enables per-page page numbering in multi-page RTF tables. Unlike the existing\pagenumber(which uses RTF field codes), this feature hardcodes the actual page numbers during table generation, ensuring accurate page numbering for table-specific pages (e.g., "Page 1 of 3", "Page 2 of 3", etc.).Problem Statement
Previously, when creating multi-page tables, users could use
\pagenumberwhich relies on RTF's dynamic field codes. However, this approach has limitations:Solution
Added a new control word
\pagenumber_hardcodingthat:\pgnhardcodingduring text conversion\totalpagewhich is also replaced with the total number of pages