How marekjaskula/bustrofedon works
bustrofedon is a LuaLaTeX package that alternates the visual direction of finished text lines while leaving TeX’s paragraph breaking intact. The workflow is: an author loads the LaTeX interface and marks text; LuaTeX lays out the paragraph and invokes the package’s Lua callback; the callback reflects selected lines, and LuaTeX produces the PDF. Settings such as starting direction and continuous counting belong to the interface. Source excerpts were not provided, so runtime relationships shown here are supported by the README only.
Main entry points: bustrofedon.sty LaTeX interface and settings · bustrofedon.lua Line reflection callback
Components 5
Package interface
- LaTeX interface and settings
bustrofedon.sty
Line processing
- Line reflection callback
bustrofedon.lua
Typesetting runtime
- LuaTeX typesetter
- Typeset PDF
Other components
- Document author
Connections 5
- Document author → LaTeX interface and settings: loads and configures
README.md - LaTeX interface and settings → LuaTeX typesetter: marks text
README.md - LuaTeX typesetter → Line reflection callback: invokes callback
README.md - Line reflection callback → LuaTeX typesetter: reflects selected lines
README.md - LuaTeX typesetter → Typeset PDF: produces
README.md