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
October 1, 1979 FORMATTING SPECIAL CHARACTERS
4.6 SPECIAL CHARACTER CODES ___________________________
Special Character _________________ codes allow the user to enter into the file
system delimiters and characters not available on the keyboard.
These codes will be translated to the desired character when the
file is FULLPRINTed, and are of the form:


!<nnn>[*]


<nnn>...A two to three digit number (41-255) representing a
character from one of the tables below [the decimal
value of the machine code for the character].
*.......This optional character makes possible unambiguous
strings of special characters and numbers (it is
ignored by the FULLPRINT program -- see notes below).
SPECIAL CASES _____________
Three commonly used characters can either be represented in the
file using the format above, or through an alternate
representation as follows:
!! literal exclamation point ("!")
literal "not" character ("¬")
!/ literal percent ("%")
NOTES _____
The user may create overstruck special characters by making use
b of the backspace key on the terminal, i.e., the character "/"
was "created" by typing "b"-"backspace key"-"/" (the special
character code for a backspace is !22).
To overprint two characters one of which is a special character
code, the user must specify the special character code first,
followed by the literal backspace, followed by the ordinary
character.
To avoid the ambiguity of having a literal number in the text
following the special character format code, an asterisk ("*")
may be used as a delimiter for any special character, e.g.,
"!175*5", rather than "!1755". The asterisk will not appear in
the text when FULLPRINTed (i.e., "!175*5" prints as "•5").
FRESS Resource Manual Release 9.1 FRESS ReSection 4.6 -- 95
Previous Page Next Page