Copyright | Anthony Wang 2021 |
---|---|
License | MIT |
Maintainer | anthony.y.wang.math@gmail.com |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
TikzStringDiagram
is a module for defining TikzStringDiagram
, the structure
containing the TikZ objects needed to create a string diagram.
A TikzStringDiagram
is an instance of ShowLatex
, where
showLatex
of a TikzStringDiagram
is the LaTeX code for rendering
the string diagram.
Synopsis
- data TikzStringDiagram = TikzStringDiagram {
- tikzsd_array_of_coords :: !(Array (Int, Int) (Maybe TikzPathOperation))
- tikzsd_array_of_tikz_nt_nodes :: !(Array (Int, Int) (Maybe TikzPathOperation))
- tikzsd_functor_strings :: ![TikzPath]
- tikzsd_options :: !String
- make_tikzsd :: NaturalTransformation -> NatFormatting -> String -> TikzStringDiagram
Documentation
data TikzStringDiagram Source #
TikzStringDiagram
is a data structure containing the Tikz objects
needed to draw a string diagram.
TikzStringDiagram | |
|
Instances
ShowLatex TikzStringDiagram Source # | |
Defined in TikzStringDiagram showLatex :: TikzStringDiagram -> String Source # |
make_tikzsd :: NaturalTransformation -> NatFormatting -> String -> TikzStringDiagram Source #
make_tikzsd
creates a TikzStringDiagram
from a NaturalTransformation
,
a NatFormatting
which can be used to format the NaturalTransformation
,
and a String
of LaTeX code for options in the tikzpicture
environment.