如何转置或镜像 xymatrix?

如何转置或镜像 xymatrix?

我知道可以旋转\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}

在此处输入图片描述

相关内容