[Top][All Lists]

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

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

From: Peter Salazar
Subject: [O] how to export to HTML using old-style numbered div ID's?
Date: Mon, 6 Mar 2017 23:27:21 -0500

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".


<div id="outline-container-sec-1-2" class="outline-3">
<div class="outline-text-3" id="text-1-2">

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

 <div id="outline-container-org42e1e05" class="outline-3">
 <div class="outline-text-3" id="text-org42e1e05">

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?


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

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:

Anyone else using org-html-slideshow? Does anyone have any thoughts on how to get this working again? Thanks!

Attachment: patch.diff
Description: Text document

reply via email to

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