在 tex 中绘制大型交换图

在 tex 中绘制大型交换图

我正在尝试为我的论文绘制一个大的交换图。这个图很简单,看起来像一个 4 x 8 矩阵,但顶点的标签和箭头的标签相当大。因此,该图不适合页面空间。

我正在使用包装图片并使用“微小”来使它们变小。

我的问题是,是否可以更改包来重新排列内容,以便图表可以适合页面?

否则我该怎么办?是否可以从其他编辑器导入图表?

先感谢您!

以下是代码

{\tiny
\begin{tikzpicture}
  \matrix (m) [matrix of math nodes, row sep=1em,column sep=1em,minimum width=1em]
  {
     T^{xzx\inv}(T^{x}(T^{r}(M\ot N))) & &
     T^{xzx\inv}(T^{xr}(M\ot N)) &   
     T^{xzx\inv}(T^{xrx^{-1}}(T^{x}(M\ot N))) \\%1
    T^{xz}(T^{r}(M\ot N)) & &  & T^{xzx\inv}(T^{xrx^{-1}}(T^{x}(M)\ot T^{x}(N))) \\%2
    T^{xzr} (M\ot N) & & T^{xzrx^{-1}} (T^{x}(M\ot N))&  T^{xzrx^{-1}} (T^{x}(M)\ot T^{x}(N)) \\%3
     T^{x}(T^{zr} (M\ot N) )&  & T^{xr'x^{-1}} (T^{xlx^{-1}}(T^{x}(M\ot N))  & T^{xr'x^{-1}} (T^{xlx^{-1}}(T^{x}(M)\ot T^{x}(N))) \\%4
     T^{x}(T^{r'}(T^{l}(M\ot N)))&  A & T^{xr'x^{-1}}(T^{xl}(M\ot N))  &   T^{xr'x^{-1}}(T^{xlx^{-1}}(T^{x}(M))\ot T^{xlx^{-1}}(T^{x}(N)))\\%5 
    T^{x}(T^{r'}(T^{l}(M)\ot T^{l}(N))) & B & T^{xr'x^{-1}}(T^{x}(T^{l}(M\ot N))) & T^{xr'x^{-1}}(T^{xl}(M)\ot T^{xl} (N))   \\%6
     T^{x}(T^{r'}(M\ot N))) &   T^{xr'x^{-1}}(T^{x}(T^{l}(M)& T^{xr'x^{-1}}(T^{x}(T^{l}(M)\ot T^{x}(T^{l} (N))))\\%7 
     T^{xr'}(M\ot N)& T^{xr'x^{-1}}(T^{x}(M\ot N)) & T^{xr'x^{-1}}(T^{x}(M)\ot T^{x}(N)) \\%8
     };
     \path[-stealth]
     (m-1-1) edge node [above] {$T^{xzx^{-1}}((T^{x,r}_{2})_{M\ot N})$}(m-1-3)%A1horiz
     (m-1-3) edge node [above] {$T^{xzx^{-1}}((T^{xrx^{-1},x}_{2})^{-1}_{M\ot N})$}(m-1-4)
     (m-8-1) edge node [below] {$(T^{xr'x^{-1}, x}_{2})^{-1}_{M\ot N}$}(m-8-2)%A8horiz
      (m-8-2) edge node [below] {$T^{xr'x^{-1}}((T^{x}_{2})^{M, N})$}(m-8-3)
        (m-3-1) edge [dashed] node  [above] {$(T^{xzrx^{-1}, x}_{2})_{M\ot N}$}(m-3-3)%A8horiz
        (m-3-3) edge [dashed] node [above] {$T^{xzrx^{-1}}((T^{x}_{2})^{M, N})$}(m-3-4)
       % (m-4-1) edge [dashed] node  [above] {hello}(m-4-2)%A8horiz
        (m-4-2) edge [dashed] node [above] {}(m-4-3)
       % (m-5-1) edge [dashed] node  [above] {}(m-5-2)%A8horiz
        (m-5-3) edge [dashed] node [above] {}(m-6-4)
        %(m-6-1) edge [dashed] node  [above] {}(m-6-2)%A8horiz
       % (m-7-3) edge [dashed] node  [above] {$\mu^{l}_{M\ot N}$}(m-7-1)%A8horiz
        (m-7-2) edge [dashed] node [above] {}(m-7-3)
      (m-8-2) edge  node [above] {}(m-8-3)
      %%%%% verticals\
       (m-1-1) edge node [left] {$$} (m-2-1)%vertical
       (m-2-1) edge node [left] {$$} (m-3-1)%vertical
       (m-3-1) edge node [left] {$$} (m-4-1)%
       (m-4-1) edge node [left] {$$} (m-5-1)%
       (m-5-1) edge node [left] {$$} (m-6-1)%
     (m-6-1) edge node [left] {$$} (m-7-1)%
     (m-7-1) edge node [left] {$$} (m-8-1)%vertical
     (m-1-3) edge node [left] {$$} (m-2-3)%vertical
       (m-2-3) edge node [left] {$$} (m-3-3)%vertical
       (m-3-3) edge node [left] {$$} (m-4-3)%
       (m-4-3) edge node [left] {$$} (m-5-3)%
       (m-5-3) edge node [left] {$$} (m-6-3)%
     (m-6-3) edge node [left] {$$} (m-7-3)
     (m-7-3) edge node [left] {$$} (m-8-3)
     (m-1-2) edge [dashed] node [left] {$$} (m-3-1)%
        (m-1-3) edge [dashed] node [left] {$$} (m-3-2)
        (m-3-2) edge [dashed] node [left] {$$} (m-4-2)
          (m-4-2) edge [dashed] node [left] {$$} (m-5-2)
          (m-5-2) edge [dashed] node [left] {$$} (m-6-2)
           (m-6-2) edge [dashed] node [left] {$$} (m-7-2)
            (m-7-2) edge [dashed] node [left] {$$} (m-8-2)
            %(m-6-2) edge [dashed] node [left] {$$} (m-7-2)
            ;
  \end{tikzpicture} 

图表尚未完善

答案1

你可以拍下你的照片,然后用独立-class。类似这样的:

\documentclass{standalone} 
%packeges you need for your picture
\begin{document}
%Your picture definition
\end{document}

这将创建一个与您的图片大小相同的文档。

然后您可以将此图像包含进去\includegraphics


编辑后备注:

您也可以与 合作\includestandalone

\documentclass{scrartcl} 
\usepackage{tikz} 
\usepackage{standalone} 
%other packages
\begin{document}
%your content before the picture
\includestandalone[width=\textwidth]{your-standalone-document}
%your content after the picture
\end{document}

相关内容