> Org-mode seems to support environment-based math formulas. However, when > using pmatrix, the buffer *Org PDF LaTeX Output* always shows an > error when exporting to PDF via LaTeX. This even happens for the > simplest of matrices: > > \begin{pmatrix} > 0 > \end{pmatrix} > > An org file with only these 3 lines of content is sufficient for > reproducing the bug. Upon typing "C-c C-e l p", the error message "PDF > file produced with errors." is shown in the mini buffer. The buffer *Org > PDF LaTeX Output* shows this error message: > > ! Missing $ inserted. > <inserted text> > $ > l.31 \begin{pmatrix} > > (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd) > (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd) > ! Missing $ inserted. > <inserted text> > $ > l.33 \end{pmatrix}
In your example they are missing. You could write \(\begin{pmatrix} 0 \end{pmatrix} \) Or #+ATTR_LATEX: :mode math :environment pmatrix | 0 | -- Nothing's wrong with an email that ends in a minor key