From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: LaTeX math mode and export Date: Sat, 12 Oct 2013 10:31:30 +0200 Message-ID: <87zjqe7uvx.fsf@gmail.com> References: <87d2nb95jm.fsf@gmail.com> <874n8m9azg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUubc-0003Jq-5n for emacs-orgmode@gnu.org; Sat, 12 Oct 2013 04:31:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUubU-0004Wm-3V for emacs-orgmode@gnu.org; Sat, 12 Oct 2013 04:31:24 -0400 Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]:46932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUubT-0004Wh-SX for emacs-orgmode@gnu.org; Sat, 12 Oct 2013 04:31:16 -0400 Received: by mail-wg0-f52.google.com with SMTP id m15so5354397wgh.7 for ; Sat, 12 Oct 2013 01:31:15 -0700 (PDT) In-Reply-To: <874n8m9azg.fsf@gmail.com> (Nicolas Goaziou's message of "Sat, 12 Oct 2013 09:58:27 +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: Fabrice Popineau Cc: "emacs-orgmode@gnu.org" Completing myself, > Fabrice Popineau writes: >> But again what is surprising is that the backslash itself >> in \IEEEAuthorBlockA and \IEEEAuthorBlockN are not translated to LaTeX >> syntax. > > Honestly, it surprised me too, as I thought that every curly bracket > would be escaped. But I don't have time to look into it at the moment. Actually, the reason is that regexp matching a macro is: "\\\\[a-zA-Z]+\\*?\\(\\(\\[[^][\n{}]*\\]\\)\\|\\({[^{}\n]*}\\)\\)*" IOW, brackets (even escaped) are not allowed in the arguments of a LaTeX macro. So the first \IEEEAuthorBlockN is correctly recognized but \IEEEauthorblockA fails. This is not optimal, but I think it is sufficient, since, again, Org handles only simple raw LaTeX syntax.