emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] ox-html HOWTO? exporting #+RESULTS inside div


From: Cook, Malcolm
Subject: Re: [O] ox-html HOWTO? exporting #+RESULTS inside div
Date: Thu, 22 Oct 2015 06:13:56 +0000

Charles, 

Excellent - that is precisely what I needed.

Additionally, I can avoid having to include the :wrap keyword on every header 
by specifying a single  buffer-wide  header arguments, such as

    #+PROPERTY: header-args :wrap org-results-container

Thanks,

~ address@hidden

________________________________________
From: Charles C. Berry <address@hidden>
Sent: Wednesday, October 21, 2015 9:18 PM
To: Cook, Malcolm
Cc: address@hidden
Subject: Re: ox-html HOWTO? exporting #+RESULTS inside div

On Wed, 21 Oct 2015, Cook, Malcolm wrote:

> Hi,
>
> I would like to contrive for the contents of results blocks to be
> embedded in a new div with a common class of org-results-container.

Try this:

--8<---------------cut here---------------start------------->8---
#+BEGIN_SRC shell :exports both :wrap org-results-container
echo "org results here"
#+END_SRC
--8<---------------cut here---------------end--------------->8---

which html export renders as

--8<---------------cut here---------------start------------->8---
<div class="org-results-container">
<p>
org results here
</p>

</div>
--8<---------------cut here---------------end--------------->8---

You can add a special-block filter if the <p> ... </p> is unwanted.

HTH,

Chuck


reply via email to

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