Re: [O] ignoreheading in LaTeX export

2014-03-29 Thread Marcin Borkowski
Dnia 2014-03-27, o godz. 09:23:06 Alan Schmitt napisaƂ(a): > Hello, > > I need to ignore a heading during a LaTeX export (I don't want the > "section" command to be generated, but I need the text to be included; > the heading is there because the previous one is tagged with > "export"). I found

Re: [O] ignoreheading in LaTeX export

2014-03-29 Thread Alan Schmitt
Hi Rasmus, Rasmus writes: > This is why you would want to use a filter rather than a hook > (i.e. you only want to retain the Org structure when exporting). > Here's a slightly modified version of the filter I use. Thank you for this suggestion. I went back to my original problem (how to neatl

Re: [O] ignoreheading in LaTeX export

2014-03-27 Thread Rasmus
Alan Schmitt writes: > Nicolas Goaziou writes: > >> I suggest to use the dedicated MATCH argument for `org-map-entries': >> >> (defun as/delete-ignored-heading (backend) >> "Remove every headline with a tag `ignoreheading' in the >> current buffer. BACKEND is the export back-end bein

Re: [O] ignoreheading in LaTeX export

2014-03-27 Thread Alan Schmitt
Nicolas Goaziou writes: > I suggest to use the dedicated MATCH argument for `org-map-entries': > > (defun as/delete-ignored-heading (backend) > "Remove every headline with a tag `ignoreheading' in the > current buffer. BACKEND is the export back-end being used, as > a symbol." >

Re: [O] ignoreheading in LaTeX export

2014-03-27 Thread Nicolas Goaziou
Alan Schmitt writes: > Thanks a lot for the suggestion, here is what I ended up doing: > > #+begin_src emacs-lisp > (defun as/delete-ignored-heading (backend) > "Remove every headline with a tag `ignoreheading' in the > current buffer. BACKEND is the export back-end being used, as > a s

Re: [O] ignoreheading in LaTeX export

2014-03-27 Thread Alan Schmitt
Nicolas Goaziou writes: > Hello, > > Alan Schmitt writes: > >> I need to ignore a heading during a LaTeX export (I don't want the >> "section" command to be generated, but I need the text to be included; >> the heading is there because the previous one is tagged with "export"). >> I found this s

Re: [O] ignoreheading in LaTeX export

2014-03-27 Thread Nicolas Goaziou
Sebastien Vauban writes: > Could you explain why you would choose a hook? What's guiding your > choice? The fact that I work in the Org buffer and can use `org-map-entries', which trivializes the problem here. OTOH, a filter works at the LaTeX code level and ignoreheading tag may be missing (

Re: [O] ignoreheading in LaTeX export

2014-03-27 Thread Sebastien Vauban
Nicolas Goaziou wrote: > Alan Schmitt writes: > >> I need to ignore a heading during a LaTeX export > > You can use a hook or a filter to remove the headline. I would use > a hook in this case. Could you explain why you would choose a hook? What's guiding your choice? Thanks! > See (info "(org

Re: [O] ignoreheading in LaTeX export

2014-03-27 Thread Nicolas Goaziou
Hello, Alan Schmitt writes: > I need to ignore a heading during a LaTeX export (I don't want the > "section" command to be generated, but I need the text to be included; > the heading is there because the previous one is tagged with "export"). > I found this solution: > > https://stackoverflow.c

[O] ignoreheading in LaTeX export

2014-03-27 Thread Alan Schmitt
Hello, I need to ignore a heading during a LaTeX export (I don't want the "section" command to be generated, but I need the text to be included; the heading is there because the previous one is tagged with "export"). I found this solution: https://stackoverflow.com/questions/10295177/is-there-an-