Giter VIP home page Giter VIP logo

drawing-with-metapost's Introduction

Drawing-with-Metapost

This project provides a document that discusses how to draw technical diagrams with John Hobby's Metapost language. It includes over 200 illustrations created with Metapost, complete with source code as inspiration and examples. The intended level is for intermediate to advanced users rather than complete beginners. For introductions, tutorials, and other articles about Metapost, see http://www.tug.org/metapost.html

Start with "Drawing-with-Metapost.pdf" in the top directory.

The src directory contains

  • the TeX source for the main document
  • the style file used for marking up Metapost source code
  • the Metapost source for each illustration used in the main document
  • the corresponding PDF file created from the MP source

You might like to read the main document first, but you might also like to browse through the PDFs in the src directory, and when you find one that is interesting, have a look at the corresponding MP source file. There is a one-to-one match between the PDF names and the MP source names, so "apollonius.pdf" is created from "apollonius.mp". The src directory contains a few drawings that are not (yet) included in the main document.

To update the main PDF document I follow these steps

  • build any new or updated Metapost source files with lualatex to create PDFs in the src directory
  • build the main tex file with lualatex -output-directory=.. -recorder Drawing-with-Metapost
  • run a Python script to read the .fls and git add all the files used
  • git commit and push

Toby Thurston -- 14 Apr 2023

Copyright (c) 2023 by Toby Thurston. This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later (the latest version is presently available at http://www.opencontent.org/openpub/).

drawing-with-metapost's People

Contributors

thruston avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.