This is a set of layout, typography, and markup definitions for LaTeX books based on the memoir document class. It is intended for use by Square Bracket Associates (SBA), and heavily customized in this direction — by this I mean it's made to setup specific semantic markup and typographic style, rather than to be flexible.
Here is the minimal preamble:
\documentclass{sbabook}
\setmainlanguage{english} % this is polyglossia, not babel
\begin{document}
...and off you go!
\end{document}
The class requires LuaLaTeX to load nice fonts; just use lualatex
instead of pdflatex
to compile.
It looks nice, I promise! Check the manual / example file; a compiled version is attached to the latest release.
Clone or otherwise download the contents of this repo, and put the files somewhere LaTeX can find them.
Run kpsexpand '$TEXMFHOME'
for a suggestion.
You need a pretty up-to-date and complete LaTeX distribution, because the class requires LuaLaTeX and some associated packages to compile.
Check the texlive*.deps
files, or just get a full install of the latest TeXlive release and you should be good.
Fonts: the class uses Gentium Book Basic, Open Sans, and Fira mono. Those are now distributed as part of TeXlive.
On Linux distributions that maintain their own packaging instead of using the system provided by TeXlive, you will probably need to install several packages; e.g. on Ubuntu 15.04, since texlive-full
doesn't seem to be a full install, you will additionally need:
texlive-luatex
, forluaotfload.sty
,texlive-xetex
, forxunicode.sty
,texlive-generic-extra
, fortracklang.sty
,texlive-fonts-extra
, for the Gentium fonts…