From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: s5 presentation Date: Wed, 10 Nov 2010 16:47:34 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1378861852==" Return-path: Received: from [140.186.70.92] (port=34080 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGJb7-0001xw-SF for emacs-orgmode@gnu.org; Wed, 10 Nov 2010 17:57:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGJS5-0002ra-CV for emacs-orgmode@gnu.org; Wed, 10 Nov 2010 17:47:38 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:40371) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGJS5-0002rG-0y for emacs-orgmode@gnu.org; Wed, 10 Nov 2010 17:47:37 -0500 Received: by fxm20 with SMTP id 20so888404fxm.0 for ; Wed, 10 Nov 2010 14:47:35 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Dov Grobgeld Cc: emacs-orgmode@gnu.org --===============1378861852== Content-Type: multipart/alternative; boundary=001636c5995ab491710494baa4bf --001636c5995ab491710494baa4bf Content-Type: text/plain; charset=ISO-8859-1 I was interested in this but hadn't tried it. After seeing your message I decided to give it a whirl. The only thing the README may leave slightly to the imagination is that one needs to setup org-publish in addition to the rest of the steps. I had never done this before so I followed Worg's instructions and was able to generate the s5 presentations provided with the git repo (blank and demo). Were I to expand the README, it would read like this: -------------------- - git clone https://github.com/sigma/org-s5.git - download jquery here: http://docs.jquery.com/Downloading_jQuery (I used 1.4.3 and renamed it jquery.js - download the s5 zip file here: http://meyerweb.com/eric/tools/s5/ - unzip s5 --- mkdir s5 --- cd s5 --- unzip path/to/s5.zip --- note presence of folder called ui - get org publishing setup [1] --- mkdir s5-publish --- mkdir s5-publish/source --- mkdir s5-publish/exported --- edit .emacs and add this: ,----- | (setq org-publish-project-alist | '(("org-s5" | :base-directory "~/path/to/s5-publish/source" | :base-extension "org" | :publishing-directory "~/path/to/s5-publish/exported" | :recursive t | :publishing-function org-publish-org-to-html | :headline-levels 4 | :auto-preamble t | ))) `----- - get the s5 stuff where it needs to be --- cp path/to/s5/ui s5-publish/exported/ --- cp jquery.js s5-publish/exported/ui/ --- cp path/to/s5-org.git/org-slides.js s5/publish/exported/ui/ --- cp path/to/s5-org.git/s5-demo.org s5/publish/source/ Restart emacs and try M-x org-publish-project and hit return twice. It should export path/to/s5-publish/source/s5-demo.org into the export directory we created; look for path/to/s5-publish/exported/s5-demo.html and open it up. ---------------------- [1] I got the .emacs code from Worg here: http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.php [2] [2] Worg lists the base and publish directories with trailing slashes. I was not able to publish successfully until I googled around and found a mailing list post (http://patchwork.newartisans.com/patch/233/) where the poster did not have trailing slashes. In trying that, it worked. Hope that helps, John On Wed, Nov 10, 2010 at 2:53 PM, Dov Grobgeld wrote: > I tried to get the s5 presentation mode from > https://github.com/sigma/org-s5 running, but I'm missing something. I > followed all the steps in the README, but how do you generate the S5:ified > html? I tried simply doing [C-c C-e b] but it did not open up in s5 mode. > What am I missing? Should the generated html contain the contents of > preamble in org-s5.el? It does not. > > Thanks! > Dov > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > --001636c5995ab491710494baa4bf Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I was interested in this but hadn't tried it. After seeing your message= I decided to give it a whirl. The only thing the README may leave slightly= to the imagination is that one needs to setup org-publish in addition to t= he rest of the steps. I had never done this before so I followed Worg's= instructions and was able to generate the s5 presentations provided with t= he git repo (blank and demo). Were I to expand the README, it would read li= ke this:

--------------------
- git clone=A0https://github.com/sigma/org-s5.git
- download jquery here:=A0http://docs.jquery.com/Downloading_jQuery=A0(I used 1.4.3=A0= and renamed it jquery.js
- download the= s5 zip file here:=A0http://me= yerweb.com/eric/tools/s5/

- un= zip s5
--- mkdir s5
--- cd s5
--- unzip path/= to/s5.zip
--- note presence of folder called ui

- get org publishing setup [1]
--- mkdir s5-publish
--- mkdir s5-publish/source
--- mkdir s5-publish/exported
=
--- edit .emacs and add this:

,-----
|=A0(setq org-publish-project-alist
| =A0 '(("org-s= 5"
| =A0 =A0 =A0:base-directory "~/path/to/s5-publish/s= ource"
| =A0 =A0 =A0:base-extension "org"
| =A0 =A0 =A0:publishing-directory "~/path/to/s5-publish/exported&qu= ot;
| =A0 =A0 =A0:recursive t
| =A0 =A0 =A0:publishing-function = org-publish-org-to-html
| =A0 =A0 =A0:headline-levels 4
| =A0 =A0 =A0:auto-preamble t
| =A0 =A0 =A0)))
`-----<= /div>

- get the s5 stuff where it needs to be
--- cp path/to/s5/ui s5-publish/exported/
--- cp jquery.js s= 5-publish/exported/ui/
--- cp path/to/s5-org.git/org-slides.js s5= /publish/exported/ui/
--- cp path/to/s5-org.git/s5-demo.org s5/publish/source/

Restart emacs and try M-x org-publish-project and hit r= eturn twice. It should export path/to/s5-publish/source/s5-demo.org into the export directory we created; look for = path/to/s5-publish/exported/s5-demo.html and open it up.
----------------------

[1] I got the .emacs c= ode from Worg here:=A0http://orgmode.org/worg/org-tutorials/org-publis= h-html-tutorial.php=A0[2]

[2] Worg lists the base and publish directories with tr= ailing slashes. I was not able to publish successfully until I googled arou= nd and found a mailing list post (http://patchwork.newartisans.com/patch/233/)=A0where the= poster did not have trailing slashes. In trying that, it worked.


Hope that helps,
John


On Wed, Nov 1= 0, 2010 at 2:53 PM, Dov Grobgeld <dov.grobgeld@gmail.com> wrote:
I tried to get the s5 presentation mode from https://github.com/sigma/o= rg-s5 running, but I'm missing something. I followed all the steps = in the README, but how do you generate the S5:ified html? I tried simply do= ing [C-c C-e b] but it did not open up in s5 mode. What am I missing? Shoul= d the generated html contain the contents of preamble in org-s5.el? It does= not.

Thanks!
Dov


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


--001636c5995ab491710494baa4bf-- --===============1378861852== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1378861852==--