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.6: Picture: stackingDefaultshortStack✒LeftalignedshortStack✒RightalignedshortStack✒ExtraspacedStack✒\put(63,3){\shortstack{Extra \\[4ex] spaced \\[2ex] Stack}}\put(63,3){\vector(1,1){0}}\end{picture}\setlength{\unitlength}{1pt}<strong>The</strong> rows in a stack are not evenly spaced. <strong>The</strong> spacing between two rows can bechanged in one of two ways.1. Add a strut to a row. A strut is a vertical rule with no width.2. Use the optional argument to the \\ command. This optional argument is a lengthvalue.\\[〈len〉]It has the effect of adding additional 〈len〉 vertical space between the two lines thatthe \\ separates.\newsavebox{〈box〉}\savebox{〈box〉}(〈width, height〉)[〈pos〉]{〈text〉}\sbox{〈box〉}{〈text〉}\usebox{〈box〉}Just as in normal text you can save and reuse boxes. <strong>The</strong> \savebox macro in picturemode is a variant of the normal text version, but the other three commands are the samein both picture and paragraph modes, and are described in Chapter 15. In picture modeyou have to specify the size of the storage box when saving it, via the (〈width, height〉)argument to \savebox.A \savebox command can be used within a picture to store a picture object. <strong>The</strong> firstargument of \savebox is the name of the storage bin to be used. <strong>The</strong> following argumentsare the same as the \makebox command. <strong>The</strong> result is stored, not drawn. When you havesaved something it can be drawn in either the same or other pictures via the \useboxcommand. This command takes one argument, which is the name of the storage bin.416

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

Saved successfully!

Ooh no, something went wrong!