Grid typsetting (so that all lines match up on every page) seems to be implemented very well in PTXprint. LaTeX is in general not really good at handling this, there are only a few packages that have been developed returntogrid, grid), with limited functionality. Is PTXprint using one of these packages, or did you develop your own code to ensure text is aligned on the grid? I would be curious if I could use your grid functionality outside of PTXprint.