From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [Orgmode] S5 export Date: Fri, 03 Jun 2011 09:02:01 -0600 Message-ID: <877h93dk3i.fsf@gmail.com> References: <28A74B24-4011-4F2D-AA51-7E18C4765669@chem.utoronto.ca> <87oc6tf2x3.fsf@gnu.org> <4F2BA09B-8330-4A94-923D-3E9A98F2F32B@ulb.ac.be> <87d3ixfa3x.fsf@gmail.com> <853CA2B4-BD3A-4CB6-953E-775CEEDBBCDA@ulb.ac.be> <87y61jdqsj.fsf@gmail.com> <61CF47B5-032E-4E67-8B79-CC990BD04819@ulb.ac.be> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSW3s-0001J5-HU for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 11:13:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSW3k-0005zQ-I1 for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 11:13:19 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:58670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSW3j-0005z9-WD for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 11:13:12 -0400 Received: by pvc12 with SMTP id 12so1104100pvc.0 for ; Fri, 03 Jun 2011 08:13:11 -0700 (PDT) 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: Pierre de Buyl Cc: emacs-orgmode@gnu.org Pierre de Buyl writes: >>> If welcomed, I have a few comments related to how I currently use >>> this >>> function (I have a talk coming soon :-) ) >> >> Certainly, I'm happy to hear your feedback. >> >> I have the most recent version of my code up in a git repository >> available at [1], with the file defining the `org-export-as-s5' >> function >> up at [2]. > > I can't clone the repository. > $ git clone http://gitweb.adaptive.cs.unm.edu/org-S5.git > Cloning into org-S5... > warning: remote HEAD refers to nonexistent ref, unable to checkout. > > I could get a snapshot however, from the web interface. > Try cloning using the git:// protocol, rather than http:// git clone git://gitweb.adaptive.cs.unm.edu/org-S5.git > >>> - If all "star" headlines become slides, it quickly leads to >>> awkward layouts with empty slides below one star headings. >> >> Agreed, for this reason `org-export-headline-levels' is set to 1. >> >>> >>> I made a modification to the code to choose only one star >>> headings as slides. This way, level 2 headings can be used as "in >>> slide" headings. >>> I used an (if (looking-at "^\\* ") XXX) in the preprocess hook >>> for that. >> >> I think using the `org-export-headline-levels' variable should be an >> easier way to implement this. See line 29 of the current code where >> this variable is set. >> >> Oh, looking more closely, I see why you've made this change. Even >> though it shouldn't affect the output it seems wasteful to add the >> 'html-container-class property to non-top-level headlines. I've >> added a >> slight modification of your change to my code. > Also, you cannot CSS properties for level 2 headlines, for instance. > > With your modification, it is still not possible to use level 2 > headings in a slide with proper CSS formatting. > Ah, because they become formatted as list elements. This makes sense, I've reverted this part of my changes. Thanks for clarifying. > >>> - An actual "title page" seems more appropriate, so I added one >>> with "title author date" as h1,h2 and h3 headings. >> >> Great idea. I've updated my code to include two customizable format >> strings (`org-s5-title-string-fmt' and `org-s5-title-page-fmt') which >> can be used to specify the title string shown at the bottom of each >> page, and the title page respectively. > Ok, but how should one set that ? > I have the feeling that defining variables is not an easy approach. > For instance, can it be set as a text field in the file ? > Ok, I just read it and they are taken from the regular title author > and date variables. > Yes, these variables are bound by Org-mode during export. The `org-s5-title-string-fmt' and `org-s5-title-page-fmt' variables can be set in a user's .emacs or as file local variables. > >>> The css need to be tweaked a little bit to get nice results. >>> My modified org-export-as-s5 function is attached. >>> >>> I also posted an example online. It it exported from the file s5- >>> test.org with the function defined in the attached file. The css is >>> very slightly modified. >>> The "scientific content" of the talk is incomplete, this is normal >>> :-/ >>> >>> http://homepages.ulb.ac.be/~pdebuyl/lectures/s5-test.html >>> http://homepages.ulb.ac.be/~pdebuyl/lectures/s5-test.org >>> >> >> Very nice, I really like the title page addition, and it's great to >> see >> pictures, code and latex equations in a single example presentation. >> >> I have an example with a simple theme I wrote available online [3]. >> Just yesterday I added a page to Worg [4] with instructions for using >> this new function which links to my simple example presentation. If >> you >> don't mind sharing your example publicly I think it would make a great >> addition to this worg page. > > You can post all of that, source and everything, on worg. It should > just not rely on links to my page for the pictures, if possible. > Great, If I find the time I'll copy this example somewhere and link to it from the worg page. > >> In general, I think this new S5 export option is turning into a very >> useful addition to Org-mode. >> >> Cheers -- Eric > > It is especially useful for presentations with source code, in my > opinion. Agreed, I personally like it as a way to publish or distribute quick presentation I've give with epresent [1]. Thanks -- Eric >=20 > Regards, > > Pierre > > >>> >>> For those reading, I'll mention that using the html export, as done >>> here, allows to include syntax-highlighted code and LaTeX equations >>> very easily. >>> >>> Regards, >>> >>> Pierre >>> >>> Le 1 juin 11 =C3=A0 18:41, Eric Schulte a =C3=A9crit : >>> >>>> Hi Pierre, >>>> >>>> I've taken your very thorough S5 instructions and converted them >>>> into a >>>> single `org-export-as-s5' function. The attached archive file holds >>>> an >>>> s5.org Org-mode file which defines this function, as well as the ui >>>> directory required for S5, and an html file which results from >>>> calling >>>> the `org-export-as-s5' function in the s5.org file. >>>> >>>> For now the results are also posted up at >>>> http://cs.unm.edu/~eschulte/notes/s5/s5.org >>>> http://cs.unm.edu/~eschulte/notes/s5/s5.html >>>> >>>> Thanks for the clear explanation which lead to such an easy >>>> translation >>>> into elisp. Please let me know if you think this should be >>>> augmented in >>>> any way, or if the defined function throws any errors on your >>>> system. >>>> >>>> Best -- Eric >>>> >>>> >>>> Pierre de Buyl writes: >>>> >>>>> 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 >>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>

Interactive Python plotting

>>>>>
>>>>>
>>>>> >>>>>
>>>>> >>>>> 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 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Le 3 f=C3=A9vr. 11 =C3=A0 12:23, Bastien a =C3=A9crit : >>>>> >>>>>> Hi Pierre, >>>>>> >>>>>> Pierre de Buyl writes: >>>>>> >>>>>>> S5 allows one to present a slideshow in a web browser, even full >>>>>>> screen for >>>>>>> some browsers. >>>>>>> I know that the topic has come here already, but I actually >>>>>>> hacked >>>>>>> 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 >>>>> >> >> Footnotes: >> [1] http://gitweb.adaptive.cs.unm.edu/org-S5.git >> >> [2] >> http://gitweb.adaptive.cs.unm.edu/org-S5.git/blob_plain/HEAD:/org-export= -as-s5.el >> >> [3] http://cs.unm.edu/~eschulte/notes/s5/s5.html >> >> [4] http://orgmode.org/worg/org-tutorials/non-beamer-=20 >> presentations.html >> >> --=20 >> Eric Schulte >> http://cs.unm.edu/~eschulte/ > > Footnotes:=20 [1] https://github.com/eschulte/epresent --=20 Eric Schulte http://cs.unm.edu/~eschulte/