From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Lawrence Bottorff <borgauf@gmail.com>
Cc: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: Suppress export of Abstract block?
Date: Fri, 23 Oct 2015 14:04:11 -0400 [thread overview]
Message-ID: <m2611x31ic.fsf@andrew.cmu.edu> (raw)
In-Reply-To: <CAFAhFSU3TTma_sxAwBgYdgSCr74A_5e=b9LVBqQX_xCLERygwQ@mail.gmail.com>
use a filter (http://orgmode.org/worg/exporters/filter-markup.html) and
set that text to be ""?
This will probably clobber all special blocks. If you have more than
one, you need to check if it is an abstract block somehow, and return
the text unaltered if it isnt.
This is untested ;)
(defun ox-mrkup-filter-abstract
(text back-end info)
"")
you will need a derived backend, maybe something like:
(org-export-define-derived-backend 'my-html 'html
:filters-alist
'((:filter-special-block . ox-mrkup-filter-abstract)))
Then run
(org-export-to-file 'my-html "html-marked.html")
Lawrence Bottorff writes:
> How would I suppress the
>
> #+begin_abstract
> ...
> #+end_abstract
>
> block content, specifically for the HTML export? :exports none doesn't seem
> to work. I saw the drawer hide, but this a block, not a drawer....
>
> Lb
--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
next prev parent reply other threads:[~2015-10-23 18:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-23 17:29 Suppress export of Abstract block? Lawrence Bottorff
2015-10-23 18:04 ` John Kitchin [this message]
2015-10-23 20:29 ` Rasmus
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2611x31ic.fsf@andrew.cmu.edu \
--to=jkitchin@andrew.cmu.edu \
--cc=borgauf@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.