LinuxDevCenter.com

oreilly.comSafari Books Online.Conferences.

We've expanded our Linux news coverage and improved our search! Search for all things Linux across O'Reilly!

Search
Search Tips

advertisement

Listen Print Subscribe to Linux Subscribe to Newsletters

Outputting Text
Pages: 1, 2, 3

 



The chart below describes some of the more popular enscript options.

Common Options for GNU Enscript

-[number]

Specify number of columns per page; e.g. for four columns/page, use "-4".

-#[number]

Specify number of copies; e.g. to print three copies, use "-#3".

-a[pages]

Specify the page numbers to be printed. Give specific pages by their number, page ranges between hyphens (for pages 34-45 inclusive, use "-a34-45"); the special "odd" prints odd pages and "even" prints even pages.

-d[printer]

Spool output to the printer named "printer".

-E[language]

"Pretty-print" the text written in a given language with context highlighting; to list the supported languages, run "enscript --help-pretty-print".

-H[number]

Specify height of highlight bars, in lines (without [number], the value of 2 is used).

-i[number]

Indent lines by [number] characters, or follow [number] with a letter denoting the unit to use:

  c   centimeters
  i   inches
  p   PostScript points

-I[filter]

Pass input files through [filter]---can be a tool or quoted command.

-j

Print borders around columns.

-L[numbers]

Specify number of lines per page.

-u[text]

Specify a quoted string "underlay" to print underneath every page.

-U[number]

Specify number of logical pages to print on each page of output.

--highlight-bar-gray=[number]

Specify the level of gray color used in printing the highlight bars.

--margins=[left]:[right]:[top]:[bottom]

Adjust left, right, top and bottom page margins; numbers are in PostScript points, and when specifying, any can be omitted.

--rotate-even-pages

Rotates each even-numbered page 180 degrees.

Next week: how to process and use the TeX and LaTeX files you might encounter out there.

arrowMore Living Linux articles.


Michael Stutz spent the 1990s making open-source recordings of music and writing fiction and other text (including the open source etext novel Sunclipse). He also wrote a comprehensive, general-purpose copyleft license that anyone could use on any published data.

Michael Stutz was one of the first reporters to cover Linux and the free software movement in the mainstream press.


Read more Living Linux columns.

Discuss this article in the O'Reilly Network Linux Forum.

Return to the Linux DevCenter.

 




Tagged Articles

Be the first to post this article to del.icio.us

Sponsored Resources

  • Inside Lightroom
Advertisement

Sponsored by:

O'Reilly Media

©2009, O'Reilly Media, Inc.
(707) 827-7000 / (800) 998-9938
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.
About O'Reilly
Academic Solutions
Authors
Contacts
Customer Service
Jobs
Newsletters
O'Reilly Labs
Press Room
Privacy Policy
RSS Feeds
Terms of Service
User Groups
Writing for O'Reilly
Content Archive
Business Technology
Computer Technology
Google
Microsoft
Mobile
Network
Operating System
Digital Photography
Programming
Software
Web
Web Design
More O'Reilly Sites
O'Reilly Radar
Ignite
Tools of Change for Publishing
Digital Media
Inside iPhone
O'Reilly FYI
makezine.com
craftzine.com
hackszine.com
perl.com
xml.com

Partner Sites
InsideRIA
java.net
O'Reilly Insights on Forbes.com