asymptote-3.14

Introduction to asymptote

Asymptote is a powerful descriptive vector graphics language that provides a natural coordinate-based framework for technical drawing. Labels and equations can be typeset with LaTeX. As well as EPS, PDF, and PNG output, it can produce WebGL 3D HTML rendering and (using dvisvgm) SVG output.

[Note]

Note

This package is known to build and work properly using an LFS 13.1 platform.

Package Information

  • Download (HTTP): https://downloads.sourceforge.net/asymptote/asymptote-3.14.src.tgz

  • Download MD5 sum: 158921966b8be1049e933b5154774c66

  • Download size: 27 MB

  • Estimated disk space required: 338 MB (55 MB installed after overwriting files in $TEXLIVE_PREFIX/texmf-dist/, with all the dependencies which are in BLFS)

  • Estimated build time: 0.9 SBU (using parallelism=4)

asymptote Dependencies

Required

ghostscript-10.07.1 and texlive-20260301

Recommended

Recommended at runtime

Optional

fftw-3.3.11, gsl-2.8, libsigsegv-2.15, Vulkan-Loader-1.4.357.0, rapidjson to use LSP which can be used with emacs, click, and eigen

Optional (at runtime)

ImageMagick-7.1.2-13 to convert output to other formats such as JPEG or to create animated GIFs, PyQt5 (not tested, has a build dependency of Qt5) to use xasy

Editor Notes: https://wiki.linuxfromscratch.org/blfs/wiki/asymptote

Installation of asymptote

[Note]

Note

Certain 3D PDF scripts may not work when invoked from pdflatex on some zen+ amdgpu APU machines.

First, fix a build error when both GL and Vulkan are disabled:

sed -i "/SHIMLIB.*asydir/d" Makefile.in

Install asymptote by running the following commands:

export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &&

./configure --prefix=$TEXLIVE_PREFIX                          \
            --bindir=$TEXLIVE_PREFIX/bin/$TEXARCH             \
            --datarootdir=$TEXLIVE_PREFIX/texmf-dist          \
            --infodir=$TEXLIVE_PREFIX/texmf-dist/doc/info     \
            --libdir=$TEXLIVE_PREFIX/texmf-dist               \
            --mandir=$TEXLIVE_PREFIX/texmf-dist/doc/man       \
            --disable-lsp                                     \
            --disable-vulkan                                  \
            --disable-gl                                      \
            --with-latex=$TEXLIVE_PREFIX/texmf-dist/tex/latex \
            --with-context=$TEXLIVE_PREFIX/texmf-dist/tex/context/third &&

make

To test the results, issue: make check.

Now, as the root user:

make install

Command Explanations

--prefix=, --bindir=, --datarootdir=, and other dir switches: these switches ensure that the files installed from source will overwrite any corresponding files previously installed by install-tl-unx so that the alternative methods of installing texlive are consistent.

--libdir=$TEXLIVE_PREFIX/texmf-dist: This parameter ensures that the asymptote directory will similarly overwrite any files installed by install-tl-unx.

--disable-lsp: The Language Server Protocol is enabled by default, with several third-party sources included, but it does not build unless boost and rapidjson have been installed.

--disable-vulkan --disable-gl: Building Vulkan or GL backends require the GLFW package, and several other external libraries not in BLFS.

--disable-lsp: The Language Server Protocol is enabled by default, with several third-party sources included, but it does not build unless boost and rapidjson have been installed.

--disable-gc: There does not seem to be a simple way to build asymptote against the system GC. If you don't want to use the shipped copy of GC, you can use this option to completely disable garbage collection, which may have some impact on performance.

--with-latex= --with-context=: These switches ensure that style files and a tex file will be installed into the texlive directories instead of creating a texmf-local directory for them.

Contents

Installed Programs: asy and xasy
Installed Libraries: None
Installed Directory: $TEXLIVE_PREFIX/texmf-dist/asymptote, $TEXLIVE_PREFIX/doc/asymptote, and $TEXLIVE_PREFIX/info/asymptote

Short Descriptions

asy

is a vector graphics program

xasy

is a Python3 script providing a Qt5 GUI for asy