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!
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
- 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.
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.
- The MetaFont book by Knuth is the ultimate resource for learning MetaFont concepts. There are ebook versions available in internet, but they don't have illustrations. It is recommended to have a printed copy of this book.
- John D. Hobby. A METAFONT-like System with PostScript Output. TUGboat, 10(4), 1989.
- John D. Hobby. METAPOST — A User’s Manual, 2008.
- Learning METAPOST by Doing
- MetaPost for Beginners
It is important to practice MetaPost rather than just reading the book. Use this sandbox tool for practicing.
docker build -t mpostsandbox .
docker run -d --name mpostsandboxcontainer -p 80:80 mpostsandbox