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

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

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

D.2. Picture objectsTypeset example D.2: Picture: text in boxestop left✒center✒bottom✒b (bottom) Places the contents at the bottom of the box.<strong>The</strong>se place the text in the corresponding position in the box. In a two-letter argumentthe order of the letters is immaterial. For example, [tr] and [rt] will both result in thetext being placed at the top right hand corner of the box. Unlike the normal \frameboxcommand, a \framebox in a picture environment does not add any extra space aroundthe text.Corresponding to the \framebox there is a \makebox command which does not drawa frame around its contents. <strong>The</strong> \makebox command takes the same arguments as the\framebox. Particularly interesting is when you specify a zero sized \makebox. A\makebox(0,0){text} command will make the reference point the center of text. Similarly,the other positioning arguments which will adjust the reference point with respectto the box contents. This can be used for fine-tuning the position of text in a picture.Source for example D.3\setlength{\unitlength}{1pc}\begin{picture}(16,2)\put(0,0){\framebox(16,2){}}\thicklines\put(3.5,1){\makebox(0,0){center}} % ref at text center\put(3.5,1){\vector(0,-1){0}}\put(7,1){\makebox(0,0)[b]{bottom}} % ref at text bottom\put(7,1){\vector(0,1){0}}\put(11,1){\makebox(0,0)[tl]{top left}} % ref at text top left\put(11,1){\vector(1,-1){0}}\end{picture}\setlength{\unitlength}{1pt}You can draw a dashed box with the \dashbox command.\dashbox{〈len〉}(〈width, height〉)[〈pos〉]{〈text〉}413

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

Saved successfully!

Ooh no, something went wrong!