In org-mode, I can exclude a code blocks from HTML export with something like this:
#+header: :eval (eval (if (string= org-export-current-backend "html") "no" "yes")))
#+begin_src R
1+1
#+end_src
How can I achieve the same for a heading and its contents? Something like a conditional noexport
tag. I have tried to use similar elisp
code in the PROPERTY
drawer but this and several variations did not work:
* Section
:PROPERTIES:
:EXPORT: (eval (if (string= org-export-current-backend "html") "no" "yes")))
:END:
I have also tried to set a TAGS
property to noexport
or :noexport: