From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
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 [thread overview]
Message-ID: <871sfm67or.fsf@gmx.us> (raw)
In-Reply-To: 1523011298.22072.3.camel@gmail.com
> 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
prev parent reply other threads:[~2018-04-10 22:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-06 10:41 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/)] Christoph Michelbach
2018-04-10 22:03 ` Rasmus [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871sfm67or.fsf@gmx.us \
--to=rasmus@gmx.us \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).