12.06.2013 Views

Using TIKZ - College of the Redwoods

Using TIKZ - College of the Redwoods

Using TIKZ - College of the Redwoods

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.

Annotating <strong>the</strong> Diagram<br />

Use <strong>the</strong> node command to add annotations. Add <strong>the</strong> following and<br />

recompile workshop11.tex.<br />

\ b e g i n { t i k z p i c t u r e }<br />

\ draw ( 0 , 0 ) − − node [ below ] {$L$} ( 6 , 0 ) −−(6,4)<br />

−−(0,4) −−(0,0) ;<br />

\ end { t i k z p i c t u r e }<br />

The node command has a variety <strong>of</strong> options:<br />

node[below], node[above], node[left], node[right]<br />

Label <strong>the</strong> remaining sides <strong>of</strong> <strong>the</strong> rectangle. Let <strong>the</strong> width or height be<br />

represented by W and <strong>the</strong> length be represented by L.<br />

David Arnold (CR) <strong>Using</strong> <strong>TIKZ</strong> November 20, 2010 21 / 24

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

Saved successfully!

Ooh no, something went wrong!