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. PICTURESTypeset example D.10: Picture: text in oval✛Text in oval✚✘✙l (left) Draw the left of the oval.r (right) Draw the right of the oval.t (top) Draw the top of the oval.b (bottom) Draw the bottom of the oval.<strong>The</strong>se are similar to the optional positioning argument in the box commands. A one lettercode will draw the designated half of the oval, while a two letter code results in the designatedquarter of the oval being drawn. In all cases the reference point is at the center ofthe ‘complete’ oval.Source for example D.10\setlength{\unitlength}{1mm}\begin{picture}(30,10)\thicklines\put(15,5){\oval(30,10)}\put(15,5){\makebox(0,0){Text in oval}}\end{picture}\setlength{\unitlength}{1pt}Unlike the boxes described in §D.2.2 there is no 〈text〉 argument for an \oval. If youwant the rounded box to contain text, then you have to place the text inside the box yourself.<strong>The</strong> code in example D.10 shows one way of doing this; a zero-sized box is used tocenter the text at the center of the oval.D.3 REPETITIONS<strong>The</strong> \multiput command is a convenient way to place regularly spaced copies of an objectin a picture.\multiput(〈x, y〉)(〈dx, dy〉){〈num〉}{〈object〉}As you can see, this is similar to the syntax for the \put command, except that there aretwo more required arguments, namely (〈dx, dy〉) and num.422

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

Saved successfully!

Ooh no, something went wrong!