gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-05 06:45:42 25 4
gpt4 key购买 nike

在组织模式下,尝试推送 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com