* Remove notes blocks from latex export
@ 2016-01-01 20:32 Joon Ro
2016-01-02 20:38 ` Marcin Borkowski
0 siblings, 1 reply; 3+ messages in thread
From: Joon Ro @ 2016-01-01 20:32 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 330 bytes --]
Hi,
org-reveal uses notes blocks (#+BEGIN_NOTES) for speaker notes, and I want to remove those blocks when I export those slides to latex for handouts.For src blocks it can be done easily with org-export-filter-src-block-functions - is there any way to do this with generic blocks?
Thank you and happy new year!Joon
[-- Attachment #2: Type: text/html, Size: 1024 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Remove notes blocks from latex export
2016-01-01 20:32 Remove notes blocks from latex export Joon Ro
@ 2016-01-02 20:38 ` Marcin Borkowski
2016-01-03 22:28 ` Joon Ro
0 siblings, 1 reply; 3+ messages in thread
From: Marcin Borkowski @ 2016-01-02 20:38 UTC (permalink / raw)
To: Joon Ro; +Cc: emacs-orgmode@gnu.org
On 2016-01-01, at 21:32, Joon Ro <joon.ro@outlook.com> wrote:
> Hi,
> org-reveal uses notes blocks (#+BEGIN_NOTES) for speaker notes, and I want to remove those blocks when I export those slides to latex for handouts.For src blocks it can be done easily with org-export-filter-src-block-functions - is there any way to do this with generic blocks?
A simple derived exporter? Or (on the LaTeX side) the comment package?
> Thank you and happy new year!Joon
The same to you
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Remove notes blocks from latex export
2016-01-02 20:38 ` Marcin Borkowski
@ 2016-01-03 22:28 ` Joon Ro
0 siblings, 0 replies; 3+ messages in thread
From: Joon Ro @ 2016-01-03 22:28 UTC (permalink / raw)
To: Marcin Borkowski; +Cc: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 590 bytes --]
> 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
[-- Attachment #2: Type: text/html, Size: 1183 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-01-03 22:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-01 20:32 Remove notes blocks from latex export Joon Ro
2016-01-02 20:38 ` Marcin Borkowski
2016-01-03 22:28 ` Joon Ro
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).