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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

13.2. Extended pictures 305<br />

The default values for the optional stretch argument in \dashline <strong>and</strong><br />

\drawline are initially 0, but may be changed at any time by redefining<br />

(with \renewcomm<strong>and</strong>) \dashlinestretch <strong>and</strong> \drawlinestretch, respectively.<br />

This makes it possible <strong>to</strong> revise a whole set of curves with one<br />

comm<strong>and</strong>, rather than manually changing each one.<br />

13.2.2 The eepic package<br />

Package: The epic comm<strong>and</strong>s are still subject <strong>to</strong> many of the limitations of the<br />

eepic picture environment: limited number of slopes for lines, limited line<br />

thicknesses, restrictions on circle sizes. This is because the picture<br />

environment uses LAT EX fonts <strong>to</strong> ‘draw’ inclined lines <strong>and</strong> circles, making<br />

the results portable <strong>to</strong> all output devices.<br />

The eepic package, by Conrad Kwok repairs these problems by employing<br />

graphic comm<strong>and</strong>s executed by the DVI driver itself. They are<br />

transmitted <strong>to</strong> the .dvi file by \special comm<strong>and</strong>s, which are driverspecific.<br />

Thus greater flexibility is achieved, but at the price of loss<br />

of portability. The package is therefore most suitable for use with the<br />

PostScript dvips driver, as well as with the previewers xdvi <strong>and</strong> windvi.<br />

It does not work with pdfTEX, unfortunately; on the other h<strong>and</strong>, it has no<br />

problems with dvipdfm.<br />

However, eepic not only recodes the features of epic, it also adds<br />

some additional functionality. If one wishes <strong>to</strong> invoke these extra features<br />

with a driver that does not recognize the graphics \specials, one can use<br />

the emulation package eepicemu instead. A comparison of the results<br />

with these two packages is shown in Figure 13.1 on the next page.<br />

In either case, one must load epic with one of eepic or eepicemu:<br />

\usepackage{epic,eepic} or \usepackage{epic,eepicemu}<br />

The following st<strong>and</strong>ard picture elements are modified by the eepic<br />

package:<br />

\line(∆x,∆y){length} (page 293) where ∆x <strong>and</strong> ∆y may take on any<br />

positive or negative integer values, <strong>and</strong> not just those between ±6.<br />

\circle{diameter} (page 295) may have any value for diameter; the<br />

same for \circle*.<br />

\oval (page 296) may have the maximum diameter of the corners set <strong>to</strong><br />

any value; this is s<strong>to</strong>red in the length \maxovaldiam which the user<br />

may change; the default value is 40 pt.<br />

Similarly, all the extra comm<strong>and</strong>s from epic package are also revised<br />

internally. The restrictions on slopes never apply directly <strong>to</strong> them, but<br />

lines of arbitrary slope are drawn with little segments at the nearest<br />

available slope, or as series of dots, requiring much computer time <strong>and</strong>

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

Saved successfully!

Ooh no, something went wrong!