Closed pgf-tikz-bot closed 5 years ago
Migrated from SourceForge Author: tantau Timestamp: 2013-09-30 10:19:29.504000
Migrated from SourceForge Author: qrrbrbirlbelsf Timestamp: 2013-11-10 05:21:03.043000
For a general (more or less) TikZ solution on this, refer to Mark Wibrow’s answer on TeX.sx.
The tikz-cd
package has something like this already incorporated (with a slightly different syntax and approach). Although the implementation is actually rather straight-forward, I have shown how to use tikz-cd
’s implementation/keys with TikZ.
Closing because there exists a library solution: https://ctan.org/pkg/tikz-cd
Migrated from SourceForge Author: *anonymous Timestamp: 2009-07-15 16:52:28
Hi,
With XY-pic it is easy to connect two nodes using several parallel straight lines. For this there is a special transformation on arrows called sliding (see page 6 of xypic's user guide). This feature has been requested in the Help forum, see
http://sourceforge.net/forum/forum.php?thread\_id=3290707&forum\_id=477363 http://sourceforge.net/forum/forum.php?thread\_id=1959833&forum\_id=477363
In order to draw some category theory diagrams I have modified both
\pgfpointanchor
and\pgfpointshapeborder
inpgfmoduleshapes.code.tex
and removed the final inverse transformation, as followsThis alternative behaviour allows me to write
and easily obtain a pair of parallel arrows between A and B. Of course, this behaviour is in conflict with the default, but it serves my purposes.
It would be nice if xypic's sliding transformation was introduced as a new feature in pgf/tikz, which would shift in a direction perpendicular to the arrow being drawn.
Thanks, Francisco