1502415_SCRIPT_PC_Book_2_Quick_Reference_Jan84 1502415 SCRIPT PC Book 2 Quick Reference Jan84
1502415_SCRIPT_PC_Book_2_Quick_Reference_Jan84 1502415_SCRIPT_PC_Book_2_Quick_Reference_Jan84
User Manual: 1502415_SCRIPT_PC_Book_2_Quick_Reference_Jan84
Open the PDF directly: View PDF
.
Page Count: 24
| Download | |
| Open PDF In Browser | View PDF |
Book 2 Quick Reference
SCRIPT/PC
-------- ------------
--_.-
Personal Computer
Productivity Series
SCRIPT/PC
Book 2 Quick Reference
Program by: Robert N. Seidel
Charles W. Gainey Jr.
First Edition (January, 1984)
The following paragraph does not apply to the United Kingdom or
any country where such provisions are contrary to local law:
International Business Machines Corporation provides this
manual "as is", without warranty of any kind, either expressed or
implied, including, but not limited to, the implied warranties of
merchantability and fitness for a particular purpose. IBM may
make improvements and/or changes in the product(s) and/or the
program(s) described in this manual at any time and without
notice.
This publication contains examples of data markup and text. All
names of individuals, companies, brands, and products used in
these examples are fictitious, and any similarity to the names,
addresses or products used by an actual business is entirely
coincidental.
This product could include technical inaccuracies or typographical
errors. Changes are periodically made to the information herein;
these changes will be incorporated in new editions of this
publication.
Products are not stocked at the address below. Requests for
copies of this product and for technical information about the
system should be made to your authorized IBM Personal
Computer dealer.
A Reader's Comment Form is provided at the back of this
publication. If the form has been removed, address comments to:
IBM Corp; Personal Computer, P.O. Box 1328-C, Boca Raton,
Florida 33432. IBM may use or distribute any of the information
you supply in any way it believes appropriate without incurring
any obligations whatever.
©Copyright IBM Corporation 1978,1983, All Rights Reserved
About This Book
How to Use This Book
This book is the Quick Reference to SCRIPT/PC
Control Words and the Generalized Markup Language
(G ML) Starter Set of tags.
The information in this book is organized as follows:
•
The first part gives you a quick reference to each
SCRIPT fPC control word and its options.
•
The second part gives you an equivalent explanation
of every tag supported by SCRIPT/PC's Starter Set
of GML tags.
iii
iv
Contents
Control Words ......................... 1
Generalized Markup Language (GML) Tags .. 7
Printer Font Definitions .................. 11
Heading Level Summary .................. 13
SCRIPT fPC Provided Symbols ............ 14
v
vi
Control Words
The following list contains the SCRIPT/PC control
words in alphabetical order, including all options and a
short description. Control words used only in macro
definitions are identified by the term macro:
Word
Options
Description
...
la bel [line]
Set label for .GO *macro
.AN
comparandl test
comparand2 [target]
Conditional AND
.AP
[ d:]filename[.ext]
Append (add) next input
file
.BF
[font-id]
Begin new font
.BM
v
Specify bottom margin
.BR
Force break in formatting
.BX
dl ... dn
OFF
CHAR {GRAPHICS}
{MATRIX}
CAN
Draw a box that can
include text
.CD
2 pI p2
Define two-column format
.CE
{ON}
{OFF}
{line}
Center text on line
.CL
fh}
Specify column width for
two-column format
.CM
[comments]
Comment
*
[comments]
Comment
1
Word
Options
Conditional page ej ect
.CP
[v]
.CS
n
.CT
[text]
.DC
{PS
{PS
{CW
{RB
{GML
.DD
file-id
Name data file-id
.DF
font-id [US]
[UP]
[UC]
(FONT definition[s]]
Define new font
.DM
name [OFF]
Begin macro definition or
erase a macro
{ON}
{OFF}
{INCLUDE}
{IGNORE}
.DS
Include or ignore text
Continue text without
break
c}
OFF}
c}
c}
c}
Change special characters
to other characters, or
define control characters
Double space mode
.EF
[CLOSE]
Force End-of-file
.EL
[target]
Conditional ELSE
.FO
{ON}
{OFF}
{LEFT}
Specify formatting options
.FN
{ON}
{OFF}
Mark text for footnote
.GO
label
Goto label
*macro
GML Services
*macro
.GS
2
Description
Provided via the HEADDEF.SCT macro library:
Word
Options
Description
.HO
Heading 0 (Table of
Contents)
.HI
Heading I (Chapter)
.H2
Heading 2
.H3
Heading 3
.H4
Heading 4
.HS
Heading S (Imbedded in
text)
.H6
Heading 6 (1m bedded in
text)
Word
Options
Description
.IF
comparand I test
comparand2 [target]
Conditional IF
.IL
[h]
Indent only one line
.1M
[ d:]filename[.ext]
Imbed new input file
.IN
[h] [NOBREAK]
Indent
.IR
[h] [NOBREAK]
Indent from right margin
.IX
.LL
Start index here
[h]
Specify line length
.MC
Enter multicolumn mode
(two-column)
.ME
Macro exit
*macro
.OF
[h]
Offset after one line
.OR
comparandl test
comparand2 [target]
Conditional OR
.PA
En]
Skip to top of next page
.PF
Select previously used font
3
Word
Description
.PL
{REF
{START
{END}
{text}
v
.PM
[h]
Specify page margins
.PN
{n}
{ON}
{OFF}
Specify page number
.PT
{line }
{ line}
Put to table of contents
file
.PI
/ text[j ref /]}
/text}
Put text into index
Specify page length
.QQ
Quick quit
.QU
Quit
.RC
{n
.RH
{ON}
{OFF}
{CANCEL}
{SUP}
{RES}
Running header definition
.RI
{ON}
{OFF}
{line}
Right adjust lines
.RT
{TOP} n / part! / part2/
part3/
{BOTTOM}
Specify running title
.RV
symname
=[']
Read variable from
keyboard
.SC
4
Options
c}
{ON}
{OFF}
{ADJUST h}
Revision code at left
margIn
Enter single column mode
Options
Word
Description
.SE
symname {= 'string'}
{= &}
{= value}
{= SUBSTR
string start
length}
{= INDEX
stringl
string2}
{OFF}
Set symbols
.SK
[v]
Skip lines
.SP
[v]
Space lines
Single space mode
.SS
.SU
{ON}
{OFF}
Substitute symbol
.SX
{F}
{C}
Split text
.TB
hh ...
Set tab stops
.TC
[n] [name]
[control]
Place table of contents
/ 1part / fill / rpart /
[I]
Terminal entry mode
.TE
.TH
[target]
Conditional THEN
.TI
[s t] ...
Translate input
.TM
[v]
Specify top margin space
.TR
[s t] ...
Output character translate
.TY
text [=]
Type text on display
screen
5
Word
6
Options
Description
.UC
{ON} .
{OFF}
{line}
Underscore and capitalize
.UD
{ON}
{OFF}
Underscore definition
.UN
[h]
U ndent (indent left)
.UP
{ON}
{OFF}
{line}
Uppercase (capitalize)
.US
{ON}
{OFF}
{line}
Underscore (under line)
.zz
{ON}
{OFF}
Diagnostic (Debug) *macro
Generalized Markup Language (GML)
Tags
The following Starter Set of generalized Markup
language (GML) tags are arranged in alphabetical
order. If two or more lines of options are given, the
order of entry must be left to right, top to bottom:
Tag
Options (Attributes)
Description
:ABSTRACT
Insert ABSTRACT
:ADDRESS
Start ADDRESS
:ALINE
[.line of address]
:APPENDIX
:AUTHOR
Insert Address
LINE
Start APPENDIX
of document
[.author name text]
Insert A UTH 0 R
name(s)
:BACKM
Start BACK Matter
of document
:BODY
Start BODY of
document
:CIT
[.cited text]
Start CITation
:DATE
[.optional date text]
Insert DATE
:DD
[.description text]
Start Definition
Description
:DL
[COMPACT]
[TSIZE=ss]
[TERMHI=h] h=tQ,2}
Start Definition
List
7
Tag
Options (Attributes)
:DOCNUM
[.alphanumeric text]
:DT
[. term text]
Description
Insert DOCument
NUMber
Start Definition
Term
:EADDRESS
End ADDRESS
[:ADDRESS]
:ECIT
End CITation
[:CIT]
:EDL
End Definition List
[:DL]
:EFN
End Footnote [:FN]
:EGDOC
End Document
[:GDOC]
:EHPI
[. text]
End underscore
[:HPl]
:EHP2
[.text]
End bold [:HP2]
:EHP3
[.text]
End bold and
underscore [:HP3]
:ELQ
End Long Quote
[:LQ]
:EOL
End Ordered List
[:OL]
:EQ
End Quote [:Q]
:ESL
End Simple List
[:SL]
:ETITLEP
End TITLE Page
[:TITLEP]
:EUL
End Unordered List
[:UL]
:EXMP
End eXaMPle
[:XMP]
8
Tag
Options (Attributes)
Description
:FN
ID=reference id
[.footnote text]
Start FootNote
:FNREF
[REFID=reference-id]
FootNote
REFerence
:FIG
[PLACE={INLINE}]
{TOP}
[ID=id]
[FRAME= {RULE}]
{BOX}
{NONE}
[DEPTH=dd]
[WIDTH= {PAGE}]
{ww}
Start FI Gure
:FIGCAP
[.caption text]
FIGure CAPtion
:FIGDESC
[. description text]
FIGure
DESCription
List of illustrations
:FIGLIST
:FIGREF
[REFID=reference-id]
[PAGE= {YES}]
{NO}
:FRONTM
FIGure REFerence
Start FRONT
Matter
:GDOC
[SEC='security class']
[. bottom title]
Start General
Document
:HPI
[. text]
S tart underscore
:HP2
[. text]
Start bold
:HP3
[. text]
Start bold and
underscore
:HDREF
[REFID=id]
[PAGE={YES}]
{NO}
Heading Reference
9
Tag
Options (Attributes)
Description
:HO
[ID=id] [STITLE=
short title]
[. title text]
Heading 0
:Hl
[ID=id] [STITLE=
short title]
[. title text]
Heading I
:H2
[ID=id][. title text]
Heading 2
:H3
[ID=id][. title text]
Heading 3
:H4
[ID=id][. title text]
Heading 4
:H5
[ID=id][. title text]
Heading 5
:H6
[ID=id][. title text]
Heading 6
:INDEX
:11
Insert Index
[ID=id][PG={ST AR Tn
{END}
.text of entry
Create Index entry
:IREF
[REFID=refid]
[PG={ST AR TJ]
{END}
[SEEID=seeid]
Refer to Index
entry
:LI
[.list text]
Line Item for list
:LP
[.list part text]
Line Part
:LQ
[.long text]
Start Long Quote
:NOTE
[.note text]
Start NOTE - input
line
:OL
[COMPACT]
Start Ordered List
:P
[.start of paragraph
text]
Start Paragraph
:PC
[. paragraph text
continuation]
Paragraph
Continuation
:PREFACE
10
Insert PREFACE
Tag
Options (Attributes)
Description
:Q
[.quoted text]
Start of Quoted
text
:SL
[COMPACT]
Start Simple List
:TITLE
[.actual title text]
TITLE line of text
:TITLEP
Start TITLE Page
:TOC
Insert Table Of
Contents
:UL
[COMPACT]
Start Unordered
List
:XMP
[DEPTH=dd]
Start eXaMPle copy text
Printer Font Definitions
The printer codes supported are for the IBM PC
Graphics and IBM PC Matrix printers. The printer is
set up for a particular print font and other options by
use of the Define font control word (.DF). Print fonts
and other supported options are shown on the following
page.
11
Highlight Print
Fonts
Font
Description
CM
Compressed
Characters
DW Double Width
Characters
SB
Subscript Character
Set
SP
Superscript Character
Set
Opt. Description
US
Underscore
UP
Uppercase
UC
Underscore and
Capitalize
Emphasized Print
Print Lines Per Inch
Opt.
Opt.
Description
Description
DS
Double Strike - Bold
L6
*6 Lines Per Inch
EM
Emphasized - Very
Bold
L8
8 Lines Per Inch
Printer Character Sets
Printer Direction
Opt.
Description
Opt.
Cl
*Graphics Printer-Char
Set 1
BD
*Bidirectional
LR
C2
Graphics Printer-Char
Set 2
Left to Right
U ndirectional
Description
Notes:
1. *
=SCRIPT / PC default options.
2. If Double Width Characters are used with .FO ON, the
right hand margin may not be totally even Gustified).
3. Options Cl, C2, LR, SB and SP are not available on the
IBM Matrix Printer.
12
Heading Level Summary
The following chart is a summary of the G ML Heading
levels. The heading levels are listed across the top and
the summary directly below each heading level:
Heading Level
HO HI H2 H3 H4 H5 H6
New Page
yes yes
Space Before Heading
0
0
3
3
3
1
1
S pace After Heading
5
3
2
2
2
0
0
yes yes
Heading Inline
Capitalized
yes yes yes
Underscored
yes yes yes yes
Boldface
yes yes yes yes yes yes
Table of Contents entry
yes yes yes yes yes
ID Attribute recognized
yes yes yes yes yes yes yes
STITLE Attribute
recognized
yes yes
yes
13
SCRIPT fPC Provided Symbols
The following symbols are provided by SCRIPT/PC.
&
Page Number
&*
Passes information to a tag (macro)
&*0 - &*18 = Passes information (parameters) to
a tag (macro)
&*0 = Count of non-null tokens in &*
&*18 = Tag (macro) text which follows the
period (.)
&$PASS
= Number of passes
&FIGLST
= Count of pages in list of illustrations
&SYSDATE = Date
&SYSTIME = Time of day
&SYSDAYOFM = Day of Month (1 ... 31)
&SYSHOUR = Hour of the Day (1 ... 24)
&SYSMINUTE = Minute in the Hour (00 ... 59)
&SYSSECOND = Second in the Minute (00 ... 59)
&SYSYEAR = Year (19xx)
&TOC
= Count of pages in table-of-contents
&rbl.
= Required Blank
&gml.
= Colon (:)
&.
= Ampersand (&)
&semi.
= Semicolon (;)
14
------- ----------------_.-
The Personal Computer
Software Library
Reader's Comment Form
SCRIPT/PC
Book 2 Quick Reference
1502415
Your comments assist us in improving the usefulness of
our publication; they are an important part of the input
used for revisions.
IBM may use and distribute any of the information you
supply in any way it believes appropriate without
incurring any obligation whatever. You may, of course,
continue to use the information you supply.
Please do not use this form for technical questions
regarding the IBM Personal Computer or programs for
the IBM Personal Computer, or for requests for
additional publications; this only delays the response.
Instead, direct your inquiries or request to your
authorized IBM Personal Computer dealer.
Comments:
111111
BUSINESS REPLY MAIL
FIRST CLASS
PERMIT NO. 321
BOCA RATON, FLORIDA 33432
POSTAGE WILL BE PAID BY ADDRESSEE
IBM PERSONAL COMPUTER
SALES & SERVICE
P.O. BOX 1328-C
BOCA RATON, FLORIDA 33432
8J8lj PIO::l
8dBl.
81dBlS lOU op 8SB81d
NO POSTAGE
NECESSARY
IF MAILED
IN THE
UNITED STATES
Software Included:
--- ---------- ---, ------
-- -
System requirements:
Q
lII.J
IBM 80-column
display
r-\
128KB of memory
~ One diskette drive
(
: ,) IBM Printer
© IBM Corp. 1978, 1983
All rights reserved
International Business
Machines Corporation
P.O. Box 1328-8
Boca Raton , Florida 33432
1502415
Printed in the United States of America
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.3 Linearized : No XMP Toolkit : Adobe XMP Core 4.2.1-c043 52.372728, 2009/01/18-15:56:37 Create Date : 2014:01:27 15:22:21-08:00 Modify Date : 2014:01:27 14:36:26-08:00 Metadata Date : 2014:01:27 14:36:26-08:00 Producer : Adobe Acrobat 9.55 Paper Capture Plug-in Format : application/pdf Document ID : uuid:f87ee3ed-297b-e945-8726-20345743e13c Instance ID : uuid:f9388b91-fe71-6e46-9cbe-9a74a2167e33 Page Layout : SinglePage Page Mode : UseOutlines Page Count : 24EXIF Metadata provided by EXIF.tools