From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: LaTeX export problem Date: Wed, 16 Jul 2014 16:36:16 +0200 Message-ID: <8738e1jrq7.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7QJ8-0001S9-Hr for emacs-orgmode@gnu.org; Wed, 16 Jul 2014 10:35:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7QIy-00080L-IW for emacs-orgmode@gnu.org; Wed, 16 Jul 2014 10:35:46 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:48059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7QIy-0007zN-97 for emacs-orgmode@gnu.org; Wed, 16 Jul 2014 10:35:36 -0400 In-Reply-To: (Thomas S. Dye's message of "Sun, 13 Jul 2014 11:25:21 -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 Hello, tsd@tsdye.com (Thomas S. Dye) writes: > With a recent Org from git and this source: > > #+attr_latex: :width 0.8\textwidth :placement [htb] > #+name: fig:harris-errors > #+caption[Structural effects of false transitives]: Structural effects of false transitives with the stratigraphic section in Figure [[fig:fig12-open]]: > I get this incorrect LaTeX output: [...] > If I place a space between the final colon and the link on the > first #+caption: line, then I get the output I'm expecting (although > there is the extraneous space): [...] This is because regexp finding short captions is greedy. It thus catches everything up to the last "]:" in the first line, making the link invalid. > Is there a work-around? Just make sure the line containing the short caption doesn't end with "]:", e.g., ... #+caption[Structural effects of false transitives]: #+caption: Structural effects of false transitives with the stratigraphic section in Figure [[fig:fig12-open]]: ... Regards, -- Nicolas Goaziou