[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: Usage of pmatrix yields error message dispite lack of error
From: |
Rasmus |
Subject: |
Re: [O] Bug: Usage of pmatrix yields error message dispite lack of error [9.1.9 (9.1.9-3-gb1a639-elpa @ /home/christoph/.emacs.d/elpa/org-20180402/)] |
Date: |
Wed, 11 Apr 2018 00:03:00 +0200 |
User-agent: |
Emacs Gnus |
> 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