LaTeX 到 RTF 的转换,包括引用和数字

LaTeX to RTF conversion including citations and figures

我目前正在开始写论文。由于我使用 R 进行统计,我实际上想使用 LaTeX 和 knitR 包来处理文本,但我也怀疑是否使用它,因为作品可能会发表,而期刊可能只接受 rtf 或 doc 格式。我注意到这个主题已经在其他地方讨论过 (http://www.tex.ac.uk/FAQ-fmtconv.html, Which is the best import / export LaTeX tool?),但是线程对我帮助不大(我缺乏软件技能)。所以我希望有人能为我提供一些简单的答案。

我的问题是这样的:我有一个包含图表和引用的 knitR 文档:

\documentclass{article}

% bib file
\usepackage{filecontents}
\begin{filecontents}{references.bib}
@article{key,
  author="Author",
  title="Title",
  year="2016"
  }
\end{filecontents}
\usepackage{natbib}


\begin{document}

%text
test \cite{key}

%R script
<<eval=T, echo=T>>=
hist(rnorm(100))
@


\bibliographystyle{plainnat}
\bibliography{references}

\end{document}

我尝试了以下方法将文档转换为 rtf 文件:

1) LaTeX2RTF:问题是图表和引文没有转换

2) R 'connect3' 包使用以下代码(与 LaTeX2RTF 相同的问题)

library(connect3)

x<-read.latex(file,path)

tex<-x$tex
path<-x$path
name<-'test2'

write.rtf(tex,path,name)

3) 我也看到了描述 tex4ht 的线程,但是 windows 操作系统的设置对我来说似乎非常不方便 (https://www.tug.org/applications/tex4ht/mn-mswin.html)

所以我想问一下你是如何解决这个问题的,能否用简单的方式描述一下解决方案。

非常感谢您的帮助!

我发现了两个非常有效的解决方案: 1) http://www.sciweavers.org/convert-latex-to-rtf 2) https://www.lyx.org/ 我希望这会对某人有所帮助