tomduck / pandoc-eqnos

A pandoc filter for numbering equations and equation references.
GNU General Public License v3.0
220 stars 27 forks source link

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

Open zkwabm opened 3 years ago

zkwabm commented 3 years ago

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.

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

dfolch commented 2 years ago

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

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
xingyunjohn1 commented 2 years ago

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.

mib383 commented 2 years ago

i also have te same issue

mdekauwe commented 2 years ago

Same issue on a mac

I can get it working with:

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

toshiakiasakura commented 2 years ago

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.