Skip to content

Try Metapost quickly and easily with our online sandbox application!

License

Notifications You must be signed in to change notification settings

santhoshtr/metapost-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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