Comments (7)
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
<w:t xml:space="preserve">2</w:t></w:r></w:hyperlink><w:r><w:t xml:space="preserve">.</w:t></w:r><w:r><w:t xml:space="preserve"> </w:t></w:r><w:r><w:t xml:space="preserve">We did not consider any names where no prediction could be made or quotes where neither speaker nor gendered pronoun was associated.</w:t></w:r></w:p><w:p><w:pPr><w:pStyle w:val="BodyText" /></w:pPr><w:bookmarkStart w:id="0" w:name="eq:quote"/><w:r><w:t></
An XML viewer reported
This page contains the following errors:
error on line 1 at column 66619: Opening and ending tag mismatch: t line 1 and p
Based on where the XML syntax error occurs, it points to a problem exporting these equations to docx
$$\textrm{Prop. Male Quotes} = \frac{|\textrm{Male Speaker Quotes}|} {|\textrm{Male or Female Speaker Quotes}|}$${#eq:quote}
$$\textrm{Prop. Male First Authors} = \frac{|\textrm{Male First Authors}|} {|\textrm{Male or Female First Authors}|}$${#eq:first-author}
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.
from manubot.
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.
from manubot.
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 conda env create -n manubot-pandoc29 -f environment.yml
. I also applied the patch by @nrosed here to use pandoc-citeproc
instead of citeproc
:
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
from manubot.
Noting the underlying issue tomduck/pandoc-eqnos#60. One alternative might be to manually number equations if switching to pandoc-crossref is problematic.
from manubot.
So I was able to get it to work by changing citeproc
to pandoc-citeproc
in build/pandoc/defaults/common.yaml
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
from manubot.
Also, this was after updating rootstock and rebuilding my environment (greenelab/nature_news_manuscript#16)
from manubot.
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.
from manubot.
Related Issues (20)
- Manubot unable to locate DOI's to post on the website HOT 4
- Manuscript build failing due to import error for `soft_unicode` from `markup_safe` HOT 2
- ImportError: cannot import name 'soft_unicode' from 'markupsafe' HOT 4
- Quarto integration HOT 9
- Make use of Manubot logo on PyPI and elsewhere HOT 1
- Collect reference warnings and errors
- Allow user to set timeout. HOT 5
- Test are too slow HOT 4
- Request to rate limited APIs do not respect limits outside function boundary.
- manubot cite supplies the first name and last name swapped HOT 4
- Upgrade CSL Schema to v1.0.2 HOT 4
- Pubmed NCBI E-Utils API calls with `rettype=full` have an empty response HOT 3
- Does `cite` batch requests for multiple IDs? HOT 2
- PMID citations not working anymore HOT 7
- page break without a title HOT 5
- ai-revision not available when installing via pip HOT 9
- Support ORCID API identifier types? HOT 3
- date-specific Wikipedia URL is not parsed correctly§ HOT 2
- Pin pyrate limiter version or upgrade to 3.0.0 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from manubot.