在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):joeraut/latex2image-web开源软件地址(OpenSource Url):https://github.com/joeraut/latex2image-web开源编程语言(OpenSource Language):JavaScript 60.8%开源软件介绍(OpenSource Introduction):LaTeX2ImageA Node.js web application that allows LaTeX math equations to be entered and converted to PNG/JPG/SVG images. For each conversion, an isolated Docker container with a LaTeX installation is started; it compiles the generated Bootstrap and jQuery are used in the web interface, with AJAX calls made to the conversion API endpoint. Live DemoThe application is accessible at https://latex2image.joeraut.com RequirementsOperating systemI made use of Ubuntu 18.04. Other Linux distributions should work without problems. DockerDocker CE with non-root user support. latex-dockerDocker image containing the required LaTeX packages preinstalled. Pull the image:
Node.jsI made use of v10.14.2, anything newer should be fine. After cloning or downloading this project, run the following to install local dependencies from npm:
UsageTo run:
The web interface will be accessible at Enter a LaTeX equation, for example SecurityLaTeX is powerful, with the reading and writing of external files and execution of terminal commands possible. It was decided that a new isolated Docker container be launched for every conversion. The container is only able to access the local Additionally, the compilation process will be killed after 5 seconds if not complete; this is to safeguard against infinite loops and other troublesome LaTeX quirks. InternalsCommands used:
We use sharp to convert the SVG file to PNG and JPG images where required. Notes
Authors
IssuesFor any issues or bugs, please submit an issue or pull request. LicenseThis project is licensed under the MIT License - see the LICENSE file for details. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论