Thanks for the suggestion. I’ve done a bit more research, and it looks like gropdf doesn’t implement the “\X” command according to the documentation, which is the problem.
I’m trying to keep things off the command line, because that makes the file less self-contained (I would actually like to take the “-Tpdf” into the file as well, to tell the truth). Based on the gropdf code, it looks like the only thing I can do is specify it by the physical dimensions, as Deri suggested, so I guess that’s what I’ll do. (Although I need to test if PDF viewers realize that the particular dimensions are the same as A5.) Thanks, Ricky > On Dec 20, 2018, at 5:52 PM, John Gardner <gardnerjo...@gmail.com> wrote: > > Hi Ricky, > > Try passing the paper-size option directly to Groff: > > groff -Tpdf *-P-l* … > > > See groff(1), "USING GROFF" for more information on specifying paper-size. > > The "\X'papersize=…'" mechanism is designed for documents where certain > pages have different dimensions to others. E.g., a PDF whose first 5 pages > are A4, sixth page is A3, and all remaining pages are A5, etc. Rarely will > you ever need to generate PDFs with pages of varying sizes.