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 "d16909a9189a3177ad2f8cb8161e32e1">
|
---|
10 | <!ENTITY asymptote-size "3.4 MB">
|
---|
11 | <!ENTITY asymptote-buildsize "149 MB">
|
---|
12 | <!ENTITY asymptote-time "2.0 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 | &lfs80_checked;
|
---|
39 | &gcc7_checked;
|
---|
40 |
|
---|
41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
42 | <itemizedlist spacing="compact">
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (HTTP): <ulink url="&asymptote-download-http;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download (FTP): <ulink url="&asymptote-download-ftp;"/>
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download MD5 sum: &asymptote-md5sum;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Download size: &asymptote-size;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated disk space required: &asymptote-buildsize;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | <listitem>
|
---|
69 | <para>
|
---|
70 | Estimated build time: &asymptote-time;
|
---|
71 | </para>
|
---|
72 | </listitem>
|
---|
73 | </itemizedlist>
|
---|
74 |
|
---|
75 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
76 | <para role="required">
|
---|
77 | <xref linkend="gs"/> and
|
---|
78 | <xref linkend="texlive"/>
|
---|
79 | </para>
|
---|
80 |
|
---|
81 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
82 | <para role="recommended">
|
---|
83 | <xref linkend="freeglut"/> and
|
---|
84 | <xref linkend="gc"/>
|
---|
85 | </para>
|
---|
86 |
|
---|
87 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
88 | <para role="optional">
|
---|
89 | <xref linkend="gsl"/>,
|
---|
90 | <xref linkend="libsigsegv"/>, and
|
---|
91 | <xref linkend="fftw"/>
|
---|
92 | </para>
|
---|
93 |
|
---|
94 | <bridgehead renderas="sect4">Optional (at runtime, to use xasy)</bridgehead>
|
---|
95 | <para role="optional">
|
---|
96 | <ulink url="http://effbot.org/downloads/Imaging-1.1.7.tar.gz">Imaging</ulink>
|
---|
97 | which needs
|
---|
98 | <!-- hard-coded because I'm not sure if the book scripts will find this and move
|
---|
99 | it to svn/ -->
|
---|
100 | <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>
|
---|
101 | and has a build dependency of
|
---|
102 | <xref linkend="python2"/> (re-) compiled against <xref linkend="tk"/>
|
---|
103 | to provide <filename>_tkinter.so</filename>
|
---|
104 | </para>
|
---|
105 |
|
---|
106 | <para condition="html" role="usernotes">
|
---|
107 | User Notes: <ulink url="&blfs-wiki;/asymptote"/>
|
---|
108 | </para>
|
---|
109 | </sect2>
|
---|
110 |
|
---|
111 | <sect2 role="installation">
|
---|
112 | <title>Installation of asymptote</title>
|
---|
113 |
|
---|
114 | <para>
|
---|
115 | Install <application>asymptote</application> by running the following
|
---|
116 | commands:
|
---|
117 | </para>
|
---|
118 |
|
---|
119 | <screen><userinput>export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &&
|
---|
120 |
|
---|
121 | ./configure --prefix=/opt/texlive/&texlive-year; \
|
---|
122 | --bindir=/opt/texlive/&texlive-year;/bin/$TEXARCH \
|
---|
123 | --datarootdir=/opt/texlive/&texlive-year;/texmf-dist \
|
---|
124 | --infodir=/opt/texlive/&texlive-year;/texmf-dist/doc/info \
|
---|
125 | --libdir=/opt/texlive/&texlive-year;/texmf-dist \
|
---|
126 | --mandir=/opt/texlive/&texlive-year;/texmf-dist/doc/man \
|
---|
127 | --enable-gc=system \
|
---|
128 | --with-latex=/opt/texlive/&texlive-year;/texmf-dist/tex/latex \
|
---|
129 | --with-context=/opt/texlive/&texlive-year;/texmf-dist/tex/context/third &&
|
---|
130 |
|
---|
131 | make</userinput></screen>
|
---|
132 |
|
---|
133 | <para>
|
---|
134 | To test the results, issue: <command>make check</command>.
|
---|
135 | </para>
|
---|
136 |
|
---|
137 | <para>
|
---|
138 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
139 | </para>
|
---|
140 |
|
---|
141 | <screen role="root"><userinput>make install &&
|
---|
142 | rm -fv /opt/texlive/&texlive-year;/texmf-dist/doc/info/asymptote.info</userinput></screen>
|
---|
143 |
|
---|
144 | </sect2>
|
---|
145 |
|
---|
146 | <sect2 role="commands">
|
---|
147 | <title>Command Explanations</title>
|
---|
148 |
|
---|
149 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
150 | href="../../xincludes/tex-prefix.xml"/>
|
---|
151 |
|
---|
152 | <para><parameter>--libdir=/opt/texlive/&texlive-year;/texmf-dist;</parameter>:
|
---|
153 | This parameter ensures that the <filename class="directory">asymptote</filename>
|
---|
154 | directory will similarly overwrite any files installed by install-tl-unx.</para>
|
---|
155 |
|
---|
156 | <para><parameter>--enable-gc=system</parameter>: this ensures that the system
|
---|
157 | version of <filename class="libraryfile">libgc.so</filename> will be used
|
---|
158 | instead of the version shipped with this package.</para>
|
---|
159 |
|
---|
160 | <para><parameter>--with-latex= ... --with-context=</parameter>: These switches
|
---|
161 | ensure that style files and a tex file will be installed into the
|
---|
162 | <application>texlive</application> directories instead of creating a
|
---|
163 | <filename class="directory">texmf-local</filename> directory for them.</para>
|
---|
164 |
|
---|
165 | <para>
|
---|
166 | <command>rm -fv /opt/texlive/.../asymptote.info</command>:
|
---|
167 | This deletes the file installed by <application>texlive</application>.
|
---|
168 | Exceptionally, asymptote will create an <filename
|
---|
169 | class="directory">asymptote/</filename> subdirectory for its own
|
---|
170 | <filename>asymptote.info</filename> even though a possibly older
|
---|
171 | version from <xref linkend="texlive"/> is in the main
|
---|
172 | <application>texlive</application>
|
---|
173 | <filename class="directory">info/</filename> directory. Both the
|
---|
174 | new version and the existing <filename>asy-faq.info</filename>
|
---|
175 | <emphasis>will</emphasis> be found by <command>info</command>.
|
---|
176 | </para>
|
---|
177 |
|
---|
178 | </sect2>
|
---|
179 |
|
---|
180 | <sect2 role="content">
|
---|
181 | <title>Contents</title>
|
---|
182 |
|
---|
183 | <segmentedlist>
|
---|
184 | <segtitle>Installed Programs</segtitle>
|
---|
185 | <segtitle>Installed Libraries</segtitle>
|
---|
186 | <segtitle>Installed Directory</segtitle>
|
---|
187 |
|
---|
188 | <seglistitem>
|
---|
189 | <seg>
|
---|
190 | asy, xasy
|
---|
191 | </seg>
|
---|
192 | <seg>
|
---|
193 | None
|
---|
194 | </seg>
|
---|
195 | <seg>
|
---|
196 | /opt/texlive/&texlive-year;texmf-dist/asymptote,
|
---|
197 | /opt/texlive/&texlive-year;/doc/asymptote,
|
---|
198 | /opt/texlive/&texlive-year;/info/asymptote
|
---|
199 | </seg>
|
---|
200 | </seglistitem>
|
---|
201 | </segmentedlist>
|
---|
202 |
|
---|
203 | <variablelist>
|
---|
204 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
205 | <?dbfo list-presentation="list"?>
|
---|
206 | <?dbhtml list-presentation="table"?>
|
---|
207 |
|
---|
208 | <varlistentry id="asy">
|
---|
209 | <term><command>asy</command></term>
|
---|
210 | <listitem>
|
---|
211 | <para>
|
---|
212 | is a vector graphics program.
|
---|
213 | </para>
|
---|
214 | <indexterm zone="asymptote asy">
|
---|
215 | <primary sortas="b-asy">asy</primary>
|
---|
216 | </indexterm>
|
---|
217 | </listitem>
|
---|
218 | </varlistentry>
|
---|
219 |
|
---|
220 | <varlistentry id="xasy">
|
---|
221 | <term><command>xasy</command></term>
|
---|
222 | <listitem>
|
---|
223 | <para>
|
---|
224 | is a Python script providing the preliminary GUI for asy. It can be
|
---|
225 | used for final adjustments of an existing asy file.
|
---|
226 | </para>
|
---|
227 | <indexterm zone="asymptote xasy">
|
---|
228 | <primary sortas="b-xasy">xasy</primary>
|
---|
229 | </indexterm>
|
---|
230 | </listitem>
|
---|
231 | </varlistentry>
|
---|
232 |
|
---|
233 | </variablelist>
|
---|
234 |
|
---|
235 | </sect2>
|
---|
236 |
|
---|
237 | </sect1>
|
---|