While generating DOCX impossible to change header line to TOC "Table of Contents" to anything else.
belonesox opened this issue · 2 comments
belonesox commented
Explain the problem.
While generating DOCX impossible to change default TOC Title from /src/Text/Pandoc/Writers/Docx/Types.hs
, stTocTitle = [Str "Table of Contents"]
to anything else, specifying lang
or even -V toc-title
Sample file and run script attached.
pandoc-toc-title-docx-bug.zip
Pandoc version?
Pandoc built from sources,
pandoc 3.1.12.3
Features: +server +lua
Scripting engine: Lua 5.4
User data directory: /home/stas/.local/share/pandoc
belonesox commented
Hint: search closed issues.
I searched, I swear.
I even tried "-M toc-title", before switching to "-V ", but something wrong occured with my tests.
Looks like I am unlucky. :(
I confirm that
--toc -M toc-title="My Custom TOC Header"
works for me now.
Thank you!