Chapter 3
Compiling the Book
You can compile the output files using any standard LaTeX distribution which
includes TeX4ht.
To compile the PDF version use LuaLaTeX:
$ lualatex document.tex
For the HTML version, you can use make4ht, build system for TeX4ht.
$ make4ht -e build.lua -c config.cfg -lj index -d out document.tex
Since we need both a Lua build script (for make4ht) and a TeX4ht config file, this command ends up being a bit more involved.
The -e build.lua
option loads the build file. It modifies the output fil The -l
option ensures that LuaLaTeX is used as the compiler.