Asymptote FAQ - Section 9
Questions about output
It's actually not on by default, unless you happen to be using
Microsoft Windows (because that is what most Microsoft Windows users
expect). Microsoft Windows users can turn this feature off with the
command-line option -noV or by putting
import settings;
interactiveView=false;
batchView=false;
in their config.asy
file. See http://asymptote.sourceforge.net/doc/Options.html.
If you have the ImageMagick convert program installed, simply type
asy -f jpg test.asy
Convert them to eps format and use the graphic(string) function just
like a Label:
label(graphic("file"),(0,0));
See the example http://asymptote.sourceforge.net/gallery/orthocenter.asy and http://asymptote.sourceforge.net/doc/label.html.
Currently, PDF conversion is possible with the -f pdf option,
which supports transparency, annotations, and embedded movies and u3d
images. However, we plan to eventually produce direct PDF output to support
features not available in PostScript (e.g. general function shading).
Try using some of the options to convert, mainly -geometry and
-density. For example:
convert -geometry 1000x3000 example.eps example.png
You can also change the default resolution of the image with:
convert -geometry 1000x3000 -density 300 -units PixelsPerInch example.eps example.png
This does not change the number of pixels in the image, but just gives
a hint as to how large each pixel should be displayed.
If you include the -density option without the -geometry option,
convert will keep the image size constant (so a 4cm x 3cm eps figure will generate
a 4cm x 3cm png image).
Yes, simply call the newpage() function. This is used by the
slide.asy
package to produce high-quality slide presentations
(easier to use than Prosper).
Back: Questions about differences between Asymptote and MetaPost.
Return to contents.
Asymptote
- 23 March 2009
Extracted from Asymptote Frequently Asked Questions,
Copyright © 2009 .