Skip to content

Getting started

Koalakoker edited this page Aug 24, 2021 · 2 revisions

Before to use the Connector library is necessary to install the Asymptote compiler. Follow the instruction described in the Asymptote website at this link. It is required to install the LATEX environment as mentioned in the Asymptote installation documentation. It is also suggested to install Node.JS (link) to execute the script watch.js that is able to generate automatically the output of the .asy file you are working every time you modify it. Finally, it is also kindly suggested to install Visual Studio Code (link) and some of its fantastic extensions to support Asymptote and LATEX languages. Download and unpack the Connector library in a working folder of your file system, take a look at the examples .asy file that are provided to take inspiration. Create a newFile.asy with your code and compile it with the command line asy newFile.asy. The compiled .pdf file will be created in the current folder. Or use node watch.js newFile.asy for the automatic generation after each file modification. The compiled .pdf file will be created in the generated folder in this case. It is possible to produce a .png file adding the line settings.outformat="png"; to your code or replacing the line settings.outformat="pdf" with "png" if it is already present. It is also kindly suggested to learn the Asymptote language to be familiar with the Connector library and to use it at the best. If you want to collaborate with the Connector project to add other symbols, for the internationalization of the documentation, to fix or report some bugs, to request other features, or for any other kind of collaborations, please let me know at koalakoker@gmail.com.

Clone this wiki locally