Using XPress Tags in Q++Studio

Navigation:  GridTemplates : Designing > QuarkXPress Glossary >

Using XPress Tags in Q++Studio

Previous pageReturn to chapter overviewNext page

Xpress Tags, also refered to as Xtags, are special text encoding sequences that describe the contents of any QuarkXPress Document perfectly. Xtags are used in the Text Resulting Actions of a Macro and to describe the combined 23/30 and 24/31 characters used in 5-week minicalendars (these links provide detailed examples of the use of Xtags).

 

Using the File menu and the Save Text menu item, you can save the contents of a QuarkXPress file/page/textbox to an *.xtg file.

 

Using the Get Text menu item you can use that *.xtg file to re-create the exact same elements to another file or within the same file.

 

Although Xtags can apply to any objects in QuarkXPress and to entire pages, in Q++ we mainly use the Xtags from a text selection to replace another text selection. The following example shows the contents of an .xtg file obtained from using the Save Text menu to save selected text to an .xtg file (which is a simple text file).

 

 

<v2.00><e1>

@Normal=<Ps100t0h100z12k0b0cKf"ArialMT">

@Normal=[S"","Normal","Normal"]<*L*h"Standard"*kn0*kt0*ra0*rb0*d0*p(0,0,0,0,0,0,g,"U.S. English")>

@$:<B>bold <BI>italic<B> <c"Red">color <$>plain <c$>no color

 

The first line, <v2.05><e1>, is the Xtags version engine (2.00 corresponds to QuarkXPress 4.0x and 3.00 to QuarkXPress 5). You should always save Xtags text using QuarkXPress 4 to make sure that your XTG files are compatible with any of the other versions of QuarkXPress used by other users (and technical support). If the Xtags text you have was already saved under QuarkXPress 5, you can usually safely manually modify the 3.00 to 2.00 (text attributes that you are likely to have saved in QuarkXPress 5 are the same as those that existed under Quark4).

 

The 2 following lines that start with @Normal= specify how the Normal Style Sheet of the current QuarkXPress file is defined. Usually you should remove these lines so that any reference to the Normal style sheet use the style sheets of the destination file, and not those of the original file from which the text Xtags were extracted.

 

The line starting with @$: contains the really interesting bits. Attributes are added and removed by inserting a code, such as <B>, in the text sequence before individual text elements. To restore the value of an attribute to the default used in the current paragraph, use the $ marker, as in <c$> to revert to the default color.

 

Usually, before using the contents of an .XTG file in Q++, you would remove the lines that start with @Normal= leaving only the version number and actual text to insert (see the links to examples at the beginning of this topic).


Topic 175275 updated on 16-Sep-2017.
Topic URL: http://www.qppstudio.net/webhelp/index.html?xtagsglossary.htm