Re: [O] how to export to HTML using old-style numbered div ID's?

2017-03-07 Thread Peter Salazar
Thank you so much for the responses! In fact I did try filing a bug report
to the org-html-slideshow developers, but the project is no longer under
active development and I never heard back.

Fortunately, I was able to convince a friend who's a ClojureScript expert
to take a look. He forked the org-html-slideshow project and updated the
code to be compatible with the new org-mode export, as well as adding a
bunch of extra features like a play/pause keystroke for HTML5 videos and
YouTube videos.

So if anyone's interested in HTML presentations, a new and improved version
of org-html-slideshow that's compatible with org-mode 9.x is available at:
https://github.com/aiba/org-html-slideshow.

Thanks everyone!



On Tue, Mar 7, 2017 at 2:55 AM, Nicolas Goaziou 
wrote:

> Hello,
>
> Nick Dokos  writes:
>
> > Peter Salazar  writes:
> >
> >> Hi everyone,
> >>
> >> I figured out that the problem I've been having with
> >> org-html-slideshow
> >> (https://github.com/relevance/org-html-slideshow) is that it relies
> >> on the old-style numbered anchors that org-mode used to generate for
> >> div ID's in HTML export—the ones that looked like "sec-1-2".
> >>
> >> Example:
> >>
> >> 
> >> 
> >>
> >> As you know, the new 8.x org-mode HTML exporter generates this instead:
> >>
> >>  
> >>  
> >>
> >> This output confuses org-html-slideshow, preventing it from
> >> correctly advancing the slides in the presenter view.
> >>
> >> Does anyone know how can I direct org-mode 8.x to generate div tags
> >> with the old-style numbered anchors like it used to?
> >
> > The LaTeX exporter *does* have such a capability, through the
> > variable org-latex-prefer-user-labels,
>
> Not exactly. The variable above allows overriding the default naming
> scheme whenever the user provides additional information. However,
> AFAIU, the OP wants to alter the default scheme, without any user
> interaction.
>
> This is not possible. I suggest to report it as a bug to
> org-html-slideshow developers so they can update it.
>
>
> Regards,
>
> --
> Nicolas Goaziou
>
>


Re: [O] how to export to HTML using old-style numbered div ID's?

2017-03-06 Thread Nicolas Goaziou
Hello,

Nick Dokos  writes:

> Peter Salazar  writes:
>
>> Hi everyone,
>>
>> I figured out that the problem I've been having with
>> org-html-slideshow
>> (https://github.com/relevance/org-html-slideshow) is that it relies
>> on the old-style numbered anchors that org-mode used to generate for
>> div ID's in HTML export—the ones that looked like "sec-1-2".
>>
>> Example:
>>
>> 
>> 
>>
>> As you know, the new 8.x org-mode HTML exporter generates this instead:
>>
>>  
>>  
>>
>> This output confuses org-html-slideshow, preventing it from
>> correctly advancing the slides in the presenter view. 
>>
>> Does anyone know how can I direct org-mode 8.x to generate div tags
>> with the old-style numbered anchors like it used to?
>
> The LaTeX exporter *does* have such a capability, through the
> variable org-latex-prefer-user-labels,

Not exactly. The variable above allows overriding the default naming
scheme whenever the user provides additional information. However,
AFAIU, the OP wants to alter the default scheme, without any user
interaction.

This is not possible. I suggest to report it as a bug to
org-html-slideshow developers so they can update it.


Regards,

-- 
Nicolas Goaziou



Re: [O] how to export to HTML using old-style numbered div ID's?

2017-03-06 Thread Nick Dokos
Peter Salazar  writes:

> Hi everyone,
>
> I figured out that the problem I've been having with
> org-html-slideshow
> (https://github.com/relevance/org-html-slideshow) is that it relies
> on the old-style numbered anchors that org-mode used to generate for
> div ID's in HTML export—the ones that looked like "sec-1-2".
>
> Example:
>
> 
> 
>
> As you know, the new 8.x org-mode HTML exporter generates this instead:
>
>  
>  
>
> This output confuses org-html-slideshow, preventing it from
> correctly advancing the slides in the presenter view. 
>
> Does anyone know how can I direct org-mode 8.x to generate div tags
> with the old-style numbered anchors like it used to?
>

The LaTeX exporter *does* have such a capability, through the
variable org-latex-prefer-user-labels, but I don't think there is a
similar capability in the HTML exporter (although Nicolas has
expressed his willingness to accept a patch that implements it, IIRC -
hint, hint...)

--
Nick




[O] how to export to HTML using old-style numbered div ID's?

2017-03-06 Thread Peter Salazar
Hi everyone,

I figured out that the problem I've been having with org-html-slideshow (
https://github.com/relevance/org-html-slideshow) is that it relies on the
old-style numbered anchors that org-mode used to generate for div ID's in
HTML export—the ones that looked like "sec-1-2".

Example:




As you know, the new 8.x org-mode HTML exporter generates this instead:

 
 

This output confuses org-html-slideshow, preventing it from correctly
advancing the slides in the presenter view.

Does anyone know how can I direct org-mode 8.x to generate div tags with
the old-style numbered anchors like it used to?

Thanks!


-- Forwarded message --
From: Peter Salazar 
Date: Mon, Mar 6, 2017 at 10:04 AM
Subject: HTML presentations using org-html-slideshow?
To: org-mode 


Hi everyone,

I've been using the excellent org-html-slideshow (
https://github.com/relevance/org-html-slideshow) to generate HTML slides
from org-mode, and it's been working well for me for years.

It generates HTML slides from org-mode using the org-mode heading
hierarchy. Tag any heading with the org-tag :slide: and that heading and
its contents automatically become their own slide once you export to HTML
using org-export-dispatch.

I prefer org-html-slideshow to org-reveal since it allows me the ability to
easily customize the look and feel of slides—by creating a custom
slide—simply by adding an org-tag. So if I tag an org-heading with the tag
:fullscreenslide: for example (so that the heading looks like * Heading
:slide:fullscreenslide:), it will then export that slide to HTML with
class="fullscreenslide" — and I can then use CSS to customize the look and
feel of all slides with that class.

Org-html-slideshow also offers a great Presenter View, which opens in a
separate tab in your browser, and displays your speaker notes, the current
slide, and the next slide. Unfortunately, org-html-slideshow is no longer
being actively developed, and a recent update to org-mode has broken the
way Presenter View functions. Somehow with the new org-mode updates, the
"next slide" view in Presenter Notes mode no longer advances correctly. The
"next slide" slide gets stuck in a loop of 4-5 slides, and just repeats
those few slides. It does not reliably show you what the next slide is
going to be.

I notice that the output from example.org when I export to HTML is fairly
different from the example.html that's in the repo. Something in those
differences is breaking the ability of Presenter Notes to advance to the
next slide:
https://gist.github.com/incandescentman/dca040c750a3e9e7e687942d69ebd53f

Anyone else using org-html-slideshow? Does anyone have any thoughts on how
to get this working again? Thanks!
diff --git a/example.html b/example.html
index 2dd0b5e..49ba097 100755
--- a/example.html
+++ b/example.html
@@ -3,199 +3,73 @@
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;>
 http://www.w3.org/1999/xhtml; lang="en" xml:lang="en">
 
+
+
+
 Example Presentation
-
-
-
-
-