You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if WriteDocx could also write directly into an existing docx / dotx file. This helps with styling by using the styles existing in the template file.
R (bookdown) does it this way which I think makes the most sense with minimal effort. Matlab uses developer components in the docx file to search for a tag, where it starts writing sections to, but this has some drawbacks.
The text was updated successfully, but these errors were encountered:
What I don't want to do is implement roundtrip capability docx => Julia => docx because there are so many possible tags that it would take forever to implement all of them and test them. What we can already do is unzip a docx file, access the main xml file and open it with EzXML, then we can link xml generated with WriteDocx.jl into that and write it back out.
This worked already for simple things like tables when I tried it. It's more difficult when you start using objects that need rels, like images, because then you need to modify those rel files in accordance with your content. So this is somewhat more work to do well.
Another avenue if you want styles is to read only the styles from a given docx file and apply those when rendering a full WriteDocx file. This would be much less work than having to represent a full docx file.
It would be great if WriteDocx could also write directly into an existing docx / dotx file. This helps with styling by using the styles existing in the template file.
R (bookdown) does it this way which I think makes the most sense with minimal effort. Matlab uses developer components in the docx file to search for a tag, where it starts writing sections to, but this has some drawbacks.
The text was updated successfully, but these errors were encountered: