Bottom margin vs. descenders question

Reinhard Kotucha reinhard.kotucha at web.de
Sat Jun 27 00:24:25 CEST 2020


On 2020-06-26 at 14:41:49 +0100, Philip Taylor wrote:

 > > \newdimen \dekoffset
 > >
 > > \dekoffset = 1 true in
 > >
 > > \hoffset = \dimexpr \hoffset - \dekoffset \relax
 > >
 > > \voffset = \dimexpr \voffset - \dekoffset \relax

Hello Phil,
just for the record, with pdftex-based formats you can save a
\newdimen with

  \hoffset = \dimexpr \hoffset - \pdfhorigin \relax
  \voffset = \dimexpr \voffset - \pdfvorigin \relax

You can even save the arithmetic as well with

  \pdfhorigin = 0pt
  \pdfvorigin = 0pt

These variables are set to '1 true in' in pdftexconfig.tex, which is
read by {pdf,lua}tex.ini and thus go into the format files.  As far as
I can see they are not available in XeTeX, unfortunately.

Regards,
  Reinhard

--
------------------------------------------------------------------
Reinhard Kotucha                            Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                    mailto:reinhard.kotucha at web.de
------------------------------------------------------------------



More information about the texhax mailing list.