From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: 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 Message-ID: <871sfm67or.fsf@gmx.us> References: <1523011298.22072.3.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f61MH-0005cX-LL for emacs-orgmode@gnu.org; Tue, 10 Apr 2018 18:03:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f61ME-0006Ta-Dz for emacs-orgmode@gnu.org; Tue, 10 Apr 2018 18:03:21 -0400 Received: from [195.159.176.226] (port=53026 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f61ME-0006TO-6Y for emacs-orgmode@gnu.org; Tue, 10 Apr 2018 18:03:18 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1f61K2-00080l-B5 for emacs-orgmode@gnu.org; Wed, 11 Apr 2018 00:01:02 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org > 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. >   >                 $ > 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. >   >                 $ > 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