Re: [Groff] Groff command-line argument strangeness

2015-10-27 Thread Dorai Sitaram
I notice that one way to check if pdfroff is called is to look at the value of \V[GROFF_TMPDIR], because the script sets it with an export. (pdfroff sets a ton of other environment variables, but since they aren't set with an export, they can't be checked from a troff document.) The trouble with

Re: [Groff] Groff command-line argument strangeness

2015-10-26 Thread Keith Marshall
On 26/10/15 13:12, Dorai Sitaram wrote: > Incidentally, is there a way to tell from inside a document whether > it is being processed by pdfroff or groff -Tps? In both cases, the > string register .T is 'ps'. Not really; pdfroff is just a shell script, which runs groff -Tps multiple times, (to re

Re: [Groff] Groff command-line argument strangeness

2015-10-26 Thread Deri James
On Mon 26 Oct 2015 05:31:28 Keith Marshall wrote: > > However, when I do this, groff gives the following warnings: > > > > > > Unknown option: I > > Unknown option: r > > Unknown option: c > > > > > > > > Have I done something wrong, and if so, what? > > Reproduced here ... looks like another bu

Re: [Groff] Groff command-line argument strangeness

2015-10-25 Thread Keith Marshall
[adding the list back in cc -- please keep it there] On 26/10/15 05:44, Koz Ross wrote: > Thanks Keith - good to know I'm already finding bugs. :P > > What does the '-P-pa4' do here? I assume it's to do with paper sizing? Yes. It's to ensure that both troff and its grops postprocessor agree on

Re: [Groff] Groff command-line argument strangeness

2015-10-25 Thread Keith Marshall
On 26/10/15 04:28, Koz Ross wrote: > I've just discovered groff, and am quite impressed! However, for some > reason, I'm having an odd issue. I have a folder called 'src' where I > plan to store chapters of my book, and I want to add it to the search > path for stuff to include into the final docum

[Groff] Groff command-line argument strangeness

2015-10-25 Thread Koz Ross
I've just discovered groff, and am quite impressed! However, for some reason, I'm having an odd issue. I have a folder called 'src' where I plan to store chapters of my book, and I want to add it to the search path for stuff to include into the final document. I give groff the following command