pandoc-eqnos icon indicating copy to clipboard operation
pandoc-eqnos copied to clipboard

Convert markdown to word: “Word experienced an error trying to open the file”

Open zkwabm opened this issue 3 years ago • 5 comments

I installed pandoc-eqnos on Windows 10 using pip install pandoc-eqnos pandoc-xnos, but when I try to convert the markdown to word with --filter pandoc-eqnos I get an error:

Word experienced an error trying to open the file. Try these suggestions.

  • Check the file permissions for the document or drive.
  • Make sure there is sufficient free memory and disk space.
  • Open the file with the Text Recovery converter. (algorithm-update.docx)

When I delete the setting "--filter pandoc-eqnos", the word can be opened sucessfully. output-error

zkwabm avatar Jun 17 '21 07:06 zkwabm

I'm getting this error too. Here is what I've tested:

  • pandoc-eqnos 2.4 and pandoc 2.11: works
  • pandoc-eqnos 2.5 and pandoc 2.11: works
  • pandoc-eqnos 2.4 and pandoc 2.12: fails
  • pandoc-eqnos 2.5 and pandoc 2.12: fails

Minimal example

An awesome equation follows: $$ a^2 + b^2 = c^2$${#eq:science}Some more text.

Command line:

pandoc -s example.md --filter pandoc-xnos -o example.docx

dfolch avatar Sep 23 '21 18:09 dfolch

pandoc 2.14.2 with pandoc-eqnos 2.5.0 gets the same error. Command line:

pandoc -f markdown -o "C:\a.docx" -t docx "C:\a.md"  --filter pandoc-eqnos

Example is your demo.

xingyunjohn1 avatar Oct 08 '21 15:10 xingyunjohn1

i also have te same issue

mib383 avatar Oct 11 '21 13:10 mib383

Same issue on a mac

I can get it working with:

pandoc 2.11 and pandoc-eqnos 2.5 or pandoc-eqnos 2.4

mdekauwe avatar Oct 27 '21 14:10 mdekauwe

I still can not use this function, and I searched for how to insert an equation numebr without references (since this freature is not solved, but have to explore an alternative). I can align the equation number with pantable package as follows.

```table
---
alignment: CCC
table-width: 1/1
markdown: true
---
 , $p^2+2pq+q^2$,\(1\) 
```(for display purpose)

But this is a just quick-fix solution, hope bugs will be fixed.

toshiakiasakura avatar May 05 '22 04:05 toshiakiasakura