Next: MetaPost, Previous: roundedpath, Up: Base modules
slide
This package provides a simple yet high-quality facility for making
presentation slides. An example is provided in the file
slidedemo.asy
:
// Slide demo. // Command-line options to enable stepping and/or reverse video: // asy [-u stepping=true] [-u reverse=true] slidedemo orientation=Landscape; // Generated needed files if they don't already exist. asy("eps","Pythagoras","log","near_earth"); import slide; usersetting(); // Optional background color: // import x11colors; // fill(background,box((-1,-1),(1,1)),Azure); titlepage("Slides with {\tt Asymptote}: A Demo","John C. Bowman", "University of Alberta","\today","http://asymptote.sf.net"); outline(); item("item"); subitem("subitem"); remark("remark"); item("draw"); item("figure"); title("Items"); item("First item."); subitem("First subitem."); subitem("Second subitem."); item("Second item."); equation("a^2+b^2=c^2."); equations("\frac{\sin^2\theta+\cos^2\theta}{\cos^2\theta} &=&\frac{1}{\cos^2\theta}\nonumber\\ &=&\sec^2\theta."); remark("A remark."); item("To enable pausing between bullets:"); remark("{\tt asy -u stepping=true}"); item("To enable reverse video:"); remark("{\tt asy -u reverse=true}"); title("Can draw on a slide, preserving the aspect ratio:"); picture pic,pic2; draw(pic,unitcircle); add(pic.fit(15cm)); step(); fill(pic2,unitcircle,paleblue); add(pic2.fit(15cm)); newslide(); item("The slide \Red{title} can be omitted."); figure("Pythagoras.eps","height=12cm", "A simple proof of Pythagoras' Theorem."); newslide(); item("Single skip:"); skip(); item("Double skip:"); skip(2); figure(new string[] {"log.eps","near_earth.eps"}, "width=10cm","Examples of {\tt Asymptote} graphs.");