# LuaTufte

LuaTufte is a two-sided LuaLaTeX book class for scientific writing. Its outer margin accommodates numbered notes, unnumbered source notes, citations, figures and small tables. The facing-page headers show the book and chapter titles beside the outer folios. A wide block can span the text and margin. The class uses KOMA-Script, ETbb, Gillius ADF, Source Code Pro and TeX Gyre Pagella Math.

Use `\documentclass{luatufte}` for wide unnumbered chapters, automatic outer captions and footnotes in the margin. Starred figures and tables span the body and margin. The `fullwidth` environment can break across pages.

Use `\documentclass[B5]{luatufte}` for ISO B5 with the reference B5 body and margin. The class requires LuaLaTeX and diagnoses other engines before loading KOMA-Script. The manual also demonstrates the caption offset syntax and custom float styles.

For the reference A4 horizontal dimensions and a fixed-right note column, select `measure=tufte-a4,margin-side=right`. Use `wide-captions=full` for broad legends. With `titlepage=false`, the title shares the opening text page. The manual describes the citation and note syntax options.

Read the [illustrated manual and annotated source for version 0.0.1](luatufte.pdf). From the unpacked package directory, extract the class, bibliography package, quickstart and six specimen files into this dedicated directory. The example uses LuaLaTeX. The included latexmk configuration runs Biber and MakeIndex for the manual.

[*The Measurement Record*](luatufte-specimen.pdf) is a finished scientific example book. It follows forty synthetic readings from their construction to an audit of a missing observation. The source listings in the book are the Python and shell code used for the study. For the LaTeX behind the finished pages, turn to “A typesetting specimen” in the [manual](luatufte.pdf). The DTX contains the complete sources for both publications.

```sh
tex luatufte.ins
latexmk -lualatex luatufte-example.tex
latexmk -lualatex luatufte.dtx
latexmk -lualatex main.tex
```

Pages 4 and 5 of the manual print and typeset the hvfloat calls embedded in the DTX. The book’s final audit uses hvfloat for its missing-minute diagram and error table.

For use in other projects, install the extracted `luatufte.cls` and `luatufte-biblio.sty` in your personal TEXMF tree under `tex/latex/luatufte/`.

Lukas C. Bossert maintains LuaTufte at **lukas@texografie.de**. This derivative of Federico Marotta's kaobook is distributed under LPPL 1.3c or later. The source of the manual and example is included in `luatufte.dtx`. Both publications use the extracted `references.bib`. The specimen sources and compiled book also carry LPPL 1.3c or later, including the text, original illustrations, demonstration data and code listings. Font notices are included under `licenses/`. [License](licenses/lppl-1-3c.txt) · [Manifest and upstream source](MANIFEST.md) · [Changes](CHANGELOG.md).
