Skip to main content

plasTeX dependency graphs

This is a plasTeX plugin allowing to build dependency graphs.

Needs graphviz and its dev libraries. If you have a user-friendly OS, it is as simple as sudo apt install graphviz libgraphviz-dev. See https://pygraphviz.github.io/documentation/stable/install.html otherwise.

You can use this package with plasTeX using \usepackage{depgraph}. Note that the Lean blueprint package automatically loads this packages and transmit options.

Options

When loading the package inside the tex file, you can give the following arguments:

  • title: the title of the dependency graph. The default value is Dependencies.
  • dep_by: optional level for dependency graph generation, for instance chapter or part. The default value is to generate one graph for the whole document
  • thms: optional list of theorem types to include into the report, separated by +. The default value is: definition+lemma+proposition+theorem+corollary
  • nonreducedgraph: keep all edges in the dependency, even transitively redundant ones.
  • tpl: template file for dependency graph, relative to the current directory

For instance you could write

\usepackage[thms=dfn+lem+prop+thm+cor]{depgraph}

if you like short environment names.

This package will also consider optional information contained in the document userdata dictionary. Such information could be added by other packages who want to influence the dependency graph. For instance the Lean blueprint plugin does that.

  • document.userdata['dep_graph']['shapes'] can be a dictionary whose keys are node kinds as strings and whose values are strings descripting graphviz shapes (see https://graphviz.org/doc/info/shapes.html). By default, everything uses an ellipse except definition which uses a box.

  • document.userdata['dep_graph']['colorizer'] can be a function taking as input a plasTeX node and outputting a CSS color for the boundary of graph nodes.

  • document.userdata['dep_graph']['fillcolorizer'] can be a function taking as input a plasTeX node and outputting a CSS color for the interior of graph nodes.

  • document.userdata['dep_graph']['stylerizer'] can be a function taking as input a plasTeX node and outputting a graphviz style (see https://graphviz.org/docs/attr-types/style/).

  • document.userdata['dep_graph']['legend'] can be a list whose entries are pairs made of a visual description and an explanation. The default value is: [('Boxes', 'definitions'), ('Ellipses', 'theorems and lemmas')] Additional entries can also refer to colors.

  • document.userdata['dep_graph']['extra_modal_links'] can be a list of Jinja2 templates used to render extra links at the bottom of the modal appearing when clicking on graph nodes. The default value is an empty list.

Metadata

Release files for plastexdepgraph 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plastexdepgraph 0.0.5
File Size Uploaded Provenance Actions
plastexdepgraph-0.0.5.tar.gz 653.5 kB Without provenance Details for plastexdepgraph-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for plastexdepgraph 0.0.5
File Interpreter ABI Platform Actions
plastexdepgraph-0.0.5-py3-none-any.whl Python 3 none any Details for plastexdepgraph-0.0.5-py3-none-any.whl

Total release size: 1.3 MB

Release files / plastexdepgraph-0.0.5.tar.gz

Download URL plastexdepgraph-0.0.5.tar.gz
Size 653.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7cb949d44c1125e5a0578a9f7055ee2577946366bf20e8798f54ce7090ee7c6d
BLAKE2b-256 checksum
How to use checksums
8b2e23bbe63a9f25c7d620df720e79d21ab779f138c05b065205915242a26ad8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.5

Release files / plastexdepgraph-0.0.5-py3-none-any.whl

Download URL plastexdepgraph-0.0.5-py3-none-any.whl
Size 656.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
19dd428444c06d68c52e251a512c1a81ce3f1b6825cb9b4200869c1286bdb13d
BLAKE2b-256 checksum
How to use checksums
342c427c392e1100f8435e7aef07d2be19013f6bdd48444232486fbe911f7a8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.5

Security for plastexdepgraph 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page