2017

Table Of Contents
USING QUARKXPRESS SERVER
138 | A Guide to QuarkXPress Server 2017
A
pplying local formatting
T
o apply local formatting to text, use the attributes of the
<
RICHTEXT>
e
lement. For
example:
<PARAGRAPH>
<RICHTEXT
SIZE=”10” COLOR=”Magenta” BOLD=”true” OPACITY=”50%”
>The sun has risen.</RICHTEXT>
</PARAGRAPH>
To apply paragraph formatting, use a <FORMAT> element. For example:
<PARAGRAPH>
<FORMAT SPACEBEFORE=”6” SPACEAFTER=”2” LEADING=”24”
ALIGNMENT=”LEFT” KEEPWITHNEXT=”true”>
<RICHTEXT>The sun has risen.<RICHTEXT>
</FORMAT>
</PARAGRAPH>
The MERGE attribute lets you control whether formatting from one <RICHTEXT> or
<PARAGRAPH> element is carried forward to the next. For example, the following
XML would result in “has risen” being italicized:
<PARAGRAPH PARASTYLE=”BodyText”>
<RICHTEXT SIZE=”10”>The </RICHTEXT>
<RICHTEXT SIZE=”12”ITALIC=”TRUE”>sun</R ICHTEXT>
<RICHTEXT MERGE=”true” SIZE=”10”> has risen.</RICHTEXT>
</PARAGRAPH>
However, this XML would result in “has risen” being plain:
<PARAGRAPH PARASTYLE=”BodyText”>
<RICHTEXT SIZE=”10”>The </RICHTEXT>
<RICHTEXT SIZE=”12” ITALIC=”TRUE”>sun</RICHTEXT>
<RICHTEXT MERGE=”false” SIZE=”10”> has risen.</RICHTEXT>
</PARAGRAPH>
The default value for <MERGE> is “false.”
To combine local formatting with style sheets, simply add attributes to the
<RICHTEXT> elements within a <PARAGRAPH> element. For example:
<PARAGRAPH PARASTYLE=”BodyText”>
<RICHTEXT COLOR=”Red”>The </RICHTEXT>
<RICHTEXT COLOR=”Yellow” CHARSTYLE=”Emphasis”>sun</RICHTEXT>
<RICHTEXT COLOR=”Red”> has risen.</RICHTEXT>
</PARAGRAPH>
Applying paragraph/text shading
To learn more about shading (paragraph, text) functionality, refer to the “Working
with text shading” section of the QuarkXPress 2017 User Guide found here:
http://files.quark.com/download/documentation/QuarkXPress/2017/English/QXP-2017-
User-Guide-EN.pdf
. The newly introduced Modifier XML markup maps/corresponds
to the QuarkXPress 2017 functionality.
There are several ways to apply paragraph/text shading in QuarkXPress Server:
Referencing a pre-defined text shading style in a paragraph/character style sheet.
For example, the “BodyText” paragraph style references the pre-defined
“BodyTextVariations” text shading style:
<PARAGRAPH PARASTYLE=”BodyText”>
...