12.07.2015 Views

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

D. PICTURESTypeset example D.1: Picture: textSome text✒D.2.2BoxesA box picture object is made with one of the box commands. When used in picture mode,the box commands have a slightly different form than when in normal text. <strong>The</strong> first argumentof a box command is a size pair that specifies the width and height of the box. <strong>The</strong>last argument is the text to be placed in the box. <strong>The</strong> reference point of a box is the lowerleft hand corner.\framebox(〈width, height〉)[〈pos〉]{〈text〉}\makebox(〈width, height〉)[〈pos〉]{〈text〉}<strong>The</strong> \framebox command draws a framed box of the specified (〈width, height〉) dimensionsaround the text.Source for example D.2\setlength{\unitlength}{1pc}\begin{picture}(22,5)\put(0,0){\framebox(22,5){}}% empty box\thicklines\put(2,1){\framebox(5,2.5){center}} % centered text\put(2,1){\vector(1,1){0}}% ref point\put(9,1){\framebox(5,2)[b]{bottom}} % bottomed text\put(9,1){\vector(1,1){0}}% ref point\put(16,1){\framebox(5,3)[tl]{top left}} % cornered text\put(16,1){\vector(1,1){0}}% ref point\end{picture}\setlength{\unitlength}{1pt}<strong>The</strong> default position of the text is centered in the box. However, this can be changedvia an optional argument (which is enclosed in square brackets), placed between the coordinatepair and the text argument. This argument consists of either one or two of thefollowing letters.412l (left) Places the contents at the left of the box.r (right) Places the contents at the right of the box.t (top) Places the contents at the top of the box.

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

Saved successfully!

Ooh no, something went wrong!