Skip to content

JuliaTeX/TikzCDs.jl

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

TikzCDs.jl

Tests codecov

A wrapper around TikzPictures.jl for easier drawing of commutative diagrams using tikz-cd

Dependencies

In order to use this library, lualatex must be installed. You must also have dvisvgm installed.

On Ubuntu, you can get these, if not already present, by running:

$ sudo apt-get install texlive-latex-base texlive-binaries texlive-luatex

Example

tp = TikzCD(L"""
A \arrow{rd} \arrow{r} & B \\
                       & C
""", options="scale=0.25")

For more usage details, check out the TikzPictures.jl repository.

Quiver Support

You can use Quiver to draw your diagrams and then render them with TikzCD by taking the body of the tikzcd from the exported tex file. The QuiverCD function will append the quiver.sty file to your TikzCD diagram.

using TikzCDs: Styles
triangle = L"""        A &&& Q \\
               \\
               &&& P
               \arrow["h", from=1-4, to=3-4]
               \arrow["f", from=1-1, to=1-4]
               \arrow["g"', from=1-1, to=3-4]
            """
tridiagram = TikzCD(triangle, preamble=Styles.Quiver)

About

Draw commutative diagrams using tikz-cd

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages