From 3aa5f041823825d124ba3dfa4965acee713bc45c Mon Sep 17 00:00:00 2001 From: wlemb Date: Wed, 12 Mar 2003 22:59:30 +0000 Subject: Make variable `pr' local to libdriver/input.cc. Based on a patch by Bernd Warken . * src/include/driver.h (pr): Removed. * src/libs/libdriver/input.cc (pr): New global variable. (do_file): Deallocate `pr'. * src/libs/libdriver/printer.cc (pr): Removed. * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc (main): Don't delete `pr'. * tmac/a4.tmac, tmac/composite.tmac: Use `.do'. * tmac/papersize.tmac: New file. * tmac/troffrc: Include `papersize.tmac'. * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'. * tmac/an-old.tmac: Set LT to LL by default. * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man, doc/groff.texinfo: Updated. * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing bug which caused all odd iso papers to have wrong dimensions. * src/devices/grops/ps.cc (user_paper_width): New global variable. (main) <'p'>: Set `user_paper_width' also. (ps_printer::media_width, ps_printer::media_height): Use values given with option `-p'. --- tmac/a4.tmac | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'tmac/a4.tmac') diff --git a/tmac/a4.tmac b/tmac/a4.tmac index 5001939d..80c944d0 100644 --- a/tmac/a4.tmac +++ b/tmac/a4.tmac @@ -1,12 +1,20 @@ .\" a4.tmac .\" .\" Set up groff for A4 paper. Must be called before any other macro -.\" package. For correct PS output, you must also set the -.\" `paperlength' keyword in devps/DESC to 841890 in case groff hasn't -.\" guessed it correctly during configuration. +.\" package. +.\" +.\" Some output drivers need an additional command line switch `-p' to +.\" override the default paper length set in the driver specific DESC +.\" file. +.\" +.\" For example, use the following for PS output: +.\" +.\" groff -Tps -P-pa4 -ma4 -ms foo.ms > foo.ps . .pl 29.7c .ll 21c-2i . -.\" for ms -.if !rLL .nr LL \n[.l]u +.\" for ms, mdoc, man +.do if !r LL .nr LL \n[.l]u +. +.\" EOF -- cgit v1.2.1