Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--toc-title no effect in docx #9645

Closed
huggymann opened this issue Apr 8, 2024 · 3 comments
Closed

--toc-title no effect in docx #9645

huggymann opened this issue Apr 8, 2024 · 3 comments
Labels

Comments

@huggymann
Copy link

huggymann commented Apr 8, 2024

Explain the problem.
Using the toc-title it does not have any effect. The title remains "Table of Contents"
pandoc -f html html.html -o outdocx.docx --toc -V --toc-title="Inhaltsverzeichnis" -V mainlang=de --reference-doc=my-ref-doc.docx

Screenshot shows the toc title:
grafik

It is expected to change the toc-title. I tried also without the reference-doc , no changes.

Pandoc version?
pandoc 3.1.13 (Ubuntu)
Features: +server +lua
Scripting engine: Lua 5.4

pandoc.exe 3.1.13 (Windows)
Features: +server +lua
Scripting engine: Lua 5.4

i tested both in ubuntu and windows 10

@huggymann huggymann added the bug label Apr 8, 2024
@jgm
Copy link
Owner

jgm commented Apr 8, 2024

Syntax to set a variable would be

-V toc-title="Inhaltsverzeichnis"

You have an extra --.

@jgm jgm closed this as completed Apr 8, 2024
@huggymann
Copy link
Author

huggymann commented Apr 9, 2024

Thanks for the clarification. I changed it accordingly, but still no effect. I have a workaround now with metadata "toc-title" that works.
pandoc -f html html.html -o output.docx --toc -V toc-title="Inhaltsverzeichnis" -V mainlang=de

grafik

@jgm
Copy link
Owner

jgm commented Apr 9, 2024

Yes, apparently in docx -M toc-title= works, but not -V toc-title=.
I'll document this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants