Sujet : Re: Enscript
De : ff (at) *nospam* linux.rocks (Farley Flud)
Groupes : comp.os.linux.advocacyDate : 23. Oct 2024, 15:15:50
Autres entêtes
Organisation : UsenetExpress - www.usenetexpress.com
Message-ID : <pan$123ce$b55cb55c$c4582e9e$302f6741@linux.rocks>
References : 1
On Wed, 23 Oct 2024 08:54:11 -0400, Chris Ahlstrom wrote:
I haven't used enscript for quite awhile. I used it all the time at work to
print code without having to use a text editor to do it. Here's part of a
script to convert a text file to PDF, with line numbers and a narrow font
suitable to printing. Blank lines and some info output removed.
#!/bin/bash
FONT="Monospace8"
OPTIONS="q -B -C -G -T3"
>
You must write very short lines.
The default page for enscript is A4 and that is very near to
Letter size of 8.5" x 11".
Most code, if we include the indents, has long lines of far more
than 80 characters that even with a size 8 font will exceed the
bounds of an A4 page. Enscript will wrap them by default and the
result is sort of ugly.
One could specify "landscape" orientation but that may not solve
the problem entirely.
The only other possibility would be to specify an A1 page size.
My philosophy is just to keep it in text format.
Enscript, and equivalents such as aps, paps, etc., are certainly
very capable programs, but who the fuck actually PRINTS nowadays?
Printing is, or should be, dead. Like facsimile (fax) it is kept
alive by throwback idiots that cannot adapt to change.
-- Systemd: solving all the problems that you never knew you had.