You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the settings for the Table Of Contents is the leader character. (chars between the words and page number) It is implemented in Word via tabs. new TableOfContents element has many settings just like it should, but we can't set paragraphs properties anyhow yet (I guess because TOC is two paragraphs.) It seems that first paragraph properties affect the whole TOC settings
One lifehack I tried is to set tabs and leader character to the attached style for the certain levels, but that didn't catch up, Word ignores it.
And if I manually add tabs for the first paragraph of the TOC element then Word catches what it meant to do
Solution:
I guess we should add additional property to ITableOfContentsOptions Interface, I would guess all the IParagraphOptions because at the moment I am not sure which other features TOC might require. (other than tabs)
Guten tag :)
One of the settings for the Table Of Contents is the leader character. (chars between the words and page number) It is implemented in Word via tabs.
new TableOfContents
element has many settings just like it should, but we can't set paragraphs properties anyhow yet (I guess because TOC is two paragraphs.) It seems that first paragraph properties affect the whole TOC settingsOne lifehack I tried is to set tabs and leader character to the attached style for the certain levels, but that didn't catch up, Word ignores it.
And if I manually add tabs for the first paragraph of the TOC element then Word catches what it meant to do
Solution:
I guess we should add additional property to
ITableOfContentsOptions
Interface, I would guess all theIParagraphOptions
because at the moment I am not sure which other features TOC might require. (other than tabs)Took this demo for testing: https://github.com/dolanmiu/docx/blob/master/demo/28-table-of-contents.ts
The text was updated successfully, but these errors were encountered: