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

docx fails to open #507

Closed
slowkow opened this issue Nov 30, 2023 · 4 comments
Closed

docx fails to open #507

slowkow opened this issue Nov 30, 2023 · 4 comments

Comments

@slowkow
Copy link

slowkow commented Nov 30, 2023

I am trying to follow the tutorial, step by step, before editing any files to include my own text.

It seems like the PDF and HTML build OK. But the DOCX is not working.

When I run:

bash build/build.sh

It runs, and I get output files:

README.md
citations.tsv
manuscript.docx
manuscript.html
manuscript.md
manuscript.pdf
references.json
variables.json

I can open the HTML and PDF files, and they look mostly OK.

The HTML seems to be missing the ORCID logo:

Screenshot 2023-11-30 at 12 33 06 PM

The PDF seems OK:

Screenshot 2023-11-30 at 12 33 28 PM

But the DOCX file does not open:

Screenshot 2023-11-30 at 12 32 28 PM

@slowkow
Copy link
Author

slowkow commented Nov 30, 2023

pandoc -v
pandoc 3.1.4
Features: +server +lua
Scripting engine: Lua 5.4

The following command produces a file that I can open with Word, but the equations are not rendered:

pandoc output/manuscript.html -o output/test.docx

Screenshot 2023-11-30 at 12 42 19 PM

@agitter
Copy link
Member

agitter commented Nov 30, 2023

That appears to be related to this issue regarding equation numbering in docx: #435

It's a bug in our pandoc-eqnos dependency, which is no longer actively maintained. The only workarounds I'm aware of are to try replacing pandoc-eqnos with pandoc-crossref (theoretically possible, but would take some work) or to manually number the equations for the docx version.

@slowkow
Copy link
Author

slowkow commented Dec 1, 2023

I can't open the docx files produced by manubot.

I'm having better luck with opening the files produced by quarto, so I might try that instead.

@slowkow slowkow closed this as completed Dec 1, 2023
@agitter
Copy link
Member

agitter commented Dec 1, 2023

I can't open the docx files produced by manubot.

Is that still true if you remove equation numbering before exporting to docx? That is what I believe is causing the issue.

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

No branches or pull requests

2 participants