Please enable JavaScript to view this site.

 

Navigation: Appendices > QuarkXPress > Formatting

Simple Text Formatting in QuarkXPress

Scroll Prev Up Next More

Q++Studio Text Formatting is made-up of a string of comma-delimited attributes settings of attributes from the list below, and apart from being used internally by Q++Studio to communicate with QuarkXPress, can be used as the sFormat variable of the macro function FormatText.

 

 

Keyword

Example usage

Attribute Description

 

B

 

B+ or B-

 

Add/remove Bold

I

I+ or I-

Add/remove Italic

UL

UL+ or UL-

Add/remove Underline

O

O+ or O-

Add/remove Outline

SHD

SHD+ or SHD-

Add/remove Shadow

SUP

SUP+ or SUP-

Add/remove Superscript

SUB

SUB+ or SUB-

Add/remove Subscript

NONB

NONB+ or NONB-

Add/remove Non Breaking

SPR

SPR+ or SPR-

Add/remove Superior

STRK

STRK+ or STRK-

Add/remove Strike Thru

ALLC

ALLC+ or ALLC-

Add/remove All Caps

SCAP

SCAP+ or SCAP-

Add/remove Small Caps

WUL

WUL+ or WUL-

Add/remove Word Underline

f

f Arial

Font Name

s

s 8.5

Font Size

COLOR

COLOR(Pantone 231U)

Text Color Name as specified in QuarkXPress

Color Name must already exist in at least one of the Script's templates

sh

sh 30

Text Shade (decimal 0 to 100)

op

op 30

Text Opacity (decimal 0 to 100)
Quark 8 or above

k

k -5.0

Kerning

t

t 12.5

Tracking

bs

bs 10.5

Baseline Shift

vs

vs 90

Vertical Scale (0 to 100)

Cannot be combined with Horizontal Scale

hs

hs 100

Horizontal Scale (0 to 100)
Cannot be combined with Vertical Scale

 

The Keywords and Attributes below are only available using Quark 2017 and above

BKCOLOR

BKCOLOR(Pantone 231U)

Text Background Color Name
Color Name must already exist in at least one of the Script's templates

BKSH

BKSH 35.5

Text Background Shade (decimal 0 to 100)

BKOP

BKOP 80.5

Text Background Opacity (decimal 0 to 100)

BKTOP

BKTOP 3.55

Text Background Extent Top (decimal -2 to 99)

BKBOTTOM

BKBOTTOM 3.55

Text Background Extent Bottom (decimal -2 to 99)

BKLEFT

BKLEFT 3.55

Text Background Extent Left (decimal -2 to 99)

BKRIGHT

BKRIGHT  3.55

Text Background Extent Right (decimal -2 to 99)

FRCOLOR

FRCOLOR(Pantone 231U)

Text Frame Color Name
Color Name must already exist in at least one of the Script's templates

FRSH

FRSH 35.5

Text Frame Shade (decimal 0 to 100)

FROP

FROP 80.5

Text Frame Opacity (decimal 0 to 100)

FRWID

FRWID 0.25

Text Frame Thickness (decimal 0.1 to 44)

FRTT

FRTT 0

Text Frame Top Present (0 or 1=present)

FRBB

FRBB 0

Text Frame Bottom Present (0 or 1=present)

FRLL

FRLL 1

Text Frame Left Present (0 or 1=present)

FRRR

FRRR 1

Text Frame Right Present (0 or 1=present)

FRTOP

FRTOP 0.0

Text Frame Extent Top (decimal -2 to 99)

FRBOTTOM

FRBOTTOM 0.0

Text Frame Extent Bottom (decimal -2 to 99)

FRLEFT

FRLEFT 1.5

Text Frame Extent Left (decimal -2 to 99)

FRRIGHT

FRRIGHT 1.5

Text Frame Extent Right (decimal -2 to 99)

STRCOLOR

STRCOLOR(Pantone 231U)

Text Stroke Color Name
Color Name must already exist in at least one of the Script's templates

STRSH

STRSH 35.5

Text Stroke Shade (decimal 0 to 100)

STROP

STROP 80.5

Text Stroke Opacity (decimal 0 to 100)

STRWID

STRWID 0.25

Text Stroke Thickness (decimal 0.1 to 44)

STRNOFILL

STRNOFILL

Text Stroke NoFill (0=filled or 1=hollow)

STRJOIN

STRJOIN

Text Stroke Join Style (0, 1 or 2)

STRMITRLIM

STRMITRLIM

Text Stroke Mitre Limit (decimal 1 to 36).

Only applies if Join Style is 0

 

Each specifier is separated from the next by a comma (no space). Any value which can be specified in decimal form must use a period as decimal separator, regardless of the workstation's Windows settings. Sample formatting may look as follows (the additional non-highlighted text is part of the formatted text replacement sent by Q++Studio to QuarkXPress which can be inspected by viewing p-code):

 

{[1d]}={B+,I+,COLOR(Pantone 231U),f Times New Roman|28}

 

Formatting will fail if the text formatting string contains the same attributes repeated with a different values (eg. f Arial and f Garamond) or with inherently conflicting different attributes (eg: hs90,vs75).