<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Doug McKenna wrote:<br>
<br>
</div>
<blockquote type="cite"
cite="mid:1785392749.97238295.1593178193217.JavaMail.zimbra@mathemaesthetics.com">
<pre wrap="">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.
</pre>
</blockquote>
<br>
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 <i>could</i>
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.<br>
<br>
Philip Taylor<br>
--------<br>
<blockquote type="cite">% !TeX Program=XeTeX
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px;"><br>
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\special
{background cmyk 0.83 0.82 0.21 0.60}</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px;"><br>
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\newdimen
\rulewidth</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\newdimen
\tuckloss</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px;"><br>
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\tuckloss
= 1 mm</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\rulewidth
= 0,5 \tuckloss</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px;"><br>
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\def
\rule</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"> {%</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">
\special {color push rgb 1.0 1.0 0.0}%</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">
\vrule width \rulewidth </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">
\special {color pop}% </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">
\relax</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"> }</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px;"><br>
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\hsize =
296 mm</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\vsize =
210 mm</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\pdfpageheight
= \vsize</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\pdfpagewidth
= \hsize</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\newdimen
\dekoffset</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\dekoffset
= 1 true in</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\hoffset
= \dimexpr \hoffset - \dekoffset \relax</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\voffset
= \dimexpr \voffset - \dekoffset \relax</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\setbox
1 = \vbox {\XeTeXpdffile "Hoi-An TA menu (separate pages).pdf"
page 1 <br>
width \dimexpr \hsize / 3 - \tuckloss - 0,666 \rulewidth
\relax height \vsize }\relax</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\setbox
2 = \vbox {\XeTeXpdffile "Hoi-An TA menu (separate pages).pdf"
page 2 <br>
width \dimexpr \hsize / 3 - 0,666 \rulewidth \relax
height \vsize }\relax</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\setbox
3 = \vbox {\XeTeXpdffile "Hoi-An TA menu (separate pages).pdf"
page 3 <br>
width \dimexpr \hsize / 3 - 0,666 \rulewidth \relax
height \vsize }\relax</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\setbox
4 = \vbox {\XeTeXpdffile "Hoi-An TA menu (separate pages).pdf"
page 4 <br>
width \dimexpr \hsize / 3 - \tuckloss \relax height
\vsize }\relax</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\setbox
5 = \vbox {\XeTeXpdffile "Hoi-An TA menu (separate pages).pdf"
page 5 <br>
width \dimexpr \hsize / 3 - 0mm\relax height \vsize
}\relax</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\setbox
6 = \vbox {\XeTeXpdffile "Hoi-An TA menu (separate pages).pdf"
page 6 <br>
width \dimexpr \hsize / 3 - 0mm\relax height \vsize
}\relax</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\hbox to
\hsize {\hfil \box 1 \rule \box 2 \rule \box 3 }\relax</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\hbox to
\hsize {\hfil \box 4 \box 5 \box 6 }\relax</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\end</p>
</blockquote>
<br>
</body>
</html>