On 08/07/2022 12:04, Ihor Radchenko wrote:
ed...@openmail.cc writes:

    (defun org-export-ignore-headlines-latex (data backend info)
      "Hack of `org-export-ignore-headlines' for LaTeX: add a
conditional for the latex backend and replace 'ignore' with 'ignoreltx'"
      (when (org-export-derived-backend-p backend 'latex)
        (org-element-map data 'headline
          (lambda (object)
            (when (member "ignoreltx" (org-element-property :tags object))
...
              (org-element-extract-element object)))
          info nil)
        data))

Note that this modified version of the function is derived from
org-export-ignore-headlines from ox-extra.el [1]
...
[1] https://git.sr.ht/~bzg/org-contrib

It looks like almost verbatim copy of https://orgmode.org/worg/org-faq.html#org11adb66 FAQ: 18.1. How do I ignore a headline?
added in 2014 (eb56c1ab34)


Reply via email to