[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] LaTeX filter for captions
From: |
Suvayu Ali |
Subject: |
Re: [O] LaTeX filter for captions |
Date: |
Mon, 29 Jun 2015 07:22:12 +0200 |
User-agent: |
Mutt/1.5.23.1 (2014-03-12) |
On Sun, Jun 28, 2015 at 11:52:06PM +0200, Nicolas Goaziou wrote:
> Suvayu Ali <address@hidden> 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.