10.07.2015 Views

Download - Multivac!

Download - Multivac!

Download - Multivac!

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.

Fig. 7.22 Options for justified text in a narrow fitboxGenerated output Option list for PDF_fit_textflow( )passing the time.Weoffer revolutionarybrand new developmentsa) of the traditionalalignment=justify shrinklimit=50%common paper planes.If your lesson, conference,or lecture turn out toOur paper planesare the ideal way ofb) passing the time.Weoffer revolutionaryalignment=justify spreadlimit=5b r a n d n e wdevelopments of thements of the traditionalcommon paper planes.c)If your lesson,conference, or lecturealignment=justify nofitlimit=50turn out to be deadlyboring, you can haveOption spreadlimit for justified text. Expanding text, which is achieved by the spreadmethod and controlled by the spreadlimit option, is another method for controlling linebreaks. This unpleasing method should be rarely used, however. Figure 7.22b demonstratesa very large maximum character distance of 5 units using spreadlimit=5.Option nofitlimit for justified text. The nofitlimit option controls how small a line canget when the nofit method is applied. Reducing the default value of 75% is preferable toforced hyphenation when the fitbox is very narrow. Figure 7.22c shows the generatedtext output with a minimum text width of 50%.7.2.9 Wrapping TextThe wrapping feature can be used to place graphics within a Textflow and wrap textaround it, or to fill arbitrary polygonal shapes with text. By means of matchboxes, rectangles,or polygons you can specify wrapping areas for the Textflow. Alternatively, theTextflow can be placed within the specified areas instead of being wrapped around. Thismeans that you can place Textflow in arbitrary shapes instead of only rectangles.Wrapping text around an image with matchbox. In the first example we will place animage within the Textflow and run the text around the image. First the image is loadedand placed into the box at the desired position. To refer to the image by name later, wefit the image while defining a matchbox with the name img and a margin of 5 units withthe option list matchbox={name=img margin=-5} as follows:p.fit_image(image, 50, 35,"boxsize={80 46} fitmethod=meet position=center matchbox={name=img margin=-5}");The Textflow is added. Then we place it using the wrap option with the image’s matchboximg as the area to run around as follows (see Figure 7.23):7.2 Multi-Line Textflows 155

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

Saved successfully!

Ooh no, something went wrong!