我知道可以旋转\xymatrix
(使用例如\xymatrix@d
)但如何转置或镜像它?
答案1
您tikz-cd
可以通过为行和列分隔符赋予负值来镜像您的图表:
% arara: pdflatex
\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
\[
\begin{tikzcd}
A \arrow{r}{\phi}& B\arrow{d}{\psi} \\
C \arrow{u}{\eta} & D \arrow{l}{\mu}
\end{tikzcd}
\]
\[
\begin{tikzcd}[column sep=-14ex, every arrow/.append style={swap}]
A \arrow{r}{\phi}& B\arrow{d}{\psi} \\
C \arrow{u}{\eta} & D \arrow{l}{\mu}
\end{tikzcd}
\]
\[
\begin{tikzcd}[row sep=-11ex, every arrow/.append style={swap}]
A \arrow{r}{\phi}& B\arrow{d}{\psi} \\
C \arrow{u}{\eta} & D \arrow{l}{\mu}
\end{tikzcd}
\]
\end{document}