From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: [bug?, org-element] latex-environment delimiters must be at BOL Date: Thu, 10 Jul 2014 13:54:50 +0200 Message-ID: <877g3ltomt.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5Cwb-00077A-91 for emacs-orgmode@gnu.org; Thu, 10 Jul 2014 07:55:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5CwN-0004BM-KA for emacs-orgmode@gnu.org; Thu, 10 Jul 2014 07:55:21 -0400 Received: from plane.gmane.org ([80.91.229.3]:34860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5CwN-0004A3-E4 for emacs-orgmode@gnu.org; Thu, 10 Jul 2014 07:55:07 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X5CwK-0006tk-EP for emacs-orgmode@gnu.org; Thu, 10 Jul 2014 13:55:04 +0200 Received: from 109.201.154.182 ([109.201.154.182]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Jul 2014 13:55:04 +0200 Received: from rasmus by 109.201.154.182 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Jul 2014 13:55:04 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, I couldn't find previous discussions on this. Looking at org-element-latex-environment-parser LaTeX environments are recognized as "[ \t]*\\\\begin{\\([A-Za-z0-9]+\\*?\\)}" (for start) and "^[ \t]*\\\\end{%s}[ \t]*$" (for the end). However, for e.g. small equations one might want to write (*) \begin{equation} PLACEHOLDER \end{equation}, i.e. in one line. This fails to be recognized as the latter regexp is not satisfied. For code generated by humans this is not an issue. However, e.g. SymPy generates code in the (*) format. Prefixing (*) with "#+LATEX:" will prevent ox-html from recognizing it. Should org-element try to catch one-line environments as the one above? Or is it "a can of worms"? Cheers, Rasmus -- Don't panic!!!