Re: [Groff] What does 'groff <<

2012-12-02 Thread Clarke Echols
On 12/02/2012 12:19 PM, Dave Kemper wrote: 'cat << Yes. It's documented in the bash man page under "Here Strings". I just learned about it from Ralph's email myself. It's a great shortcut. Aha! I now recall "Here Documents" from my HP days, but they were handled with something like <<@EO

Re: [Groff] producing a booklet with groff ?

2012-12-02 Thread Tadziu Hoffmann
> I often do `ps2pdf downloaded.pdf test.pdf', yes, input is > PDF, not PostScript, ps2pdf is essentially "gs -sDEVICE=pdfwrite", and since ghostscript understands both Postscript and PDF it is indeed possible to feed PDF to ps2pdf, despite the name. > to see if test.pdf comes out smaller than d

Re: [Groff] What does 'groff <<

2012-12-02 Thread Johann Höchtl
On 12/02/2012 07:40 PM, Clarke Echols wrote: In a recent email the syntax: groff <

Re: [Groff] Backgound image slightly higher on page one

2012-12-02 Thread Mike Bianchi
On Sun, Dec 02, 2012 at 12:22:47PM -0600, Dave Kemper wrote: > On Sun, Dec 2, 2012 at 11:51 AM, Ralph Corderoy wrote: > > The table split across its pages 14/15 describing .ns and .rs both have > > `space' as the second field, Initial value, stating space mode is the > > default. Empirically, it

Re: [Groff] What does 'groff <<

2012-12-02 Thread Steve Izma
On Sun, Dec 02, 2012 at 07:02:21PM -, Ted Harding wrote: > To: Groff > Subject: Re: [Groff] What does 'groff << > On 02-Dec-2012 18:40:11 Clarke Echols wrote: > > In a recent email the syntax: > > > > groff << > > > was used. > > > > I've used Unix/Linux for over 25 years, and I've n

Re: [Groff] What does 'groff <<

2012-12-02 Thread Dave Kemper
> 'cat << what follows the "<<<" directly to the command, as if equivalent > to "echo foo | cat". Yes. It's documented in the bash man page under "Here Strings". I just learned about it from Ralph's email myself. It's a great shortcut.

Re: [Groff] What does 'groff <<

2012-12-02 Thread Ted Harding
On 02-Dec-2012 18:40:11 Clarke Echols wrote: > In a recent email the syntax: > > groff << > was used. > > I've used Unix/Linux for over 25 years, and I've never seen > that "triple redirect" before. What does it do? I get nowhere > with a Google search because it ignores the '<<<'. > > T

[Groff] What does 'groff <<

2012-12-02 Thread Clarke Echols
In a recent email the syntax: groff <

Re: [Groff] Backgound image slightly higher on page one

2012-12-02 Thread Dave Kemper
On Sun, Dec 2, 2012 at 11:51 AM, Ralph Corderoy wrote: > The table split across its pages 14/15 describing .ns and .rs both have > `space' as the second field, Initial value, stating space mode is the > default. Empirically, it seems correct. > > $ nroff << 1 foo > 65 >

Re: [Groff] Backgound image slightly higher on page one

2012-12-02 Thread Ralph Corderoy
Hi Mike, > Groff starts off in no-space mode until either the .rs command or > some text is output. no-space mode means any request for vertical > spacing is ignored. > > I cannot find where this is explained in the documentation. > Computing Science Technical Report No. 54 >

Re: [Groff] producing a booklet with groff ?

2012-12-02 Thread Ralph Corderoy
Hi Tadziu, > ps2ps, on the other hand, interprets the Postscript code and writes a > completely new Postscript file which, code-wise, bears little > resemblance to the original. I often do `ps2pdf downloaded.pdf test.pdf', yes, input is PDF, not PostScript, to see if test.pdf comes out smaller th

Re: [Groff] producing a booklet with groff ?

2012-12-02 Thread Tadziu Hoffmann
> All this just convinces me that this postscript stuff is > sometimes very fragile. I wouldn't call it "fragile", I'd say "powerful". Postscript, like troff, allows redefining the builtin operators. A very common practice in programs (such as groff, or pstops) that create Postscript output and

Re: [Groff] Backgound image slightly higher on page one

2012-12-02 Thread Jérôme Frgacic
Thanks for your two solutions, they both fix my problem. I think I prefer temporarily modify the vertical spacing before insert the background image, but add an empty paragraph on the first page also do the job (but, in this case, all the images have one vertical spacing above them). Again, tha