Outputting Text

Outputting Text

 



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.

 

Prev  [1] [2] [3] 

Close    To Top
  • Prev Article-OS:
  • Next Article-OS:
  • Now: Tutorial for Web and Software Design > OS > Linux > OS Content
    Photoshop Tutorial
     

    Special Effect

      3D Effect
      Photoshop Articles
    Programming Tutorial
     

    C/C++ Tutorial

      Visual Basic
      C# Tutorial
    Database Tutorial
     

    MySQL Tutorial

      MS SQL Tutorial
      Oracle Tutorial
    Geek Tutorial
     

    Blogging Tutorial

      RSS Tutorial
      Podcasting Tutorial
    Graphic Design Tutorial
      Coreldraw Tutorial
      Illustrator Tutorial
      3D Tutorials
    Webmaster Articles
     

    Domain Service

      Web Hosting
      Site Promotion
    Java Tutorial/ Articles
     

    Java Servlets

      JavaEE Tutorial
     

    JavaBeans Tutorial

    XML Tutorial/ Articles
     

    XML Style

      AJAX Tutorial
      XML Mobile
    Flash Tutorial/ Articles
     

    Flash Video

      Action Script
      Flash Articles
    OS Tutorial/ Articles
      Linux Tutorial
      Symbian Tutorial
      MacOS Tutorial
    Personal Tech
      Hardware Tutorial
      Software Tutorial
      Online Auction