<< NewMasterPage | NewVariable >> |
Top: Documentation Library | Up: N Commands |
NewStyleTag Style Command
NEWSTYLETAG Style Commands
Creates a new character, paragraph, object or color style tag.
newstyletag
name/s The name of the new style tag.
type/k The type of style tag.
Options: CHARACTER | PARAGRAPH | OBJECT | COLOR | FPATTERN | LPATTERN.
DOCUMENT/s The document name. Default=current.
WINDOW/s The window name. Default=current.
CHAPTER/s The document/chapter name.
Default=current.
Notes:
Named colors are actually a type of style tag, thus their inclusion in this command.
To add attributes to a style tag, set the attribute and append the styletag keyword and style name. See each attribute command for more information. Note that while you can theoretically add paragraph attributes to a character style tag through a script, this is not recommended, is not supported through the interface, and could cause problems in future versions of PageStream. Use each type of style tag for its intended purpose.
Style tag names must be unique; you cannot create a character style and a color style with the same name.
Examples:
newstyletag 'Body Text' paragraph newstyletag 'Computer Style' character newstyletag 'Basic Objects' object
NewStyleTag Command Definition url:PGScmd/newstyletag
created:2006-03-30 17:19:29 last updated:2006-03-30 17:19:29
Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.
User Contributed Comments For NewStyleTag | sign in to add a comment |
Tim Doty wrote... | 2006-04-25 04:54:55 |
Unless I don't understand the convention for the command usage, the 'type' parameter is missing from this. My usage notes give: Code: result = NewStyleTag('<name>', '<type>' [, 'NextStyleTag', '<tagname>'] [, ('Document', '<name>' | 'Window', '<name>' | 'Chapter', '<name>')] Granted, that is jusing a Python-style construction rather than the PgS macro construction. Also, I think it is worth pointing out that a document window must be active or a document specified. Styles are not independent, they are contained by a document. In other words, you can't edit the default styles getting attached to new documents via this command. | |
Dan Kilroy wrote... | 2006-05-04 16:44:55 |
Script command submitted from PageStream internal documentation. Needs to be checked and merged with the command documentation above. Gets the {...} . NewStyleTag (tagname [CHARACTER | PARAGRAPH | COLOR | OBJECT | FPATTERN | LPATTERN] [UNLOCKED | LOCKED] [INTERNAL|DRAWING] [PGS40: NOTOC | TOC] [NEXTSTYLETAG tagname] [DOCUMENT document | CHAPTER document:... | WINDOW document-window]) Parameters:
ARexx: Applescript: | |
User Contributed Comments For NewStyleTag | sign in to add a comment |
<< NewMasterPage | NewVariable >> |
Top: Documentation Library | Up: N Commands |