Re: [Groff] Trouble switching to groff, macro gives syntax error...

2015-09-16 Thread Tadziu Hoffmann
> There is several lines of whitespace and a page number. I want > the first line of text to be on the first line of output and > no page numbers. There are left and right margins. I need > it to have no margins and a page width of 80 columns when > generating text output. The PDF version can hav

Re: [Groff] Trouble switching to groff, macro gives syntax error...

2015-09-16 Thread Anton Shterenlikht
Ralph, thank you This was a very useful Unix tutorial. Thanks Anton

Re: [Groff] Trouble switching to groff, macro gives syntax error...

2015-09-16 Thread Ralph Corderoy
Hi Anton, > > I'm assuming you know about the SIGPIPE, or EPIPE return from > > write(2), that occurs when sed closes its stdin, nroff's stdout, and > > how that ripples back through the pipeline, causing yes(1) to stop? > > No, I don't. This really was my question. From your answer I see it's >

Re: [Groff] Trouble switching to groff, macro gives syntax error...

2015-09-16 Thread Anton Shterenlikht
>From ra...@inputplus.co.uk Wed Sep 16 12:10:02 2015 > >Why use head(1)? Why did Berkeley even bother to create head when sed >already existed and had the functionality? I didn't know that. >I'm assuming you know about the SIGPIPE, or EPIPE return from write(2), >that occurs when sed closes its

Re: [Groff] Trouble switching to groff, macro gives syntax error...

2015-09-16 Thread Ralph Corderoy
Hi Anton, > >$ (printf '.pl 1i\n.ll 2i\n'; yes 'a \n%') | nroff | sed 13q ... > I can reproduce this on my FreeBSD box, but I cannot figure out how > this works? Can you really send a never ending stream to nroff? Sure. It does output-line-at-a-time formatting. Even paragraph-at-a-time tha

Re: [Groff] Trouble switching to groff, macro gives syntax error...

2015-09-16 Thread Anton Shterenlikht
> >$ (printf '.pl 1i\n.ll 2i\n'; yes 'a \n%') | nroff | sed 13q >a 1 a 1 a 1 a 1 a 1 >a 1 a 1 a 1 a 1 a 1 >a 1 a 1 a 1 a 1 a 1 >a 1 a 1 a 1 a 1 a 1 >a 1 a 1 a 1 a 1 a 1 >a 1 a 1 a 1 a 1 a 1 >a 2 a 2 a 2 a 2 a 2 >a 2 a 2 a 2 a 2 a 2 >a 2 a 2 a 2 a 2 a

Re: [Groff] Trouble switching to groff, macro gives syntax error...

2015-09-16 Thread Ralph Corderoy
Hi Marisa, Damian wrote: > > There is several lines of whitespace and a page number. I want the > > first line of text to be on the first line of output and no page > > numbers. > > I have never used 'groff' for such things. I am guessing it is either > not the right tool, or will need to be post

Re: [Groff] Trouble switching to groff, macro gives syntax error...

2015-09-15 Thread Damian McGuckin
On Tue, 15 Sep 2015, Marisa Giancarla wrote: Ok, trying that gave me an improvement but i still have these issues: There is several lines of whitespace and a page number. I want the first line of text to be on the first line of output and no page numbers. I have never used 'groff' for such

Re: [Groff] Trouble switching to groff, macro gives syntax error...

2015-09-15 Thread Mike Bianchi
On Tue, Sep 15, 2015 at 12:38:56AM -0700, Marisa Giancarla wrote: > Im trying to convert my plain text documents to groff with -mm macro > so that i can generate plain text and pdf formats automaticly. When > processing it i get a syntax error. I can't post the details here > since the formatting

Re: [Groff] Trouble switching to groff, macro gives syntax error...

2015-09-15 Thread Marisa Giancarla
Ok, trying that gave me an improvement but i still have these issues: There is several lines of whitespace and a page number. I want the first line of text to be on the first line of output and no page numbers. There are left and right margins. I need it to have no margins and a page width of 80

Re: [Groff] Trouble switching to groff, macro gives syntax error...

2015-09-15 Thread Damian McGuckin
Hi Marisa, On Tue, 15 Sep 2015, Marisa Giancarla wrote: Im trying to convert my plain text documents to groff with -mm macro so that i can generate plain text and pdf formats automaticly. When processing it i get a syntax error. Here is the command I'm using: groff -p -t -mm -Tascii conimp

[Groff] Trouble switching to groff, macro gives syntax error...

2015-09-15 Thread Marisa Giancarla
Im trying to convert my plain text documents to groff with -mm macro so that i can generate plain text and pdf formats automaticly. When processing it i get a syntax error. I can't post the details here since the formatting is critical to the issue. Here is a link to the details: https://www.ev