Dependency graph plugin for plasTeX.
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file plastexdepgraph-0.0.5.tar.gz.
File metadata
- Download URL: plastexdepgraph-0.0.5.tar.gz
- Upload date:
- Size: 653.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cb949d44c1125e5a0578a9f7055ee2577946366bf20e8798f54ce7090ee7c6d
|
|
| MD5 |
d0b471f6100828a3bc9f867fe8cad110
|
|
| BLAKE2b-256 |
8b2e23bbe63a9f25c7d620df720e79d21ab779f138c05b065205915242a26ad8
|
File details
Details for the file plastexdepgraph-0.0.5-py3-none-any.whl.
File metadata
- Download URL: plastexdepgraph-0.0.5-py3-none-any.whl
- Upload date:
- Size: 656.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19dd428444c06d68c52e251a512c1a81ce3f1b6825cb9b4200869c1286bdb13d
|
|
| MD5 |
2500ed2c3d72f6390c4af08a81a15a3b
|
|
| BLAKE2b-256 |
342c427c392e1100f8435e7aef07d2be19013f6bdd48444232486fbe911f7a8c
|