2017

Table Of Contents
USING QUARKXPRESS SERVER
A Guide to QuarkXPress Server 2017 | 131
SHADOW element that describes the box’s drop shadow. Additional BOX elements are
described in the following sections.
The z-order (stacking order) of boxes in the layout is determined by the order of the
<BOX> elements in the XML, from rearmost to frontmost.
Fitting a box to text or a picture
The <FIT> element type lets you automatically adjust the size of a box to fit the
t
ext or picture in that box.
T
he default behaivior is to not fix a box to its content. To use this feature, you must
supply
<MAX> and <MIN> elements. Each <MAX> or <MIN> element lets you specify a
maximum or minimum size for the box, a maximum or minimum location for the
resized box, or a maximum or minimum scale percentage for the box. Note that you
can use different types of
<MAX> and <MIN> elements in a <FIT> element, but you
can use only one
<MAX> element and one <MIN> element per <FIT> element.
The
FIT@POINT attribute lets you indicate the direction in which the box should
grow or shrink. The available options are TOPLEFT, BOTTOMLEFT, TOPRIGHT, and
BOTTOMRIGHT.
The
FIT@AVOIDBOXESBY attribute lets you specify the distance between the POINT
side or corner of a resized box and any other items around it. A box will expand
only until it is this distance from an adjacent item.
The
FIT@PROPORTIONAL attribute lets you specify whether the resized box should
have the same aspect ratio as the original box.
For example:
<BOX>
<ID UID=”5”/>
<GEOMETRY>
<POSITION>
<TOP>224.001</TOP>
<LEFT>110.003</LEFT>
<BOTTOM>381</BOTTOM>
<RIGHT>253.253</RIGHT>
</POSITION>
<FIT POINT=”BOTTOMLEFT” PROPORTIONAL=”true”>
<MAX> <LOCATION X=”320” Y=”560”/>
</MAX> <MIN> <SIZE HEIGHT=”100”
WIDTH=”10”/> </MIN> </FIT>
</GEOMETRY>
<BOX/>
To use this feature, you must have FitBoxToContent XTensions software loaded.
For pictures, <FIT> is equivalent to PICTURE@FIT=”FITBOXTOPICTURE”. <MAX>
and <MIN> have no effect.
Using inline boxes
The Inline Boxes feature makes it easy to create an anchored box. Rather than
having to describe every aspect of a box and then reference that box from an
<ANCHOREDBOXREF> or <CALLOUTANCHOR> element, you can simply specify the
content for a box inline, like so: