emacs - 如何将 latex 结果嵌入到 ODT 文件 emacs 组织模式?

标签 emacs latex org-mode odt

在组织模式下,尝试推送 LaTex 代码以生成这样的矩阵

enter image description here

代码是这样的:

#+BEGIN_SRC latex
  \[ G_{x} = \left[ \begin{array}{ccc}
  -1 & 0 & 1 \\
  -2 & 0 & 2 \\
  -1 & 0 & 1 \end{array} \right] {\hspace{2em}} G_{y} = \left[ \begin{array}{ccc}
  -1 & -2 & -1 \\
   0 &  0 &  0 \\
  1 & 2 & 1 \end{array} \right] \]
#+END_SRC

但是当我尝试将 ORG 文件导出到 ODT 文档时,矩阵没有显示。我的组织模式需要任何选项或配置吗?

谢谢

最佳答案

未经测试,但在 Org-mode 手册中有几个答案,特别是它们涉及将代码段包装在 \begin{equation}\end{equation} 中 而不是 #+begin_src(我认为这会导致在 ODT 中嵌入源代码),并设置一个选项(例如 #+OPTIONS: tex:imagemagick) 这将要求 Org-mode 将 LaTeX 作为图像嵌入。

http://orgmode.org/manual/Working-with-LaTeX-math-snippets.html#Working-with-LaTeX-math-snippets

注意:这可能特定于您的 Org-mode 版本——导出器框架针对 8.0 进行了重大修改,我相信该文档适用于 Org-mode 8.0。

关于emacs - 如何将 latex 结果嵌入到 ODT 文件 emacs 组织模式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22446138/

相关文章:

latex :\usepackage{setspace}

Emacs Auctex 自定义语法高亮

linux - 如何指定自定义的 emacs 配置文件而不是 "~/.emacs"?

emacs - 如何对 Org 时钟表进行排序?

r - 设置RGL设备的大小

emacs - 如何在 Org 模式下使用 SyncTeX?

Emacs ediff 标记了不同目录缓冲区中的文件

Latex + 源代码导入

emacs - 如何在 org-mode 中为 noweb 引用创建超链接

org-mode - 枚举不是来自 1