<div dir="ltr">Doug,<div><br></div><div>And hod do you perform the tests? ON PDF or on images made from the PDF's?</div><div><br></div><div>Paulo Ney</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 26, 2020 at 6:42 AM Philip Taylor <<a href="mailto:P.Taylor@hellenic-institute.uk">P.Taylor@hellenic-institute.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<div>Doug McKenna wrote:<br>
<br>
</div>
<blockquote type="cite">
<pre>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="margin:0px;text-indent:0px"><br>
</p>
<p style="margin:0px;text-indent:0px">\special
{background cmyk 0.83 0.82 0.21 0.60}</p>
<p style="margin:0px;text-indent:0px"><br>
</p>
<p style="margin:0px;text-indent:0px">\newdimen
\rulewidth</p>
<p style="margin:0px;text-indent:0px">\newdimen
\tuckloss</p>
<p style="margin:0px;text-indent:0px"><br>
</p>
<p style="margin:0px;text-indent:0px">\tuckloss
= 1 mm</p>
<p style="margin:0px;text-indent:0px">\rulewidth
= 0,5 \tuckloss</p>
<p style="margin:0px;text-indent:0px"><br>
</p>
<p style="margin:0px;text-indent:0px">\def
\rule</p>
<p style="margin:0px;text-indent:0px"> {%</p>
<p style="margin:0px;text-indent:0px">
\special {color push rgb 1.0 1.0 0.0}%</p>
<p style="margin:0px;text-indent:0px">
\vrule width \rulewidth </p>
<p style="margin:0px;text-indent:0px">
\special {color pop}% </p>
<p style="margin:0px;text-indent:0px">
\relax</p>
<p style="margin:0px;text-indent:0px"> }</p>
<p style="margin:0px;text-indent:0px"><br>
</p>
<p style="margin:0px;text-indent:0px">\hsize =
296 mm</p>
<p style="margin:0px;text-indent:0px">\vsize =
210 mm</p>
<p style="margin:0px;text-indent:0px">\pdfpageheight
= \vsize</p>
<p style="margin:0px;text-indent:0px">\pdfpagewidth
= \hsize</p>
<p style="margin:0px;text-indent:0px">\newdimen
\dekoffset</p>
<p style="margin:0px;text-indent:0px">\dekoffset
= 1 true in</p>
<p style="margin:0px;text-indent:0px">\hoffset
= \dimexpr \hoffset - \dekoffset \relax</p>
<p style="margin:0px;text-indent:0px">\voffset
= \dimexpr \voffset - \dekoffset \relax</p>
<p style="margin:0px;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:0px;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:0px;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:0px;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:0px;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:0px;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:0px;text-indent:0px">\hbox to
\hsize {\hfil \box 1 \rule \box 2 \rule \box 3 }\relax</p>
<p style="margin:0px;text-indent:0px">\hbox to
\hsize {\hfil \box 4 \box 5 \box 6 }\relax</p>
<p style="margin:0px;text-indent:0px">\end</p>
</blockquote>
<br>
</div>
</blockquote></div>