Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm using org-mode as working environment, and so far has been extremely useful.

One of the wonders of it is the versatility of exporting... I can export to LaTeX or HTML or ODT files from the same code. :-)

However, I would like to be able of writing an aling LaTeX environment and get it exported properly to HTML.

I've tried different form, but nothing!

For example: the code returns nothing

#+BEGIN_LaTeX   
  \begin{align}
    \begin{pmatrix}
      x' \\ y' \\ z'
    \end{pmatrix} 
    = 
    \begin{pmatrix}
      R11 & R12 & R13\\
      R21 & R22 & R23\\
      R31 & R32 & R33
    \end{pmatrix}
    \begin{pmatrix}
      X \\ Y \\ Z
    \end{pmatrix}   
  \end{align}
#+END_LaTeX

Any ideas?... Thanks!

share|improve this question
    
What commands have you tried to convert this? –  slm Oct 11 '13 at 12:57
    
@slm Direct HTML export from org-mode with the keybind C-c C-e h o –  Dox Oct 11 '13 at 12:59
    
@MichaelKjörling That is not the same question, and additionally it's a different group! –  Dox Oct 11 '13 at 13:17
    
Can you please explain org-mode, I'm not familiar, so I would assume others don't as well. –  slm Oct 11 '13 at 13:30
    
@slm org-mode is an Emacs package. If you don't know what it is, you aren't in this question's audience. –  Gilles Oct 11 '13 at 22:45

1 Answer 1

Works for me. Try placing your cursor inside the equation and hit C-c C-x C-l.

This is the default shortcut for org-preview-latex-fragment. C-c C-x C-l will generate the preview and C-c C-c will revert to your original code. You can also type M-x org-preview-latex-fragment. And if you ever forget, just hit the [TAB] key anytime after hitting M-x to get a list of possible commands. You can also hit C-g to cancel everything out.

Here is a link to the relevant documentation.

share|improve this answer
    
Hi and welcome to the site. We like answers to be a bit more detailed. Could you explain what this does and why it should work or otherwise flesh this answer out? –  terdon Sep 29 at 21:38
    
Sure, no problem. This is the default shortcut for org-preview-latex-fragment. C-c C-x C-l will generate the preview and C-c C-c will revert to your original code. You can also type M-x org-preview-latex-frament. And if you ever forget, just hit the [TAB] key anytime after hitting M-x to get a list of possible commands. You can also hit C-g to cancel everything out. Here is a link to the relevant documentation. –  Adam Sep 29 at 22:03
    
Thanks, but I meant edit your answer and include that information. The comments are ephemeral and can be deleted without warning. –  terdon Sep 29 at 22:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.