28.03.2013 Views

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

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.

13<br />

Drawing with LAT E X<br />

The inclusion of graphical material from other programs is treated in<br />

Chapter 6. Such ‘foreign’ files do add some complications (which are<br />

greatly reduced <strong>to</strong>day with L AT E X 2ε) <strong>and</strong> can cause portability problems.<br />

What would be desirable is a means <strong>to</strong> do graphics with L AT E X itself so that<br />

the source text file is fully self-contained.<br />

St<strong>and</strong>ard L AT E X does contain the means <strong>to</strong> make somewhat primitive<br />

drawings on its own. The word ‘primitive’ should not be considered<br />

deroga<strong>to</strong>ry, for simple building blocks are the basic units for constructing<br />

very complicated, sophisticated structures. They are also useful for<br />

superimposing imported graphics or for adding embellishments <strong>to</strong> them,<br />

as demonstrated in Section 6.1.5.<br />

This chapter describes the intrinsic L AT E X drawing capabilities, <strong>and</strong> then<br />

explains some extensions that are available <strong>to</strong> enhance them.<br />

Many more possibilities exist for adding specialized diagrams, from<br />

chemistry, <strong>to</strong> music, <strong>to</strong> chess positions. These are described in detail in<br />

The L AT E X Graphics Companion by Goossens et al. (1997).<br />

13.1 The picture environment<br />

13.1.1 Picture coordinates<br />

The picture building blocks can only be put in place once a coordinate<br />

system has been established for that picture. This consists of a reference<br />

point or origin, <strong>and</strong> two mutually perpendicular coordinate axes, as well<br />

as a length unit for the coordinates. The origin is the lower left corner<br />

of the picture <strong>and</strong> the axes are its lower <strong>and</strong> left edges. These edges are<br />

referred <strong>to</strong> as the x-axis (lower) <strong>and</strong> y-axis (left).<br />

Once the unit of length (UL) has been specified, every point within the<br />

picture area can be uniquely referred <strong>to</strong> with two decimal numbers: the<br />

first is the number of length units along the x-axis, the second the number<br />

along the y-axis.<br />

287

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

Saved successfully!

Ooh no, something went wrong!