chirun-ncl / chirun

A Python package providing the command line interface for building flexible and accessible content with Chirun.
https://chirun.org.uk/
Other
30 stars 4 forks source link

Slides feature does not reproduce Beamer slides well. #174

Open prowlett opened 1 year ago

prowlett commented 1 year ago

I'm finding the new 'Slides' feature for Beamer slides strange.

Here's some simple LaTeX code for a presentation.

\documentclass[aspectratio=169]{beamer}

\title{Test presentation}
\author{Peter Rowlett}

\AtBeginSection[] {
    \begin{frame}
        \vfill
        \centering
        \begin{beamercolorbox}[sep=8pt,center,shadow=true,rounded=true]{title}
            \usebeamerfont{title}\insertsectionhead\par%
        \end{beamercolorbox}
        \vfill
    \end{frame}
}

\begin{document}
    \begin{frame}
        \maketitle
    \end{frame}

    \section{Section the first}

    \begin{frame}{Frame the first}
        Hello.
    \end{frame}

    \begin{frame}{Frame 2}
        \begin{quote}
            Hello.
        \end{quote}
    \end{frame}

    \section{Second section}

    \begin{frame}{Third frame}
        \[ \cos(\theta +\pi )=-\cos \theta \]
    \end{frame}
\end{document}

The PDF creates six slides:

Screenshot from 2023-09-19 14-50-40 Screenshot from 2023-09-19 14-50-50

The 'Slides' version is four slides, with the title slide repeated twice and multiple section titles all over the place.

Screenshot from 2023-09-19 14-49-44 Screenshot from 2023-09-19 14-49-52 Screenshot from 2023-09-19 14-49-59 Screenshot from 2023-09-19 14-50-03

I suppose if I want a HTML version of the presentation, I would prefer this to match the Beamer output, though I recall from an earlier iteration of chirun that the level of customisation in Beamer makes it hard to reproduce this in HTML. Previously chirun provided the PDF for slides presented on a screen with the content put linearly on a webpage as an alternative access to the same content. I do not know what the 'Slides' mode adds to these options.

christianp commented 1 year ago

My intention is to have a decent HTML slideshow for slides written in Beamer. It still needs a lot of work, as you've shown.

prowlett commented 1 year ago

If a user prefers to not present students with the HTML slides option for Beamer slides while this is under development, I've noticed that if I use type: chapter even though it's a Beamer file this creates a HTML file containing the slide content in linear format and a PDF that is the Beamer slides.