-
Notifications
You must be signed in to change notification settings - Fork 118
Open
Description
When one wants to highlight a specific path in a commutative diagram, it could be interesting to play with the thickness of arrows (instead of using colors). In terms of UI/UX, it seems easy to add to quiver as an additional slider (with position, offset, etc.). However, I am not sure what is the best way to achieve this in tikzcd. Inspired by this TeX.SE post, I wrote the following code that generates the following diagrams with three different levels of thickness. I am sure the output could be improved by tweaking the code (maybe using relative units).
\[
\tikzset{LA1/.style = {line width=1pt, -{Classical TikZ Rightarrow[length=3pt]}}}
\tikzset{LA2/.style = {line width=1.5pt, -{Classical TikZ Rightarrow[length=3pt]}}}
\tikzset{LA3/.style = {line width=2pt, -{Classical TikZ Rightarrow[length=3pt]}}}
% https://q.uiver.app/#q=WzAsNyxbMCwwLCJBIl0sWzIsMCwiQiJdLFswLDEsIkMiXSxbMSwxLCJEIl0sWzIsMiwiRSJdLFsyLDEsIkYiXSxbMCwyLCJHIl0sWzAsMV0sWzAsMl0sWzIsM10sWzMsNF0sWzEsNV0sWzUsNF0sWzIsNl0sWzYsNF1d
\begin{tikzcd}
A && B \\
C & D & F \\
G && E
\arrow[from=1-1, to=1-3]
\arrow[from=1-1, LA1, to=2-1]
\arrow[from=1-3, to=2-3]
\arrow[from=2-1, LA1, to=2-2]
\arrow[from=2-1, to=3-1]
\arrow[from=2-2, LA1, to=3-3]
\arrow[from=2-3, to=3-3]
\arrow[from=3-1, to=3-3]
\end{tikzcd}
\begin{tikzcd}
... replace LA1 by LA2
\end{tikzcd}
\begin{tikzcd}
... replace LA1 by LA3
\end{tikzcd}\]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
