Reputation: 924
In org-mode, try to push LaTex code to generate matrix like this
The code is like this:
#+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
But when I try to export ORG file to ODT document, the matrix are not presented. Do I need any options or configuration for my org-mode?
Thanks
Upvotes: 3
Views: 629
Reputation: 1360
Untested, but there are a couple of answers to this in the Org-mode manual, specifically they involve wrapping the snippet in \begin{equation}
and \end{equation}
rather than #+begin_src
(which I think will result in embedding the source in the ODT), and setting an option (such as #+OPTIONS: tex:imagemagick
) which will ask Org-mode to embed LaTeX as images.
http://orgmode.org/manual/Working-with-LaTeX-math-snippets.html#Working-with-LaTeX-math-snippets
Note: this may be specific to your version of Org-mode -- the exporter framework was significantly overhauled for 8.0 and I believe this documentation applies to Org-mode 8.0.
Upvotes: 1