II. DATAformTags
Developer handbook DATAformXTension © 1992-2004 www.gassenhuber.de
48
{25} *B Box colour
[0
8 then user defined] or ["ColourName"]
This Tag defines the background colour of text and picture boxes.
Colours can, in general, be transferred as colour number or "ColourName"
QuarkXPress originally contains 9 colours that are shown in alphabetical order in the Quark-
XPress pull down menu:
Newly created colours are also alphabetically sorted into the pull down menu.
Colour numbers
Colours are numerically assigned to the following *B values:
*B0
White
*B1
Black
*B2
Red
*B3
Green
*B4
Blue
*B5
Cyan
*B6
Magenta
*B7
Yellow
*B8
Registration
*B9
New Colour
Newly created colours can be called by *B9, *B10 etc. The use of colour numbers has the
advantage of language independence the numbers of the base colours are also valid in a Ger-
man QuarkXPress version, for example.
The following text with DATAformTags creates a palette of the 9 base QuarkXPress colours:
¶*T3*y0*Y20*p0*b1*-0*B0*$¶*T3*y20*Y40*p0*b1*-0*B1*$¶*
T3*y40*Y60*p0*b1*-0*B2*$¶*T3*y60*Y80*p0*b1*-0*B3*$¶*
T3*y80*Y100*p0*b1*-0*B4*$¶*T3*y100*Y120*p0*b1*-0*B5*$¶*
T3*y120*Y140*p0*b1*-0*B6*$¶*T3*y140*Y160*p0*b1*-0*B7*$¶*
T3*y160*Y180*p0*b1*-0*B8*$¶
Colour names
The box colour can also be specified as a colour name, after the Tag *B. The name must be
given in inverted commas (inch signs).
¶*T3*-0*b1*R1*B"Black"*$¶
creates a black text box. The spelling of the name is not case sensitive.
DATAformXTension transfers colours upon export into a DATAformTag file as colour names.
The box colour is shown only if the box is not transparent the Tag for this is *-0. (See under
{27} *- Transparent, page: 50)