From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [RFC] [PATCH] ox-latex: support :float no with caption for minted listings Date: Sat, 23 Aug 2014 21:47:32 +0200 Message-ID: <87ha13dm3v.fsf@nicolasgoaziou.fr> References: <1408779394-11436-1-git-send-email-aaronecay@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLHHD-0000Wf-8c for emacs-orgmode@gnu.org; Sat, 23 Aug 2014 15:47:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XLHH3-0006NC-4Y for emacs-orgmode@gnu.org; Sat, 23 Aug 2014 15:47:03 -0400 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:46020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLHH2-0006Mw-QQ for emacs-orgmode@gnu.org; Sat, 23 Aug 2014 15:46:53 -0400 In-Reply-To: <1408779394-11436-1-git-send-email-aaronecay@gmail.com> (Aaron Ecay's message of "Sat, 23 Aug 2014 03:36:34 -0400") 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: Aaron Ecay Cc: emacs-orgmode@gnu.org Hello, Aaron Ecay writes: > * lisp/ox-latex.el (org-latex-src-block): Support :float no with > caption for minted. > (org-latex-listings): Edit docstring to describe this usecase. There is already :float nil, which is documented in the manual. > + (cond ((and (string= "no" float) caption) > + (format "%%s\n%s" (replace-regexp-in-string > + "\\\\caption" "\\captionof{listing}" > + caption-str t t))) I think this should be a (trivial) filter. Is there any reason to support "captionof" package out of the box? Regards, -- Nicolas Goaziou