From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [patch, ox-latex] captions and latex-environments Date: Fri, 24 Mar 2017 17:25:33 +0100 Message-ID: <878tnu63r6.fsf@gmx.us> 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> <8737e49dd1.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crS23-0006ef-H4 for emacs-orgmode@gnu.org; Fri, 24 Mar 2017 12:25:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1crS1z-0006wh-Hw for emacs-orgmode@gnu.org; Fri, 24 Mar 2017 12:25:43 -0400 Received: from mout.gmx.net ([212.227.17.21]:64627) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1crS1z-0006vy-9F for emacs-orgmode@gnu.org; Fri, 24 Mar 2017 12:25:39 -0400 In-Reply-To: <8737e49dd1.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Thu, 23 Mar 2017 17:17:30 +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: mail@nicolasgoaziou.fr Cc: emacs-orgmode@gnu.org Nicolas Goaziou writes: > 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 co= de >> would detect the wrong environment. > > But in this case, the caption is ambiguous anyway. Therefore, I see > nothing wrong here. I pushed a simplified version that doesn't consider org-latex-custom-lang-environments. If anyone ever needs that we can add it. I expect it=E2=80=99s mainly useful for tables and images anyway. Let me know if there=E2=80=99s any problems. Rasmus --=20 Warning: Everything saved will be lost