Skip to content

Examples

Each example here is a small pulpweaver4 project: its chapter in Djot, its stylesheet, and its pulpweaver4.toml. pulpweaver4 sets its pages in this page, in your browser, as the command line will. Edit any of its files and the pages are set again.

They are tests too. Each example is built in CI by the same version of pulpweaver4 and compared with the pages it made before, so a change to pulpweaver4 that changes what an example shows can’t go unnoticed.

TeX’s line breaker chooses every line of a paragraph together, so that no line is much looser than the rest, and hyphenates where it must. --pw-tolerance is the worst line it accepts, as TeX’s \tolerance.

Loading pulpweaver4…

A justified paragraph: set by pulpweaver4 0.0.50 in this page. Edit the source and it reflows.✓ also a test

A Djot footnote goes to the foot of the page where it is called, under a rule, and the page builder leaves room for it as TeX’s does.

Loading pulpweaver4…

Footnotes on a page: set by pulpweaver4 0.0.50 in this page. Edit the source and it reflows.✓ also a test

The page’s margins hold its running head and folio, written in CSS as @page rules, as CSS Paged Media has them. Each chapter sets the head with string-set, and string(chapter, first-except) leaves it off the page the chapter opens on.

Loading pulpweaver4…

A running head: set by pulpweaver4 0.0.50 in this page. Edit the source and it reflows.✓ also a test

A citation names an entry of the bibliography. In the default style, the Chicago notes style, each becomes a footnote: in full the first time, as sources.bib has it.

Loading pulpweaver4…

A citation: set by pulpweaver4 0.0.50 in this page. Edit the source and it reflows.✓ also a test

pulpweaver4 is CC0: no rights reserved. A project of Inky Labs.