Please enable JavaScript to view this site.

 

Navigation: Appendices > QuarkXPress > Formatting > Native

Native Paragraph Formatting in QuarkXPress (QuarkXPress 2016 and above)

Scroll Prev Up Next More

The features below require QuarkXPress 2016 and above.

 

Q++Studio Paragraph 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 (yes, FormatText, which accepts text, paragraph and box attributes).

 

Formats

 

Keyword

Example use

Attribute Description

 

PLEFTINDENT

 

PLEFTINDENT 0.5

 

Paragraph left indent (decimal mm)

PFIRSTINDENT

PFIRSTINDENT 0.5

Indent of first line of paragraph (decimal mm)

PRIGHTINDENT

PRIGHTINDENT 0.5

Paragraph right indent (decimal mm)

PLEADING

PLEADING 9.25

Leading (decimal 2 to 100)

PSPCBEFORE

PSPCBEFORE 0.5

Space before (decimal mm)

PSPCAFTER

PSPCAFTER 0.5

Space after (decimal mm)

PJUST

PJUST 1

Paragraph horizontal text alignment
(integer value: 0=left, 1=center, 2=right, 3=justified, 4=force justified)

PCHARALIGN

PCHARALIGN 2

East Asian character alignment
(integer value: 0=top, 1=center, 2=baseline, 3=bottom)

PKEEPWITHNEXT

PKEEPWITHNEXT 0

Set/remove keep with next attribute (boolean 0=remove, 1=add)

PDROPCAPCHARS

PDROPCAPCHARS 0

Number of characters to be dropped (0 means no dropped cap)

PDROPCAPLINES

PDROPCAPLINES 0

Number of lines for dropped caps (0 means no dropped cap)

PKEEPTOGETHER

PKEEPTOGETHER 0

Keep lines of paragraph together (boolean 0=false, 1=true)

PKEEPALL

PKEEPALL 0

Keep all the lines of paragraph together (boolean 0=false, 1=true, has no effect if PKEEPALL is false)

PKEEPTGTHRSTART

PKEEPTGTHRSTART 1

Keep the lines of paragraph together starting at this line number (integer starting at 1)

PKEEPTGTHREND

PKEEPTGTHREND 2

Keep the lines of paragraph together ending at this line number (integer starting at 2)

PGRIDLOCK

PGRIDLOCK 0

Lock to grid (boolean 0=false, 1=true)

PGRIDTYPE

PGRIDTYPE 3

Grid type (has no effect if PGRIDLOCK is false)

(0=topline, 1=bottomline, 2=centerline, 3=baseline)

PGRIDLEVEL

PGRIDLEVEL 0

Grid level (has no effect if PGRIDLOCK is false)

(0=page grid, 1=textbox grid)

 

Tabulations

 

Tabulations

 

Keyword

TABS

Sample usage

TABS(3,618594,0,0,0,0,1237254,1,0,0,0,1855848,2,0,0,0)

Description

Natively creates a set of tabulations for the paragraph of the current text.

 

Rules Above

 

Keyword

Example use

Attribute Description

 

PRULEABOVE

 

PRULEABOVE 0

 

Set/remove rule above attribute (boolean 0=remove, 1=add)

PRABOVETEXTLEN

PRABOVETEXTLEN 0

Rule above text length
(integer value: 0=indents, 1=text, 2=column)

PRABOVELEFTINDENT

PRABOVELEFTINDENT 1.25

Rule above left indent (decimal mm)

PRABOVERIGHTINDENT

PRABOVERIGHTINDENT 1.25

Rule above right indent (decimal mm)

PRABOVECOLOR

PRABOVECOLOR(Pantone 231U)

Rule above color name as specified in QuarkXPress

PRABOVEREL

PRABOVEREL 1

Offset type (0=percentage, 1=mm)

PRABOVEPOS

PRABOVEPOS -1.25

Offset value (decimal in mm or percent, depending on the value of PRABOVEREL)

PRABOVESTYLE

PRABOVESTYLE 0

Dashes and stripes style ID (refer to the list of dashes and stripes from the scanned template).

PRABOVEWIDTH

PRABOVEWIDTH 7.55

Width (thickness) of the rule (decimal in points)

PRABOVESHADE

PRABOVESHADE 35.0

Text shade (decimal percentage from 0 to 100)

PRABOVEOPACITY

PRABOVEOPACITY 100.0

Text opacity (decimal percentage from 0 to 100)

 

Rules Below

 

Keyword

Example use

Attribute Description

 

PRULEBELOW

 

PRULEBELOW 0

 

Set/remove rule below attribute (boolean 0=remove, 1=add)

PRBELOWTEXTLEN

PRBELOWTEXTLEN 0

Rule below text length
(integer value: 0=indents, 1=text, 2=column)

PRBELOWLEFTINDENT

PRBELOWLEFTINDENT 1.25

Rule below left indent (decimal mm)

PRBELOWRIGHTINDENT

PRBELOWRIGHTINDENT 1.25

Rule below right indent (decimal mm)

PRBELOWCOLOR

PRBELOWCOLOR(Pantone 231U)

Rule below color name as specified in QuarkXPress

PRBELOWREL

PRBELOWREL 1

Offset type (0=percentage, 1=mm)

PRBELOWPOS

PRBELOWPOS -1.25

Offset value (decimal in mm or percent, depending on the value of PRBELOWREL)

PRBELOWSTYLE

PRBELOWSTYLE 0

Dashes and stripes style ID (refer to the list of dashes and stripes from the scanned template).

PRBELOWWIDTH

PRBELOWWIDTH 7.55

Width (thickness) of the rule (decimal in points)

PRBELOWSHADE

PRBELOWSHADE 35.0

Text shade (decimal percentage from 0 to 100)

PRBELOWOPACITY

PRBELOWOPACITY 100.0

Text opacity (decimal percentage from 0 to 100)

 

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]}={PLEFTINDENT 1.1,PRIGHTINDENT 2.2,PRULEBELOW 1|28}

 

Formatting will fail if the text formatting string contains the same attributes repeated with a different values or with inherently conflicting attributes.

 

See also: native text formatting, native paragraph formatting, xpress tags formatting and the macro function FormatText.