[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem printing html source
From: |
Joachim Backes |
Subject: |
Re: problem printing html source |
Date: |
Fri, 22 Jun 2001 11:08:22 +0200 (CEST) |
On 22-Jun-2001 Alexander Mai wrote:
> On Fri, Jun 22, 2001 at 07:09:38AM +0200, Joachim Backes wrote:
> >
> > On 21-Jun-2001 McIllece wrote:
> > > Hi,
> > >
> > > I am trying to print some html source code. I just want a hardcopy of
> > > the
> > > source itself. When I do
> > >
> > > a2ps z.html
> > >
> > > I get:
> > >
> > > sh: psnup: not found
> > > cat: /tmp/a2_AAA8Ia4Xd: No such file or directory
> > > netscape: not running on display :0.0
> > > netscape: not running on display :0.0
> > > [z.html (html, delegated to Netscape): failed. Ignored]
> > > [No output produced]
> > >
> > > (which prints nothing, of course)
> > >
> > > If I change the filename to just "z" and do
> > >
> > > a2ps z
> > >
> > > I get:
> > >
> > > [z (plain): 1 page on 1 sheet]
> > > request id is ssb-317-8k-6 (1 file)
> > > [Total: 1 page on 1 sheet] sent to the default printer
> > >
> > > (which actually prints the file).
> > >
> > > How can I print html source without removing the .html filename
> > > extension?
> >
> > Hi, McIllece,
> >
> > try the a2ps option
> >
> > --pretty-print=plain
> >
> > This prints without using _any_ stylesheet.
>
> Hmm, there's a flag to turn on delegations, but one
> can not turn them off?
> (well, I use a2ps often, but only the limited subset of
> 2-3 command line options all the time; I never dig deeper ...)
Hi, Alexander, see a2ps manual, vers. 4.13, page 22:
--pretty-print[=language]
...
Note that setting language to 'plain' turns off pretty printing.
Example:
1.
address@hidden [HOME]: a2ps x.html
[x.html (html, delegated to Netscape): 1 page on 1 sheet]
request id is address@hidden
[Total: 2 pages on 1 sheet] sent to the default printer
2.
address@hidden [HOME]: a2ps --pretty-print=plain x.html
[x.html (plain): 2 pages on 1 sheet]
request id is address@hidden
[Total: 2 pages on 1 sheet] sent to the default printer
---------------------------------------------------------
In the second case, the pure text of the html doc is printed.
Regards
Joachim Backes
--
Joachim Backes <address@hidden> | Univ. of Kaiserslautern
Computer Center, High Performance Computing | Phone: +49-631-205-2438
D-67653 Kaiserslautern, PO Box 3049, Germany | Fax: +49-631-205-3056
---------------------------------------------+------------------------
WWW: http://hlrwm.rhrk.uni-kl.de/home/staff/backes.html