Bottom margin vs. descenders question

Philip Taylor P.Taylor at Hellenic-Institute.Uk
Fri Jun 26 15:41:49 CEST 2020


Doug McKenna wrote:

> Thanks for all the interesting responses to my question; they were helpful.
>
> The motivation for it is I have been building a custom program that helps vet formatting violations for paper submissions for a conference and its eventual proceedings in book form.

As you are only "vetting", Doug, and not being called on to "massage", 
the following will not be strictly relevant but may nonetheless be of 
interest.  For a 6-page, tri-fold, A4 menu, my printer recommend that 
pp.~1 & 4 be 1 mm narrower than the other pages, to allow the fold to 
tuck in neatly.  Whilst I /could/ have elected to tackle this in the 
master document I preferred not to, so what I did instead was to write a 
second TeX program to read the output of the first as data, massage the 
resulting information, and then ship out the massaged content.  See below.

Philip Taylor
--------
> % !TeX Program=XeTeX
>
>
> \special {background cmyk 0.83 0.82 0.21 0.60}
>
>
> \newdimen \rulewidth
>
> \newdimen \tuckloss
>
>
> \tuckloss = 1 mm
>
> \rulewidth = 0,5 \tuckloss
>
>
> \def \rule
>
> {%
>
> \special {color push rgb 1.0 1.0 0.0}%
>
> \vrule width \rulewidth
>
> \special {color pop}%
>
> \relax
>
> }
>
>
> \hsize = 296 mm
>
> \vsize = 210 mm
>
> \pdfpageheight = \vsize
>
> \pdfpagewidth = \hsize
>
> \newdimen \dekoffset
>
> \dekoffset = 1 true in
>
> \hoffset = \dimexpr \hoffset - \dekoffset \relax
>
> \voffset = \dimexpr \voffset - \dekoffset \relax
>
> \setbox 1 = \vbox {\XeTeXpdffile "Hoi-An TA menu (separate pages).pdf" 
> page 1
>         width \dimexpr \hsize / 3 - \tuckloss - 0,666 \rulewidth 
> \relax height \vsize }\relax
>
> \setbox 2 = \vbox {\XeTeXpdffile "Hoi-An TA menu (separate pages).pdf" 
> page 2
>         width \dimexpr \hsize / 3 - 0,666 \rulewidth \relax height 
> \vsize }\relax
>
> \setbox 3 = \vbox {\XeTeXpdffile "Hoi-An TA menu (separate pages).pdf" 
> page 3
>         width \dimexpr \hsize / 3 - 0,666 \rulewidth \relax height 
> \vsize }\relax
>
> \setbox 4 = \vbox {\XeTeXpdffile "Hoi-An TA menu (separate pages).pdf" 
> page 4
>         width \dimexpr \hsize / 3 - \tuckloss \relax height \vsize }\relax
>
> \setbox 5 = \vbox {\XeTeXpdffile "Hoi-An TA menu (separate pages).pdf" 
> page 5
>         width \dimexpr \hsize / 3 - 0mm\relax height \vsize }\relax
>
> \setbox 6 = \vbox {\XeTeXpdffile "Hoi-An TA menu (separate pages).pdf" 
> page 6
>         width \dimexpr \hsize / 3 - 0mm\relax height \vsize }\relax
>
> \hbox to \hsize {\hfil \box 1 \rule \box 2 \rule \box 3 }\relax
>
> \hbox to \hsize {\hfil \box 4 \box 5 \box 6 }\relax
>
> \end
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20200626/4ce43348/attachment.html>


More information about the texhax mailing list.