From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [patch, ox-latex] captions and latex-environments Date: Thu, 23 Mar 2017 17:17:30 +0100 Message-ID: <8737e49dd1.fsf@nicolasgoaziou.fr> References: <87k27pv38z.fsf@gmx.us> <87bmt1v2xs.fsf@gmx.us> <87tw6se5a3.fsf@nicolasgoaziou.fr> <874lystfyh.fsf@gmx.us> <87a88kdtvz.fsf@nicolasgoaziou.fr> <87efxsuid9.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cr5Ql-0005dL-La for emacs-orgmode@gnu.org; Thu, 23 Mar 2017 12:17:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cr5Qg-0005dn-T0 for emacs-orgmode@gnu.org; Thu, 23 Mar 2017 12:17:43 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:47586) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cr5Qg-0005db-Mb for emacs-orgmode@gnu.org; Thu, 23 Mar 2017 12:17:38 -0400 In-Reply-To: <87efxsuid9.fsf@gmx.us> (rasmus@gmx.us's message of "Mon, 20 Mar 2017 15:34:42 +0100") 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: Rasmus Cc: emacs-orgmode@gnu.org Hello, Rasmus writes: >>> Another danger is that someone writes something like, >>> >>> \begin{center} >>> \begin{table} >>> ... >> >> You can start the regexp with "\\`[ \t]*..." > > The point is, that the env. will be center rather than table. So the code > would detect the wrong environment. But in this case, the caption is ambiguous anyway. Therefore, I see nothing wrong here. Regards, -- Nicolas Goaziou