groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] How to move page format definition to command line options


From: Damian McGuckin
Subject: Re: [Groff] How to move page format definition to command line options
Date: Fri, 2 Oct 2015 09:11:57 +1000 (AEST)
User-agent: Alpine 2.02 (LRH 1266 2009-07-14)

On Thu, 1 Oct 2015, Dale Snell wrote:

On Thu, 01 Oct 2015 00:12:32 -0700, in message
address@hidden, Marisa Giancarla wrote:

Right now i have the pages defined at the top of each with ".PGFORM
80 1000 0 1" but i would like to move this to the command line
arguments so i can use the same content for 80x24 for plain text
version and 8.5x11 for the PDF version. Can someone give me tips on
doing this?
    .ie n <do_something> \" nroff setup
    .el <do_something_else> \" troff setup

If you need more than one line, you can use \{ and \} to build
blocks of code; the manual shows how.

Once that's done, you can create your documents with "nroff -mm ..."
and "troff -mm ...".  Groff will then Do The Right Thing? and
build your documents the way you want.

Or, you can augment any other arguments on the command by specifying

        groff -rOx.xxc -rWx.xxc -rLx.xxc ..... any other arguments ....

where

        x.xx

is some length in centimtres, hence the c, or for those who are metrically challenged, change the 'c' above to 'i' and use inches for any such 'x.xx'
measurements.

There are some subtle differences between the above and PGFORM I believe. I am not PGFORM expert.

Regards - Damian

Pacific Engineering Systems International, 277-279 Broadway, Glebe NSW 2037
Ph:+61-2-8571-0847 .. Fx:+61-2-9692-9623 | unsolicited email not wanted here
Views & opinions here are mine and not those of any past or present employer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]