source: pst/typesetting/asymptote.xml@ 6e095ff

ken/TL2024 lazarus trunk
Last change on this file since 6e095ff was b7ef5a1, checked in by Ken Moffat <zarniwhoop@…>, 3 months ago

Update to asymptote-2.88.

  • Property mode set to 100644
File size: 10.3 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[347e59c]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 " ">
[b7ef5a1]9 <!ENTITY asymptote-md5sum "57c7effe845eb624f48a6cc750aaa302">
[9099566]10 <!ENTITY asymptote-size "15 MB">
[b7ef5a1]11 <!-- for asymptote-2.88 on top of TL2023, 75 MB for program,
12 about 5 MB for for bigger docs, an extra asy file, the PDF man page was not updated.
13 For a DESTDIR this would be 414 MB and 82 MB. -->
14 <!ENTITY asymptote-buildsize "412 MB (80 MB installed after overwriting files in $TEXLIVE_PREFIX/texmf-dist/, with all the dependencies which are in BLFS)">
15 <!ENTITY asymptote-time "1.5 SBU (using parallelism=4)">
[347e59c]16]>
17
18<sect1 id="asymptote" xreflabel="asymptote-&asymptote-version;">
19 <?dbhtml filename="asymptote.html"?>
20
21
22 <title>asymptote-&asymptote-version;</title>
23
24 <indexterm zone="asymptote">
25 <primary sortas="a-asymptote">asymptote</primary>
26 </indexterm>
27
28 <sect2 role="package">
29 <title>Introduction to asymptote</title>
30
31 <para>
32 <application>Asymptote</application> is a powerful descriptive vector
33 graphics language that provides a natural coordinate-based framework for
[47d5a9e5]34 technical drawing. Labels and equations can be typeset with LaTeX. As
35 well as EPS, PDF and PNG output it can produce WebGL 3D HTML rendering
36 and (using <application>dvisvgm</application>) SVG output.
[347e59c]37 </para>
38
[1d4d4a96]39 &lfs121_checked;
[347e59c]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
[b7ef5a1]75<!--<bridgehead renderas="sect3">Additional Downloads</bridgehead>
[fca98f3e]76 <itemizedlist spacing="compact">
77 <listitem>
78 <para>
79 Required patch:
[ccd206f]80 <ulink url="&patch-root;/asymptote-&asymptote-version;-build_fix-1.patch"/>
[fca98f3e]81 </para>
82 </listitem>
[b7ef5a1]83 </itemizedlist>-->
[fca98f3e]84
85 <bridgehead renderas="sect3">asymptote Dependencies</bridgehead>
86
[347e59c]87 <bridgehead renderas="sect4">Required</bridgehead>
88 <para role="required">
[0e6052db]89 <xref linkend="gs"/> and
[347e59c]90 <xref linkend="texlive"/>
91 </para>
92
93 <bridgehead renderas="sect4">Recommended</bridgehead>
94 <para role="recommended">
[20201cb]95 <xref linkend="curl"/>,
[dd07d82e]96 <xref linkend="freeglut"/>,
[f527eeb]97 <xref linkend="gc"/>,
98 <xref linkend="glew"/>,
99 <xref linkend="glm"/> and
[dd07d82e]100 <xref linkend="libtirpc"/>
[347e59c]101 </para>
102
[47d5a9e5]103 <bridgehead renderas="sect4">Recommended at runtime</bridgehead>
104 <para role="recommended">
[9099566]105 <xref role="runtime" linkend="dvisvgm"/> to allow svg output
[b7ef5a1]106 </para>
[47d5a9e5]107
[347e59c]108 <bridgehead renderas="sect4">Optional</bridgehead>
109 <para role="optional">
[dd07d82e]110 <xref linkend="fftw"/>,
[47d5a9e5]111 <xref linkend="gsl"/>,
[daafbc0e]112 <xref linkend="libsigsegv"/>,
113 both <xref linkend="boost"/> and
114 <ulink url="https://github.com/Tencent/rapidjson/releases/">rapidjson</ulink>
115 to use
116 <ulink url="https://microsoft.github.io/language-server-protocol/implementors/tools/">LSP</ulink>
117 which can be used with
[f57ea40]118 <ulink url="https://asymptote.sourceforge.io/doc/Language-server-protocol.html#index-LSP/">emacs</ulink>,
119 and <ulink url="https://eigen.tuxfamily.org/">eigen</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,
[b7ef5a1]126 <!-- dependency is in GUI/xasy.py -->
[746bac1]127 <ulink url="https://pypi.org/project/PyQt5/">PyQt5</ulink> (not tested,
[b3867c5]128 has a build dependency of &qt5-deps;) to use xasy.
[347e59c]129 </para>
130
131 <para condition="html" role="usernotes">
[42ddc30]132 Editor Notes: <ulink url="&blfs-wiki;/asymptote"/>
[347e59c]133 </para>
134 </sect2>
135
136 <sect2 role="installation">
137 <title>Installation of asymptote</title>
[e99822d]138
[9099566]139 <note>
140 <!-- This is specifically about my cylinder test - it has been
141 broken twice, one time the fix involved changing the script,
142 the second was blamed on the low-end hardware (radeon 3400G).
[b7ef5a1]143 I don't understand the commands of asy so I will not
[9099566]144 spend time bisecting it. Ken -->
145 <para>
146 Certain 3D PDF scripts may not work when invoked from pdflatex
147 on some zen+ amdgpu APU machines.
148 </para>
149 </note>
150
[e99822d]151<!-- Editors: for testing this, the minimal latex functionality is
152 covered by the cylinder and triangle tests in
[5f29a21]153 https://www.linuxfromscratch.org/~ken/tex-testfiles/latex-test-20220322.tar.xz
[e99822d]154 but the more interesting stuff (WebM html, svg, png, pdf) is tested in
[5f29a21]155 https://www.linuxfromscratch.org/~ken/asy-nontex-testfiles/asy-test-20200809.tar.xz
[0e9ca44]156-->
[b7ef5a1]157<!--<para>
[ccd206f]158 First apply a patch to fix building without the Language Server Protocol :
[fca98f3e]159 </para>
160
[b7ef5a1]161<screen><userinput>patch -Np1 -i ../asymptote-&asymptote-version;-build_fix-1.patch</userinput></screen>-->
[fca98f3e]162
[347e59c]163 <para>
164 Install <application>asymptote</application> by running the following
165 commands:
166 </para>
167
168<screen><userinput>export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &amp;&amp;
[e5345a05]169
[ed3707e]170./configure --prefix=$TEXLIVE_PREFIX \
171 --bindir=$TEXLIVE_PREFIX/bin/$TEXARCH \
172 --datarootdir=$TEXLIVE_PREFIX/texmf-dist \
173 --infodir=$TEXLIVE_PREFIX/texmf-dist/doc/info \
174 --libdir=$TEXLIVE_PREFIX/texmf-dist \
175 --mandir=$TEXLIVE_PREFIX/texmf-dist/doc/man \
176 --disable-lsp \
177 --enable-gc=system \
178 --with-latex=$TEXLIVE_PREFIX/texmf-dist/tex/latex \
179 --with-context=$TEXLIVE_PREFIX/texmf-dist/tex/context/third &amp;&amp;
[e5345a05]180
[347e59c]181make</userinput></screen>
182
183 <para>
184 To test the results, issue: <command>make check</command>.
185 </para>
186
187 <para>
188 Now, as the <systemitem class="username">root</systemitem> user:
189 </para>
190
[0841e371]191<screen role="root"><userinput>make install</userinput></screen>
[347e59c]192
193 </sect2>
194
195 <sect2 role="commands">
196 <title>Command Explanations</title>
197
198 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
199 href="../../xincludes/tex-prefix.xml"/>
200
[fa3edfef]201 <para>
[875b3b57]202 <parameter>--libdir=$TEXLIVE_PREFIX/texmf-dist</parameter>:
[fa3edfef]203 This parameter ensures that the <filename
204 class="directory">asymptote</filename> directory will similarly
205 overwrite any files installed by install-tl-unx.
206 </para>
207
[daafbc0e]208 <para>
209 <parameter>--disable-lsp</parameter>: The Language Server Protocol is
210 enabled by default, with several third-party sources included, but it
211 does not build unless boost and repidjson have been installed.
212 </para>
213
[fa3edfef]214 <para>
215 <parameter>--enable-gc=system</parameter>: this ensures that the system
216 version of <filename class="libraryfile">libgc.so</filename> will be used
217 instead of the version shipped with this package.
218 </para>
219
220 <para>
[875b3b57]221 <parameter>--with-latex=</parameter>
222 <parameter>--with-context=</parameter>: These switches
[fa3edfef]223 ensure that style files and a tex file will be installed into the
224 <application>texlive</application> directories instead of creating a
225 <filename class="directory">texmf-local</filename> directory for them.
226 </para>
[110481b]227
[0841e371]228 <!-- commenting for now: 2.44 installs asymptote.info in both places
229 so the old version no longer remains
230
[f95867c]231 <para>
232 <command>rm -fv /opt/texlive/.../asymptote.info</command>:
233 This deletes the file installed by <application>texlive</application>.
234 Exceptionally, asymptote will create an <filename
235 class="directory">asymptote/</filename> subdirectory for its own
236 <filename>asymptote.info</filename> even though a possibly older
237 version from <xref linkend="texlive"/> is in the main
238 <application>texlive</application>
239 <filename class="directory">info/</filename> directory. Both the
240 new version and the existing <filename>asy-faq.info</filename>
241 <emphasis>will</emphasis> be found by <command>info</command>.
[0841e371]242 </para>-->
[f95867c]243
[347e59c]244 </sect2>
245
246 <sect2 role="content">
247 <title>Contents</title>
248
249 <segmentedlist>
250 <segtitle>Installed Programs</segtitle>
251 <segtitle>Installed Libraries</segtitle>
252 <segtitle>Installed Directory</segtitle>
253
254 <seglistitem>
255 <seg>
256 asy, xasy
257 </seg>
258 <seg>
259 None
260 </seg>
261 <seg>
[ed3707e]262 $TEXLIVE_PREFIX/texmf-dist/asymptote,
263 $TEXLIVE_PREFIX/doc/asymptote,
264 $TEXLIVE_PREFIX/info/asymptote
[347e59c]265 </seg>
266 </seglistitem>
267 </segmentedlist>
268
269 <variablelist>
270 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
271 <?dbfo list-presentation="list"?>
272 <?dbhtml list-presentation="table"?>
273
274 <varlistentry id="asy">
275 <term><command>asy</command></term>
276 <listitem>
277 <para>
[4c24eb0a]278 is a vector graphics program
[347e59c]279 </para>
280 <indexterm zone="asymptote asy">
281 <primary sortas="b-asy">asy</primary>
282 </indexterm>
283 </listitem>
284 </varlistentry>
285
286 <varlistentry id="xasy">
287 <term><command>xasy</command></term>
288 <listitem>
289 <para>
[4c24eb0a]290 is a Python3 script providing a Qt5 GUI for asy
[347e59c]291 </para>
292 <indexterm zone="asymptote xasy">
293 <primary sortas="b-xasy">xasy</primary>
294 </indexterm>
295 </listitem>
296 </varlistentry>
297
298 </variablelist>
299
300 </sect2>
301
302</sect1>
Note: See TracBrowser for help on using the repository browser.