santhoshtr / metapost-sandbox

Try Metapost quickly and easily with our online sandbox application!

Home Page:https://mpost.thottingal.in/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Metapost Sandbox

Try Metapost quickly and easily with our online sandbox application! View and preview your results in a user-friendly interface. Perfect for anyone wanting to experiment with Metapost without the hassle of setting up an environment. Start creating illustrations now!

Try now!

Usage

Installation

Clone the repository. Install the system dependencies:

sudo apt install wget unzip build-essential cmake texlive-metapost

Create a python virtual environment and install dependencies

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Run it:

uvicorn app.main:app

Features

  • Code editor with syntax highlighting for Metapost
  • Live preview of the SVG generated from the code. No need to manually run it
  • Logs of compiling the code from metapost is available for debugging.
  • (todo) Saving the code in browser indexdb to continue from where you stopped.

Familiarize with Metafont, MetaPost

Familiarizing with the concepts of MetaFont and MetaPost are essential. In this guide, we are not going to explain this, but will provide a list of good tutorials to use.

It is important to practice MetaPost rather than just reading the book. Use this sandbox tool for practicing.

Docker

docker build -t mpostsandbox .
docker run -d --name mpostsandboxcontainer -p 80:80 mpostsandbox

About

Try Metapost quickly and easily with our online sandbox application!

https://mpost.thottingal.in/

License:MIT License


Languages

Language:JavaScript 91.8%Language:CSS 4.1%Language:HTML 2.4%Language:Python 1.6%Language:Dockerfile 0.1%