投影仪中的图表

投影仪中的图表

我想把这个图表放在乳胶中,当我制作它时frame它不起作用,但没有frame它它就可以正常工作。有什么想法吗?

\begin{equation*}
\begin{tikzcd}[column sep=0.50em]
\cdots\arrow[r]
  &D^{\oplus n_{i+1}}
  \arrow[rr,"d_{i+1}"]
  \arrow[dr,"g_{i+1}"]
  &&D^{\oplus n_i}
  \arrow[dr,"g_i"]
  \arrow[rr,"d_i"]
  &&D^{\oplus n_{i-1}}
  \arrow[r]
  \arrow[dr]
  &\cdots\\
M_{i+1}\arrow[ur] 
  &&M_i
  \arrow[ur,"f_{i}"]
  \arrow[dashed,ll]
  &&M_{i-1}
  \arrow[dashed,ll]
  \arrow[ur,"f_{i-1}"]
  &&M_{i-2} 
  \arrow[dashed,ll]
\end{tikzcd}
\end{equation*}

答案1

frame在某些方面存在beamer 问题,例如&TikZ 矩阵。要解决这个问题,请将[fragile]选项添加到框架,或使用ampersand replacement下面第二个示例中的方法。

如果您确实需要的话,代码中指出了一些可以帮助您减小图表尺寸的事情。

\documentclass{beamer}
\usepackage{tikz-cd}
\begin{document}
\begin{frame}[fragile]
\begin{equation*}
\begin{tikzcd}[
   column sep=0.50em,
%   row sep=small, % reduces space between rows
%   cramped, % reduces whitespace around cells
%   cells={font=\tiny} % reduces font size (try \footnotesize, \scriptsize, \small
  ]
\cdots\arrow[r]
  &D^{\oplus n_{i+1}}
  \arrow[rr,"d_{i+1}"]
  \arrow[dr,"g_{i+1}"]
  &&D^{\oplus n_i}
  \arrow[dr,"g_i"]
  \arrow[rr,"d_i"]
  &&D^{\oplus n_{i-1}}
  \arrow[r]
  \arrow[dr]
  &\cdots\\
M_{i+1}\arrow[ur] 
  &&M_i
  \arrow[ur,"f_{i}"]
  \arrow[dashed,ll]
  &&M_{i-1}
  \arrow[dashed,ll]
  \arrow[ur,"f_{i-1}"]
  &&M_{i-2} 
  \arrow[dashed,ll]
\end{tikzcd}
\end{equation*}
\end{frame}

\begin{frame}
\begin{equation*}
\begin{tikzcd}[
   ampersand replacement=\&,
   column sep=0.50em,
%   row sep=small, % reduces space between rows
%   cramped, % reduces whitespace around cells
%   cells={font=\tiny} % reduces font size (try \footnotesize, \scriptsize, \small
  ]
\cdots\arrow[r]
  \&D^{\oplus n_{i+1}}
  \arrow[rr,"d_{i+1}"]
  \arrow[dr,"g_{i+1}"]
  \&\&D^{\oplus n_i}
  \arrow[dr,"g_i"]
  \arrow[rr,"d_i"]
  \&\&D^{\oplus n_{i-1}}
  \arrow[r]
  \arrow[dr]
  \&\cdots\\
M_{i+1}\arrow[ur] 
  \&\&M_i
  \arrow[ur,"f_{i}"]
  \arrow[dashed,ll]
  \&\&M_{i-1}
  \arrow[dashed,ll]
  \arrow[ur,"f_{i-1}"]
  \&\&M_{i-2} 
  \arrow[dashed,ll]
\end{tikzcd}
\end{equation*}
\end{frame}
\end{document}

相关内容