From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [patch, ox-latex] caption and :float nil Date: Wed, 01 Jul 2015 22:16:22 +0200 Message-ID: <87vbe3my5l.fsf@nicolasgoaziou.fr> References: <87twtovkjh.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAOPI-0002KH-DB for emacs-orgmode@gnu.org; Wed, 01 Jul 2015 16:14:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAOPH-0000o7-Eq for emacs-orgmode@gnu.org; Wed, 01 Jul 2015 16:14:56 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:60327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAOPH-0000nO-8t for emacs-orgmode@gnu.org; Wed, 01 Jul 2015 16:14:55 -0400 In-Reply-To: <87twtovkjh.fsf@gmx.us> (rasmus@gmx.us's message of "Wed, 01 Jul 2015 01:33:22 +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: Rasmus Cc: aaronecay@gmail.com, emacs-orgmode@gnu.org Hello, Rasmus writes: > Attached is a patch that works reasonably well to allow :float nil > "floats" to have captions in ox-latex. Thanks for the patch. A minor comment follows. > + (attr (org-export-read-attribute :attr_latex element)) > + (nonfloat (and (member :float attr) (plist-member :float attr) > - 'figure)))) > + (if (and (member :float attr) (not float)) 'nonfloat > + 'figure)) Ditto. Regards, -- Nicolas Goaziou