Re: [O] Filtering in export hooks

2011-09-06 Thread suvayu ali
Hi Carsten, On Tue, Sep 6, 2011 at 11:49 AM, Carsten Dominik wrote: > > Which of the preprocessing hooks are you using?  I am still confused > by your description, maybe you can make a small example and show > exactly what works and what does not work? I finally managed to isolate the issue and

Re: [O] Filtering in export hooks

2011-09-06 Thread suvayu ali
On Tue, Sep 6, 2011 at 12:16 PM, suvayu ali wrote: > I am not using org-export-preprocess-hook > because some of the latex gets escaped during the export (e.g. {..} > becomes \{..}). > Sorry I confused this with an old issue, the problem here is org markup like /italics/ or *bold* and links don't

Re: [O] Filtering in export hooks

2011-09-06 Thread suvayu ali
Hi Carsten, On Tue, Sep 6, 2011 at 11:49 AM, Carsten Dominik wrote: > Which of the preprocessing hooks are you using?  I am still confused > by your description, maybe you can make a small example and show exactly what > works and what does not work? > This is what I am using at the moment: (d

Re: [O] Filtering in export hooks

2011-09-06 Thread Carsten Dominik
On Sep 6, 2011, at 11:08 AM, suvayu ali wrote: > Hi Carsten, > > On Tue, Sep 6, 2011 at 10:58 AM, Carsten Dominik > wrote: >>> >>> But this only works when tags: is non-nil. Any hints on how I could >>> achieve something that "works always"? >> >> May be I do not understand, but how about >>

Re: [O] Filtering in export hooks

2011-09-06 Thread suvayu ali
Hi Carsten, On Tue, Sep 6, 2011 at 10:58 AM, Carsten Dominik wrote: >> >> But this only works when tags: is non-nil. Any hints on how I could >> achieve something that "works always"? > > May be I do not understand, but how about > > (let ((match "tag1|tag2")) >  (when match >   (org-map-entries

Re: [O] Filtering in export hooks

2011-09-06 Thread Carsten Dominik
On Sep 6, 2011, at 10:49 AM, suvayu ali wrote: > Hi Orgers, > > What is the recommended way to filter/select headlines I want to > preprocess in any of the export hooks? I have tried using tags like > this: > > (let ((match "tag1|tag2")) > (org-map-entries (lambda () (my-preprocess-function))

[O] Filtering in export hooks

2011-09-06 Thread suvayu ali
Hi Orgers, What is the recommended way to filter/select headlines I want to preprocess in any of the export hooks? I have tried using tags like this: (let ((match "tag1|tag2")) (org-map-entries (lambda () (my-preprocess-function)) match)) But this only works when tags: is no