Automated LaTeX to bookdown-style HTML and SCORM, powered by LaTeXML.
BookML is a small wrapper around LaTeXML for the production of accessible HTML content straight from LaTeX files, and for packaging it as SCORM. Created by and maintained for maths lecturers at the University of Leeds. Its main features:
bookml
folder next to the files to be compiled and copy GNUmakefile
in the same place (well, uhm, that is a bit of a lie: you need to install LaTeXML first!)make
to zip together all PDF and HTML outputs from all the main .tex
files in the folder (one package per main .tex
file)
animate
animations, Xy-matrices, and virtually any other picture-like environment: just add a few lines of code in the preamble
\usepackage{bookml/bookml}
\bmlImageEnvironment{tikzpicture,animate}
\iflatexml\else % prevent LaTeXML from even trying to load TikZ
\usepackage{tikz}
\usepackage{animate}
\fi
\usepackage{bookml/bookml}\bmlImageEnvironment{tikzpicture}
...
\begin{tikzpicture} ... \end{tikzpicture}\bmlDescription{Textual description of the TikZ picture}
% alt= option for \includegraphics requires LaTeXML 0.8.7
\includegraphics[alt={Text description of the figure}]{figure}
\usepackage{bookml/bookml}
...
\<DETAILS>
\<SUMMARY>\textbf{Solution.}\</SUMMARY>
To create a foldable `proof' environment, ...
\</DETAILS>
\bmlAltFormat{PDF (large print)}{notes-large-print.pdf}
% you must provide notes-large-print.tex
the files will be automatically compiled and included in the 'Download' menu of bookdown (see the example for more info)
make
creates valid SCORM.*.zip
packages supported by most Learning Management Systems (if not, please submit an issue!)bookml
folder next to your .tex
files.bookml/GNUmakefile
next to your .tex
files.make
(or gmake
).Or you can unpack the template to start with a working minimal example.
The BookML manual is an example of a LaTeX file compiled in GitBook and plain style and it describes all the options and ways to customise the output.
The Leeds BookML guide has further examples and tips for lecturers and detailed installation instructions (some specific to the University of Leeds), including for instance how to compile exercises with and without solutions, or how to produce various alternative PDFs from the same file.
Image::Magick