[Top][All Lists]

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

Re: [groff] a5 paper size?

From: Ralph Corderoy
Subject: Re: [groff] a5 paper size?
Date: Sat, 22 Dec 2018 10:49:49 +0000

Hi ulrich,

> As I reported earlier, I use the first line of a file to store hints
> about (pre)processng.
> Example:
>         .\" mom tbl pdf
> and use a shell script to interpret this line and to control
> appropriate processing.

There's also groffer(1), though I don't know how well it does.

I often make the start of more complex troff source look like

    .\" #! /bin/sh
    .\" set -eu
    .\" f=foo
    .\" groff -ww -t -ma4 -mm -rmicro=0 $ >$ 2>$f.err
    .\" sed -i '/\<warning: number register `3[^'\'']*'\'' not defined$/d' 
    .\" ! grep ^ $f.err
    .\" ps2pdf $
    .\" rm $ $f.err
    .\" ...
    .\" exit 0

Then I can either `sed s/...// | sh', or copy-paste a rectangle
without the `.\"' using Ctrl-Button1 in some X terminals, or just use it
as a guide to the different one-off formatting I want to do.

Cheers, Ralph.

reply via email to

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