Template Keywords

Position - offset

The /offset/ keyword controls the position of the coordinates used in specifying a frame.

/offset/,<left offset>,<top offset>,<offset type>

The left offset is the amount a frame is moved across a page in units of tenths of a millimetre.

The top offset is the amount a frame is moved down a page in units of tenths of a millimetre.

The offset type is optional and can be either:

Offset TypeAction
If there is no offset type, the offset is relative to the top left corner of the page, or the most recent global offset.
globalAdds the offset to the following frames
relativeAdds the offset to the previous offset to the following frames

 

Examples

This example shows the first line of text starting from 5 mm in and down from the top left corner of the page. The coordinates for the frame of the second line of text is the same as the first but the /offset/,0,100,relative means it is shifted 10 mm down the page. Similarly the third line is shifted 100mm across the page.

/offset/,50,50,global
/offset/,0,0
/text/,0,0,1200,100,"First line of text."
/offset/,0,100,relative
/text/,0,0,1200,100,"Second line of text is one centimetre down the page."
/offset/,1000,0,relative
/text/,0,0,1200,100,"Third line of text is indented ten centimetres."
  • Using offsets is a very easy way of positioning elements on a page relative to each other without having to specify different frame coordinates for each one.
  • The left and top offset values can be negative to shift elements to the left and up the page.

 

Contents
Search