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.

from the borders. In Figure 7.35a, the four text line cells have been placed with the followingoption list:optlist = "fittextline={position={left center} font=" + font +" fontsize=8} colwidth=80 margin=4";The Textflow cell is added without any special options. Since we vertically centered thetext lines, the Benefit line will move down with the height of the Textflow.Fig. 7.35 Aligning text lines and Textflow in table cellsGenerated outputOur Paper Planesa)MaterialBenefitOffset print paper 220g/sqmIt is amazingly robust and caneven do aerobatics. But it isbest suited to gliding.b)Our Paper PlanesMaterialBenefitOffset print paper 220g/sqmIt is amazingly robust and caneven do aerobatics. But it isbest suited to gliding.As shown in Figure 7.35b, we want all cell contents to have the same vertical distancefrom the cell borders regardless of whether they are Textflows or text lines. To accomplishthis we first prepare the option list for the text lines. We define a fixed row heightof 14 points, and the position of the text line to be on the top left with a margin of 4points.The fontsize=8 option which we supplied before doesn’t exactly represent the letterheight but adds some space below and above. However, the height of an uppercase letteris exactly represented by the capheight value of the font. For this reason we usefontsize={capheight=6} which will approximately result in a font size of 8 points and(along with margin=4), will sum up to an overall height of 14 points corresponding to therowheight option. The complete option list of PDF_add_table_cell( ) for our text line cellslooks as follows:/* option list for the text line cells */optlist = "fittextline={position={left top} font=" + font +" fontsize={capheight=6}} rowheight=14 colwidth=80 margin=4";To add the Textflow we use fontsize={capheight=6} which will approximately result in afont size of 8 points and (along with margin=4), will sum up to an overall height of 14points as for the text lines above./* option list for adding the Textflow */optlist = "font=" + font + " fontsize={capheight=6} leading=110%";In addition, we want the baseline of the Benefit text aligned with the first line of theTextflow. At the same time, the Benefit text should have the same distance from the top7.4 Table Formatting 167

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

Saved successfully!

Ooh no, something went wrong!