Skip to content

Commit

Permalink
Special-case LaTeX output for empty arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Jan 23, 2021
1 parent d62a4bc commit c9fd2df
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/quiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,14 @@ QuiverExport.tikz_cd = new class extends QuiverExport {
tikz_incompatibilities.add("triple arrows or higher");
}

// We special-case arrows with no head, body, nor tail. This is because the
// `no body` style has some graphical issues in some versions of TikZ, so
// we prefer to avoid this style if possible.
if (edge_is_empty) {
parameters.draw = "none";
break;
}

// Body styles.
switch (edge.options.style.body.name) {
case "cell":
Expand Down

0 comments on commit c9fd2df

Please sign in to comment.