danl@intelca.intel.com (Dan Lau) (02/24/88)
I am trying to use an HP LaserJet (the original, not the Plus or the -II) as a replacement for a line printer. I have lots of large files that are nothing more than lines, no form-feeds. These files are expected to be printed on a real line printer with 66 lines per page. So every 60 lines or so, there are a couple of blank lines. These files print just fine on a real line printer, but I have not been able to set the LaserJet up to emulate a printer with 66 lines per-page. I have the proper font cartridge, and here is the setup sequence I sent to the printer (? is an ESC): ?(s0ps16.67hs8.5vs0ss0T?&l1ol1el6.1867C The problem is that with a vertical motion of 6.1867, the lines would slowly move down the page so that after 10 pages or so, I'd lose a line on the bottom. If I use a value of 6.1866, then the lines would creep up on the page. Since only 4 decimal digits are allowed, I see no other way to control this. I'd appreciate any help/suggestion anyone may have on how to set this up. Thanks. Dan Lau ...!hplabs!intelca!danl
davidsen@steinmetz.steinmetz.UUCP (William E. Davidsen Jr) (02/26/88)
The problem with pagination with lines is easily solved. You have to set
the number of line per page. Then cut down the line spacing a little and
it works perfectly. I don't have a 10 pitch font handy, but here are a
few scripts I use.
# 12 pitch, 66 lines - LJ.102x66
?E?(s10v12H?&l4e7.45c66F
# 12 pitch, 66 lines, .5 in left margin
?E?(s10v12H?&l4e7.05c66F?&a9L
# 16 pitch, 100 lines, .5 in left margin
?E?(s7v16.5H?&l2e4.8c120F?&a12L
Note: the "?" character means escape, and I typed these in from a
listing because I can't easily move the real files.
Enjoy!
--
bill davidsen (wedu@ge-crd.arpa)
{uunet | philabs | seismo}!steinmetz!crdos1!davidsen
"Stupidity, like virtue, is its own reward" -me