You are not logged in.
Pages: 1
Hey, this is a question that has been bugging me for a while. When I print plain-text files the type is large, the margins are too thin, and the text is split up. Is there a way to pretty-print ascii files? I use CUPS with lp.
I do use LaTeX quite a bit, but I am still a beginner. I have a script that converts a text file to use the minimal document class but it isn't quite minimal enough for me. I suppose I could try a inserting the text into a verbatim block, but I wanted to ask how other people print text files.
Surely there is some sort of filter that makes a reasonable text size, page layout and such?
Any help is greatly appreciated.
Last edited by egan (2009-09-01 02:29:51)
Offline
Check out enscript.
Offline
Check out the options for lp, too: -o cpi=14 -o lpi=8 etc etc. That will take care of basic text size and margins if that's all you need.
Scott
Last edited by firecat53 (2009-09-01 00:31:00)
Offline
hey, i'll throw in a protip!
enscript -p - "/path/to/file.txt" | psselect -r | lp
to print a document in reverse page order. it's my default print command out of mutt (set pipe_decode and it prints emails beautifully).
//github/
Offline
Thanks for all all the help guys. enscript does what I wanted, so thanks for that tip.
Offline
Pages: 1