From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joon Ro Subject: Remove notes blocks from latex export Date: Fri, 1 Jan 2016 14:32:03 -0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_6f224982-1938-4d5d-9487-8c25b547bc0c_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF6Mp-0007Vj-KJ for emacs-orgmode@gnu.org; Fri, 01 Jan 2016 15:32:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aF6Mm-00070g-Tu for emacs-orgmode@gnu.org; Fri, 01 Jan 2016 15:32:07 -0500 Received: from col004-omc1s17.hotmail.com ([65.55.34.27]:49156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF6Mm-00070K-Ok for emacs-orgmode@gnu.org; Fri, 01 Jan 2016 15:32:04 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" --_6f224982-1938-4d5d-9487-8c25b547bc0c_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=2C org-reveal uses notes blocks (#+BEGIN_NOTES) for speaker notes=2C and I wan= t to remove those blocks when I export those slides to latex for handouts.F= or src blocks it can be done easily with org-export-filter-src-block-functi= ons - is there any way to do this with generic blocks?=20 Thank you and happy new year!Joon = --_6f224982-1938-4d5d-9487-8c25b547bc0c_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi=2C

org-rev= eal uses notes blocks (#+BEGIN_NOTES) for speaker notes=2C and I want to re= move those blocks when I export those slides to latex for handouts.
For src blocks it can be done easily with org-export-fil= ter-src-block-functions =3B- = is there any way to do this with generic blocks? =3B
<= span style=3D"font-size: 12pt=3B">
Thank you and happy new year!
Joon
= = --_6f224982-1938-4d5d-9487-8c25b547bc0c_-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: Remove notes blocks from latex export Date: Sat, 02 Jan 2016 21:38:59 +0100 Message-ID: <871t9zu36k.fsf@mbork.pl> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFSxS-0002BB-Vs for emacs-orgmode@gnu.org; Sat, 02 Jan 2016 15:39:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aFSxN-00025q-VL for emacs-orgmode@gnu.org; Sat, 02 Jan 2016 15:39:26 -0500 Received: from mail.mojserwer.eu ([195.110.48.8]:39656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFSxN-00025l-OJ for emacs-orgmode@gnu.org; Sat, 02 Jan 2016 15:39:21 -0500 In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Joon Ro Cc: "emacs-orgmode@gnu.org" On 2016-01-01, at 21:32, Joon Ro 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joon Ro Subject: Re: Remove notes blocks from latex export Date: Sun, 3 Jan 2016 16:28:19 -0600 Message-ID: References: , <871t9zu36k.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_75dab023-a3bb-406f-a87b-daf7c876a57a_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFr8T-000496-CS for emacs-orgmode@gnu.org; Sun, 03 Jan 2016 17:28:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aFr8Q-0004Zj-6H for emacs-orgmode@gnu.org; Sun, 03 Jan 2016 17:28:25 -0500 Received: from col004-omc2s7.hotmail.com ([65.55.34.81]:58710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFr8P-0004Zb-Tv for emacs-orgmode@gnu.org; Sun, 03 Jan 2016 17:28:22 -0500 In-Reply-To: <871t9zu36k.fsf@mbork.pl> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Marcin Borkowski Cc: "emacs-orgmode@gnu.org" --_75dab023-a3bb-406f-a87b-daf7c876a57a_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > A simple derived exporter? Or (on the LaTeX side) the comment package? >=20 Thank you. I managed to achieve this with the following code: (defun my/latex-remove-NOTES-blocks (text backend info) "Filter special bl= ocks 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-block= s)) This was the first emacs-lisp code that I wrote with knowing what I was doi= ng. :) Best=2CJoon = --_75dab023-a3bb-406f-a87b-daf7c876a57a_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
>=3B A simple derived exp= orter? Or (on the LaTeX side) the comment package?
>=3B

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

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

(eval-after-load 'ox '(add-to-list
 =3B  =3B  = =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B=  =3B'org-export-filter-special-block-functions
 =3B &nbs= p=3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B  = =3B  =3B  =3B'my/latex-remove-NOTES-blocks))
=

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

Best=2C
=
Joon
= --_75dab023-a3bb-406f-a87b-daf7c876a57a_--