source: pst/typesetting/asymptote.xml@ daafbc0e

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 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since daafbc0e was daafbc0e, checked in by Ken Moffat <ken@…>, 2 years ago

Update to asymptote-2.78.

  • Property mode set to 100644
File size: 9.7 KB
RevLine 
[347e59c]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
[8dfc5c3]7 <!ENTITY asymptote-download-http "&sourceforge-dl;/asymptote/asymptote-&asymptote-version;.src.tgz">
[347e59c]8 <!ENTITY asymptote-download-ftp " ">
[daafbc0e]9 <!ENTITY asymptote-md5sum "73a20de9755fe4354d077a71178238db">
10 <!ENTITY asymptote-size "15 MB">
11 <!ENTITY asymptote-buildsize "223 MB (55 MB installed,with all the dependencies which are within BLFS)">
[8965351]12 <!-- with 2.68 the j1 time was 2.5 SBU, slow enough to use a parallel build -->
[daafbc0e]13 <!ENTITY asymptote-time "1.5 SBU (using parallelism=4)">
[347e59c]14]>
15
16<sect1 id="asymptote" xreflabel="asymptote-&asymptote-version;">
17 <?dbhtml filename="asymptote.html"?>
18
19 <sect1info>
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
[47d5a9e5]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.
[347e59c]38 </para>
39
[5b2e600]40 &lfs110a_checked;
[347e59c]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
[8965351]76<!--<bridgehead renderas="sect3">Additional Downloads</bridgehead>
[fca98f3e]77 <itemizedlist spacing="compact">
78 <listitem>
79 <para>
80 Required patch:
81 <ulink url="&patch-root;/asymptote-&asymptote-version;-ghostscript_fix-1.patch"/>
82 </para>
83 </listitem>
[8965351]84 </itemizedlist>-->
[fca98f3e]85
86 <bridgehead renderas="sect3">asymptote Dependencies</bridgehead>
87
[347e59c]88 <bridgehead renderas="sect4">Required</bridgehead>
89 <para role="required">
[0e6052db]90 <xref linkend="gs"/> and
[347e59c]91 <xref linkend="texlive"/>
92 </para>
93
94 <bridgehead renderas="sect4">Recommended</bridgehead>
95 <para role="recommended">
[20201cb]96 <xref linkend="curl"/>,
[dd07d82e]97 <xref linkend="freeglut"/>,
[f527eeb]98 <xref linkend="gc"/>,
99 <xref linkend="glew"/>,
100 <xref linkend="glm"/> and
[dd07d82e]101 <xref linkend="libtirpc"/>
[347e59c]102 </para>
103
[47d5a9e5]104 <bridgehead renderas="sect4">Recommended at runtime</bridgehead>
105 <para role="recommended">
106 <xref role="runtime" linkend="dvisvgm"/>
107 </para>
108
[347e59c]109 <bridgehead renderas="sect4">Optional</bridgehead>
110 <para role="optional">
[dd07d82e]111 <xref linkend="fftw"/>,
[47d5a9e5]112 <xref linkend="gsl"/>,
[daafbc0e]113 <xref linkend="libsigsegv"/>,
114 both <xref linkend="boost"/> and
115 <ulink url="https://github.com/Tencent/rapidjson/releases/">rapidjson</ulink>
116 to use
117 <ulink url="https://microsoft.github.io/language-server-protocol/implementors/tools/">LSP</ulink>
118 which can be used with
119 <ulink url="https://asymptote.sourceforge.io/doc/Language-server-protocol.html#index-LSP/">emacs</ulink>
[347e59c]120 </para>
121
[746bac1]122 <bridgehead renderas="sect4">Optional (at runtime)</bridgehead>
[347e59c]123 <para role="optional">
[d425952]124 <xref linkend="imagemagick"/> to convert output to other formats such as
125 JPEG or to create animated GIFs,
[746bac1]126 <ulink url="https://pypi.org/project/PyQt5/">PyQt5</ulink> (not tested,
127 has a build dependency of <xref linkend="qt5"/>) to use xasy.
[347e59c]128 </para>
129
130 <para condition="html" role="usernotes">
131 User Notes: <ulink url="&blfs-wiki;/asymptote"/>
132 </para>
133 </sect2>
134
135 <sect2 role="installation">
136 <title>Installation of asymptote</title>
[e99822d]137
138<!-- Editors: for testing this, the minimal latex functionality is
139 covered by the cylinder and triangle tests in
[c9aa980]140 https://www.linuxfromscratch.org/~ken/tex-testfiles/latex-test-20190318.tar.xz
[e99822d]141 but the more interesting stuff (WebM html, svg, png, pdf) is tested in
[c9aa980]142 https://www.linuxfromscratch.org/~ken/asy-nontex-testfiles/asy-test-20200123.tar.xz
[0e9ca44]143-->
[8965351]144<!--<para>
[fca98f3e]145 First apply a patch for building with ghostscript-9.53:
146 </para>
147
[8965351]148<screen><userinput>patch -Np1 -i ../asymptote-&asymptote-version;-ghostscript_fix-1.patch</userinput></screen>-->
[fca98f3e]149
[347e59c]150 <para>
151 Install <application>asymptote</application> by running the following
152 commands:
153 </para>
154
155<screen><userinput>export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &amp;&amp;
[e5345a05]156
157./configure --prefix=/opt/texlive/&texlive-year; \
158 --bindir=/opt/texlive/&texlive-year;/bin/$TEXARCH \
159 --datarootdir=/opt/texlive/&texlive-year;/texmf-dist \
160 --infodir=/opt/texlive/&texlive-year;/texmf-dist/doc/info \
161 --libdir=/opt/texlive/&texlive-year;/texmf-dist \
162 --mandir=/opt/texlive/&texlive-year;/texmf-dist/doc/man \
[daafbc0e]163 --disable-lsp \
[e5345a05]164 --enable-gc=system \
165 --with-latex=/opt/texlive/&texlive-year;/texmf-dist/tex/latex \
166 --with-context=/opt/texlive/&texlive-year;/texmf-dist/tex/context/third &amp;&amp;
167
[347e59c]168make</userinput></screen>
169
170 <para>
171 To test the results, issue: <command>make check</command>.
172 </para>
173
174 <para>
175 Now, as the <systemitem class="username">root</systemitem> user:
176 </para>
177
[0841e371]178<screen role="root"><userinput>make install</userinput></screen>
[347e59c]179
180 </sect2>
181
182 <sect2 role="commands">
183 <title>Command Explanations</title>
184
185 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
186 href="../../xincludes/tex-prefix.xml"/>
187
[fa3edfef]188 <para>
189 <parameter>--libdir=/opt/texlive/&texlive-year;/texmf-dist;</parameter>:
190 This parameter ensures that the <filename
191 class="directory">asymptote</filename> directory will similarly
192 overwrite any files installed by install-tl-unx.
193 </para>
194
[daafbc0e]195 <para>
196 <parameter>--disable-lsp</parameter>: The Language Server Protocol is
197 enabled by default, with several third-party sources included, but it
198 does not build unless boost and repidjson have been installed.
199 </para>
200
[fa3edfef]201 <para>
202 <parameter>--enable-gc=system</parameter>: this ensures that the system
203 version of <filename class="libraryfile">libgc.so</filename> will be used
204 instead of the version shipped with this package.
205 </para>
206
207 <para>
208 <parameter>--with-latex= ... --with-context=</parameter>: These switches
209 ensure that style files and a tex file will be installed into the
210 <application>texlive</application> directories instead of creating a
211 <filename class="directory">texmf-local</filename> directory for them.
212 </para>
[110481b]213
[0841e371]214 <!-- commenting for now: 2.44 installs asymptote.info in both places
215 so the old version no longer remains
216
[f95867c]217 <para>
218 <command>rm -fv /opt/texlive/.../asymptote.info</command>:
219 This deletes the file installed by <application>texlive</application>.
220 Exceptionally, asymptote will create an <filename
221 class="directory">asymptote/</filename> subdirectory for its own
222 <filename>asymptote.info</filename> even though a possibly older
223 version from <xref linkend="texlive"/> is in the main
224 <application>texlive</application>
225 <filename class="directory">info/</filename> directory. Both the
226 new version and the existing <filename>asy-faq.info</filename>
227 <emphasis>will</emphasis> be found by <command>info</command>.
[0841e371]228 </para>-->
[f95867c]229
[347e59c]230 </sect2>
231
232 <sect2 role="content">
233 <title>Contents</title>
234
235 <segmentedlist>
236 <segtitle>Installed Programs</segtitle>
237 <segtitle>Installed Libraries</segtitle>
238 <segtitle>Installed Directory</segtitle>
239
240 <seglistitem>
241 <seg>
242 asy, xasy
243 </seg>
244 <seg>
245 None
246 </seg>
247 <seg>
[a06d59d]248 /opt/texlive/&texlive-year;texmf-dist/asymptote,
249 /opt/texlive/&texlive-year;/doc/asymptote,
[347e59c]250 /opt/texlive/&texlive-year;/info/asymptote
251 </seg>
252 </seglistitem>
253 </segmentedlist>
254
255 <variablelist>
256 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
257 <?dbfo list-presentation="list"?>
258 <?dbhtml list-presentation="table"?>
259
260 <varlistentry id="asy">
261 <term><command>asy</command></term>
262 <listitem>
263 <para>
[4c24eb0a]264 is a vector graphics program
[347e59c]265 </para>
266 <indexterm zone="asymptote asy">
267 <primary sortas="b-asy">asy</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271
272 <varlistentry id="xasy">
273 <term><command>xasy</command></term>
274 <listitem>
275 <para>
[4c24eb0a]276 is a Python3 script providing a Qt5 GUI for asy
[347e59c]277 </para>
278 <indexterm zone="asymptote xasy">
279 <primary sortas="b-xasy">xasy</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
284 </variablelist>
285
286 </sect2>
287
288</sect1>
Note: See TracBrowser for help on using the repository browser.