Open ayhy opened 11 months ago
Hi. Thanks for the report.
Apparently, Pandoc interprets image widths in docx relative to the page width, regardless of context since 3.0. Well, there is a relatively simple fix for this (hopefully, IIUC what's going on), but I don't have the mental bandwidth to implement it at the moment. Please ping me if I don't get around to it by the end of this week. If you want to make a PR, that'd be even better, I think all that needs to be done is this code here
needs to set image width to column width instead of 100%
when output format is docx. Column widths are in widths
defined a few lines above. Let me know if it's something you'd be interested in doing, I can offer a couple more pointers.
with
subfigGrid=true
, following code in html creates auto-rescales image table.However on docx output images retain original size.![image](https://github.com/lierdakil/pandoc-crossref/assets/7615889/7ab7ec47-9887-4f9a-9912-6246ef7e5597)
Is there a way to fit image for docx table cell? Regular
width
specification determines col width and I could not find a way to manually rescale image.