RepositoryRacketDKDenmark
soegaard

soegaard/metapict

A graphics library for producing Racket picts in a MetaPost/TikZ style.

71stars
13forks
9issues
2views

MetaPict

A graphics library for producing beautiful pictures using Racket. MetaPict programs mimic the MetaPost/TikZ style known in LaTeX circles.

The documentation is available here:

https://soegaard.github.io/docs/metapict/metapict.html

Please report any errors - including grammatical and spelling errors.

I'd like to have a collection of user-contributed examples, so consider sharing any MetaPict programs you write.

Installation

The easiest way to install MetaPict is to use the Package Manager in DrRacket. After opening the Package Manager (from the "File" menu) click the "Available from Catalog" tab. That tab lists all packages available from pkgs.racket-lang.org.

Now enter metapict in the filter. The MetaPict package is now easy to spot. Click the line with metapict and then click the "Install" button.

You will see that the package manager downloads metapict, compiles it, and, generates the documentation. The last bit - generating the documentation - takes a while for MetaPict due to the large amount of images used in the examples.

The documentation builder will give a few warnings similar to:

raco setup: WARNING: undefined tag in <pkgs>/metapict/metapict/scribblings/metapict.scrbl:
raco setup:  ((lib "metapict/main.rkt") --)
...
raco setup:  ((lib "metapict/main.rkt") above)
...

These are harmless - they mean that I need improve the documentation at some point.

Any other errors, I'd like to hear about.

/soegaard

Examples

Old note (is this still needed?):

Run the examples directly in DrRacket, but do this first:

  • In the menu "Language" choose the item "Choose Language"
  • Click "Show Details"
  • Remove the tick in "Populate Compiled Directories"

Similar Projects

Discover other similar projects and AI models.

RepositoryPowerShell
Foadsf/vintage-latex

Twenty LuaLaTeX and MetaPost (fiziko) examples of the old scientific-paper aesthetic: engraved plates, star charts, computed log tables, knots, telescopes

456
Sep 9, 2026
RepositoryRacket
racket/racket

The Racket repository

5.2k
Nov 26, 2026
RepositoryRacket
racket/rhombus

Rhombus programming language

620
Dec 2, 2026
RepositoryRacket
racket/drracket

DrRacket, IDE for Racket

515
Nov 27, 2026
RepositoryRacket
jeapostrophe/racket-langserver

No description provided.

348
Nov 29, 2026
RepositoryRacket
racket/scribble

No description provided.

250
Nov 21, 2026
RepositoryRacket
sicp-lang/sicp

A SICP language for Racket.

197
Jun 17, 2024
RepositoryRacket
racket/racket7

No description provided.

165
Feb 26, 2018
RepositoryRacket
tonyg/syndicate

syn·di·cate: a language for interactive programs

164
Dec 18, 2025