emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Remove notes blocks from latex export


From: Joon Ro
Subject: Re: [O] Remove notes blocks from latex export
Date: Sun, 3 Jan 2016 16:28:19 -0600

> A simple derived exporter? Or (on the LaTeX side) the comment package?
>

Thank you. I managed to achieve this with the following code:

(defun my/latex-remove-NOTES-blocks (text backend info)
  "Filter special blocks from latex export."
  (when (eq backend 'latex) 
    (if (string/starts-with text "\\begin{NOTES}") "")))

(eval-after-load 'ox '(add-to-list
                       'org-export-filter-special-block-functions
                       'my/latex-remove-NOTES-blocks))


This was the first emacs-lisp code that I wrote with knowing what I was doing. :)

Best,
Joon

reply via email to

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