Re: Printing C Program from KWrite on SuSE 10.1
- From: Craig Andersen <andersen52@xxxxxxxxxxxxx>
- Date: Sun, 02 Sep 2007 06:31:13 -0500
Rajko M. wrote:
Craig Andersen wrote:
I having been searching for the format characters definitions for
headers and footers (e.g. %f means filename) without success.
Enscript may be used but still no comprehensive list of the %y %U and
all the rest.
Will continue to search, any help would be appreciated.
Do you mean that
man enscript
info enscript
doesn't contain enough information ;-)
Sincerely, after looking trough 'enscript' manual I'm happier than before.
It would be really interesting to set printing manually, but I can live
without it :^)
********************************************************
%Format: name format
Define a new string constant name according to the format string format.
Format string start from the first non-space character and it ends to the
end of the line. Format string can contain general `%' escapes and input
file related `$' escapes. Currently following escapes are supported:
%% character `%'
$$ character `$'
$% current page number
$= number of pages in the current file
$p number of pages processed so far
$(VAR) value of the environment variable VAR.
%c trailing component of the current working directory
%C ($C) current time (file modification time) in `hh:mm:ss' format
%d current working directory
%D ($D) current date (file modification date) in `yy-mm-dd' format
%D{string} ($D{string}) format string string with the strftime(3) function.
`%D{}' refers to the current date and `$D{}' to the input file's last
modification date.
%E ($E) current date (file modification date) in `yy/mm/dd' format
%F ($F) current date (file modification date) in `dd.mm.yyyy' format
%H document title
$L number of lines in the current input file. This is valid only for the
toc entries, it can't be used in header strings.
%m the hostname up to the first `.' character
%M the full hostname
%n the user login name
$n input file name without the directory part
%N the user's pw_gecos field up to the first `,' character
$N the full input file name
%t ($t) current time (file modification time) in 12-hour am/pm format
%T ($T) current time (file modification time) in 24-hour format `hh:mm'
%* ($*) current time (file modification time) in 24-hour format with
seconds `hh:mm:ss'
$v the sequence number of the current input file
$V the sequence number of the current input file in the `Table of Contents'
format: if the --toc option is given, escape expands to `num-'; if
the --toc is not given, escape expands to an empty string.
%W ($W) current date (file modification date) in `mm/dd/yy' format
All format directives except `$=' can also be given in format
********************************************************
The %f that I have seen in KDE printer configuration, seems to be KDE
internal replacement for file name.
That is what I was looking at but there are many others like %U for
filename with path, and %Y and %y are date formats, %p and %P are page
and number of pages, ...
So there must be another formatting going on here.
.
- Follow-Ups:
- Re: Printing C Program from KWrite on SuSE 10.1
- From: Don Raboud
- Re: Printing C Program from KWrite on SuSE 10.1
- From: Rajko M.
- Re: Printing C Program from KWrite on SuSE 10.1
- References:
- Printing C Program from KWrite on SuSE 10.1
- From: Craig Andersen
- Re: Printing C Program from KWrite on SuSE 10.1
- From: Rajko M.
- Printing C Program from KWrite on SuSE 10.1
- Prev by Date: xorg 6.9 rpm for opensuse 10.0
- Next by Date: Re: NTFS Support in 10.3
- Previous by thread: Re: Printing C Program from KWrite on SuSE 10.1
- Next by thread: Re: Printing C Program from KWrite on SuSE 10.1
- Index(es):
Relevant Pages
|