home *** CD-ROM | disk | FTP | other *** search
- .en Enable formatting. Once enabled, it cannot be disabled. If
- .. this was not the first command in this file then EVERYTHING
- .. would print.
- ..
- .. TUTOR_2.TXT - IMAGEPRINT DEMONSTRATION FILE
- ..
- .. Fonts 1 (CUBIC), 18 (Helv-20B) and 24 (Cent-34) are used.
- ..
- .. *************
- ..
- .. Note - If you want to print a "literal" copy of your file,
- .. don't use ImagePrint's formatting capabilities.
- ..
- .. *************
- ..
- .. The next command is the IMMEDIATE ACTION command. The comm-
- .. and following the ".!!" goes into effect immediately. We
- .. use it here to select 12 characters per inch (cpi). If we
- .. selected 12 cpi by placing the backslash command in front
- .. the first text line, the headers on the first page would
- .. print at 10 cpi, the default density, because the headers
- .. are printed before the main text section is analyzed.
- .!! \|
- ..
- ..
- .. This file demonstrates many the ImagePrint formatting and
- .. backslash commands. Type "IP TUTOR_2.TXT" to see the
- .. printed result. Some of the dot formatting commands shown
- .. here don't contribute to the format of the printed output,
- .. e.g. setting a parameter to the default value.
- ..
- .. Backslash commands are used without comment because they
- .. are easy to understand and the best way to learn them is to
- .. see them in use. "\-" is a soft hyphen.
- ..
- .. Any line starting with a "." is interpreted as a command.
- .. The "." doesn't have to be in the 1st column, but it does
- .. have to be the first printable character on a line. The two
- .. following lines are equivalent:
- .PL 66
- .PL 66
- ..
- ..
- .. If the next printable character is another ".", the line is
- .. ignored. This allows comments to appear in the source text,
- .. but not be printed. This allows private notes, etc.
- ..
- .. The two letter command can be separated from the dot in
- .. column 1 by zero or more spaces. The variable parameter (if
- .. one is needed) follows the two letter command, separated
- .. from it by zero or more spaces. Each letter of the command
- .. can be in upper or lower case. A comment can follow the
- .. variable parameter, separated from it by at least one space.
- .. The following page length formatting commands are all equiv-
- .. alent:
- ..
- .pl 60 comment - set page length to 60 lines
- . pl60
- . PL 60 set page length to 60 lines
- .pl60
- .pL60
- ..
- ..
- .ww Word Wrap - enable left and right justification within the
- .. left and right margins. This is the default state.
- ..
- ..
- .pl 66 Page Length is 66. This is the default value.
- ..
- ..
- .pn 1 Page Number = 1. This is the default starting page number.
- .. "&&&" in a header or footer is replaced by the current
- .. page number.
- ..
- ..
- .oe 5 Odd Extra - Shift everything on odd pages 5 extra columns
- .. to the right. This is just an example.
- .ee -5 Even Extra - Shift everything on even pages 5 columns to
- .. the left. This is just an example.
- ..
- .. Set extra spaces back to defaults
- .oe No extra spaces on odd pages.
- .ee No extra spaces on even pages.
- ..
- ..
- .li 8 8 Lines per Inch (lpi). The default is 6 lpi.
- .li 6 Change back to 6 lpi. Do not change the inter-line gap
- .. after you have started printing a document because the paper
- .. alignment will not be correct.
- ..
- ..
- .sw 65 Set Width of headers and footers to 65 columns. The left
- .. and right justification and centering of the headers and
- .. footers will occur within this range.
- ..
- ..
- .. Odd page Headers
- .oh
- .oh...\bImagePrint formatting\b \iPage &&\i
- .oh___________________________________________________________________________
- .oh
- .oh
- .oh
- ..
- .. Even page Headers
- .eh
- .eh\iPage &&\i \bImagePrint formatting\b...
- .eh___________________________________________________________________________
- .eh
- .eh
- .eh
- ..
- .. Odd page Footers
- .of
- .of
- .of___________________________________________________________________________
- .of...format demonstration
- .of
- .of
- .of
- .of
- ..
- .. Even page Footers
- .ef
- .ef
- .ef___________________________________________________________________________
- .efformat demonstration...
- .ef
- .ef
- .ef
- .ef
- ..
- ..
- .. You should set the margins you want before any text
- .. centering commands.
- ..
- .lm 5 Left Margin - Set the left margin to the 5th column.
- ..
- .rm 60 Right Margin - Set the right margin to the 60th column.
- ..
- ..
- .. The cancel backslash command "\C" is used to cancel the
- .. bold (\B), underline (\U) and double width (\W) commands.
- ..
- .ce Center the next line. Any font can be centered this way.
- \24\p\b\wImagePrint\c
-
-
- .ce Center the next line
- \18\p\bDot Formatting & Backslash Commands\c\|\01
- ..
- .lf 2 Line Feed - Space down 2 lines. You could have done the same
- .. thing by putting 2 blank lines here.
- ..
- .ti 3 Temporary Indent of 3 from left margin for first line in
- .. paragraph.
- ..
- This is the demon\-str\-ation file for Image\-Print \udot\u
- \ufor\-mat\-ting\u and
- ..
- .. Here are comment lines right in the middle of the text
- ..
- \uback\-slash\u com\-mands. This para\-graph is left and right jus\-ti\-fied
- be\-cause Word Wrap mode is en\-abled. It could be dis\-abled with the ".NW"
- no word wrap com\-mand. The backslash-plus-hyphens are soft hyphens, which are
- used to break a word at the end of a line if needed.
- Each
- word
- of
- this
- sen\-tence
- was
- typed
- on
- a
- se\-par\-ate
- line.
- ..
- ..
- .fp Force Printing of buffer. You could also force printing
- .. by putting a blank line here.
- ..
- .pp New paragraph.
- ..
- .lm +15 Add 15 to the current Left Margin.
- ..
- Let's demon\-strate some of the back\-slash com\-mands:
- .lf
- \wThe\c \bquick\c \w\hbrown\c \ifox\c jumped \^over\c \b\ithe\c
- \wlazy\c \udog\c. \i\uThe\c \uquick\c \bbrown\c \h\ifox\c
- \i\bjumped\c \h\^over\c \i\b\wthe\c \vlazy\c \i\u\w\bdog\c.
- No\-tice that the space the back\-slash com\-mands take up in the file is
- ac\-count\-ed for when left and right jus\-ti\-fy\-ing text. The ex\-tra width
- gen\-er\-at\-ed by the doub\-le width com\-mand is al\-so ac\-count\-ed for.
- ..
- .lf
- .lm 5
- .rm -15
- The left mar\-gin has just been set back to the 5th co\-lumn and
- the right mar\-gin has moved left 15 co\-lumns. The line spac\-ing
- .ls 2
- dis\-tance has just been changed to cause the text to be printed
- on every other line. If for\-mat\-ting has been en\-abled, Image\-Print feeds
- the paper to the top of the next page when the end-of-file is reached.
- ..
- .fp
- .ls Single spaced lines again
- .rm +15
- ..
- The next page has the right margin set to column 25
- and the left margin set to 1. This provides a thin
- column of text suitable for cutting & pasting into a
- multi-column newsletter.
- ..
- .pa Unconditionally move to the next page. If the paper has
- .. moved to the top of a new page and no text has printed yet,
- .. ".pa" will have no effect.
- ..
- .rm 25
- .lm 1
- Text here is print\-ed in a sin\-gle nar\-row strip.
- This is the end of the tu\-tor\-ial file. Be sure to
- look at TUTOR_2.TXT with your word pro\-ces\-sor
- be\-cause there are a lot of non-print\-ing com\-ments
- and ex\-plan\-ations con\-tained in it...
- ..
- .. This is the end of the demonstration. It was unnecessary
- .. to force a page feed (".PA"); the paper automatically
- .. feeds to the top of the next page when ImagePrint finishes
- .. if formatting had been enabled.