This manual describes the DECdocument commands and qualifiers and explains all the DECdocument processing messages.
Revision/Update Information: No Updates for Version 3.2
Operating System and Version:
VAX OpenVMS Version 5.4 or higher
Alpha OpenVMS Version 6.1
or higher
Software Version: DECdocument Version 3.2
The information in this document is subject to change without notice and should not be construed as a commitment by Touch Technologies, Inc. Touch Technologies, Inc. assumes no responsibility for any errors that may appear in this document.
The software described in this document is furnished under a license and may be used or copied only in accordance with the terms of such license.
No responsibility is assumed for the use or reliability of software on equipment that is not supplied by Digital Equipment Corporation or its affiliated companies.
Restricted Rights: Use, duplication, or disclosure by the U.S. Government is subject to restrictions as set forth in subparagraph (c) (1) (ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013.
All Rights Reserved
The following are trademarks of Touch Technologies, Inc., and may be used only to describe products of Touch Technologies, Inc.:
DYNAMIC TAPE ACCELERATOR | INTOUCH 4GL |
DYNAMIC LOAD BALANCER PLUS | INTOUCH INSA |
REMOTE DEVICE FACILITY |
The following are trademarks of Digital Equipment Corporation:
DEC | DIBOL | UNIBUS |
DEC/CMS | EduSystem | VAX |
DEC/MMS | IAS | VAXcluster |
DECnet | MASSBUS | VMS/OpenVMS |
DECsystem--10 | PDP | VT |
DECSYSTEM--20 | PDT | |
DECUS | RSTS | |
DECwriter | RSX | Digital logo |
PostScript is a registered trademark of Adobe Systems, Inc.
Contents | Index |
This manual describes and lists:
This book is intended for writers, editors, and general users who wish to produce manuals, brochures, business letters, overhead slides, or online documentation using DECdocument.
This manual is part of the DECdocument documentation set that includes the following books:
This chapter lists and describes all the DECdocument commands. The chapter is separated into two command summaries:
$ HELP DOCUMENT[/FORMATTER] |
$ HELP DOCUMENT/GENERATE_SYMBOL |
The HELP file also provides a summary of commands for using the Graphics Editor. You can type the following command at the DCL prompt:
$ HELP DOCUMENT/GRAPHICS |
See the Graphics Editor User's Guide for Motif for more information about the Graphics Editor.
Starts the DECdocument formatting system.
DOCUMENT[/FORMATTER] input-file doctype destination
Command Qualifier Default /[NO]BATCH[=qualifier-keyword] /NOBATCH /CONDITION=condition-name None. /[NO]CONTENTS /NOCONTENTS /CONTENTS (Bookreader) /[NO]DEVICE_CONVERTER[=device-keyword] /DEVICE_CONVERTER /[NO]DIAGNOSTICS[=file-spec] /NODIAGNOSTICS /ELEMENT=file-spec None. /INCLUDE=file-spec None. /[NO]INDEX[=index-keyword] /NOINDEX /[NO]KEEP[=filetype-keyword] /NOKEEP /[NO]LIST[=file-spec] /NOLIST /[NO]LOG /LOG /[NO]MAP[=file-spec] /NOMAP /[NO]MASTER_INDEX[=index-keyword] /NOMASTER_INDEX /OUTPUT=file-spec See text. /[NO]PRINT[=qualifier-keyword] /NOPRINT /PROFILE=file-spec None. /[NO]SYMBOLS=file-spec /NOSYMBOLS /[NO]TAG_TRANSLATOR /TAG_TRANSLATOR /[NO]TEXT_FORMATTER /TEXT_FORMATTER
The /FORMATTER command is the default. It is positional; if you use it, it must immediately follow DOCUMENT.
input-file
Specifies the input file to be processed. You cannot use wildcards in the input file specification.The default file type of the input file is SDML. If you specify qualifiers, DECdocument determines the default file type based on the qualifiers and the destination keyword you specify. Table 1-1 lists the qualifiers, the default destinations, and the default file types.
Table 1-1 Default File Types DECdocument
Qualifiers UsedDefault Destination
Keyword UsedDefault Input
File TypeNone. Any SDML /TAG_TRANSLATOR Any SDML ¹
- /NOTAG_TRANSLATOR
- /TEXT_FORMATTER
Any TEX
- /NOTAG_TRANSLATOR
- /NOTEXT_FORMATTER
- /DEVICE_CONVERTER
BOOKREADER
LN03
PS
LINE
TERMINALDVI_LN03
DVI_PS
DVI_LINE
DVI_LINE
DVI_LINE
- /NOTAG_TRANSLATOR
- /NOTEXT_FORMATTER
- /NODEVICE_CONVERTER
LN03
PS
LINE
TERMINALDVI_BOOKREADER
LN03
PS
LINE
TXT
TERM
¹Braces in this table indicate that the enclosed qualifiers occur together on the command line.
doctype
The doctype you indicate on the command line determines both the style of your output and the SDML tags you can use. Note that some tags are valid only in specific doctypes.A number of doctypes have a choice of designs. A design is a specialized form of a doctype. You specify the design keyword immediately after the doctype keyword and separate them with a period (.); for example, SOFTWARE.REFERENCE. You can abbreviate the doctype keyword; for example, you could shorten SOFTWARE.REFERENCE to S.R, as long as each keyword is unique.
See Using Doctypes and Related Tags for more information on doctypes and doctype-specific tags.
destination
Specifies the output device destination for the document. DECdocument supports the following output destinations; your local destinations may be different.You can abbreviate the destination keyword. For example, you could abbreviate LN03 to LN0, or even LN, as long as that destination is unique.
Destination Keyword Formatted For Output File Type BOOKREADER Bookreader output .DECW$BOOK HELP Building a Help file .HLP HTML World Wide Web file .HTML LINE A line printer .LINE LN03 An LN03 laser printer .LN03 PS Any Digital-supported POSTSCRIPT output device, such as the PRINTSERVER 40 or the LN03R SCRIPTPRINTER .PS Sending through the VMS Mail Utility .TXT TERMINAL A standard ANSI terminal, such as the VT-100 .TERM Note that monospaced fonts defined for all the sizes are provided for text fonts in the POSTSCRIPT destination.
You can have additional local destination keywords defined at your site. See your DECdocument system administrator for information on local destination keywords.
DOCUMENT is the command you specify to start DECdocument. It requires three parameters:
- Input File
Specifies the input file for DECdocument. By default, this file is an SDML file containing SDML tags; however, it can also be one of the intermediate files generated by DECdocument.- Doctype
Specifies the document type for which the input file will be processed. This keyword specifies the kind of document you want to create (a letter, a software manual, a journal article, and so on).- Destination
Specifies the final processing destination for the input file. This keyword specifies a format used by a printer, Bookreader, a terminal, or the VMS Mail Utility.You can use qualifiers to the DOCUMENT command to create an index, master index, and table of contents, and to modify the default processing of your input file.
/BATCH[=(qualifier keyword[,qualifier keyword...])]
/NOBATCH
Specifies whether DECdocument should be run interactively or run as a batch job. The default qualifier is /NOBATCH, which specifies that DECdocument be run interactively.The /BATCH qualifier submits a job to SYS$BATCH with a job name that has the same file name as the input-file, prefixed with the string "DOC$." For example, the file ROUTINES.SDML would be submitted as the job DOC$ROUTINES.
You can use any of the DCL SUBMIT command qualifiers with DECdocument by using these qualifiers as keywords to the /BATCH qualifier. For example, if you want DOCUMENT to be run after 9:00 and want to be notified when it completes, you could use the following command:
$ DOCUMENT file-spec /BATCH=(AFTER=09:00,NOTIFY) LETTER LN03When you use the /BATCH qualifier, a file is created in your current default directory that contains information about the batch job. This file has the same file name as the input file, with a default file type of LOG. When your batch job completes, this file is printed to the queue defined by the logical SYS$PRINT, and the file is deleted.
You must define any process logical names you enter on the DOCUMENT command line in your LOGIN.COM file. Otherwise, DECdocument is unable to translate the logical name during batch processing and issues an error message.
/CONDITION=condition name
Specifies a condition keyword for an SDML input file. This qualifier accepts a condition name argument that is a text string used to mark the condition being set. For more information on using the /CONDITION qualifier, see the <SET_CONDITION> tag description and Producing Online and Printed Documentation.The /CONDITION qualifier is valid only if tag translation is being done. If you specify /NOTAG_TRANSLATOR with the /CONDITION qualifier, the /CONDITION qualifier is ignored, and DECdocument issues an informational message stating that you specified conflicting qualifiers.
/CONTENTS
/NOCONTENTS
Specifies whether a table of contents file is produced. The /NOCONTENTS qualifier is the default (except when processing for Bookreader, where /CONTENTS is the default) and specifies that no table of contents is produced. When you specify the /CONTENTS qualifier, DECdocument creates a table of contents file with a file name of input_filename_CONTENTS.If you place the <CONTENTS_FILE> tag in your front matter or profile SDML file, the current table of contents file is included at the corresponding point in the final printable output file (filename.LN03, filename.PS, and so on). If you do not place the <CONTENTS_FILE> tag in your SDML file, the table of contents is not incorporated into your final output file, but is placed in the separate file, input_filename_CONTENTS, and processed separately.
For Bookreader output, a table of contents is generated automatically even if you do not specify the /CONTENTS qualifier on the command line or use the <CONTENTS_FILE> tag in your SDML file.
If you do not specify /CONTENTS on the DOCUMENT command line when you process a file that contains a <CONTENTS_FILE> tag, DECdocument issues warning messages and the most recent version of the table of contents file is included. Note that this may result in an outdated table of contents being included in your document. If there is no previous table of contents file to be included, you receive a warning message and a blank page of output.
The /CONTENTS qualifier is valid only if text formatting is being done. If you specify /NOTEXT_FORMATTER with the /CONTENTS qualifier, DECdocument issues a warning message stating that you specified an illegal combination of command elements.
Note that if you process your document with the /NOTAG_TRANSLATOR and /CONTENTS qualifiers, and the table of contents is included using the <CONTENTS_FILE> tag, the table of contents is incorporated into your document, placed in the file filename_CONTENTS, and processed separately.
Note
The maximum length of a VMS file name is 39 characters. If you want to generate a contents file, your input file name must have no more than 30 characters, because appending _CONTENTS to it adds 9 more characters.For more information on generating a table of contents, see Producing Online and Printed Documentation and the <CONTENTS_FILE> tag description.
/DEVICE_CONVERTER[=(device keyword [,device keyword...])]
/NODEVICE_CONVERTER
Specifies whether the device converter is run. Using /NODEVICE_CONVERTER excludes device conversion.The device converter reads and processes an intermediate file (with the file type .DVI_device) and converts it to a file suitable for output on the destination device. The output from the device converter has the same file name as the input file you specified on the command line, and a file type based on the destination keyword you specified on the command line.
The /DEVICE_CONVERTER qualifier optionally accepts the following keywords for special processing of your file:
[{folio prefix}{separator}] {page number}The following list describes the rules for each of the folio spec syntax elements:
- folio prefix
Specifies the numbers or letters that prefix the folio spec. A folio prefix can be any of the following:
- Any single letter. Specifies an appendix in your document, for example, the letter "B" in the folio spec B--6.
- Any number. Specifies a chapter number, for example, the number "13" in the folio spec 13--1.
- The keywords GLOSSARY or INDEX. Specifies a page in the glossary or index, for example, "INDEX" in the folio spec INDEX--6.
- The keyword PARTn where n is an integer of one or greater. Specifies a section begun using a <PART_PAGE> tag, for example, "PART2" in the folio spec PART2--7.
- An asterisk (*). Specifies the first section of your document.
- separator
Specifies the character that separates the folio prefix from the page number. The separator can be any single character that is not a space, a number, or a letter. In the folio spec 11--3, "--" is the folio prefix. You cannot use a separator if you do not specify a folio prefix.- page number
Specifies the page number portion of a folio spec. In the folio spec 11--3,"3" is the page number. The page number can be a Roman number, an Arabic number, or an asterisk (*). Roman numbers specify a page in the preface of a document, Arabic numbers specify pages outside the preface section, and the asterisk (*) specifies the first page of the document section specified by the folio prefix.The following DOCUMENT command specifies that pages 11--3 through 11--8 of file MYREPORT.DVI_LN03 be processed by the device converter.
$ DOCUMENT/NOTAG_TRANSLATOR/NOTEXT_FORMATTER myreport.DVI_LN03 - _$ REPORT LN03/DEVICE=(STARTING=11-3,ENDING=11-8)/DIAGNOSTICS[=file spec]
/NODIAGNOSTICS
Causes the tag translator to write VAX Language-Sensitive Editor (LSE) diagnostics records to a file. LSE uses these records during its REVIEW phase to locate and describe translation errors. The default qualifier is /NODIAGNOSTICS. See Producing Online and Printed Documentation for more information on LSE.If you omit the file specification, the output file has the same name as the input file, with a file type of DIA.
The /DIAGNOSTICS qualifier is valid only if tag translation is being done. If you specify /NOTAG_TRANSLATOR with the /DIAGNOSTICS qualifier, DECdocument issues a warning message stating that you specified an illegal combination of command elements.
/ELEMENT=file spec
Names the book element that includes the input file specified on the command line. When you use the /ELEMENT qualifier to process a subelement of a book, you must also use the /PROFILE qualifier to specify the profile for the book that contains the book element. If you do not specify the file type of the element file, the default file type is SDML. For more information on processing a subelement of a book, see Producing Online and Printed Documentation.The /ELEMENT qualifier is valid only if tag translation is being done. If you specify /NOTAG_TRANSLATOR with the /ELEMENT qualifier, DECdocument issues a warning message stating that you specified an illegal combination of command elements.
/INCLUDE=file spec
Specifies a DECdocument file that you want to be included before the input file you specified on the command line. If you do not specify the file type of the file to be included, SDML is the default file type. You can use the /INCLUDE qualifier on the command line only once. For more information about using the \INCLUDE qualifier, see Producing Online and Printed Documentation.The /INCLUDE qualifier is valid only if tag translation is being done. If you specify /NOTAG_TRANSLATOR with the /INCLUDE qualifier, DECdocument issues a warning message stating that you specified an illegal combination of command elements.
/INDEX[=(index keyword [,index keyword...])]
/NOINDEX
Specifies whether an index file is produced. The /NOINDEX qualifier is the default and specifies that no index is produced. When you specify the /INDEX qualifier, DECdocument creates an index file with a file name of input_filename_INDEX.When you place the <INDEX_FILE> tag in your profile file, the current index file is included at the corresponding point in the final printable output file (filename.LN03, filename.PS, and so on). If you do not place the <INDEX_FILE> tag in your profile file, the index is not incorporated into your final output file, but is placed in the file input_filename_INDEX, which is printable separately.
Next Contents Index