emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Suppress export of Abstract block?


From: John Kitchin
Subject: Re: [O] Suppress export of Abstract block?
Date: Fri, 23 Oct 2015 14:04:11 -0400
User-agent: mu4e 0.9.13; emacs 25.0.50.1

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



reply via email to

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