Thread View: comp.sys.hp.hardware
2 messages
2 total messages
Started by Roger Stone
Thu, 14 Dec 1995 00:00
Double Underlining on HPLJ4 Plus
Author: Roger Stone
Date: Thu, 14 Dec 1995 00:00
Date: Thu, 14 Dec 1995 00:00
11 lines
885 bytes
885 bytes
Is it possible to get double underlining when printing a text file on a LaserJet 4 Plus without using a word processing package ? If it is would someone kindly let me know the esc sequences to turn it on & off Cheers ----------- Roger Stone Any views expressed here are totally my own and NOT those of my employer
Re: Double Underlining on HPLJ4 Plus
Author: Peter G. Hamilton
Date: Fri, 15 Dec 1995 00:00
Date: Fri, 15 Dec 1995 00:00
50 lines
2386 bytes
2386 bytes
In article <818940292snz@doemin.demon.co.uk>
Roger@doemin.demon.co.uk "Roger Stone" writes:
> Is it possible to get double underlining when printing a text file on a
> LaserJet 4 Plus without using a word processing package ?
>
> If it is would someone kindly let me know the esc sequences to turn it
> on & off
>
> Cheers
> -----------
> Roger Stone
Roger,
Single underlining is no problem, since you just need to insert:
"<esc>&d0D" to enable the underline, and
"<esc>&d@" to disable the underline (<esc>=27, and don't type the quotes).
To get the escape character in dos, just type 027 on the numeric keypad
with the alt key held down.
Double underlining is rather more complex, since it entails repositioning
on the page and either underlining a second time, or drawing a line under
the underline, shifted down a few dots.
With the printer set to Courier non-proportional font, the following scheme
could be used (quotes used for clarity - don't type them):
"<esc>&f0S" ;push current position
"<esc>&d0D" ;enable single underline
"Greetings" ;the text
"<esc>&d@" ;disable underline
"<esc>&f1S" ;pop position (move to start of text again)
"<esc>&*p+5Y" ;move down 5 dots (1/60th of an inch)
"<esc>&d0D" ;enable underline again
" " ;9 underlined blanks superimposed on "Greetings"
"<esc>&d@" ;disable underline
"<esc>&*p-5Y" ;move back up
;erm...
;thats it !
The above scheme, only works with non-proportional fonts.
Codes must be typed exactly as above, with no spaces or new lines.
If you need more info, e-mail me.
Pete.
--
"Windows 95 supports non-Microsoft general applications in the same
way that a rope supports a man about to be hanged."
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads