How did Dennis Ritchie produce his PhD thesis? A typographical mystery (2022) [pdf]
It seems that the author never used a typewriter! The typewriter has tabs, so that you can center the equal sign, for example, after 3 tabs, and the alignment will be perfect each time. Most probably Dennies Richie sent his manuscript to a professional typist who provided services to the university, unless he was adept at spend several hours typing until he got professional results.