1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY asymptote-download-http "&sourceforge-repo;/sourceforge/asymptote/asymptote-&asymptote-version;.src.tgz">
|
---|
8 | <!ENTITY asymptote-download-ftp " ">
|
---|
9 | <!ENTITY asymptote-md5sum "199e971792072527bd0cb1583d8ef3fb">
|
---|
10 | <!ENTITY asymptote-size "3.2 MB">
|
---|
11 | <!ENTITY asymptote-buildsize "162 MB">
|
---|
12 | <!ENTITY asymptote-time "1.8 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="asymptote" xreflabel="asymptote-&asymptote-version;">
|
---|
16 | <?dbhtml filename="asymptote.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>asymptote-&asymptote-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="asymptote">
|
---|
26 | <primary sortas="a-asymptote">asymptote</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to asymptote</title>
|
---|
31 |
|
---|
32 | <para>
|
---|
33 | <application>Asymptote</application> is a powerful descriptive vector
|
---|
34 | graphics language that provides a natural coordinate-based framework for
|
---|
35 | technical drawing. Labels and equations can be typeset with LaTeX.
|
---|
36 | </para>
|
---|
37 |
|
---|
38 | &lfs78_checked;
|
---|
39 |
|
---|
40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
41 | <itemizedlist spacing="compact">
|
---|
42 | <listitem>
|
---|
43 | <para>
|
---|
44 | Download (HTTP): <ulink url="&asymptote-download-http;"/>
|
---|
45 | </para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>
|
---|
49 | Download (FTP): <ulink url="&asymptote-download-ftp;"/>
|
---|
50 | </para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>
|
---|
54 | Download MD5 sum: &asymptote-md5sum;
|
---|
55 | </para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>
|
---|
59 | Download size: &asymptote-size;
|
---|
60 | </para>
|
---|
61 | </listitem>
|
---|
62 | <listitem>
|
---|
63 | <para>
|
---|
64 | Estimated disk space required: &asymptote-buildsize;
|
---|
65 | </para>
|
---|
66 | </listitem>
|
---|
67 | <listitem>
|
---|
68 | <para>
|
---|
69 | Estimated build time: &asymptote-time;
|
---|
70 | </para>
|
---|
71 | </listitem>
|
---|
72 | </itemizedlist>
|
---|
73 |
|
---|
74 | <bridgehead renderas="sect3">Asymptote Dependencies</bridgehead>
|
---|
75 |
|
---|
76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
77 | <para role="required">
|
---|
78 | <xref linkend="gs"/>,
|
---|
79 | <xref linkend="texlive"/>
|
---|
80 | </para>
|
---|
81 |
|
---|
82 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
83 | <para role="recommended">
|
---|
84 | <xref linkend="freeglut"/> (for 3D drawing),
|
---|
85 | <xref linkend="gc"/>
|
---|
86 | </para>
|
---|
87 |
|
---|
88 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
89 | <para role="optional">
|
---|
90 | <ulink url="http://www.fftw.org/">FFTW</ulink>,
|
---|
91 | <!-- link to an external version until asymptote is altered
|
---|
92 | to build with libgsl-2
|
---|
93 | <xref linkend="gsl"/> -->
|
---|
94 | <ulink url="http://ftp.gnu.org/pub/gnu/gsl/">libgsl</ulink> (versions < 2.0)
|
---|
95 | </para>
|
---|
96 |
|
---|
97 | <bridgehead renderas="sect4">Optional (at runtime, to use xasy)</bridgehead>
|
---|
98 | <para role="optional">
|
---|
99 | <ulink url="http://effbot.org/downloads/Imaging-1.1.7.tar.gz">Imaging</ulink>
|
---|
100 | which needs
|
---|
101 | <!-- hard-coded because I'm not sure if the book scripts will find this and move
|
---|
102 | it to svn/ -->
|
---|
103 | <ulink url="http://www.linuxfromscratch.org/patches/downloads/Imaging/Imaging-1.1.7-freetype_fix-1.patch">Imaging-1.1.7-freetype_fix-1.patch</ulink>
|
---|
104 | and has a build dependency of
|
---|
105 | <xref linkend="python2"/> (re-) compiled against <xref linkend="tk"/>
|
---|
106 | to provide <filename>_tkinter.so</filename>
|
---|
107 | </para>
|
---|
108 |
|
---|
109 | <para condition="html" role="usernotes">
|
---|
110 | User Notes: <ulink url="&blfs-wiki;/asymptote"/>
|
---|
111 | </para>
|
---|
112 | </sect2>
|
---|
113 |
|
---|
114 | <sect2 role="installation">
|
---|
115 | <title>Installation of asymptote</title>
|
---|
116 |
|
---|
117 | <para>
|
---|
118 | Install <application>asymptote</application> by running the following
|
---|
119 | commands:
|
---|
120 | </para>
|
---|
121 |
|
---|
122 | <screen><userinput>export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &&
|
---|
123 | ./configure --prefix=/opt/texlive/&texlive-year; \
|
---|
124 | --bindir=/opt/texlive/&texlive-year;/bin/$TEXARCH \
|
---|
125 | --datarootdir=/opt/texlive/&texlive-year;/texmf-dist \
|
---|
126 | --infodir=/opt/texlive/&texlive-year;/texmf-dist/doc/info \
|
---|
127 | --libdir=/opt/texlive/&texlive-year;/texmf-dist \
|
---|
128 | --mandir=/opt/texlive/&texlive-year;/texmf-dist/doc/man \
|
---|
129 | --enable-gc=system \
|
---|
130 | --with-latex=/opt/texlive/&texlive-year;/texmf-dist/tex/latex \
|
---|
131 | --with-context=/opt/texlive/&texlive-year;/texmf-dist/tex/context/third \
|
---|
132 | --disable-gsl &&
|
---|
133 | make</userinput></screen>
|
---|
134 |
|
---|
135 | <para>
|
---|
136 | To test the results, issue: <command>make check</command>.
|
---|
137 | </para>
|
---|
138 |
|
---|
139 | <para>
|
---|
140 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
141 | </para>
|
---|
142 |
|
---|
143 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
144 |
|
---|
145 | </sect2>
|
---|
146 |
|
---|
147 | <sect2 role="commands">
|
---|
148 | <title>Command Explanations</title>
|
---|
149 |
|
---|
150 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
151 | href="../../xincludes/tex-prefix.xml"/>
|
---|
152 |
|
---|
153 | <para>
|
---|
154 | Exceptionally, asymptote will create an <filename
|
---|
155 | class="directory">asymptote/</filename> subdirectory for
|
---|
156 | <filename>asymptote.info</filename> even though the
|
---|
157 | <filename>asy-faq.info</filename> file will be in the main
|
---|
158 | <application>texlive</application>
|
---|
159 | <filename class="directory">info/</filename> directory. Both files
|
---|
160 | <emphasis>will</emphasis> be found by <command>info</command>.
|
---|
161 | </para>
|
---|
162 |
|
---|
163 | <para><parameter>--libdir=/opt/texlive/&texlive-year;/texmf-dist;</parameter>:
|
---|
164 | This parameter ensures that the <filename class="directory">asymptote</filename>
|
---|
165 | directory will similarly overwrite any files installed by install-tl-unx.</para>
|
---|
166 |
|
---|
167 | <para><parameter>--enable-gc=system</parameter>: this ensures that the system
|
---|
168 | version of <filename class="libraryfile">libgc.so</filename> will be used
|
---|
169 | instead of the version shipped with this package.</para>
|
---|
170 |
|
---|
171 | <para><parameter>--with-latex= ... --with-context=</parameter>: These switches
|
---|
172 | ensure that style files and a tex file will be installed into the
|
---|
173 | <application>texlive</application> directories instead of creating a
|
---|
174 | <filename class="directory">texmf-local</filename> directory for them.</para>
|
---|
175 |
|
---|
176 | <para><parameter>--disable-gsl</parameter>: if a current version of libgsl has
|
---|
177 | been installed, the configure script will attempt to use it and the build will
|
---|
178 | fail because of changes in that library. Remove this switch if you have installed
|
---|
179 | an older version of libgsl instead of the current version. It is believed that
|
---|
180 | few people need to link asymptote to libgsl: if you are one of those people,
|
---|
181 | please consider updating the user notes to explain what libgsl brings to
|
---|
182 | asymptote.</para>
|
---|
183 |
|
---|
184 | </sect2>
|
---|
185 |
|
---|
186 | <sect2 role="content">
|
---|
187 | <title>Contents</title>
|
---|
188 |
|
---|
189 | <segmentedlist>
|
---|
190 | <segtitle>Installed Programs</segtitle>
|
---|
191 | <segtitle>Installed Libraries</segtitle>
|
---|
192 | <segtitle>Installed Directory</segtitle>
|
---|
193 |
|
---|
194 | <seglistitem>
|
---|
195 | <seg>
|
---|
196 | asy, xasy
|
---|
197 | </seg>
|
---|
198 | <seg>
|
---|
199 | None
|
---|
200 | </seg>
|
---|
201 | <seg>
|
---|
202 | /opt/texlive/&texlive-year;texmf-dist/asymptote,
|
---|
203 | /opt/texlive/&texlive-year;/doc/asymptote,
|
---|
204 | /opt/texlive/&texlive-year;/info/asymptote
|
---|
205 | </seg>
|
---|
206 | </seglistitem>
|
---|
207 | </segmentedlist>
|
---|
208 |
|
---|
209 | <variablelist>
|
---|
210 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
211 | <?dbfo list-presentation="list"?>
|
---|
212 | <?dbhtml list-presentation="table"?>
|
---|
213 |
|
---|
214 | <varlistentry id="asy">
|
---|
215 | <term><command>asy</command></term>
|
---|
216 | <listitem>
|
---|
217 | <para>
|
---|
218 | is a vector graphics program.
|
---|
219 | </para>
|
---|
220 | <indexterm zone="asymptote asy">
|
---|
221 | <primary sortas="b-asy">asy</primary>
|
---|
222 | </indexterm>
|
---|
223 | </listitem>
|
---|
224 | </varlistentry>
|
---|
225 |
|
---|
226 | <varlistentry id="xasy">
|
---|
227 | <term><command>xasy</command></term>
|
---|
228 | <listitem>
|
---|
229 | <para>
|
---|
230 | is a Python script providing the preliminary GUI for asy. It can be
|
---|
231 | used for final adjustments of an existing asy file.
|
---|
232 | </para>
|
---|
233 | <indexterm zone="asymptote xasy">
|
---|
234 | <primary sortas="b-xasy">xasy</primary>
|
---|
235 | </indexterm>
|
---|
236 | </listitem>
|
---|
237 | </varlistentry>
|
---|
238 |
|
---|
239 | </variablelist>
|
---|
240 |
|
---|
241 | </sect2>
|
---|
242 |
|
---|
243 | </sect1>
|
---|