janosh.github.io/diagrams allows searching, sorting, opening in Overleaf and downloading figures (PDF/SVG/PNG) from this collection.
Have a TikZ/CeTZ diagram you'd like to share? Submit a PR with a .tex or .typ and a corresponding metadata .yml file in the assets/ directory and add yourself to the citation.cff file.
Files in /scripts render and convert the .typ and .tex files in /assets to various formats:
- low + high-res PNG
- SVG
To run the scripts requires the following dependencies:
pdf-compressor(pip install pdf-compressor)gs(GhostScript) (optional, worse compression but needs no API key so less setup thanpdf-compressor)pdf2svg(brew install pdf2svg)convert(part of ImageMagick)pngquant(brew install pngquant)zopflipng(brew install zopfli)
To run pdf-compressor directly or to use it as part of the render-(typst|tikz).py pipeline, you need a free public API key from https://developer.ilovepdf.com. Pass it to pdf-compressor with:
pdf-compressor --set-api-key project_public_7c854a9db0...You can cite the Zenodo record using the following BibTeX entry:
@software{riebesell_diagrams_2020,
title = {Collection of scientific diagrams},
author = {Riebesell, Janosh and Bringuier, Stefan},
date = {2020-08-09},
year = {2020},
doi = {10.5281/zenodo.7486911},
url = {https://github.com/janosh/diagrams},
note = {10.5281/zenodo.7486911 - https://github.com/janosh/diagrams},
version = {0.2.0},
urldate = {2023-01-01}, % optional, replace with your date of access
}































































































































