-
Notifications
You must be signed in to change notification settings - Fork 178
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
Equation numbering via pandoc-eqnos breaks DOCX output #435
Comments
This is controlled with an environment variable,
after this line in the You should then have the docx written to https://github.com/ch728/cucurbit-usda/tree/output with every main branch build. It will also be saved in the GitHub Actions artifacts if you want to review the docx during pull request builds. |
That's a new issue. I can't open the docx in Word 2016 either The XML at that referenced location is
Chrome tells me
which is this part That looks like it is near or part of Equation 1. If you delete that equation, does the docx work? If we determine the error is due to a single equation, we could create a minimal example and report it to pandoc. |
I had to delete both equation lines to get rid of the error. |
So after playing around with it some more, it's appears to be the addition of the equation tags like {#eq:long-equation} that causes the issue. |
This looks like the same error reported in tomduck/pandoc-eqnos#60 |
Ah, yup! Well I will go ahead and close this issue because my initial question was answered and this equation thing is already logged as an issue. Thank you. |
Noting a new feature introduced by #436. If you upgrade to the latest rootstock, you can use "workflow dispatch", or an ad-hoc CI run which has a menu option for setting
I'm going to go ahead and reopen and rename this issue since we would like equation numbers to work with DOCX outputs (or at least fail more gracefully). |
Perhaps time that we look into replacing pandoc-eqnos with pandoc-crossref, since it appears to be more actively maintained. |
I briefly started looking into pandoc-crossref in a demo manuscript. See agitter/my-manuscript#22 I committed the HTML output before and after switching to pandoc-crossref so we could see the diff. There are enough differences to break some of our plugins, but they don't look insurmountable. One annoying difference is that it prints prefixes so "Figure 1" becomes "Figure fig. 1". It's possible to suppress those prefixes, but that has to be done for every reference. Maybe it can be overridden globally with an empty reference format or a reference template. There are a lot of customization options. It's installable through conda-forge. Edit: I didn't check the PDF output. The equation numbering works in the DOCX output. |
How do I configure manubot to get docx output? I read something about changing an environment variable. This is my repo https://github.com/ch728/cucurbit-usda .
The text was updated successfully, but these errors were encountered: