How to calculate \hoffset and \voffset to center textbody, header and footer on a page? Your must set up some initial parameters and, of course, the \textwidth. This program will compute such parameters as \hoffset, \voffset and \textheight. Best wishes, Anatoly A. Zabelin (Russia, Chita). This material is subject to the LaTeX Project Public License. See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html for the details of that license.