需要帮助制作交换图

需要帮助制作交换图

我正在尝试制作交换图。下图是以下 latex 编程的输出,这显然不是我想要的。有人可以修复它吗?

在此处输入图片描述

\documentclass[oneside,10pt]{article}  
\usepackage{tikz-cd}
\[ \begin{tikzcd}
\operatorname{Id'}(V)\times \operatorname{Id'}(B) \arrow{r} \arrow[swap]{d}{\theta \times id} & Id'( V \otimes^{\text {tmin}} B) \arrow[swap]{d}{\theta} \\%
\operatorname{Id'}(A(V)) \times \operatorname{Id'}(B) \arrow{r}{\Phi} & \operatorname{Id'}(A(V)\otimes^{\text {min}} B)
\end{tikzcd}
\]

在此处输入图片描述

答案1

包裹oam落下\mathsurround=1pt,导致破损tikz-cd

可以通过使用适当的 Ti 来解决这个问题Z/PGF 方法。这不会干扰\mathsurround外部图表的值。

\documentclass[oneside,10pt]{article}
\usepackage{amsfonts,amsmath,latexsym,amssymb} % these packages are required
%\usepackage{theorem}                % please use one of this two options for theorems
\usepackage{amsthm}                % please use one of this two options for theorems
\usepackage{mathrsfs,upref}         % not so essential, but part of journal style
\usepackage{mathptmx}               % Journal is printed with poscript fonts:

\usepackage{oam}
\usepackage{tikz-cd}

\tikzcdset{
  zerosurround/.code={\mathsurround=0pt},   % define a suitable key
  every diagram/.append style=zerosurround, % add it to every diagram
}

\begin{document}
\[
\begin{tikzcd}
  \operatorname{Id}'(V)\times \operatorname{Id'}(B)
    \arrow[r]
    \arrow[d,swap,"\theta \times id"]
  &
  \operatorname{Id}'(V \otimes^{\mathrm{tmin}} B)
    \arrow[d,swap,"\theta"]
  \\
  \operatorname{Id}'(A(V)) \times \operatorname{Id'}(B)
    \arrow[r,"\Phi"]
  &
  \operatorname{Id}'(A(V)\otimes^{\mathrm{min}} B)
\end{tikzcd}
\]
\end{document}

请注意箭头的“现代”语法比“传统”语法灵活得多。此外,\operatorname{Id'}最好是\operatorname{Id}'\text应该是\mathrm

在此处输入图片描述

答案2

这对我有用:

\documentclass{article}  
\usepackage{amsmath}
\usepackage{tikz-cd}

\begin{document}
\[ \begin{tikzcd}
\operatorname{Id'}(V)\times \operatorname{Id'}(B) 
  \arrow{r} \arrow[swap]{d}{\theta \times id} & 
    Id'( V \otimes^{\text {tmin}} B) \arrow[swap]{d}{\theta} \\%
\operatorname{Id'}(A(V)) \times \operatorname{Id'}(B)
   \arrow{r}{\Phi} & 
   \operatorname{Id'}(A(V)\otimes^{\text {min}} B)
\end{tikzcd}
\]
\end{document}

在此处输入图片描述

相关内容