[tex-live] tl2016,tl2018: broken psnup shipped

Akira Kakuto kakuto at fuk.kindai.ac.jp
Fri Aug 31 03:16:34 CEST 2018


> With (at least) tl2016 and tl2018 the compiled psnup is ignoring the
> arguments (at least -H, -W ...

At the top of main() in psnup.c, the global width and height
are set:

   if (!paper_size(NULL, &width, &height))
     die("could not get default paper size");

so width != -1 and height != -1 at the begininng of the program.

Thus width and height are never changed at

   /* set default values of input height & width */
   if ( iwidth > 0 && width == -1 )
     width = iwidth ;
   if ( iheight > 0 && height == -1 )
     height = iheight ;

where iheight and iwidth are set by -H and -W.

So I will change the above as

   /* set default values of input height & width */
   if ( iwidth > 0 )
     width = iwidth ;
   if ( iheight > 0 )
     height = iheight ;

in order that users can change default sizes by -H and -W,
if Reuben admits.
It seems that -H and -W options win -p option.

Best,
Akira



More information about the tex-live mailing list