2

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

在此处输入图像描述

代码是这样的:

#+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 文档时,没有显示矩阵。我的组织模式需要任何选项或配置吗?

谢谢

4

1 回答 1

1

未经测试,但在 Org-mode 手册中有几个答案,特别是它们涉及将代码段包装在\begin{equation}and\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 版本——exporter 框架已针对 8.0 进行了重大修改,我相信本文档适用于 Org-mode 8.0。

于 2014-03-17T13:33:57.657 回答