Fix detection of latex fragments
commit6779f8f424883ffd202e24cbd8bb4e241db294b0
authorTitus von der Malsburg <malsburg@posteo.de>
Fri, 8 May 2015 22:25:06 +0000 (8 15:25 -0700)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 9 May 2015 07:36:53 +0000 (9 09:36 +0200)
treefc40f7a6b6a1227ab3f0127fa36b918add1f869b
parentb27e630babc461ef22528c2dccf339f84d0a8476
Fix detection of latex fragments

* org-element.el (org-element-latex-fragment-parser):
* org.el (org-latex-regexps): Fix the detection of latex
  fragments.  Uses syntax tables to detect whitespaces and punctuation
  marks following the final $ sign.

In order to qualify as a math delimiter, the final $ sign of a LaTeX
fragment has to be followed by a whitespace or punctuation mark but the
regexp used in the previous code matched only a small number of
punctuation marks and therefore missed some latex fragments.
doc/org.texi
lisp/org-element.el
lisp/org.el