Russ Whitaker wrote:
Merry Xmas
If you like to keep paper copies of your source files and would like to print on both sides of the paper you might like the attached source file. Also, it adds a margin for 3-hole punch.
Thanks for the contribution. I didn't test it since I have only access to PostScript printers at university. Just a little comment on the code, though:
{$define ESC char(27)}
Is there any problem with using a constant (ESC = char (27))? Macros are a GPC extension (and quite ugly IMHO ;-), and a constant seems to work fine AFAICT.
Also, I'd suggest to use chr (a proper Pascal function) rather than char (a type-cast), also in other places, and to use '' rather than "" for normal text strings ("" is also a GPC extension, probably not known by many other compilers -- the difference is that "" allows C-style escapes, so you'll need it for TABS etc., but not for most other strings).
Frank