12.07.2015 Views

GLE User Manual - Fedora Project Packages GIT repositories

GLE User Manual - Fedora Project Packages GIT repositories

GLE User Manual - Fedora Project Packages GIT repositories

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

16 CHAPTER 3. PRIMITIVESpapersize a4papersize 10 10papersize a4paperorientation landscapesize 10 10papersize a4papermargins 2 2 2 2papersize a4paperorientation landscapemargins 2 2 2 210 cm29.7 cm10 cm29.7 cm29.7 cm29.7 cm10 cm10 cm21 cm21 cm21 cm21 cmFigure 3.2: Result of different combinations of the commands “papersize”, “margins”, “size”, and “orientation”for fullpage graphics (gle -fullpage figure.gle).<strong>GLE</strong>test.glejoin b1.rc -> b2.tc curve 0 90 1.2 1join b1.rc -> b2.habcjoin a.c -> b.cbajoin a.c -> b.boxFigure 3.3: Different ways of joining objects.which should be one of the predefined paper size names or two numbers, which give the widthand height of the output measured in cm. The following paper sizes are known by <strong>GLE</strong>: a0paper,a1paper, a2paper, a3paper, a4paper, and letterpaper.If a “size” command is given in the script, then the output is drawn centered on the page. If no sizecommand is included in the script, then the output will appear relative to the bottom-left corner ofthe page, offset by the page margins (see “margins” command). Fig. 3.2 illustrates these two cases.The paper size can also be set in <strong>GLE</strong>’s configuration file (Sec. 7.5).postscript filename.eps width-exp height-expIncludes an encapsulated postscript file into a <strong>GLE</strong> picture, the postscript picture will be scaled upor down to fit the width given. On the screen you will just see a rectangle.Only the width-exp is used to scale the picture so that the aspect ratio is maintained. The heightis only used to display a rectangle of the right size on the screen.print string$ . . .This command prints its argument to the console (terminal).psbbtweakChanges the default behavior of the bounding box. The default behavior is to have the lower cornerat (-1,-1), which for some interpreters (i.e., Photoshop) will leave a black line around the bottomand left borders. If this command is specified then the origin of the bounding box will be set to(0,0).This command must appear before the first size command in the <strong>GLE</strong> file.pscomment expAllows inclusion of exp as a comment in the preamble of the postscript file. Multiple pscommentcommands are allowed.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!