all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Suppress export of Abstract block?
@ 2015-10-23 17:29 Lawrence Bottorff
  2015-10-23 18:04 ` John Kitchin
  2015-10-23 20:29 ` Rasmus
  0 siblings, 2 replies; 3+ messages in thread
From: Lawrence Bottorff @ 2015-10-23 17:29 UTC (permalink / raw)
  To: emacs-orgmode Mailinglist

[-- Attachment #1: Type: text/plain, Size: 210 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 330 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Suppress export of Abstract block?
  2015-10-23 17:29 Suppress export of Abstract block? Lawrence Bottorff
@ 2015-10-23 18:04 ` John Kitchin
  2015-10-23 20:29 ` Rasmus
  1 sibling, 0 replies; 3+ messages in thread
From: John Kitchin @ 2015-10-23 18:04 UTC (permalink / raw)
  To: Lawrence Bottorff; +Cc: emacs-orgmode Mailinglist

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Suppress export of Abstract block?
  2015-10-23 17:29 Suppress export of Abstract block? Lawrence Bottorff
  2015-10-23 18:04 ` John Kitchin
@ 2015-10-23 20:29 ` Rasmus
  1 sibling, 0 replies; 3+ messages in thread
From: Rasmus @ 2015-10-23 20:29 UTC (permalink / raw)
  To: emacs-orgmode

Lawrence Bottorff <borgauf@gmail.com> 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....

Do you want to ax it or just not to display it in the browser?  The second
done with CSS (e.g. display:none).  Otherwise, you can always cut it out
with a filter.

Hope it helps,
Rasmus

-- 
Lasciate ogni speranza, voi che leggete questo.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-23 20:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-23 17:29 Suppress export of Abstract block? Lawrence Bottorff
2015-10-23 18:04 ` John Kitchin
2015-10-23 20:29 ` Rasmus

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.