From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre de Buyl Subject: Re: [Orgmode] S5 export Date: Wed, 1 Jun 2011 08:41:34 -0400 Message-ID: <4F2BA09B-8330-4A94-923D-3E9A98F2F32B@ulb.ac.be> References: <28A74B24-4011-4F2D-AA51-7E18C4765669@chem.utoronto.ca> <87oc6tf2x3.fsf@gnu.org> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: multipart/mixed; boundary=Apple-Mail-10-59896113 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRkk5-0005F2-1b for emacs-orgmode@gnu.org; Wed, 01 Jun 2011 08:41:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRkk3-0005nn-Cl for emacs-orgmode@gnu.org; Wed, 01 Jun 2011 08:41:44 -0400 Received: from mxin.ulb.ac.be ([164.15.128.112]:62396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRkk2-0005mq-RG for emacs-orgmode@gnu.org; Wed, 01 Jun 2011 08:41:43 -0400 In-Reply-To: <87oc6tf2x3.fsf@gnu.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --Apple-Mail-10-59896113 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hello, After a lot a reading of org-exp.el and org-html.el I finally figured out the existence of the "HTML_CONTAINER_CLASS" property. I could then figure a minimal way to make a s5 presentation. Minimal in the sens of minimum difference with the html exporter. After setting a few STYLE and OPTIONS lines in an org file, three steps are needed: 1. Set the HTML_CONTAINER_CLASS to "slide" on level 1 headings 2. Set org-export-html-toplevel-hlevel to "1", so that slide titles behave properly 3. Replace in the html output
by
You need the "ui" directory from the S5 archive to make it work indeed, http://meyerweb.com/eric/tools/s5/ . I attach an example org file and the resulting html (which was tweaked according to step 3). Pierre --Apple-Mail-10-59896113 Content-Transfer-Encoding: 7bit Content-Type: text/html; x-unix-mode=0644; name=test2.html Content-Disposition: attachment; filename=test2.html test2

test2

First slide

Introductory text.

  • Maybe
  • a
  • list

Second slide

We may present easily source code.

import numpy as np
print np.pi

Third slide

subheading 1

Text

subheading 2

Figure

http://orgmode.org/img/org-mode-unicorn.png

--Apple-Mail-10-59896113 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name=test2.org Content-Disposition: attachment; filename=test2.org #+STYLE: #+STYLE: #+STYLE: #+STYLE: #+STYLE: #+STYLE: #+STYLE: #+STYLE: #+STYLE: #+STYLE: #+OPTIONS: toc:nil author:nil timestamp:nil creator:nil num:nil H:2 * First slide :PROPERTIES: :HTML_CONTAINER_CLASS: slide :END: Introductory text. - Maybe - a - list * Second slide :PROPERTIES: :HTML_CONTAINER_CLASS: slide :END: We may present easily source code. #+begin_src python import numpy as np print np.pi #+end_src * Third slide :PROPERTIES: :HTML_CONTAINER_CLASS: slide :END: ** subheading 1 Text ** subheading 2 Figure #+ATTR_HTML: width="500px" [[http://orgmode.org/img/org-mode-unicorn.png]] --Apple-Mail-10-59896113 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Le 3 f=E9vr. 11 =E0 12:23, Bastien a =E9crit : > Hi Pierre, > > Pierre de Buyl writes: > >> S5 allows one to present a slideshow in a web browser, even full =20 >> screen for >> some browsers. >> I know that the topic has come here already, but I actually hacked =20= >> the >> excellent org-html.el export file to produde a S5 slideshow with org. > > This looks useful. > > By reading your code, I see org-export-as-s5 is a variation over > org-export-as-html. > > I would welcome an approach where we factor out some elements of > org-export-as-html, so that exporting to s5 would just require the > user to customize those elements. > > Does that seem reasonable to you? Would you volunteer to make > org-export-as-html a bit more general? Even a precise comparison > of org-export-as-s5 against org-export-as-html would be helpful at > this point. > > Thanks! > > --=20 > Bastien --Apple-Mail-10-59896113--