source: pst/typesetting/asymptote.xml@ e4fec56b

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since e4fec56b was 746bac1, checked in by Ken Moffat <ken@…>, 4 years ago

Asymptote-2.65

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22899 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.3 KB
Line 
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-dl;/asymptote/asymptote-&asymptote-version;.src.tgz">
8 <!ENTITY asymptote-download-ftp " ">
9 <!ENTITY asymptote-md5sum "97b80ad03dfbcad7cae0fdb2c666fdb5">
10 <!ENTITY asymptote-size "4.5 MB">
11 <!ENTITY asymptote-buildsize "198 MB (with all the dependencies which are within BLFS)">
12 <!ENTITY asymptote-time "2.2 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. As
36 well as EPS, PDF and PNG output it can produce WebGL 3D HTML rendering
37 and (using <application>dvisvgm</application>) SVG output.
38 </para>
39
40 &lfs91_checked;
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>
46 Download (HTTP): <ulink url="&asymptote-download-http;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download (FTP): <ulink url="&asymptote-download-ftp;"/>
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download MD5 sum: &asymptote-md5sum;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download size: &asymptote-size;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated disk space required: &asymptote-buildsize;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated build time: &asymptote-time;
72 </para>
73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect4">Required</bridgehead>
77 <para role="required">
78 <xref linkend="gs"/> and
79 <xref linkend="texlive"/>
80 </para>
81
82 <bridgehead renderas="sect4">Recommended</bridgehead>
83 <para role="recommended">
84 <xref linkend="freeglut"/>,
85 <xref linkend="gc"/>,
86 <xref linkend="glew"/>,
87 <xref linkend="glm"/> and
88 <xref linkend="libtirpc"/>
89 </para>
90
91 <bridgehead renderas="sect4">Recommended at runtime</bridgehead>
92 <para role="recommended">
93 <xref role="runtime" linkend="dvisvgm"/>
94 </para>
95
96 <bridgehead renderas="sect4">Optional</bridgehead>
97 <para role="optional">
98 <xref linkend="fftw"/>,
99 <xref linkend="gsl"/>,
100 <xref linkend="libsigsegv"/>
101
102 </para>
103
104 <bridgehead renderas="sect4">Optional (at runtime)</bridgehead>
105 <para role="optional">
106 <xref linkend="imagemagick"/> to create animated GIFs,
107 <ulink url="https://pypi.org/project/PyQt5/">PyQt5</ulink> (not tested,
108 has a build dependency of <xref linkend="qt5"/>) to use xasy.
109 </para>
110
111 <para condition="html" role="usernotes">
112 User Notes: <ulink url="&blfs-wiki;/asymptote"/>
113 </para>
114 </sect2>
115
116 <sect2 role="installation">
117 <title>Installation of asymptote</title>
118
119<!-- Editors: for testing this, the minimal latex functionality is
120 covered by the cylinder and triangle tests in
121 http://www.linuxfromscratch.org/~ken/tex-testfiles/latex-test-20190318.tar.xz
122 but the more interesting stuff (WebM html, svg, png, pdf) is tested in
123 http://www.linuxfromscratch.org/~ken/asy-nontex-testfiles/asy-test-20200123.tar.xz
124-->
125 <para>
126 Install <application>asymptote</application> by running the following
127 commands:
128 </para>
129
130<screen><userinput>export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &amp;&amp;
131
132./configure --prefix=/opt/texlive/&texlive-year; \
133 --bindir=/opt/texlive/&texlive-year;/bin/$TEXARCH \
134 --datarootdir=/opt/texlive/&texlive-year;/texmf-dist \
135 --infodir=/opt/texlive/&texlive-year;/texmf-dist/doc/info \
136 --libdir=/opt/texlive/&texlive-year;/texmf-dist \
137 --mandir=/opt/texlive/&texlive-year;/texmf-dist/doc/man \
138 --enable-gc=system \
139 --with-latex=/opt/texlive/&texlive-year;/texmf-dist/tex/latex \
140 --with-context=/opt/texlive/&texlive-year;/texmf-dist/tex/context/third &amp;&amp;
141
142make</userinput></screen>
143
144 <para>
145 To test the results, issue: <command>make check</command>.
146 </para>
147
148 <para>
149 Now, as the <systemitem class="username">root</systemitem> user:
150 </para>
151
152<screen role="root"><userinput>make install</userinput></screen>
153
154 </sect2>
155
156 <sect2 role="commands">
157 <title>Command Explanations</title>
158
159 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
160 href="../../xincludes/tex-prefix.xml"/>
161
162 <para>
163 <parameter>--libdir=/opt/texlive/&texlive-year;/texmf-dist;</parameter>:
164 This parameter ensures that the <filename
165 class="directory">asymptote</filename> directory will similarly
166 overwrite any files installed by install-tl-unx.
167 </para>
168
169 <para>
170 <parameter>--enable-gc=system</parameter>: this ensures that the system
171 version of <filename class="libraryfile">libgc.so</filename> will be used
172 instead of the version shipped with this package.
173 </para>
174
175 <para>
176 <parameter>--with-latex= ... --with-context=</parameter>: These switches
177 ensure that style files and a tex file will be installed into the
178 <application>texlive</application> directories instead of creating a
179 <filename class="directory">texmf-local</filename> directory for them.
180 </para>
181
182 <!-- commenting for now: 2.44 installs asymptote.info in both places
183 so the old version no longer remains
184
185 <para>
186 <command>rm -fv /opt/texlive/.../asymptote.info</command>:
187 This deletes the file installed by <application>texlive</application>.
188 Exceptionally, asymptote will create an <filename
189 class="directory">asymptote/</filename> subdirectory for its own
190 <filename>asymptote.info</filename> even though a possibly older
191 version from <xref linkend="texlive"/> is in the main
192 <application>texlive</application>
193 <filename class="directory">info/</filename> directory. Both the
194 new version and the existing <filename>asy-faq.info</filename>
195 <emphasis>will</emphasis> be found by <command>info</command>.
196 </para>-->
197
198 </sect2>
199
200 <sect2 role="content">
201 <title>Contents</title>
202
203 <segmentedlist>
204 <segtitle>Installed Programs</segtitle>
205 <segtitle>Installed Libraries</segtitle>
206 <segtitle>Installed Directory</segtitle>
207
208 <seglistitem>
209 <seg>
210 asy, xasy
211 </seg>
212 <seg>
213 None
214 </seg>
215 <seg>
216 /opt/texlive/&texlive-year;texmf-dist/asymptote,
217 /opt/texlive/&texlive-year;/doc/asymptote,
218 /opt/texlive/&texlive-year;/info/asymptote
219 </seg>
220 </seglistitem>
221 </segmentedlist>
222
223 <variablelist>
224 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
225 <?dbfo list-presentation="list"?>
226 <?dbhtml list-presentation="table"?>
227
228 <varlistentry id="asy">
229 <term><command>asy</command></term>
230 <listitem>
231 <para>
232 is a vector graphics program.
233 </para>
234 <indexterm zone="asymptote asy">
235 <primary sortas="b-asy">asy</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="xasy">
241 <term><command>xasy</command></term>
242 <listitem>
243 <para>
244 is a Python3 script providing a Qt5 GUI for asy.
245 </para>
246 <indexterm zone="asymptote xasy">
247 <primary sortas="b-xasy">xasy</primary>
248 </indexterm>
249 </listitem>
250 </varlistentry>
251
252 </variablelist>
253
254 </sect2>
255
256</sect1>
Note: See TracBrowser for help on using the repository browser.