October 1, 1979 FORMATTING FORMAT MACROS
SUGGESTIONS ___________
Keep all macro code definitions at the top of the file in
alphabetical order for easy reference. Define a null macro,
"!.end of macros=." at the end of all the macro definitions,
and SCROLL to that point at the beginning of every editing
session.
Alternatively, create a file of commonly used macros, and IMBED
it at the top of every file in which the macros are to be
accessed. To suppress the "UNDEFINED MACRO" message, issue
"FMSG OFF."
EXAMPLES ________
Macros can be used not only to save keystrokes, but also to
make global formatting changes. For example, if a document is
to contain several hundred formulae, it is recommended that
each be formatted by a macro code, rather than an explicit
format code. In this way, just the macro definition would have
to be changed to reformat each formula.
An even simpler example is using a macro to abbreviate a long
text string. For example, if the macro definition
"!.usa=United States of America." was imbedded in a file, the
user would only have to insert "!.usa." to have "United States
of America" appear in the FULLPRINT.
A macro, "!.skip." could be defined to replace the following
string:
!-s4;i10;j13-
!.skip=!-s4;i10;j13-.
This could further reduce the number of keystrokes required to
issue this code and would make redefinition of the code
everywhere it occurs easy with one change to the macro.
RELATED COMMANDS ________________
FMSG, IMBED
94 -- Section 4. Release 9.1 FRESS Resource Manual
Previous Page Next Page