From: Joon Ro <joon.ro@outlook.com>
To: Marcin Borkowski <mbork@mbork.pl>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Remove notes blocks from latex export
Date: Sun, 3 Jan 2016 16:28:19 -0600 [thread overview]
Message-ID: <COL125-W19858ED163C99A86B8D7A5EBF10@phx.gbl> (raw)
In-Reply-To: <871t9zu36k.fsf@mbork.pl>
[-- 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 --]
prev parent reply other threads:[~2016-01-03 22:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=COL125-W19858ED163C99A86B8D7A5EBF10@phx.gbl \
--to=joon.ro@outlook.com \
--cc=emacs-orgmode@gnu.org \
--cc=mbork@mbork.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).