The Advanced TEXbook
A complete course in TeX that will be suitable for users of TeX who want to advance beyond the basics. The initial chapters introduce the essential workings of TeX and the later chapters cover a wide range of advanced topics such as macros, conditionals, tokens, leaders, file I/O, the line- and page-break algorithms, and output routines.