home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
qedit
/
qextra.arc
/
QFORMAT.ART
< prev
next >
Wrap
Text File
|
1988-05-27
|
47KB
|
1,977 lines
WORD PROCESSOR FORMAT FEATURES FOR QEDIT 2.03
=============================================
by
Gene Catalano (June 1, 1988)
TABLE OF CONTENTS
=================
PART I: INTRODUCTION (WHAT YOU NEED TO KNOW) Pg. 2
PART II: SETTING UP MACROS FOR FORMAT FEATURES Pg. 4
PART III: INSTRUCTIONS ON CREATING FORMAT MACROS Pg. 6
PART IV: EDIT/CREATE YOUR FORMAT MACROS Pg. 10
PART V: SAVING YOUR MACROS Pg. 28
ACCESSORY FILE (if downloaded, part of my package, QEXTRA.ARC):
FORMAT.MAC
CLEAR.MAC
(CLEAR.MAC is a "dummy" macro file...that is, its contents are
"zilch." Actually, it contains a macro command for ALT-0, which
is to move cursor right 5 spaces, then left 5 spaces. Whenever
you want to clear all current macro keys, just load CLEAR.MAC.)
If you acquired this article by downloading my package,
QEXTRA.ARC, you should have the following 14 files: QASCII.ART,
QCONFIG.ART, QFORMAT.ART, Q-L-FORM.ART, QPRINTER.ART, ASCII.MAC,
CLEAR.MAC, FORMAT.MAC, L-FORM.MAC, PRINT.MAC, README.1ST,
SAMPLE.BOX, TEMPLATE, and TEST.PRN. If you are reading this
article through a bulletin board service, without the benefit of
having downloaded the entire package (QEXTRA.ARC), you can still
use 100% of the information described herein. (The files ending
with ".ART" are articles, and all other files are accessories to
the articles.)
"FORMAT" MACROS FOR QEDIT (cont'd)
*****************************************************************
PART I: INTRODUCTION (WHAT YOU NEED TO KNOW)
=============================================
IMPORTANT: Please note that the instructions herein are for
QEDIT version 2.03, and depend on QEDIT's "macro creation" and
"literal" features. These instructions may or may not be
applicable to future versions, depending on the author's upgrade
approach. Likewise, the instructions are for dot matrix
printers. If you have a daisy wheel or thimble printer, and are
savvy (or persistant) enough, you can probably adapt my
instructions to work for your printer.
You must already be acquainted with QEDIT key configuration and
macro creation, in order to make use of this information.
Macros for print code word-processing features (letter quality,
double strike, enhanced, italics, underscore, superscript,
subscript, justification, proportional spacing, 12 cpi, etc.) are
discussed in my file QPRINTER.ART.
Macros for box and line-draw graphics are discussed in my file
QBOXES.ART.
Macros for extended code ASCII characters are discussed in my
file ASCII.ART.
These macros were created to give QEDIT the following
word-processor document formatting capabilities: automatic page
breaks, automatic top and bottom margins, automatic deletion of
previously-set top/bottom margins, headers, footers, and
automatic printing of document-standard text of 1-inch left/right
margins for both pica and elite.
These macros were designed with the following assumptions:
Printing with 8-1/2 by 11 inch paper.
Page length of 66 lines.
Printing at 6 lines per inch.
Printer is set with "Skip page perforation" OFF.
Said assumptions meeting the needs of most users, the experienced
user can adapt these macros, and/or create additional ones, to
expand QEDIT's word processing power.
In case you are curious, this text has been formatted using my
original macros from FORMAT.MAC. Text was configured for the
[ALT]8 macro (Set Left/Right Margins at 1" for 10 cpi or
proportional). So before printing, set printer for that macro.
-=2=-
"FORMAT" MACROS FOR QEDIT (cont'd)
Because printers vary widely with which codes they use for fonts
and pitches, I left out any print codes...so make sure your
printer is set for 10 cpi (pica). You can certainly dress up
this article by using print codes described in my file
PRINTER.ART! (If you don't use the "set left/right margins at 1
inch " macro, it will print out just as you see on screen: left
margin at 1 inch, right margin at 65.)
-=3=-
"FORMAT" MACROS FOR QEDIT (cont'd)
*****************************************************************
PART II: SETTING UP MACROS FOR FORMAT FEATURES
-----------------------------------------------
MACRO FORMAT FEATURE
===== ==================================================
[ALT]1 Page break w/6-line (1") top & bottom margins
[ALT]2 Page break w/3-line (1/2") top & bottom margins
[ALT]3 Copy header to next page
[ALT]4 Copy footer to next page
[ALT]5 Find page break
[ALT]6 Remove 6-line bottom & top margins
[ALT]7 Remove 3-line bottom & top margins
[ALT]8 Set Left/Right Margins at 1" (10 cpi/proportional)
[ALT]9 Set Left/Right Margins at 1" (12 cpi)
[ALT]0 Clear left/right margins to 10 cpi, 8-1/2" page
[ALT]Q Check page length for 52-line text body
[ALT]W Check page length for 58-line text body
[ALT]E Check full page length (64 lines)
[ALT]R printer carriage return
[ALT]T printer page eject
[ALT]Y Input form feed (manual page break)
[ALT]D convert to double space (from single)
[ALT]S convert to single space (from double)
Above is a list of QEDIT 2.03 macros for the most commonly used
word-processor formats not included in QEDIT's original
capabilities. I use macros ALT-0 through ALT-9 and ALT
-Q,-W,-E,-R,-T,-Y; but you may choose any macro keystrokes (in
which case edit the "MACRO" column). (ALT-D and ALT-S were added
as an afterthought.) Please note that QEDIT does not allow use
of "two_key" commands for macros, which are two keystrokes
preceded by the [ALT], [CTRL] or [SHIFT] key...or even with the
last keystroke preceded by another [ALT], [CTRL] or [SHIFT] key.
Also, note that QEDIT does not allow macro creation of keys
already configured through QCONFIG.EXE.
By editing the list above to suit your requirements, you may use
it as a reference for creating the macro keys.
I have used the same "family" of macros (ALT-0 through ALT-9 and
[ALT] -Q,-W,-E,-R,-T,-Y) for my "format macros," "legal format
macros," "printer macros," and "ascii macros," discussed in the
files QFORMAT.ART, Q-L-FORM.ART, QPRINTER.ART and QASCII.ART. If
you do likewise, you will have to switch among my four macro
files, by using QEDIT's "<macro_read>" command.
-=4=-
"FORMAT" MACROS FOR QEDIT (cont'd)
Remember: in order to reserve the "macro family" ALT-0 through
ALT-9, and ALT -Q,-W,-E,-R,-T,-Y (which is each letter
Q,W,E,R,T,Y preceded by [ALT]), for your own macro files, you
must not use any of these keys in your configuration file (which
is set up by running QCONFIG.EXE). This applies to any key
combinations you want to use for macros.
-=5=-
"FORMAT" MACROS FOR QEDIT (cont'd)
*****************************************************************
PART III: INSTRUCTIONS ON CREATING FORMAT MACROS
-------------------------------------------------
Although there are two ways to create QEDIT macros--adding them
to the key configuration file, or creating a special macro
file--I prefer the second. This way, macros ALT-0 through ALT-9
and [ALT]Q, [ALT]W, [ALT]E, [ALT]R and [ALT]Y, can be re-used for
other macro files. (The basic idea here, is to reserve a "family"
of keys for your macro files...because any keys used in your
configuration file are not available for macro recording.)
The full macro "family" I reserve for macro files is [ALT]-0
through [ALT]-9 , and [ALT] -Q,-W,-E,-R,-T,-Y.
If you like my macro assignments, and you have no keys configured
within that macro family, you are ready to go! Once you are in
QEDIT, just load my macro file FORMAT.MAC with the "macro_read"
command. (Unlike the print-code macro file PRINT.MAC, there are
no code incompatibilities to watch out for.)
(If you didn't acquire this article by downloading it as part of
my QEXTRA.ARC package, then you might not have accessory files
ASCII.MAC, CLEAR.MAC, FORMAT.MAC, L-FORM.MAC, PRINT.MAC,
SAMPLE.BOX, TEST.PRN, or TEMPLATE.)
---------------
You can create a macro to automatically load FORMAT.MAC. In the
following key configuration, I selected ALT-F ("@f") for the
macro, but you may choose another macro key. This example is to
be included in your configuration file, which should then be
imbedded in your QEDIT program by running QCONFIG.EXE:
@f macro_begin escape 'm' 'r' 'format.mac' return
The above macro configuration assumes that FORMAT.MAC resides in
the same directory where you run QEDIT. If not, add the drive
and/or subdirectory. For example, if FORMAT.MAC resides in drive
C:, subdirectory "\MACRO", you would change 'FORMAT.MAC' to
'C:\MACRO\FORMAT.MAC'. (Of course, you may prefer a file name
other than FORMAT.MAC, in which case, change it.)
---------------
NOTE: The original QEDIT configuration file, QCONFIG.DAT, does
not include the "macro_read" and "macro_write" commands.
("Macro_record" is CTRL-M.) Of course, you can just use the
pop-up menu by hitting "[ESC]MM" to begin the macro, and hitting
"[ESC]MM" a second time to end the macro.
-=6=-
"FORMAT" MACROS FOR QEDIT (cont'd)
To include "macro_read" and "macro_write" as key configurations,
I suggest first changing the original "macro_record" from CTRL-M
to CTRL-M-C ("C" standing for macro "create") then using CTRL-M-L
for "macro_read" ("L" standing for macro "load"), and CTRL-M-S
for "macro_write" ("S" standing for macro "save"). Delete the
original "macro_record" line in your configuration file, and
replace it with these three lines:
^m_c macro_record * macro "create"
^m_l macro_read * macro "load"
^m_s macro_write * macro "save"
If you prefer to use macros other than the CTRL-M two-key
commands, change them now. Either way, you can just copy/paste
the above three command lines into your configuration file. Then
run QCONFIG.EXE to reconfigure your keys.
If you are using the WordStar-compatible configuration file
QWSKEY.DAT, [SHIFT][F1], [SHIFT][F2], and [SHIFT][F3] are used
for "macro_read," "macro_write," and "macro_record,"
respectively.)
You must have QEDIT's "literal" command included in your
configuration file. In the original QCONFIG.DAT configuration
file, the command line is:
^p literal
(The "literal" command tells QEDIT to literally interpret the
next keystroke. Since you do not want [ESC] to call up QEDIT's
pop-up menus, as it normally does, you must precede [ESC] with a
"literal" command, in order to bypass QEDIT's function for [ESC],
and use it to activate a printer [escape] code instead.)
When creating a macro that includes [PGUP]/[PGDN] keys, you must
not be working in a window (that is, you must be in "full screen"
mode). This is because [PGUP] and [PGDN] take smaller jumps in
windows, than in full screen.
-=7=-
"FORMAT" MACROS FOR QEDIT (cont'd)
HOW TO USE MY INSTRUCTIONS:
..........................
PART IV begins the actual macro creations. I recommend first
editing the list of 16 macros in PART IV before beginning,
according to the following directions:
The QEDIT "<macro_record>" command to begin creating a macro, is
the same command used to end the macro.
Any text in "less-than"/"greater-than" brackets "<...>" indicates
a QEDIT keystroke or keystroke combination that is user defined.
Any text in "left"/"right" square brackets "[...]" indicates a
literal keystroke. Therefore, "[ESC]" means to literally press
the [ESC] key, "[LEFT ARROW]" means to literally press the [LEFT
ARROW] key, and so forth.
Any text in "left/right" fancy brackects "{...}" indicates an
instruction to hit the key designated therein, a multiple number
of times as indicated.
Characters not in brackets are to be typed just as you see them
(letters are not case sensitive, except any that appear on the
same line as a printer [ESC] code).
The steps described to create a macro (in PART IV) are placed on
separate lines in order to break them down into understandable,
digestible units. However, do not, I repeat, do not do the same
thing yourself...for there are absolutely no carriage returns in
any of these macros. Just treat the steps for creating each
macro as if all the commands for each macro appeared on one line,
without any spaces.
To facilitate creation of the macros in PART IV, edit each
macro's step-by-step instruction to conform with your own
customized key configurations. That is: replace every
occurrence of "<macro_record>" with your actual "macro_record"
keystroke. Likewise, replace every occurrence of "<literal>" with
your actual "literal" keystroke. Finally, replace each occurrence
of "<MACRO>" with a macro key of your choice (each "<MACRO>" must
be replaced with a different macro keystroke).
Likewise, change any of the orginal macro keys in PART IV (ALT-0
through ALT-9 and and ALT -Q,-W,-E,-R,-T,-Y. ), to match any
changes you may have made in the MACRO list in PART II.
Once you have customized the macro instructions to your own
preferences, the instructions will be much easier to follow, for
actually creating the macros.
-=8=-
"FORMAT" MACROS FOR QEDIT (cont'd)
EXAMPLE:
-------
The step-by-step instruction to create the macro for "page break
w/6-line top/bottom margins" is:
<macro_record>
<MACRO>
{hit [ENTER] 6 times}
[PGDN][PGDN]
{hit [DOWN ARROW] 8 times}
{hit [ENTER] 6 times}
[UP ARROW]
<literal>
[CTRL]L
[LEFT ARROW]
[DOWN ARROW]
<macro_record>
Let's pretend that: my "macro_record" command is "[CTRL]F1", my
<MACRO> assignment is "[SHIFT][F1]", and my "literal" command is
"[CTRL]P". Therefore, I would edit the instructions to create
the macro key to look like this:
[CTRL]F1 (begin macro)
[SHIFT][F1] (designate macro)
{hit [ENTER] 6 times} (hit [enter] 6 times)
[PGDN][PGDN] (hit [pgdn] 2 times)
{hit [DOWN ARROW] 8 times} (hit [down arrow] 8 times)
{hit [ENTER] 6 times} (hit [enter] 6 times)
[UP ARROW] (hit [up arrow] 1 time)
[CTRL]P (interpret next key as "literal")
[CTRL]L ("literal" [ctrl]l = form feed)
[LEFT ARROW] (hit [left arrow] 1 time)
[DOWN ARROW] (hit [down arrow] 1 time)
[CTRL]F1 (end macro)
Hopefully, you are now ready to edit the macro creation steps
below. Notation below each macro instruction assists your
editing.
When you are ready to create the macros, open or create a file in
QEDIT, then follow the steps in PART IV for creating ten printer
code macros.
To save your printer macros in a permanent file, follow
instructions in PART V: SAVING YOUR MACROS.
-=9=-
"FORMAT" MACROS FOR QEDIT (cont'd)
*****************************************************************
PART IV: EDIT/CREATE YOUR FORMAT MACROS
----------------------------------------
------------------------------------------------------------
ALT-1: PAGE BREAK W/TOP & BOTTOM MARGINS OF 6 LINES (1")
<macro_record>
<MACRO>
{hit [ENTER] 6 times}
[PGDN][PGDN]
{hit [DOWN ARROW] 8 times}
{hit [ENTER] 6 times}
[UP ARROW]
<literal>
[CTRL]L
[LEFT ARROW]
[DOWN ARROW]
<macro_record>
NOTES: This "page-break" macro simulates a word-processor's
automatic page break as close as possible. Since it also inserts
a (6-line) top and bottom margin with each page break, you are
spared the bother of "manually" figuring out where each page
begins and ends...which gets rather tricky after the first two
pages! For this reason, type your text without line spaces
(except to separate paragraphs), and do not use the page-break
macro until you have completed the final draft.
Before executing page-break macro, [INSERT] must be "on"; cursor
must be on line 1, column 1, of any page...and there must be no
windows active (that is, file must be in "full screen" mode.
This is because [PGUP] and [PGDN] take smaller jumps in windows,
than in full screen).
6-line top/bottom margin page-break macro gives you a maximum
text body of 52 lines.
If you don't like how the page break divides text, "block move"
the offending bottom text from the previous page onto the next
page...being careful not to alter the top and bottom line-space
margins. (You should do this before continuing your next
page-break macro.) "Block move" deletes line spaces occupied by
the block before it was moved. "Block copy" does not...but
you'll have to go back and erase it without subtracting line
space, in which case you place cursor on column 1 and delete each
line with QEDIT's "<del_to_eol>" command.
If you do not plan to create footers, you may delete all blank
lines between bottom of text and form feed line, that may form as
a result of using the "page break" macro. I recommend, however,
-=10=-
"FORMAT" MACROS FOR QEDIT (cont'd)
not to do this until you have decided how much space to leave
for a bottom margin.
If you do plan to create footers, do not delete any blank lines
that may appear between text end and form-feed line, as a result
of using a "page break" macro.
To spare yourself unnecessary re-editing, it is a good habit to
complete your final draft before inserting page breaks, headers,
and footers.
Once your top and bottom margins are created, you may insert any
header/footer in the blank margin spaces provided...and there
must be no windows active when using the macros to copy headers
and footers (that is, file must be in "full screen" mode. This
is because the "copy" macros use [PGUP] and [PGDN], which take
smaller jumps in windows, than in full screen).
(Manual "block copy" inserts an additional line space for each
blocked line, underneath the copied text...so remember to delete
those extra blank lines.)
-=11=-
"FORMAT" MACROS FOR QEDIT (cont'd)
------------------------------------------------------------
ALT-2: PAGE BREAK W/TOP & BOTTOM MARGINS OF 3 LINES (1/2")
<macro_record>
<MACRO>
{hit [ENTER] 3 times}
[PGDN][PGDN]
{hit [DOWN ARROW] 14 times}
{hit [ENTER] 3 times}
[UP ARROW]
<literal>
[CTRL]L
[LEFT ARROW]
[DOWN ARROW]
<macro_record>
NOTES: This "page-break" macro simulates a word-processor's
automatic page break as close as possible. Since it also inserts
a (3-line) top and bottom margin with each page break, you are
spared the bother of "manually" figuring out where each page
begins and ends...which gets rather tricky after the first two
pages! For this reason, type your text without line spaces
(except to separate paragraphs), and do not use the page-break
macro until you have completed the final draft.
Before executing page-break macro, [INSERT] must be "on"; cursor
must be on line 1, column 1, of any page...and there must be no
windows active (that is, file must be in "full screen" mode).
3-line top/bottom margin page-break macro gives you a maximum
text body of 58 lines.
If you don't like how the page break divides text, "block move"
the offending bottom text from the previous page onto the next
page...being careful not to alter the top and bottom line-space
margins. (You should do this before continuing your next
page-break macro.) "Block move" deletes line spaces occupied by
the block before it was moved. "Block copy" does not...but
you'll have to go back and erase it without subtracting line
space, in which case you place cursor on column 1 and delete each
line with QEDIT's "<del_to_eol>" command.
If you do not plan to create footers, you may delete all blank
lines between bottom of text and form feed line, that may form as
a result of using the "page break" macro. I recommend, however,
not to do this until you have decided how space to leave for a
bottom margin.
-=12=-
"FORMAT" MACROS FOR QEDIT (cont'd)
If you do plan to create footers, do not delete any blank lines
that may appear between text end and form-feed line, as a result
of using a "page break" macro.
Once your top and bottom margins are created, you may insert any
header/footer in the blank margin spaces provided...and there
must be no windows active when using the macros to copy headers
and footers (that is, file must be in "full screen" mode. This
is because the "copy" macros use [PGUP] and [PGDN], which take
smaller jumps in windows, than in full screen).
(Manual "block copy" inserts an additional line space for each
blocked line, underneath the copied text...so remember to delete
those extra blank lines.)
-=13=-
"FORMAT" MACROS FOR QEDIT (cont'd)
------------------------------------------------------------
ALT-3: COPY HEADER TO NEXT PAGE
<macro_record>
<MACRO>
<unmark_block>
<beg_line>
<drop_anchor>
<end_line>
<drop_anchor>
<find>
<literal>
[CTRL]L
[ENTER][ENTER]
[DOWN ARROW]
<del_to_eol>
<copy_block>
[DOWN ARROW]
<del_line>
[UP ARROW]
<macro_record>
NOTES: This "copy header" macro only works for a single-line
header situated on line one of a page's top margin...and copies a
header to consecutive (not previous) pages.
It will automatically replace any previously-inserted headers, to
spare you the hassle of deleting or editing old headers. Remember
to "unmark_block" when done, as the macro leaves the last header
copied "block highlighted." (This is so, if you decide to switch
to "manual" block-copy of the new header, it is already
highlighted.)
Before executing "copy header" macro, you must first have created
a "page break" for every page that gets a header. Also, [INSERT]
must be "on"; and cursor must be anywhere on the same line as the
header to be copied.
QEDIT command "<drop_anchor>" is a "mark block" command, which
does not require separate keys to "<mark_block_begin>" and
"<mark_block_end>."
You must know when the header has been copied to the last page,
for executing the "copy header" command beyond that can botch up
a portion of text. If you prefer not to use the "copy header"
macro, you can use the "find page-break" macro, and manually
"block copy" your header...remebering to delete the extra line
space inserted as a result of "block copy."
Page numbering: If you want to include page numbering in your
headers, include "Page #" (or "Page # of #," or "-#", or
something similar) in the first header, before copying it. After
-=14=-
"FORMAT" MACROS FOR QEDIT (cont'd)
copying the header the number of times desired, replace the "#"
symbol of each header with the appropriate page number. (You can
expedite this process with QEDIT's "<find>" and "<repeat_find>"
commands, by searching for "Page #", "#", or the like.)
To spare yourself unnecessary re-editing, it is a good habit to
complete your final draft before inserting page breaks, headers,
and footers.
-=15=-
"FORMAT" MACROS FOR QEDIT (cont'd)
------------------------------------------------------------
ALT-4: COPY FOOTER TO NEXT PAGE
<macro_record>
<MACRO>
<unmark_block>
<beg_line>
<drop_anchor>
<end_line>
<drop_anchor>
<find>
<literal>
[CTRL]L
[ENTER][ENTER]
<repeat_find>
[UP ARROW]
<del_to_eol>
<copy_block>
[DOWN ARROW]
<del_line>
[UP ARROW]
<macro_record>
NOTES: This "copy footer" macro only works for a single-line
footer situated on the last line of a page's bottom margin...and
copies a footer to consecutive (not previous) pages.
If you plan to create footers, do not delete any blank lines that
may appear between text end and form-feed line, as a result of
using a "page break" macro...or printer will type the footer in
the wrong place.
It will automatically replace any previously-inserted footers, to
spare you the hassle of deleting or editing old headers. Remember
to "unmark_block" when done, as the macro leaves the last header
copied "block highlighted." (This is so, if you decide to switch
to "manual" block-copy of the new header, it is already
highlighted.)
Before executing "copy footer" macro, you must first have created
a "page break" for every page that gets a footer. Also, [INSERT]
must be "on"; and cursor must be anywhere on the same line as the
footer to be copied.
QEDIT command "<drop_anchor>" is a "mark block" command, which
does not require separate keys to "<mark_block_begin>" and
"<mark_block_end>."
You must know when the footer has been copied to the last page,
for executing the "copy footer" command beyond that can botch up
a portion of text that may follow. If you prefer not to use the
-=16=-
"FORMAT" MACROS FOR QEDIT (cont'd)
"copy footer" macro, you can use the "find page-break" macro, and
manually "block copy" your footer...remebering to delete the
extra line space inserted as a result of "block copy."
Page numbering: If you want to include page numbering in your
footers, include "Page #" (or "Page # of #," or "-#", or
something similar) in the first footer, before copying it. After
copying the footer the number of times desired, replace the "#"
symbol of each footer with the appropriate page number. (You can
expedite this process with QEDIT's "<find>" and "<repeat_find>"
commands, by searching for "Page #", "#", or the like.)
To spare yourself unnecessary re-editing, it is a good habit to
complete your final draft before inserting page breaks, headers,
and footers.
------------------------------------------------------------
ALT-5: FIND PAGE BREAK
<macro_record>
<MACRO>
<find>
<literal>
[CTRL]L
[ENTER][ENTER]
<macro_record>
NOTES: This macro searches for the next consecutive page break
(symbolized on screen as the Egyptian "ankh"). You can use this
macro to quickly jump from page to page, in order to manually
"block copy" a header or footer... remembering to delete the
extra blank line that is inserted as a result of "block copy".
You can also use the "find page-break" macro to manually delete
top and bottom margins.
-=17=-
"FORMAT" MACROS FOR QEDIT (cont'd)
------------------------------------------------------------
ALT-6: REMOVE 6-LINE BOTTOM & TOP MARGINS
<macro_record>
<MACRO>
<find>
<literal>
[CTRL]L
[ENTER][ENTER]
{hit [UP ARROW] 5 times}
{hit <del_line> 12 times}
<macro_record>
NOTES: This macro automatically removes bottom & top margins, if
said margins are indeed 6 lines deep. The macro does it by first
searching for the next "page break," therefore it won't delete
the top margin on page 1. Each time you call up the macro, it
deletes the next occurrance of a bottom and top margin, in that
order...so each time you call up this macro, you must have a
6-line top margin immediately below the page break of a 6-line
bottom margin, as the next "bottom/top" margin to be deleted.
Any headers and footers are deleted, as they are part of a
margin.
You must be sure you have not altered any margin (to be deleted)
to be less than 6 lines, and that the margins you want to delete
are not configured for less than 6 lines, or you may wind up
deleting some text. For the same reason you must know the last
page containing 6-line top and bottom margins. If in doubt, you
can always use the "find page-break" macro, and delete the
margins manually.
This macro is an expedient way to delete 6-line top and bottom
margins, in the event you need to re-format a document's pages.
-=18=-
"FORMAT" MACROS FOR QEDIT (cont'd)
------------------------------------------------------------
ALT-7: REMOVE 3-LINE BOTTOM & TOP MARGINS
<macro_record>
<MACRO>
<find>
<literal>
[CTRL]L
[ENTER][ENTER]
{hit [UP ARROW] 2 times}
{hit <del_line> 6 times}
<macro_record>
NOTES: This macro automatically removes top and bottom margins,
if said margins are indeed 3 lines deep. The macro does it by
first searching for the next "page break," therefore it won't
delete the top margin on page 1. Each time you call up the macro,
it deletes the next occurrance of a bottom and top margin, in
that order...so each time you call up this macro, you must have a
3-line top margin immediately below the page break of a 3-line
bottom margin, as the next "bottom/top" margin to be deleted.
Any headers and footers are deleted, as they are part of a
margin.
You must be sure you have not altered any margin (to be deleted)
to be less than 3 lines, and that the margins you want to delete
are not configured for less than 3 lines, or you may wind up
deleting some text. For the same reason you must know the last
page containing 3-line top and bottom margins. If in doubt, you
can always use the "find page-break" macro, and delete the
margins manually.
This macro is an expedient way to delete 3-line top and bottom
margins, in the event you need to re-format a document's pages.
-=19=-
"FORMAT" MACROS FOR QEDIT (cont'd)
------------------------------------------------------------
ALT-8: SET LEFT/RIGHT MARG. AT 1" (10 CPI OR PROPORTIONAL)
<macro_record>
<MACRO>
[ESC]OR
65
[ENTER]
[ESC]PL
10
[ENTER]
<macro_record>
NOTES: This macro sets the manuscript-standard 1-inch left and
right margin for 10 cpi (pica) or proportional pitch. This
assumes a standard 10 cpi page-width of 85 (8-1/2 inches), hence
the macro also sets right margin to 65. If your text's right
margin is other than 65, you must re-format each paragraph with
QEDIT's "<wrap_para>" command.
The "65" in this macro is the right margin for 10 cpi (pica).
PROPORTIONAL SPACING requires an adjustment of the right margin
from "65" to "72." That's because proportional characters take
up less space than 10 cpi. For proportional, add 1 extra
character for every 10 characters in pica. Here's the formula:
P = p / 10 + p
(Where "P" = number of proportional characters, and "p" = number
of pica characters. "Number of characters" always refers to the
same line.)
(Translation: Proportional characters = pica characters divided
by 10, plus pica characters.) In this case, the calculation is
is: P = 65 / 10 + 65. "P" then equals "71.5," which I rounded
off to 72.
Text to be affected must be "flush left" on screen, as well as
paragraph-wrapped to the macro's right-margin setting. Since the
QEDIT command "[ESC]PL" (the pop-up menu version of
"<set_print_left_margin>") is a print-code command to "set left
margin," the left margin will not change on screen. This is how
the early word processors worked: definitely not a "WYSIWYG"
("what you see is what you get") situation.
Since QEDIT does not have a single-stroke "paragraph reformat"
command, you are saved the bother of first re-"<align>"ing all
lines in each paragraph, then doing a "<wrap_para>" for those
same paragraphs...which is how to print out WYSIWYG fashion. No
matter what you want your left margin to be when printing out, by
using "[ESC]PL," you never have to bother manually realigning
-=20=-
"FORMAT" MACROS FOR QEDIT (cont'd)
your paragraphs' left margins...instead, all you need do is allow
for an adjustment of the on-screen right margin according to how
you set the printer's left margin.
If your text is not already formatted to the macro's right-margin
setting, you must "<wrap_para>" it after executing this macro.
Make sure your printer is set for 10 cpi or proportional, for the
affected portion of text. (If you use a printer macro, as
described in my file QPRINTER.ART, you can imbed the 10 cpi
command in text, by using the 12 cpi macro without any text
between the "begin" and "end" codes...or by deleting the first
half of the "12 cpi" print code. The "end" code really means
"return to 10 cpi"). Your printer may or may not have a PS
("proportional spacing") button...but you can always use the
print-code macro for this.
Here's the formula for establishing a 10 cpi left margin:
L = 10 x i
(Translation: Left margin = 10 times number of inches in
decimal.)
Here's the formula for centering text on printer, when left
margin is "flush left" on screen (assuming you are printing at 10
cpi, and want right margin to equal left margin):
R = 85 - L - L
(Translation: right margin = 85 minus the left margin, minus the
left margin.)
Once you have the left and right margins set for 10 cpi, you can
convert the line width to proportional, by using the formula
described above ("P = p / 10 + p").
Using the simple formulas above, you can quickly reset printer
margins to any width desired. (Example: If you want a (10-cpi)
left/right margin of 1-1/2 inches, change printer left margin
("[ESC]PL") to 15 (10 times 1.5), then use the formula "R = 85 -
L - L" to find out the right margin, which will be 55 (85 - 15 -
15)...then change right margin ("[ESC]OR") to 55. (Using the
proportional formula, setting for right margin equals 61.) To
include the new setting in a macro, use the macro instructions
above, where "65" is to be replaced by the new right margin, and
"10" is to be replaced by the new left margin.
-=21=-
"FORMAT" MACROS FOR QEDIT (cont'd)
------------------------------------------------------------
ALT-9: SET LEFT/RIGHT MARGINS AT 1 INCH (FOR 12 CPI)
<macro_record>
<MACRO>
[ESC]OR
78
[ENTER]
[ESC]PL
12
[ENTER]
<macro_record>
This macro sets the manuscript-standard 1-inch left and right
margin for 12 cpi (elite). This assumes a standard page-width of
8-1/2 inches, hence the macro also sets right margin to 78. If
your text's right margin is other than 78, you must re-format
each paragraph with QEDIT's "<wrap_para>" command.
Text to be affected must be "flush left" on screen, as well as
re-formatted to a 78-character-width right margin. Since the
QEDIT command "[ESC]PL" (the pop-up menu version of
"<set_print_left_margin>") is a print-code command to "set left
margin," the left margin will not change on screen. This is how
the early word processors worked: definitely not a "WYSIWYG"
("what you see is what you get") situation.
Since QEDIT does not have a single-stroke "paragraph reformat"
command, you are saved the bother of first re-"<align>"ing all
lines in each paragraph, then doing a "<wrap_para>" for those
same paragraphs...which is how to print out WYSIWYG fashion. No
matter what you want your left margin to be when printing out, by
using "[ESC]PL," you never have to bother manually realigning
your paragraphs' left margins...instead, all you need do is allow
for an adjustment of the on-screen right margin according to how
you set the printer's left margin.
If your text is not already formatted with a 78-column right
margin, you must "<wrap_para>" it after setting the right margin
to 78 (using QEDIT's "<set_rmargin>" command).
Make sure your printer is set for 12 cpi (pica), for the portion
of text set by this macro. (If you use a printer macro, as
described in my file QPRINTER.ART, you can imbed the 12 cpi
command in text, by using the 12 cpi macro.)
Here's the formula for establishing a 12 cpi left margin:
L = 12 x i
-=22=-
"FORMAT" MACROS FOR QEDIT (cont'd)
(Translation: Left margin = 12 times number of inches in
decimal.)
Here's the formula for centering text on printer, when left
margin is "flush left" on screen (assuming you are printing at 12
cpi, and want right margin to equal left margin):
R = 102 - L - L
(Translation: right margin = 102 minus the left margin, minus
the left margin.)
Using the simple formulas above, you can quickly reset printer
margins to any width desired. (Example: If you want a (12-cpi)
left/right margin of 1-1/2 inches, change printer left margin
("[ESC]PL") to 18 (12 times 1.5), then use the formula "R = 102 -
L - L" to find out the right margin, which will be 66 (102 - 18 -
18)...then change right margin ("[ESC]OR") to 66. To include
the new setting in a macro, use the macro instructions above,
where "78" is to be replaced by the new right margin, and "12" is
to be replaced by the new left margin.
------------------------------------------------------------
[ALT]0 CLEAR LEFT/RIGHT MARGINS FOR STANDARD 10 CPI
8-1/2" WIDE PAGE (left marg. 2, right marg. 78)
<macro_record>
<MACRO>
[ESC]OR
78
[ENTER]
[ESC]PL
2
[ENTER]
<macro_record>
NOTES: This macro clears printer margin and QEDIT right margin
commands you may have previously set..."defaulting" them to the
standard printer page of 8-1/2 inches. Since the paper can
actually hold 85 characters per line (8-1/2 inches at 10 cpi = 85
characters per line), but the printer "carriage returns" at
character 80, this macro centers text print-out by setting
left/right margins at 2 character-widths each.
-=23=-
"FORMAT" MACROS FOR QEDIT (cont'd)
------------------------------------------------------------
ALT-Q: CHECK PAGE LENGTH FOR 52-LINE TEXT BODY (6-LINE
TOP/BOTTOM MARGINS)
<macro_record>
<MACRO>
<beg_line>
{hit [DOWN ARROW] 51 times}
<macro_record>
This "52-line page length check" macro moves the cursor down 51
lines. This helps you check for correct page length, when top
and bottom margins are formatted for 6 lines each.
Before executing this macro, cursor must be anywhere on first
text line (not line 1, if there is also a top margin) of page to
be checked.
------------------------------------------------------------
ALT-W: CHECK PAGE LENGTH FOR 58-LINE TEXT BODY (3-LINE
TOP/BOTTOM MARGINS)
<macro_record>
<MACRO>
<beg_line>
{hit [DOWN ARROW] 57 times}
<macro_record>
This "58-line page length check" macro moves the cursor down 57
lines. This helps you check for correct page length, when top
and bottom margins are formatted for 3 lines each.
Before executing this macro, cursor must be anywhere on first
text line (not line 1, if there is also a top margin) of page to
be checked.
-=24=-
"FORMAT" MACROS FOR QEDIT (cont'd)
------------------------------------------------------------
ALT-E: CHECK FULL PAGE LENGTH (64 LINES)
<macro_record>
<MACRO>
<beg_line>
{hit [DOWN ARROW] 63 times}
<macro_record>
This "64-line full page length check" macro moves the cursor down
64 lines...landing on the "page break," which is that page's last
line. This helps you check for correct full page length, which
includes top & bottom margins, if any (regardless of the line
spaces they occupy). This is equivalent to the 66-line 11-inch
printer paper length...though measuring 64 lines on-screen.
This macro only works if you have not deleted any blank line
spaces that were created by the "page break" macro.
Before executing this macro, cursor must be anywhere on line 1 of
page to be checked (if there is a top margin, place cursor on
line 1 of top margin).
This macro also expedites "manual" block-copy of headers and
footers, by jumping from the new header or footer location, to
one line above the next point of insertion.
-=25=-
"FORMAT" MACROS FOR QEDIT (cont'd)
------------------------------------------------------------
ALT-R: PRINTER CARRIAGE RETURN
-------------------------------
<macro_record>
<MACRO>
<unmark_block>
<literal>
[CTRL]M
<literal>
[CTRL]J
[LEFT ARROW][LEFT ARROW]
<drop_anchor>
[RIGHT ARROW]
<drop_anchor>
<print_block>
<unmark_block>
[LEFT ARROW]
[DELETE][DELETE]
<macro_record>
The "printer carriage return" macro does not affect text...but
sends a carriage return/linefeed to the printer, making the paper
move up 4 lines (2/3 inch). (It should move up only 1 line,
since there is only 1 carriage return/linefeed in the macro...but
this is how my printer responds.)
Before executing this macro, cursor must be on a blank line, or
QEDIT will print out any characters on that line.
-=26=-
"FORMAT" MACROS FOR QEDIT (cont'd)
ALT-T: PRINTER PAGE EJECT
--------------------------
<macro_record>
<MACRO>
<unmark_block>
<literal>
[CTRL]L
[LEFT ARROW]
<drop_anchor><drop_anchor>
<print_block>
<unmark_block>
[DELETE]
<macro_record>
The "printer page eject" macro does not affect text...but sends a
form feed to the printer, ejecting the current printer page to
the beginning of the next.
Before executing this macro, cursor must be on a blank line, or
QEDIT will print out any characters on that line.
------------------------------------------------------------
ALT-Y: INPUT FORM FEED
-----------------------
<macro_record>
<MACRO>
<literal>
[CTRL]L
<macro_record>
NOTES: "Input form feed" macro gives you a plain vanilla "page
break" without any of the fancy top/bottom margin formatting
provided by the "page break" macros.
-=27=-
"FORMAT" MACROS FOR QEDIT (cont'd)
------------------------------------------------------------
ALT-D: CONVERT TO DOUBLE SPACE (from single)
---------------------------------------------
<macro_record>
<MACRO>
<beg_line>
<cursor_down>
[ENTER]
<macro_record>
In order to create this macro, "[INSERT]" must be "on", due to
the [ENTER] key included in the macro.
The "convert to double space" macro will change single-space text
to double-space. Just hold down the macro (in my example: ALT-D)
for the duration of time it takes to double-space desired text.
Cursor must start on a line with text, and [insert] must be "on".
If you don't want to double the number of lines between
paragraphs, use the "double space" macro only on actual portions
of text.
I prefer to store the "double space" macro in a macro file,
rather than in the configuration file. You may prefer otherwise,
and you may also prefer to assign this macro to a single key
(that is, one of the function keys).
If you want to store the "double-space" macro in the
configuration file, here is the command line:
@d macro_begin beg_line cursor_down return
(Of course, if you prefer to use a different macro assignment,
change "@d" to the assignment of your choice.)
-=28=-
"FORMAT" MACROS FOR QEDIT (cont'd)
------------------------------------------------------------
ALT-S: CONVERT TO SINGLE SPACE (from double)
---------------------------------------------
<macro_record>
<MACRO>
<beg_line>
<cursor_down>
<del_line>
<macro_record>
The "convert to single space" macro will change double-space text
back to single space. Just hold down macro (in my example:
ALT-S) for the duration of time it takes to single-space desired
text. Cursor must start on a line with text, and all text to be
affected must be double-spaced.
WARNING: This macro is intended to delete blank lines only.
Should you use this macro on single-space text, or begin the
macro on a blank line of double-space text, you will delete text.
I prefer to store the "single space" macro in a macro file,
rather than in the configuration file. You may prefer otherwise,
and you may also prefer to assign this macro to a single key
(that is, one of the function keys).
If you want to store the "single-space" macro in the
configuration file, here is the command line:
@s macro_begin beg_line cursor_down del_line
(Of course, if you prefer to use a different macro assignment,
change "@s" to the assignment of your choice.)
-=29=-
"FORMAT" MACROS FOR QEDIT (cont'd)
*****************************************************************
PART V: SAVING YOUR MACROS
---------------------------
Now that you've gone through all this, you certainly don't want
to lose these macros so painstakingly created. At this moment,
should your computer's power source cease (through a power
failure, inadvertantly pressing the reset or "off" button,
tripping over the power cord, RAM lockup, or whatever), you will
indeed lose them.
To save your printer macros to disk, use QEDIT's "macro_write"
command...whatever you have configured it to be (I use
"[CTRL]MS"). You can name the macro file anything you want, but
it's advisable to save all macro files with the extension ".MAC"
or ".KEY" for easy identification. May I suggest naming your
format macro file FORMAT.MAC?
*****************************************************************
END OF FILE "QFORMAT.ART" ***************************************
*****************************************************************
-=30=-