From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Fraga, Eric" Subject: Re: Issues with nested begin..end blocks in inline math environments Date: Sat, 7 Dec 2019 11:30:25 +0000 Message-ID: <87d0d0e5kg.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:60378) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idYI8-0007Su-Oi for emacs-orgmode@gnu.org; Sat, 07 Dec 2019 06:30:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1idYI7-0001fA-Pd for emacs-orgmode@gnu.org; Sat, 07 Dec 2019 06:30:28 -0500 Received: from mail-eopbgr40093.outbound.protection.outlook.com ([40.107.4.93]:56288 helo=EUR03-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1idYI7-0001YF-Hv for emacs-orgmode@gnu.org; Sat, 07 Dec 2019 06:30:27 -0500 In-Reply-To: (Matt Huszagh's message of "Fri, 6 Dec 2019 11:42:40 -0800") Content-Language: en-US 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: Matt Huszagh Cc: "emacs-orgmode@gnu.org" On Friday, 6 Dec 2019 at 11:42, Matt Huszagh wrote: > I'm experiencing incorrect and seemingly inconsistent behavior when nesti= ng > `\begin` `\end` environments inside `\(\)` or `$$`. For example, the > following is valid latex code: The identification of LaTeX fragments is somewhat fragile (in my experience). I would suggest you enclose complex LaTeX code fragments within an #+begin_export latex ... #+end_export environment. Assuming your export target is LaTeX and/or PDF. --=20 Eric S Fraga via Emacs 27.0.50, Org release_9.3-34-g2eee3c