emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [Orgmode] S5 export


From: Eric Schulte
Subject: Re: [O] [Orgmode] S5 export
Date: Fri, 03 Jun 2011 09:05:49 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hi Christian,

Thanks for sharing the link to Yann Hodique's solution, I was not aware
that this existed.  I've just added this to the worg page on non-beamer
export options.

Cheers -- Eric

Christian Moe <address@hidden> writes:

> Hi,
>
> I haven't had time to test Eric's solution yet, but I look forward to it.
>
> Have you also tried Yann Hodique's s5 solution for Org? It has some
> Org setup but depends on Javascript to tweak the exported HTML.
>
> http://www.hodique.info/blog/2009/11/14/s5_presentation_from_org-mode
>
> To me, an ideal solution would "know" how to make a sensible s5
> presentation from an ordinary multi-level outline, with occasional TOC
> slides.
>
> Yours,
> Christian
>
> On 6/3/11 1:38 PM, Pierre de Buyl wrote:
>> Hello Eric,
>>
>> This is amazing, actual emacs lisp code from my explanations, thanks a
>> lot!
>>
>> If welcomed, I have a few comments related to how I currently use this
>> function (I have a talk coming soon :-) )
>>
>> - If all "star" headlines become slides, it quickly leads to awkward
>> layouts with empty slides below one star headings.
>> 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.
>> - An actual "title page" seems more appropriate, so I added one with
>> "title author date" as h1,h2 and h3 headings.
>>
>> 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
>>
>> 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 à 18:41, Eric Schulte a écrit :
>>
>>> 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
>>>
>>> <s5.tar.bz2>
>>> Pierre de Buyl <address@hidden> 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
>>>> <div id="content">
>>>> by
>>>> <div class="layout">
>>>> <div id="controls"><!-- DO NOT EDIT --></div>
>>>> <div id="currentSlide"><!-- DO NOT EDIT --></div>
>>>> <div id="header"></div>
>>>> <div id="footer">
>>>> <h1>Interactive Python plotting</h1>
>>>> </div>
>>>> </div>
>>>>
>>>> <div class="presentation">
>>>>
>>>> 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évr. 11 à 12:23, Bastien a écrit :
>>>>
>>>>> Hi Pierre,
>>>>>
>>>>> Pierre de Buyl <address@hidden> 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!
>>>>>
>>>>> --
>>>>> Bastien
>>>>
>>>
>>> --
>>> Eric Schulte
>>> http://cs.unm.edu/~eschulte/
>>
>>
>
>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



reply via email to

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