RMarkdown Officedown:将svg图像插入word文档
是否可以将 svg 图像插入到 word 文档 (.docx) 中?
这是我的 YAML:
---
title: "SVG Image"
output: officedown::rdocx_document
---
对于 jpg 图像,以下代码可以完美运行:
```{r, fig.cap = "cap", fig.id = "id"}
include_graphics("path to my picture/picture.jpg")
``
但是,如果我对 svg 图像执行相同操作,则该图像不会显示在生成的 Word 文档中。
Is it possible to insert a svg image to a word document (.docx)?
This is my YAML:
---
title: "SVG Image"
output: officedown::rdocx_document
---
For jpg images, the following code works perfectly:
```{r, fig.cap = "cap", fig.id = "id"}
include_graphics("path to my picture/picture.jpg")
``
However, if i do the same for a svg image, the image doesn't show in the produced word document.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论