Printing with Kate: page header and footer.

Kurt Pfeifle kpfeifle at danka.de
Thu May 27 12:19:56 CEST 2004


Charles Trois wrote:

> There was a thread on this list concerning the above subject (more or less)
> two years ago, but it showed nothing conclusive.
> 

I recently printed using kate (from KDE 3.2.2) and found it had
very much improved.

I found a bug which unfortunatly hadn't time to report:

The left "footer" variable is never expanded. It prints as "%u" or
whatever is in there.

But actually, this part of the UI has nothing to do with KDEPrint.
It is the kate developers who are using an option to plug in
application-specific features into the kprinter dialog. For more
thorough discussions of that functions you'd need to contact the
kate maintainers or the kate mailing list.

> I have an Epson 740 printer with cups on my iMac using YDL 3.0.1 and KDE
> 3.2.
> 
> When printing text files with Kate (or KDevelop, which works the same way),
> I cannot get the header and footer quite right.
> 
> In the configuring dialog, the header format is given as
> 
>     %y              %f              %p
> 
> (there are three fields).
> 
> On the printer document, the header is
> 
>     date            title
> 
> The footer format is
> 
>                                     %U
> 
> but no footer appears in the print; the last line is clipped horizontally at
> 14 mm from the bottom, the top and bottom margins being 5 mm.
> 
> --Is there some sort of howto for this operation?
> --Where can I find the meaning of the various codes (%y, etc)?

It is explained if you use the "WhatsThis" help. Click the
"?" sign in the menubar or window title bar. (If it is not
there, you have to enable it in the Control Center). Curser
Changes to contain a "?" shape. Now click into any GUI
element you want an explanation for. (Not all "WhatsThis" is
actually filled in yet. But for the header/footer fields it
works).

> --How can I get the page numbers printed?

"%p".  Doesn't it appear in the upper right (header) field
for you?

Or "Page %p". Or "Seite %p". Just avoid to put it into left
footer field currently.

To avoid wasting paper, you should enable the "print preview"
checkbox, and cancel printing if it doesn't look like you
desire.

> --And what about the clipping effect?
> 

No idea. Are you sure you have the correct paper format
selected?

> All hints and explanations will be welcome.
> 

It would greatly help for *any* bug discussion to provide
the exact version of the software you are using.

> Charles
> 

Cheers,
Kurt



More information about the kde-print mailing list