From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: LaTeX filter for captions Date: Mon, 29 Jun 2015 07:22:12 +0200 Message-ID: <20150629052212.GG24926@chitra.no-ip.org> References: <20150628214043.GA26960@chitra.no-ip.org> <87zj3jlcvt.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9RWQ-000491-FV for emacs-orgmode@gnu.org; Mon, 29 Jun 2015 01:22:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9RWJ-0005OG-8i for emacs-orgmode@gnu.org; Mon, 29 Jun 2015 01:22:22 -0400 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:35993) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9RWJ-0005O8-1A for emacs-orgmode@gnu.org; Mon, 29 Jun 2015 01:22:15 -0400 Received: by wguu7 with SMTP id u7so131110922wgu.3 for ; Sun, 28 Jun 2015 22:22:14 -0700 (PDT) Received: from chitra.no-ip.org (ip82-139-115-46.lijbrandt.net. [82.139.115.46]) by mx.google.com with ESMTPSA id y19sm10320238wia.15.2015.06.28.22.22.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Jun 2015 22:22:13 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87zj3jlcvt.fsf@nicolasgoaziou.fr> 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: emacs-orgmode@gnu.org On Sun, Jun 28, 2015 at 11:52:06PM +0200, Nicolas Goaziou wrote: > Suvayu Ali writes: > > > I wanted to apply a filter to normal text and captions. So I initially > > used org-export-filter-body-functions, however this also applies on the > > section title. Handling that case would make my filter a bit more > > complicated. So I switched to using > > org-export-filter-paragraph-functions. However I can't find what would > > be the corresponding filter list for captions (both figures and > > tables). > > There is no such filter. By the time filters are called, captions have > already been merged with their element. IOW, > `org-export-filter-paragraph-functions' is applied to a string > containing both the caption and the paragraph. Indeed, this makes sense. I was mistaken about what I was looking at. When I noticed my filter was not being applied to captions, I had forgotten those particular figures were exported via latex blocks, not as usual figures! Adding my filter to org-export-filter-export-block-functions solved my issue. Thanks! -- Suvayu Open source is the future. It sets us free.