Enscript custom fancy headers

From: Steven Feil (sfeil_at_io.com)
Date: 09/21/03


Date: Sun, 21 Sep 2003 13:24:27 -0500

Main Question:
How can I use Enscript to print out text files with fancy headers at
the top of each page, but put different data than normal inside those
fancy headers? I would like to use a look similar to
"--fancy-headers=emacs".

I am working with source code that someone else has written, I have
found it necessary to printout sections of code. Rather than using the
sucky tools supplied, I decided to use Enscript within the Cygwin
environment. Because of OS limitations, I will need to copy the part
of the source code that I wish to print into a separate file.

I would like to write a bash script that will call Enscript with the
necessary arguments. I want the header to contain the following data
path/name of original file (not the new filename), class, method, page
number. The bash script will get the additional data from a separate
text file.

I have looked into writing my own Enscript ".hdr" file, but even then
I run into a problem. This is because I don't know how to pass
additional information (class/method name) from the command line into
the header. I thought of a hacky way to do it by creating a new ".hdr"
file for each file that was printed. Is there a better way to do this,
by passing addition data into the header?

Secondary Question:
A few years ago, I seam to remember using a command line switch with
Enscript that worked with the switch "--fancy-headers=emacs". This
switch would let me replace the filename with something else. I can't
seam to find the switch that I used be before in the man page. What is
the switch?

PS. Does anyone know if there is a more appropriate news group for
questions about general gnu software.

LocalWords: Enscript sucky Cygwin hdr hacky



Relevant Pages

  • Enscript custom fancy headers
    ... How can I use Enscript to print out text files with fancy headers at ... I want the header to contain the following data ... switch would let me replace the filename with something else. ...
    (comp.unix.questions)
  • Enscript custom fancy headers
    ... How can I use Enscript to print out text files with fancy headers at ... I want the header to contain the following data ... switch would let me replace the filename with something else. ...
    (alt.os.linux)
  • Skipping header on first page.
    ... I'm trying to do dumping of ascii files into enscript... ... Is there a way to get enscript (or a2ps) to skip the header on the ...
    (comp.lang.postscript)
  • Re: Page numbering in Word leaves out the number 12. Why? Help
    ... "Jay Freedman" wrote: ... The Roman vs. Arabic display is set by a switch in the field in the ... Go to View> Header and Footer. ...
    (microsoft.public.word.pagelayout)
  • Re: dsofile CustomProperties in document header
    ... fields in the header and footer area. ... Every time a user views a document they will have to switch in ... word document is opened up has a few problems and the task to install it ... word-automation in the server is something that Microsoft strongly recommends ...
    (microsoft.public.office.developer.automation)