emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ignore, skip, omit headline when exporting to LaTeX


From: Max Nikulin
Subject: Re: Ignore, skip, omit headline when exporting to LaTeX
Date: Thu, 14 Jul 2022 22:29:04 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

On 08/07/2022 12:04, Ihor Radchenko wrote:
edgar@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

[Prev in Thread] Current Thread [Next in Thread]