15.07.2013 Views

xcoffins.pdf. - CTAN

xcoffins.pdf. - CTAN

xcoffins.pdf. - CTAN

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.

\TypesetCoffin<br />

\CoffinDepth<br />

\CoffinHeight<br />

\CoffinTotalHeight<br />

\CoffinWidth<br />

7 Typesetting coffins<br />

\TypesetCoffin<br />

〈coffin〉 [ 〈pole1〉 , 〈pole2〉 ]<br />

( 〈x-offset〉 , 〈y-offset〉 )<br />

Typesetting is carried out by first calculating 〈handle〉, the point of intersection of 〈pole1 〉<br />

and 〈pole2 〉. This is an optional argument, and if not given then (H,l), the TEX reference<br />

point of the underlying box, is used. The coffin is then typeset such that the relationship<br />

between the current reference point in the document and the 〈handle〉 is described by<br />

the 〈x-offset〉 and 〈y-offset〉. This 〈offset〉 is optional, and if not given (0 pt, 0 pt) is<br />

used. Typesetting a coffin is therefore analogous to carrying out an alignment where the<br />

“parent” coffin is the current insertion point.<br />

8 Measuring coffins<br />

There are places in the design process where it is useful to be able to measure coffins<br />

outside of pole-setting procedures.<br />

\CoffinDepth 〈coffin〉<br />

Calculates the depth (below the baseline) of the 〈coffin〉 in a form suitable for use in a<br />

〈dimension expression〉, for example \setlength{\mylength}{\CoffinDepth\ExampleCoffin}.<br />

\CoffinHeight 〈coffin〉<br />

Calculates the height (above the baseline) of the 〈coffin〉 in a form suitable for use in a<br />

〈dimension expression〉, for example \setlength{\mylength}{\CoffinHeight\ExampleCoffin}.<br />

\CoffinTotalHeight 〈coffin〉<br />

Calculates the total height of the 〈coffin〉 in a form suitable for use in a 〈dimension<br />

expression〉, for example \setlength{\mylength}{\CoffinTotalHeight\ExampleCoffin}.<br />

\CoffinWidth 〈coffin〉<br />

Calculates the width of the 〈coffin〉 in a form suitable for use in a 〈dimension expression〉,<br />

for example \setlength{\mylength}{\CoffinWidth\ExampleCoffin}.<br />

9 Diagnostic functions<br />

Diagnostic data for following the coffin-building process is available both graphically and<br />

at the terminal. This reflects the fact that coffins are visual constructs.<br />

8

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

Saved successfully!

Ooh no, something went wrong!