-
Notifications
You must be signed in to change notification settings - Fork 41
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 manuscript fails to open on MS word #331
Comments
So I was able to get it to work by changing Not sure if this is the most correct fix... I also tried just commenting out citeproc, but this did not work. I did this because I thought citeproc was already included in pandoc and the extra filter was not needed. You can see the commit here: greenelab/nature_news_manuscript@e042065 |
Also, this was after updating rootstock and rebuilding my environment (greenelab/nature_news_manuscript#16) |
I can't open your linked docx file in Word on Windows either. I could open a recent docx from the COVID-19 review though. The error from Word points to this part of the XML
An XML viewer reported
Based on where the XML syntax error occurs, it points to a problem exporting these equations to docx
That's consistent with other errors with equation numbering in docx manubot/rootstock#435. The other issue linked in that thread suggests it may have started in pandoc 2.11.3. |
Is this equation numbering problem blocking your resubmission? In manubot/rootstock#435 (comment) I describe initial attempts to use pandoc-crossref for numbering. It has some peculiarities and breaks some of Manubot's interactive HTML elements. However, it can export a DOCX with equation numbers that I can open. |
Thanks @agitter, no we were able to work around it and resubmit. I was able to get it to work somehow in the most recent build, but not sure if it is a transient issue and if it will come back later. |
I ran across the same issue with this manuscript. The final Word file does not open in Word, and I get an error with LibreOffice Writer 7.3 in Ubuntu: After opening it with LibreOffice Writer, though, the file is only read until it reaches Equation 1 (not showing it) in section "Methods and materials." Also, images are not shown. This used to work with previous versions of manubot/rootstock/conda environment. As a workaround, I created an old conda environment with pandoc 2.9 and build locally. For that, I used this version of the build/environment.yml file and ran index bfa5d97..12c0c34 100644
--- a/build/pandoc/defaults/common.yaml
+++ b/build/pandoc/defaults/common.yaml
@@ -6,7 +6,7 @@ filters:
- pandoc-eqnos
- pandoc-tablenos
- pandoc-manubot-cite
-- citeproc
+- pandoc-citeproc
wrap: preserve
metadata:
csl: build/assets/style.csl |
Noting the underlying issue tomduck/pandoc-eqnos#60. One alternative might be to manually number equations if switching to pandoc-crossref is problematic. |
We've got a manuscript here where we're not able to open in microsoft word on mac when building with the latest rootstock:
https://github.com/greenelab/nature_news_manuscript/blob/output/manuscript.docx
Has anyone else experienced this before?
The text was updated successfully, but these errors were encountered: