![]() |
|
macro |
Longname: | macro | ![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Released: | 6.77a | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Created: | 6.77a | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See also: | perl Perl Scripting in Arbortext APP |
Summary |
Used for calling Arbortext APP macros from within a Perl script. Any Arbortext APP macro can be called from a Perl script by using this command. |
Example extract |
To call the refresh (trf) macro in a Perl script use the following syntax:
The macro function takes a single string which is passed to the Arbortext APP processor for execution. Therefore, when calling a Arbortext APP macro that refers to information in double quote delimiters, (like tf "times" for example) it is convenient to use the macro function with Perl's 'q' or 'qq' operators. Use 'qq' to interpolate embedded variables or 'q' otherwise. |
Syntax
|
perl script:s
|
3B2 macro: |
Specifies the 3B2 macro to call. |
Example |
The macro function takes a single string which is passed to the Arbortext APP processor for execution. Therefore, when calling a Arbortext APP macro that refers to information in double quote delimiters, (like tf "times" for example) it is convenient to use the macro function with Perl's 'q' or 'qq' operators. Use 'qq' to interpolate embedded variables or 'q' otherwise. The example below calls the Arbortext APP insert (@) macro and inserts the text 'Insert this Text' at the current cursor position.
This example uses the Arbortext APP ttagmk command to create a new text stream called 'new'.
If the function involves using a variable, use the 'qq' function to interpolate embedded variables. For instance this syntax makes a tag with the value of the variable called tagname:
|
Document created on 08-Feb-2003 (revision 1)