-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Option --include-before-body does not work with docx writer #4720
Comments
The docx writer doesn't use a template, so template variables won't work. You'll have to customize the |
My understanding of In my mind, there is code somewhere that checks whether the Setting the @jgm Would the architecture of the docx writer be able to support this scenario? Is @mb21 still correct in stating that this is not possible? EDIT: I understand now that the content of |
You are right, it might be possible to support Perhaps we could allow the argumnet of The best solution would be adding a templating feature to reference.docx, so you can include your boilerplate content there. I know that this has been discussed before, but I couldn't track down the discussion. Maybe you can find it. |
Thanks for clearing that up for me @jgm. Perhaps you are referring to the discussion around issue #1612. The problem I want to resolve is in fact described by that issue, i.e. to determine the placement of the TOC, or more specifically, to introduce my own content before the TOC. If Either way, can we open this issue again, and perhaps mark it as an enhancement or feature request? (#4720) Additionally, should I create a new issue to propose a EDIT: I found this filter, which probably satisfies my EDIT: The EDIT: A python package that can |
Hi @W1M0R were you able to find a way to achieve this? |
Hi @aditivin. Yes. I generate the document as usual using pandoc, e.g. The concatenation step can be achieved using: |
Pandoc 2.1.3
pandoc -f rst -t docx --include-before-body foreword.docx --toc --reference-doc ref.docx tst.rst -o tst.docx
This doesn't seem to work with the docx writer.
Reference.docx (
pandoc --print-default-data-file reference.docx
) does not contain inclusion of variableinclude-before
? Are variables supported at all for docx?The text was updated successfully, but these errors were encountered: