source: pst/typesetting/asymptote.xml@ ab4fdfc

12.1 ken/TL2024 lazarus plabs/newcss rahul/power-profiles-daemon trunk xry111/llvm18
Last change on this file since ab4fdfc was ab4fdfc, checked in by Pierre Labastie <pierre.labastie@…>, 4 months ago

Change all xml decl to encoding=utf-8

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