Blog

Posts tagged glue

How TeX Calculates Glue Settings in an \hbox
By Graham Douglas

This is the third, and concluding, article in a series which takes a look at TeX boxes and glue. The first post Boxes and Glue: A Brief, but Visual, Introduction Using LuaTeX introduced the concepts of boxes and glue and was followed by Pandora’s \hbox: Using LuaTeX to Lift the Lid of TeX Boxes which presented a LuaTeX-based Overleaf project to explore the deeper structures of TeX boxes through the use node graphs. In this final piece we take a “deep dive” into the mechanics of how TeX calculates glue values in an \hbox: a process referred to as setting the glue. We make extensive use of node graphs (introduced in the second article in this series) and show how to use and interpret some of the data they provide: glue_set, glue_sign and glue_order.

READ MORE
Boxes and Glue: A Brief, but Visual, Introduction Using LuaTeX
By Graham Douglas

This post is a brief introduction to some key concepts/models involved in typesetting with TeX: boxes and glue—“setting the scene” for future articles that will go into much more detail.

A zoomed image section of a typeset paragraph
READ MORE