From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [ANN] ASCII back-end for new export engine Date: Sun, 22 Jan 2012 21:50:09 +0100 Message-ID: <87bopvjwce.fsf@gmail.com> References: <87pqec4xua.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rp4Oa-0007xZ-Oy for emacs-orgmode@gnu.org; Sun, 22 Jan 2012 15:52:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rp4OZ-0001uR-IB for emacs-orgmode@gnu.org; Sun, 22 Jan 2012 15:52:12 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:34880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rp4OZ-0001uC-D2 for emacs-orgmode@gnu.org; Sun, 22 Jan 2012 15:52:11 -0500 Received: by wera13 with SMTP id a13so4824wer.0 for ; Sun, 22 Jan 2012 12:52:10 -0800 (PST) In-Reply-To: (Thomas S. Dye's message of "Sun, 22 Jan 2012 09:21:07 -1000") 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: "Thomas S. Dye" Cc: Org Mode List tsd@tsdye.com (Thomas S. Dye) writes: > I think there might be a problem with the regular expression for > captions on line 703 or org-e-latex.el. I have a dim understanding of > regular expressions and the various parsers, but I suspect the problem > is in this part: [^][]. > > At any rate, this input: > #+CAPTION: [An example photograph]{An example photograph}. > #+LABEL: fig:photo The regexp isn't the problem here. But this all means that I'm breaking a golden rule: never parse something already parsed. Anyway, I have switched caption keyword to the dual keywords category. That means is syntax is now like results keywords' which can have an optional string (a hash in this case) before their main value. To put it simply, caption syntax can now be: #+caption: long name #+caption[]: long name #+caption[short name]: long name much like #+results[hash]: name Though, #+caption[something]: is equivalent to no caption since the main value is mandatory. As a side note, #+label has been deprecated in favor of #+name (though the former is immediately translated into the latter at parse time). Regards, -- Nicolas Goaziou