summaryrefslogtreecommitdiff
path: root/graphics/asymptote/doc/asymptote.texi
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/doc/asymptote.texi')
-rw-r--r--graphics/asymptote/doc/asymptote.texi23
1 files changed, 17 insertions, 6 deletions
diff --git a/graphics/asymptote/doc/asymptote.texi b/graphics/asymptote/doc/asymptote.texi
index 4762044139..6b932fd4bf 100644
--- a/graphics/asymptote/doc/asymptote.texi
+++ b/graphics/asymptote/doc/asymptote.texi
@@ -3596,6 +3596,14 @@ shipout(bbox(0.25cm));
A @code{picture} may be fit to a frame with the background color
pen @code{p}, using the function @code{bbox(p,Fill)}.
+@cindex @code{pad}
+To pad a picture to a precise size in both directions, fit the picture
+to a frame using the function
+@verbatim
+frame pad(picture pic=currentpicture, real xsize=pic.xsize,
+ real ysize=pic.ysize, filltype filltype=NoFill);
+@end verbatim
+
The functions
@verbatim
pair min(picture pic, user=false);
@@ -6138,7 +6146,7 @@ to the type. This is regardless of what fields the variable actually possesses.
@cindex @code{asymptote.sty}
@code{Asymptote} comes with a convenient @code{LaTeX} style file
-@code{asymptote.sty} (v1.33 or later required) that makes @code{LaTeX}
+@code{asymptote.sty} (v1.34 or later required) that makes @code{LaTeX}
@code{Asymptote}-aware. Entering @code{Asymptote} code
directly into the @code{LaTeX} source file, at the point where it is
needed, keeps figures organized and avoids the need to invent new file
@@ -9376,16 +9384,17 @@ produced using the @code{-f} option (or @code{outformat} setting).
@cindex @code{SVG}
@cindex @code{dvisvgm}
@cindex @code{libgs}
-@cindex @code{graphics}
+@cindex @code{graphic}
To produce @acronym{SVG} output, you will need @code{dvisvgm} (version
2.6.3 or later) from @url{http://dvisvgm.sourceforge.net}.
You might need to adjust the configuration variable @code{libgs} to
point to the location of your @code{Ghostscript} library
@code{libgs.so} (or to an empty string, depending on how
-@code{dvisvgm} was configured). Due to current limitations of @code{dvisvgm},
-@code{graphic()} can only display SVG output (used by the xasy
-editor) for external vector EPS graphics (embedded images, PDF, PNG,
-and JPG formats are not yet supported).
+@code{dvisvgm} was configured). The 2.8 version of @code{dvisvgm} can
+display SVG output (used by the @code{xasy} editor) for external
+vector @acronym{EPS} and @acronym{PDF} images included with the
+@code{graphic()} function, in addition to (using the @code{latex}
+@TeX{} engine) @acronym{PNG} and @acronym{JPEG} embedded raster images.
@code{Asymptote} can also produce any output format supported
by the @code{ImageMagick} @code{convert} program (version 6.3.5 or
@@ -9633,6 +9642,8 @@ raising and lowering objects within @code{xasy}, allowing an object to
be selected. Pressing the arrow keys will pan while the shift key is held
and zoom while the control key is held. The mouse wheel will pan while
the alt or shift keys is held and zoom while the control key is held.
+In translate mode, an object can be dragged coarsely with the mouse
+or positioned finely with the arrow keys while holding down the mouse button.
Deconstruction of compound objects (such as arrows) can be prevented
by enclosing them within the commands