From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: LaTeX export problem Date: Wed, 16 Jul 2014 06:35:00 -1000 Message-ID: References: <8738e1jrq7.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7SAt-0007HM-9w for emacs-orgmode@gnu.org; Wed, 16 Jul 2014 12:35:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7SAm-0002Nl-CG for emacs-orgmode@gnu.org; Wed, 16 Jul 2014 12:35:23 -0400 Received: from gproxy4-pub.mail.unifiedlayer.com ([69.89.23.142]:33436) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1X7SAm-0002NH-5N for emacs-orgmode@gnu.org; Wed, 16 Jul 2014 12:35:16 -0400 Received: from [98.155.255.145] (port=62411 helo=manifi) by box472.bluehost.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.82) (envelope-from ) id 1X7SAZ-0002SH-6L for emacs-orgmode@gnu.org; Wed, 16 Jul 2014 10:35:03 -0600 In-Reply-To: <8738e1jrq7.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Wed, 16 Jul 2014 16:36:16 +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: Org-mode Aloha Nicolas, Nicolas Goaziou writes: > 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]]: > ... Perfect. Thanks! All the best, Tom -- T.S. Dye & Colleagues, Archaeologists 735 Bishop St, Suite 315, Honolulu, HI 96813 Tel: 808-529-0866, Fax: 808-529-0884 http://www.tsdye.com