【问题标题】:Pandoc problem with graph in conversion tex to docx将tex转换为docx时图形的Pandoc问题
【发布时间】:2020-12-01 08:33:33
【问题描述】:

我在使用 pandoc 从 .tex 文件转换为 .docx 文件时遇到问题。我使用 textdoc 和 stata 来获取 tex 文件。 Tabularx 表格不显示在 docx 文件中,但我最大的问题是图形不显示在最终文档 (docx) 中。可悲的是,收到最终文件的人需要一个 docx。文件

我在 windows 上使用 pandoc 并从 cmd windows 运行。

pandoc -s tesis.tex -o output.docx

我尝试与其他间接类型的转换:

pandoc -s tesis.tex -o output2.html
pandoc -s output2.html -o output6.docx

以其他方式,我可以将 knitr 与 R 一起使用来制作 .tex 文件,但如果有可能使用此方法获取 docx 文件,我不知道。

提前致谢

【问题讨论】:

  • 这将有助于查看以下关于您正在执行的操作的完整最小示例(包括一些数据),以及对输出问题的更详细描述。 See the tag wiki for more information.

标签: r latex knitr stata pandoc


【解决方案1】:

提供更多信息,正如我在评论中所建议的那样,stata 标签的 wiki 将使人们能够提供更好的答案。但是,由于您的问题似乎与图表的处理特别有关,您可以从以下开始:

  1. 检查texdoc 如何处理图表。 The default appears to be .pdf
  2. 确保\includegraphicsthesis.tex 中的类似引用包含.pdf 扩展名。 See this discussion for more information

【讨论】:

  • 感谢 Arthur,抱歉我的信息不足。我在示例中添加 texdoc 命令很复杂。
猜你喜欢
  • 2019-11-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2010-12-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多