7.6

Table Of Contents
Example
margin(0,0)
rectstroke(0,0,3,3)
moveto(0,0.5)
showleftright('This fits well inside the box',3)
crlf(0.1599)
showleftright('But this one is a little more tight',3)
Show / ShowCenter / ShowRight (procedure)
These three commands are used to display simple text on the document. They are identical in all aspects, except in the way
they behave relative to the current margin settings: show uses the margin as a starting point to extend the string to the right;
showright uses the margin as the ending point of the string; and showcenter extends the string equally on both sides of
the margin. These commands are equivalent to print, echo or write commands in other scripting languages.
Syntax
show( text )
showcenter( text )
showright( text )
Argument
text
String value to be displayed.
Code Sample Example
This example illustrates the difference between all three variations of using the SHOW command.
Example
margin(3,1)
showright('This line is to the left of the margin')
crlf()
showcenter('This line is centered on the margin')
crlf()
show('This line is to the right of the margin')
Styles
©2010 Objectif Lune Inc - 585 -