答案1
答案2
这里有两种解决方案:一个使用pstricks
,另一个使用tikz-cd
(简化语法):
\documentclass{article}
\usepackage{amsmath}
\usepackage{pstricks-add}
\usepackage{tikz-cd}
\usepackage{auto-pst-pdf}
\begin{document}
With \texttt{pstricks}: \[ \psset{arrows=->, arrowinset=0.2, linewidth=0.5pt, nodesep=2pt, labelsep=2pt, rowsep=1cm, shortput=nab, linejoin=1}
\everypsbox{\scriptstyle}
\begin{psmatrix}
%%%nodes
A \times B& C \\%
A\otimes B%%%
%%% arrows
\ncline{1,1}{1,2}\naput{f} \ncline{1,1}{2,1}\nbput{\varphi_{\!{}_{AB}}}\\
\ncline{2,1}{1,2}\nbput[nrot=:U]{\phi}
\end{psmatrix}
\]
With \texttt{tikz-cd}:
\[ \begin{tikzcd}[column sep=1.5cm, row sep=1cm, arrows={-stealth}]
A\times B\rar{f}\dar[swap]{\varphi_{\!{}_{AB}}} & C \\%
A\otimes B \urar[swap,]{\phi}
\end{tikzcd}
\]
\end{document}