diff options
author | Karl Berry <karl@freefriends.org> | 2010-07-11 22:39:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-07-11 22:39:53 +0000 |
commit | 4e8485b0ddecb55f72929dd6233f254a1e7bf5b0 (patch) | |
tree | 354324ee6f54d46053b3ce88fe9dc4acf8e2ed81 /Build/source/utils/asymptote/doc/latexusage.tex | |
parent | 713bb91ad0467fb3b12acad03cae2fa105ed2caa (diff) |
asy 2.02
git-svn-id: svn://tug.org/texlive/trunk@19378 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/doc/latexusage.tex')
-rw-r--r-- | Build/source/utils/asymptote/doc/latexusage.tex | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/Build/source/utils/asymptote/doc/latexusage.tex b/Build/source/utils/asymptote/doc/latexusage.tex index 6324238f1a2..ae555a476bd 100644 --- a/Build/source/utils/asymptote/doc/latexusage.tex +++ b/Build/source/utils/asymptote/doc/latexusage.tex @@ -3,13 +3,16 @@ % Use this form to include EPS (latex) or PDF (pdflatex) files: \usepackage{asymptote} -% Use this form with latex or pdflatex to include inline LaTeX code: +% Use this form with latex or pdflatex to include inline LaTeX code by default: %\usepackage[inline]{asymptote} +% Use this form with latex or pdflatex to create PDF attachments by default: +%\usepackage[attach]{asymptote} + % Enable this line to support PDF hyperlinks: -%\usepackage{hyperref}\hypersetup{setpagesize=false} +%\usepackage{hyperref}\hypersetup{setpagesize=false,unicode} -% Enable this line for PDF attachments with asy environment option attach=true: +% Enable this line to support the attach option: %\usepackage[dvips]{attachfile2} \begin{document} @@ -76,11 +79,12 @@ shipout(bbox(0.25cm)); Each graph is drawn in its own environment. One can specify the width and height to \LaTeX\ explicitly. This 3D example can be viewed interactively either with Adobe Reader or Asymptote's fast OpenGL-based -renderer. It is often desirable to embed such files as annotated attachments; -this requires the optional \verb+\usepackage{attachfile2}+ package and -the \verb+{attach=true}+ option: +renderer. To support {\tt latexmk}, 3D figures should specify +\verb+inline=true+. It is sometimes desirable to embed 3D files as annotated +attachments; this requires the optional \verb+\usepackage{attachfile2}+ +package and the \verb+attach=true+ option: \begin{center} -\begin{asy}[height=4cm,attach=false] +\begin{asy}[height=4cm,inline=true,attach=false] currentprojection=orthographic(5,4,2); draw(unitcube,blue); label("$V-E+F=2$",(0,1,0.5),3Y,blue+fontsize(17pt)); @@ -89,7 +93,7 @@ label("$V-E+F=2$",(0,1,0.5),3Y,blue+fontsize(17pt)); One can also scale the figure to the full line width: \begin{center} -\begin{asy}[width=\the\linewidth] +\begin{asy}[width=\the\linewidth,inline=true] pair z0=(0,0); pair z1=(2,0); pair z2=(5,0); |