Provide \to and \mapsto as shortcuts#8
Conversation
|
This proposal would break the following, not completely unreasonable construction, \begin{tikzcd}
A \to B \ar[r] & B \to D
\end{tikzcd}which I would say is not acceptable. |
|
You are right, this code would no longer work. But why do you think somebody would use normal arrows ( |
|
@tobiasdiez For instance, because some arrows don't need a label and/or should be shorter. I'm not saying it's the best (or even a good) way to do it, but it's something some people will do, with really confusing results. Consider also the possibility that an object of the diagram is This change would make the package's behaviour less predictable. |
|
Ok, I understand. These examples feel a bit artificial to me, but I also see that as a package maintainer you have to consider these edge cases. Would you consider adding a package option, that enables the |
This PR enables
\toand\mapstoas shortcuts for the common latex arrows. Thus, the following worksAdvantages:
\toand\mapstoare used for the arrowsI've marked this as a draft PR, as the following points still need to be done but I wanted to get early feedback:
\mapstoi.e.\mapsto[r]instead of\mapsto{r}. Any advice on how to do this?