Reading the various answers on this site, I tried a way to convert a .tex file containing images generated with tikz into an editable format with MS Word. I followed the various instructions exactly, but the command prompt gives me this error:
Access violation in generated code when reading 0xffffffffffffffff
Attempting to reconstruct a stack trace...
Frame Code address * 0x1759bace70 0x7ff632aaef6eC:\Users\Utente-XB\AppData\Local\Pandoc\pandoc.exe+0x2c9ef6e *0x1759bace78 0x61636f4c5c617461 * 0x1759bace80 0x735c706d65545c6c *0x1759bace88 0x302e777532 * 0x1759bace90 0x17c3e1f7028 *0x1759baced0 0x7ff6344db02fC:\Users\Utente-XB\AppData\Local\Pandoc\pandoc.exe+0x46cb02f *0x1759bacf30 0x7ff6344cb5f4C:\Users\Utente-XB\AppData\Local\Pandoc\pandoc.exe+0x46bb5f4 *0x1759bad050 0x7ff6344d29b8C:\Users\Utente-XB\AppData\Local\Pandoc\pandoc.exe+0x46c29b8 *0x1759bad090 0x7ff6344cb791C:\Users\Utente-XB\AppData\Local\Pandoc\pandoc.exe+0x46bb791 *0x1759bad200 0x7ff6344ca7f8C:\Users\Utente-XB\AppData\Local\Pandoc\pandoc.exe+0x46ba7f8 *0x1759bad260 0x7ff6344cbcf5C:\Users\Utente-XB\AppData\Local\Pandoc\pandoc.exe+0x46bbcf5 *0x1759bad2c0 0x7ff632aa926dC:\Users\Utente-XB\AppData\Local\Pandoc\pandoc.exe+0x2c9926d *0x1759bad300 0x7ff6307dc531C:\Users\Utente-XB\AppData\Local\Pandoc\pandoc.exe+0x9cc531 *0x1759bad308 0x7ff630e40c57C:\Users\Utente-XB\AppData\Local\Pandoc\pandoc.exe+0x1030c57 *0x1759bad310 0x7ef4eb8261d0 * 0x1759bad318 0x9
I used this comand line: pandoc --from latex+raw_tex --lua-filter=tikz.lua -s test.tex -o test.docx
The tex code is as follows
\documentclass{article} \usepackage{amsmath,tcolorbox,tikz}\begin{document}\begin{tcolorbox}[colback=red!5!white,colframe=red!75!black] Some content and an equation $a=b$\end{tcolorbox}\begin{center}\begin{tikzpicture}\draw (0,0) -- (4,4);\end{tikzpicture} \end{center} \end{document}
The Lua script is https://gist.github.com/gfacciol/4099a3e28a2a29611d1d3323071f7be0