Hi, $ grep -w LL a4.tmac papersize.tmac a4.tmac:.do if !r LL .nr LL \n[.l]u papersize.tmac:. if !r LL \ papersize.tmac:. nr LL \n[.l]u \" for ms, mdoc, man $ $ grep papersize om.tmac | uniq .if '\\*[.T]'pdf' \X'papersize=\\n[#PAGE_WIDTH]z,\\n[#PAGE_LENGTH]z'\c
gropdf(1) says One \X special used by the DVI driver is also recognised: \X'papersize=paper-size' where the paper-size parameter is the same as the papersize command. See groff_font(5) for details. This means that you can alter the page size at will within the PDF file being created by gropdf. If you do want to change the paper size, it must be done before you start creating the page. I couldn't find a mention of grodvi(1) accepting «\X'papersize=...'», nor in the info documentation. Is it missing? Should a4.tmac and papersize.tmac emit «\X'papersize=...'», as -mom does, since they already make the effort with `\n(LL'? It would seem it's a good thing to encourage all device backends to support, avoiding the need to duplicate with groff's `-P-p', and allowing per-page changes where possible. -- Cheers, Ralph. https://plus.google.com/+RalphCorderoy