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
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
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
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."
>
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
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
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 (
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
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
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-
10 matches
Mail list logo