groff
[Top][All Lists]
Advanced

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

Re: * RL * Question about groff file


From: Grégoire Babey
Subject: Re: * RL * Question about groff file
Date: Sun, 05 Apr 2020 14:02:14 +0200

Hi

Thank you all for answering.
I had not the just idea, what is PostScript.
Now it is much more clearer.

Regards
Gregoire



Le mardi 31 mars 2020 à 22:23 -0400, Mike Bianchi a écrit :
> > I should find at some place a file named aa.ps. But there is
> > nothing.
>
> If you type this command to the shell
>
>    groff aa
>
> it will produce PostScript (ps) output on the "standard output"
> (stdout)
> which defaults to the terminal in which the   groff aa   command is
> run.
>
> When I type that line into my shell I see:
>
>         %!PS-Adobe-3.0
>         %%Creator: groff version 1.22.2
>         %%CreationDate: Tue Mar 31 22:06:30 2020
>         %%DocumentNeededResources: font Times-Roman
>         %%DocumentSuppliedResources: procset grops 1.22 2
>         %%Pages: 1
>         %%PageOrder: Ascend
>         %%DocumentMedia: Default 612 792 0 () ()
>         %%Orientation: Portrait
>         %%EndComments
>         %%BeginDefaults
>         %%PageMedia: Default
>         %%EndDefaults
>         %%BeginProlog
>         %%BeginResource: procset grops 1.22 2
>                 :
>                 :
>         %%EndSetup
>       %%Page: 1 1
>       %%BeginPageSetup
>       BP
>       %%EndPageSetup
>       /F0 10/Times-Roman@0 SF(aa)72 12 Q 0 Cg EP
>       %%Trailer
>       end
>       %%EOF
>
> That is the PostScript that is the formated version of what is in
> file  aa .
> To put the PostScript into a file named  aa.ps :
>
>       groff aa >aa.ps
>
> The  >  redirects the standard output into the file  aa.ps .
> Hope this helps.
>                                                               Mike
>
> On Wed, Apr 01, 2020 at 03:55:24AM +0200, Grégoire Babey wrote:
> > Hi groffies!
> >
> > I reading the manual again.
> > There is something I don't understand.
> > I read in the manual, at chap. 2.6:
> >
> > "groff file
> >
> > This command processes file without a macro package or a
> > preprocessor.
> > The output device is the default, ‘ps’, and the output is sent to
> > stdout."
> >
> > I tried this with a simple file named aa, containing only two
> > characters. "aa". If I type:
> >
> > groff aa
> >
> > I should find at some place a file named aa.ps. But there is
> > nothing.
> > I was searching with locate:
> >
> > locate aa.ps
> >
> > gives no results.
> >
> > I have found some directories named stdout, but there was no aa.ps
> > there.
> >
> > Can somebody explain this to me?
> >
> > Regards
> > Gregoire
> >
>
>




reply via email to

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